Jelajahi Sumber

fix:添加创建时间字段

wangbo 2 tahun lalu
induk
melakukan
5fbb744460

+ 2 - 0
smsb-customer-manager-app/src/main/java/com/inspur/customer/service/org/SmsbDepartmentUserServiceImpl.java

@@ -23,6 +23,7 @@ import org.apache.dubbo.config.annotation.DubboService;
 import org.springframework.beans.BeanUtils;
 import org.springframework.transaction.annotation.Transactional;
 
+import java.time.LocalDateTime;
 import java.util.List;
 import java.util.Objects;
 
@@ -91,6 +92,7 @@ public class SmsbDepartmentUserServiceImpl extends ServiceImpl<SmsbDepartmentUse
         }
         SmsbDepartmentUserDO smsbDepartmentUserDO = new SmsbDepartmentUserDO();
         BeanUtils.copyProperties(userMigration , smsbDepartmentUserDO);
+        smsbDepartmentUserDO.setCreateTime(LocalDateTime.now());
         super.save(smsbDepartmentUserDO);
         return SingleResponse.of(smsbDepartmentUserDO);
     }