|
|
@@ -258,7 +258,13 @@ public class ProjectStaffRecordServiceImpl implements ProjectStaffRecordService
|
|
|
String maxDurationProjectFlag = configService.selectConfigByKey("maxDurationProject");
|
|
|
AtomicReference<Double> myDuration = new AtomicReference<>(0d);
|
|
|
Boolean flag = Boolean.parseBoolean(maxDurationProjectFlag);
|
|
|
- if (!flag)id=null;
|
|
|
+ if (flag){
|
|
|
+ if (id==null){
|
|
|
+ return AjaxResult.error("项目不能为空");
|
|
|
+ }
|
|
|
+ }else {
|
|
|
+ id=null;
|
|
|
+ }
|
|
|
List<ProjectStaffRecord> projectStaffRecords = projectStaffRecordMapper.selectByPidAndAid(id,user.getUserId());
|
|
|
projectStaffRecords.stream().forEach(e ->{
|
|
|
String eDate= DateUtils.parseDateToStr(DateUtils.YYYY_MM_DD, e.getRecordTime());
|