|
@@ -33,7 +33,9 @@ import com.rongwei.rwcommon.base.R;
|
|
|
import com.rongwei.rwcommon.base.exception.CustomException;
|
|
|
import com.rongwei.rwcommon.utils.SecurityUtil;
|
|
|
import com.rongwei.rwcommon.utils.StringUtils;
|
|
|
+import com.rongwei.rwcommon.vo.generalsql.GeneralUpdateVo;
|
|
|
import com.rongwei.rwcommon.vo.generalsql.MasterSlaveUpdateVo;
|
|
|
+import com.rongwei.rwcommon.vo.generalsql.SlaveDMLVo;
|
|
|
import com.rongwei.rwcommoncomponent.excel.aspose.ExcelFormData;
|
|
|
import com.rongwei.rwcommoncomponent.excel.vo.FormData;
|
|
|
import com.rongwei.rwcommoncomponent.file.service.SysFileItemService;
|
|
@@ -177,7 +179,27 @@ public class ZhcxOutsideInspectionItpServiceImpl extends ServiceImpl<ZhcxOutside
|
|
|
//重新报验
|
|
|
else if("reInspection".equals(req.getOperType())) {
|
|
|
reInspection(req.getId(), req.getUpdate());
|
|
|
+ } else if("updateChildren".equals(req.getOperType())) { //修改子表
|
|
|
+ try {
|
|
|
+ for (SlaveDMLVo slaveDMLVo : req.getUpdate().getSlaveUpdate()) { //只会修改qc和ndt
|
|
|
+ if(!"ZHCX_OUTSIDE_INSPECTION_ITP_QC_ITEM_RESULT".equals(slaveDMLVo.getTableName())
|
|
|
+ && !"ZHCX_OUTSIDE_INSPECTION_ITP_NDT_RESULT".equals(slaveDMLVo.getTableName())) {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+
|
|
|
+ for (GeneralUpdateVo generalUpdate : slaveDMLVo.getSlaveUpdate()) {
|
|
|
+ sysGeneralCRUDService.generalUpdate(generalUpdate);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ } catch (Exception e) {
|
|
|
+ log.error("更新失败", e);
|
|
|
+ throw new CustomException("更新失败");
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
+
|
|
|
+ dao.updateQcModifyNumber(req.getId()); //修改qc次数
|
|
|
+ dao.updateNdtModifyNumber(req.getId()); //修改ndt次数
|
|
|
}
|
|
|
|
|
|
/**
|