|
|
|
@ -6,6 +6,7 @@ import com.gaotao.common.exception.XJException; |
|
|
|
import com.gaotao.common.utils.DateUtil; |
|
|
|
import com.gaotao.common.utils.DateUtils; |
|
|
|
import com.gaotao.common.utils.R; |
|
|
|
import com.gaotao.modules.rollNoReview.data.SFDCMaterialHistOutData; |
|
|
|
import com.gaotao.modules.schedule.data.*; |
|
|
|
import com.gaotao.modules.schedule.data.dto.ScheduleDateShifDto; |
|
|
|
import com.gaotao.modules.schedule.data.dto.SfdcNewsfdcDto; |
|
|
|
@ -5221,10 +5222,30 @@ public class ScheduleServiceImpl implements ScheduleService { |
|
|
|
|
|
|
|
@Override |
|
|
|
public void deleteSfdcDefect(SfdcDefectData sfdcDefectData) { |
|
|
|
Map<String, String> resMap = scheduleMapper.deleteSfdcDefect(sfdcDefectData); |
|
|
|
List<Map<String, String>> resMap = scheduleMapper.deleteSfdcDefect(sfdcDefectData); |
|
|
|
if (CollectionUtil.isNotEmpty(resMap)) { |
|
|
|
if (!"200".equals(resMap.get("resultCode"))) { |
|
|
|
throw new XJException(resMap.get("resultMsg")); |
|
|
|
if (!"200".equals(resMap.get(0).get("resultCode"))) { |
|
|
|
throw new XJException(resMap.get(0).get("resultMsg")); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public void deleteSfdcTimeHist(SearchScheduleData inData) { |
|
|
|
List<Map<String, String>> resMap = scheduleMapper.deleteSfdcTimeHist(inData); |
|
|
|
if (CollectionUtil.isNotEmpty(resMap)) { |
|
|
|
if (!"200".equals(resMap.get(0).get("resultCode"))) { |
|
|
|
throw new XJException(resMap.get(0).get("resultMsg")); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public void deleteSfdcMaterialHist(SFDCMaterialHistOutData inData) { |
|
|
|
List<Map<String, String>> resMap = scheduleMapper.deleteSfdcMaterialHist(inData); |
|
|
|
if (CollectionUtil.isNotEmpty(resMap)) { |
|
|
|
if (!"200".equals(resMap.get(0).get("resultCode"))) { |
|
|
|
throw new XJException(resMap.get(0).get("resultMsg")); |
|
|
|
} |
|
|
|
} |
|
|
|
} |