|
@@ -412,8 +412,20 @@ public class ZhcxOutsideInspectionItpServiceImpl extends ServiceImpl<ZhcxOutside
|
|
ZhcxOutsideInspectionItpSupervisionDispatchDo dispatchDo = dispatchService.getOne(dispatchLambdaQueryWrapper);
|
|
ZhcxOutsideInspectionItpSupervisionDispatchDo dispatchDo = dispatchService.getOne(dispatchLambdaQueryWrapper);
|
|
|
|
|
|
//保存历史
|
|
//保存历史
|
|
- saveHistory(itpDo, dispatchDo);
|
|
|
|
|
|
+ saveReHistory(itpDo, dispatchDo);
|
|
|
|
|
|
|
|
+ //保存新的报验单
|
|
|
|
+ saveReNewItp(itpDo, dispatchDo, masterSlaveUpdate);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 重新报验-保存新的报验单
|
|
|
|
+ *
|
|
|
|
+ * @param itpDo
|
|
|
|
+ * @param dispatchDo
|
|
|
|
+ * @param masterSlaveUpdate
|
|
|
|
+ */
|
|
|
|
+ private void saveReNewItp(ZhcxOutsideInspectionItpDo itpDo, ZhcxOutsideInspectionItpSupervisionDispatchDo dispatchDo, MasterSlaveUpdateVo masterSlaveUpdate) {
|
|
//新的报验单号
|
|
//新的报验单号
|
|
String newCode = genNewCode(itpDo, dispatchDo);
|
|
String newCode = genNewCode(itpDo, dispatchDo);
|
|
masterSlaveUpdate.getMasterUpdate().getUpdatecolumns().put("INSPECTIONCODE", newCode);
|
|
masterSlaveUpdate.getMasterUpdate().getUpdatecolumns().put("INSPECTIONCODE", newCode);
|
|
@@ -429,7 +441,7 @@ public class ZhcxOutsideInspectionItpServiceImpl extends ServiceImpl<ZhcxOutside
|
|
|
|
|
|
//拒收,报验次数加+1
|
|
//拒收,报验次数加+1
|
|
Map<String, String> map = new HashMap<>();
|
|
Map<String, String> map = new HashMap<>();
|
|
- map.put("id", id);
|
|
|
|
|
|
+ map.put("id", itpDo.getId());
|
|
dao.updateInspectionCount(map);
|
|
dao.updateInspectionCount(map);
|
|
|
|
|
|
if(ObjectUtil.isNotEmpty(dispatchDo.getInspectionconclusion()) && "20".equals(dispatchDo.getInspectionconclusion())) {
|
|
if(ObjectUtil.isNotEmpty(dispatchDo.getInspectionconclusion()) && "20".equals(dispatchDo.getInspectionconclusion())) {
|
|
@@ -439,6 +451,11 @@ public class ZhcxOutsideInspectionItpServiceImpl extends ServiceImpl<ZhcxOutside
|
|
dispatchService.reInspection(dispatchDo.getId(), null);
|
|
dispatchService.reInspection(dispatchDo.getId(), null);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ //报验单添加操作操作记录
|
|
|
|
+ //操作记录
|
|
|
|
+ ZhcxOutsideInspectionItpOperLogDo itpLog = zhcxOutsideInspectionItpOperLogService
|
|
|
|
+ .getNew(itpDo.getId(), "70", new Date());
|
|
|
|
+ zhcxOutsideInspectionItpOperLogService.save(itpLog);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -915,7 +932,7 @@ public class ZhcxOutsideInspectionItpServiceImpl extends ServiceImpl<ZhcxOutside
|
|
* @param itpDo
|
|
* @param itpDo
|
|
* @param dispatchDo
|
|
* @param dispatchDo
|
|
*/
|
|
*/
|
|
- private void saveHistory(ZhcxOutsideInspectionItpDo itpDo, ZhcxOutsideInspectionItpSupervisionDispatchDo dispatchDo) {
|
|
|
|
|
|
+ private void saveReHistory(ZhcxOutsideInspectionItpDo itpDo, ZhcxOutsideInspectionItpSupervisionDispatchDo dispatchDo) {
|
|
|
|
|
|
//保存报验单
|
|
//保存报验单
|
|
ZhcxOutsideInspectionItpDo entity = new ZhcxOutsideInspectionItpDo();
|
|
ZhcxOutsideInspectionItpDo entity = new ZhcxOutsideInspectionItpDo();
|
|
@@ -936,6 +953,9 @@ public class ZhcxOutsideInspectionItpServiceImpl extends ServiceImpl<ZhcxOutside
|
|
List<String> newItpIdList = new ArrayList<>();
|
|
List<String> newItpIdList = new ArrayList<>();
|
|
newItpIdList.add(entity.getId());
|
|
newItpIdList.add(entity.getId());
|
|
insertChildren(itpDo, newItpIdList);
|
|
insertChildren(itpDo, newItpIdList);
|
|
|
|
+
|
|
|
|
+ //保存操作记录
|
|
|
|
+ zhcxOutsideInspectionItpOperLogService.copyByItpId(itpDo.getId(), newItpIdList);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|