|
@@ -9,6 +9,7 @@ import com.diagbot.exception.CommonErrorCode;
|
|
|
import com.diagbot.exception.CommonException;
|
|
|
import com.diagbot.service.DeptVitalService;
|
|
|
import com.diagbot.service.impl.DeptVitalServiceImpl;
|
|
|
+import com.diagbot.util.DateUtil;
|
|
|
import com.diagbot.util.EntityUtil;
|
|
|
import com.diagbot.util.UserUtils;
|
|
|
import com.diagbot.vo.DeptVitalVO;
|
|
@@ -63,12 +64,16 @@ public class DeptVitalFacade extends DeptVitalServiceImpl implements DeptVitalSe
|
|
|
|
|
|
//插入新模板
|
|
|
List<DeptVital> deptVitalList = Lists.newArrayList();
|
|
|
+ Date now = DateUtil.now();
|
|
|
+ String userId = UserUtils.getCurrentPrincipleID();
|
|
|
for (Long vital : deptVitalVO.getVitalIds()) {
|
|
|
DeptVital deptVital = new DeptVital();
|
|
|
deptVital.setDeptId(deptVitalVO.getDeptId());
|
|
|
deptVital.setVitalId(vital);
|
|
|
- deptVital.setCreator(UserUtils.getCurrentPrincipleID());
|
|
|
- deptVital.setGmtCreate(new Date());
|
|
|
+ deptVital.setCreator(userId);
|
|
|
+ deptVital.setGmtCreate(now);
|
|
|
+ deptVital.setModifier(userId);
|
|
|
+ deptVital.setGmtModified(now);
|
|
|
deptVitalList.add(deptVital);
|
|
|
}
|
|
|
|