Commit 4ec518ce authored by 廖旭伟's avatar 廖旭伟

作品发布bug修改

parent 787ee02e
......@@ -26,4 +26,8 @@ public class CustomerWorkDesignVo extends BaseEntityLong {
private String frontCover;
/** 模板id */
private Long masterplateId;
/**
* 版式。1:横版2竖版默认:1
*/
private Integer plateType;
}
\ No newline at end of file
......@@ -134,6 +134,7 @@ public class CustomerWorkDesignServiceImpl extends AbstractCRUDServiceImpl<Custo
newMasterplate.setMasterplateUseNum(0);
newMasterplate.setPreviewUrl(entity.getFrontCover());
newMasterplate.setDraft(workDesign.getDraft());
newMasterplate.setPlateType(entity.getPlateType()==null?1:entity.getPlateType());
newMasterplate.setCreateTime(new Date());
designMasterplateService.save(newMasterplate,context);
return 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment