Commit d244b3ef by 吴迪

编辑字段 最后编辑字段 修改提交

parent 36a449a1
......@@ -43,7 +43,7 @@ public class HomePopupForm implements Serializable {
/**
* 作者
*/
@NotBlank(message = "作者不能为空",groups = {UpdateGroup.class, AddGroup.class})
private String author;
/**
* 编辑
......
......@@ -81,6 +81,7 @@ public class HomePopupServiceImpl extends ServiceImpl<HomePopupDao, HomePopupEnt
public void saveHomePopup(HomePopupEntity homePopupEntity, SysUserEntity loginUser) {
homePopupEntity.setId(idWorkService.getSEQByKey(IdKeysConstant.ID_SEQ_KEY));
homePopupEntity.setAuthor(loginUser.getUsername());
homePopupEntity.setEditor(loginUser.getUsername());
homePopupEntity.setStatus(0);
homePopupEntity.setCreateTime(DateUtils.format(new Date(),DateUtils.DATE_TIME_PATTERN));
homePopupEntity.setUpdateTime(DateUtils.format(new Date(),DateUtils.DATE_TIME_PATTERN));
......
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