|
|
@ -512,7 +512,7 @@ public class BaseServiceImpl implements BaseService { |
|
|
CalendarDatetypeOutData cdd = null;//工作日类型 |
|
|
CalendarDatetypeOutData cdd = null;//工作日类型 |
|
|
List<CalendarDatetypeShiftOutData> cdsdList = null;//工作班次类型 |
|
|
List<CalendarDatetypeShiftOutData> cdsdList = null;//工作班次类型 |
|
|
try { |
|
|
try { |
|
|
if (listData.size() == 0) { |
|
|
|
|
|
|
|
|
if (listData.isEmpty()) { |
|
|
responseData.setMsg(sysMsgService.getLanguageMsg(SysMsgConstant.OBJECT_ID_200029)); |
|
|
responseData.setMsg(sysMsgService.getLanguageMsg(SysMsgConstant.OBJECT_ID_200029)); |
|
|
return responseData; |
|
|
return responseData; |
|
|
} else { |
|
|
} else { |
|
|
@ -555,12 +555,12 @@ public class BaseServiceImpl implements BaseService { |
|
|
ced.setCreatedDate(new Date()); |
|
|
ced.setCreatedDate(new Date()); |
|
|
//删除已经维护的日历安排 |
|
|
//删除已经维护的日历安排 |
|
|
List<CalendarExceptionData> ceData = baseMapper.getCalendarEByCIdAndSDate(listData.get(i).getSite(), listData.get(i).getCalendarId(), timeList.get(k)); |
|
|
List<CalendarExceptionData> ceData = baseMapper.getCalendarEByCIdAndSDate(listData.get(i).getSite(), listData.get(i).getCalendarId(), timeList.get(k)); |
|
|
if (ceData.size() > 0) { |
|
|
|
|
|
|
|
|
if (!ceData.isEmpty()) { |
|
|
deleteAllCE(ceData); |
|
|
deleteAllCE(ceData); |
|
|
} |
|
|
} |
|
|
//删除已经维护的日历班次安排 |
|
|
//删除已经维护的日历班次安排 |
|
|
List<CalendarExceptionShiftData> cesData = baseMapper.getCalendarESByCIdAndSDate(listData.get(i).getSite(), listData.get(i).getCalendarId(), timeList.get(k)); |
|
|
List<CalendarExceptionShiftData> cesData = baseMapper.getCalendarESByCIdAndSDate(listData.get(i).getSite(), listData.get(i).getCalendarId(), timeList.get(k)); |
|
|
if (cesData.size() > 0) { |
|
|
|
|
|
|
|
|
if (!cesData.isEmpty()) { |
|
|
deleteAllCES(cesData); |
|
|
deleteAllCES(cesData); |
|
|
} |
|
|
} |
|
|
baseMapper.saveCED(ced); |
|
|
baseMapper.saveCED(ced); |
|
|
@ -568,7 +568,7 @@ public class BaseServiceImpl implements BaseService { |
|
|
newInData.setSite(listData.get(i).getSite()); |
|
|
newInData.setSite(listData.get(i).getSite()); |
|
|
newInData.setDatetype(valArr[k]); |
|
|
newInData.setDatetype(valArr[k]); |
|
|
cdsdList = baseMapper.findBySiteAndDatetype(newInData); |
|
|
cdsdList = baseMapper.findBySiteAndDatetype(newInData); |
|
|
if (cdsdList.size() > 0) { |
|
|
|
|
|
|
|
|
if (!cdsdList.isEmpty()) { |
|
|
for (int j = 0; j < cdsdList.size(); j++) { |
|
|
for (int j = 0; j < cdsdList.size(); j++) { |
|
|
cesd = new CalendarExceptionShiftData();//实例化工作日历班次 |
|
|
cesd = new CalendarExceptionShiftData();//实例化工作日历班次 |
|
|
cesd.setSite(cdsdList.get(j).getSite()); |
|
|
cesd.setSite(cdsdList.get(j).getSite()); |
|
|
|