通用属性名称修改

main
liuyiliang 5 months ago
parent 143dbf3c65
commit b322c74b88
  1. 10
      ccic-exam/src/main/java/com/ccic/safeliab/support/BaseServiceImpl.java

@ -20,12 +20,12 @@ public class BaseServiceImpl<M extends BaseMapper<T>, T extends BaseEntity> exte
user.setCustomerId(Long.parseLong("3009473735814009")); user.setCustomerId(Long.parseLong("3009473735814009"));
if (user != null) { if (user != null) {
entity.setCreatedBy(user.getCustomerId()); entity.setCreatedBy(user.getCustomerId());
entity.setUpdateBy(user.getCustomerId()); entity.setUpdatedBy(user.getCustomerId());
} }
Date now = new Date(); Date now = new Date();
entity.setCreateAt(now); entity.setCreatedAt(now);
entity.setUpdateAt(now); entity.setUpdatedAt(now);
if (entity.getStatus() == null) { if (entity.getStatus() == null) {
entity.setStatus(1); entity.setStatus(1);
} }
@ -37,10 +37,10 @@ public class BaseServiceImpl<M extends BaseMapper<T>, T extends BaseEntity> exte
public boolean updateById(T entity) { public boolean updateById(T entity) {
Customer user = new Customer(); Customer user = new Customer();
if (user != null) { if (user != null) {
entity.setUpdateBy(user.getCustomerId()); entity.setUpdatedBy(user.getCustomerId());
} }
entity.setUpdateAt(new Date()); entity.setUpdatedAt(new Date());
return super.updateById(entity); return super.updateById(entity);
} }

Loading…
Cancel
Save