|
@@ -243,16 +243,16 @@ public class ReportCancellApplyService extends ServiceImpl<ReportCancellApplyMap
|
|
|
String idArray[] =ids.split(",");
|
|
|
//删除前先将报告文号给复原
|
|
|
ArrayList<String> strings = Lists.newArrayList(idArray);
|
|
|
- for (int i=0;i<strings.size();i++){
|
|
|
- //修改新建行的del_flag为0,delete_sign为0
|
|
|
- ReportCancellApply cancellApply = applyMapper.selectById(strings.get(i));
|
|
|
- CwProjectInfoData infoData = infoMapper.getById(cancellApply.getReportNewLineId());
|
|
|
- infoData.setDelFlag(0);
|
|
|
- infoData.setDeleteSign("0");
|
|
|
- infoMapper.updateById(infoData);
|
|
|
- ReportInfoDto reportInfoDto = applyMapper.queryById(strings.get(i));
|
|
|
- cancelMapper.deleteByReportNo(reportInfoDto.getReportNo());
|
|
|
- }
|
|
|
+// for (int i=0;i<strings.size();i++){
|
|
|
+// //修改新建行的del_flag为0,delete_sign为0
|
|
|
+// ReportCancellApply cancellApply = applyMapper.selectById(strings.get(i));
|
|
|
+// CwProjectInfoData infoData = infoMapper.getById(cancellApply.getReportNewLineId());
|
|
|
+// infoData.setDelFlag(0);
|
|
|
+// infoData.setDeleteSign("0");
|
|
|
+// infoMapper.updateById(infoData);
|
|
|
+// ReportInfoDto reportInfoDto = applyMapper.queryById(strings.get(i));
|
|
|
+// cancelMapper.deleteByReportNo(reportInfoDto.getReportNo());
|
|
|
+// }
|
|
|
//将报告文号报废表的对应的报告文号给删除
|
|
|
|
|
|
this.removeByIds (Lists.newArrayList (idArray));
|