|
@ -187,7 +187,11 @@ public class DraftServiceImpl extends BaseServiceImpl<DraftDao, DraftEntity> imp |
|
|
if (formDTO.isShowCover()){ |
|
|
if (formDTO.isShowCover()){ |
|
|
DraftCoverEntity coverEntity = draftCoverDao.selectByDraftId(formDTO.getDraftId(), null); |
|
|
DraftCoverEntity coverEntity = draftCoverDao.selectByDraftId(formDTO.getDraftId(), null); |
|
|
if (coverEntity != null){ |
|
|
if (coverEntity != null){ |
|
|
CoverImgDTO coverImgDTO = ConvertUtils.sourceToTarget(coverEntity, CoverImgDTO.class); |
|
|
CoverImgDTO coverImgDTO = new CoverImgDTO(); |
|
|
|
|
|
coverImgDTO.setCoverId(coverEntity.getId()); |
|
|
|
|
|
coverImgDTO.setUrl(coverEntity.getImgUrl()); |
|
|
|
|
|
coverImgDTO.setAuditStatus(coverEntity.getAuditStatus()); |
|
|
|
|
|
coverImgDTO.setAuditReason(coverEntity.getAuditReason()); |
|
|
draftDetailResultDTO.setCoverInfo(coverImgDTO); |
|
|
draftDetailResultDTO.setCoverInfo(coverImgDTO); |
|
|
}else{ |
|
|
}else{ |
|
|
draftDetailResultDTO.setCoverInfo(new CoverImgDTO()); |
|
|
draftDetailResultDTO.setCoverInfo(new CoverImgDTO()); |
|
|