|
|
@@ -521,6 +521,7 @@ public class ProjectStaffRecordServiceImpl implements ProjectStaffRecordService
|
|
|
if (StringUtils.isNull(projectTask)){
|
|
|
throw new ServiceException(String.format("项目[%s]不存在",p.getProjectName()));
|
|
|
}
|
|
|
+ p.setPid(projectTask.getId());
|
|
|
}else {
|
|
|
throw new ServiceException(String.format("新增必须知道打卡项目编号"));
|
|
|
}
|
|
|
@@ -530,7 +531,6 @@ public class ProjectStaffRecordServiceImpl implements ProjectStaffRecordService
|
|
|
successMsg.append("<br/>" + successNum + "、项目: " + p.getProjectName() + " 导入成功");
|
|
|
}else if (updateSupport){
|
|
|
BeanValidators.validateWithException(validator, p);
|
|
|
-
|
|
|
if (p.getDuration()!=projectStaffRecord.getDuration()){
|
|
|
String recordTimes = DateUtils.parseDateToStr(DateUtils.YYYY_MM_DD, p.getRecordTime());
|
|
|
BigDecimal maxDuration= new BigDecimal(SecurityUtils.getLoginUser().getUser().getDept().getMaxDuration());
|