Commit e373168d authored by suhuiguang's avatar suhuiguang

refeat(jyjc): 报检规则4.0开发

1.报检规则联调自测,报检申请表未写入对接单位code
parent 5a6a5bf6
...@@ -835,7 +835,7 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec ...@@ -835,7 +835,7 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
LambdaQueryWrapper<JyjcOpeningApplication> queryWrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<JyjcOpeningApplication> queryWrapper = new LambdaQueryWrapper<>();
queryWrapper.eq(JyjcOpeningApplication::getUnitCode, applicationModel.getInspectionUnitCode()); queryWrapper.eq(JyjcOpeningApplication::getUnitCode, applicationModel.getInspectionUnitCode());
queryWrapper.eq(JyjcOpeningApplication::getStatus, FlowStatusEnum.TO_BE_FINISHED.getName()); queryWrapper.eq(JyjcOpeningApplication::getStatus, FlowStatusEnum.TO_BE_FINISHED.getName());
queryWrapper.select(JyjcOpeningApplication::getResultType, BaseEntity::getSequenceNbr); queryWrapper.select(JyjcOpeningApplication::getResultType, BaseEntity::getSequenceNbr,JyjcOpeningApplication::getDockingUnitCode);
queryWrapper.orderByDesc(JyjcOpeningApplication::getRecDate); queryWrapper.orderByDesc(JyjcOpeningApplication::getRecDate);
queryWrapper.last("limit 1"); queryWrapper.last("limit 1");
List<JyjcOpeningApplication> applicationList = jyjcOpeningApplicationService.list(queryWrapper); List<JyjcOpeningApplication> applicationList = jyjcOpeningApplicationService.list(queryWrapper);
...@@ -1365,7 +1365,7 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec ...@@ -1365,7 +1365,7 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
private void replaceNull2EmptyString(JSONObject dto2) { private void replaceNull2EmptyString(JSONObject dto2) {
dto2.forEach((k,v)->{ dto2.forEach((k,v)->{
if(v == null){ if(v == null || "null".equals(v)){
dto2.put(k,""); dto2.put(k,"");
} }
}); });
...@@ -1528,6 +1528,7 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec ...@@ -1528,6 +1528,7 @@ public class JyjcInspectionApplicationServiceImpl extends BaseService<JyjcInspec
dto2.put(EQU_STATE, status); dto2.put(EQU_STATE, status);
} }
dto2.put("record", dto2.get(SEQUENCE_NBR)); dto2.put("record", dto2.get(SEQUENCE_NBR));
replaceNull2EmptyString(dto2);
list.add(dto2); list.add(dto2);
} }
// 填充地址 // 填充地址
......
...@@ -217,6 +217,7 @@ public class JyjcInspectionResultServiceImpl extends BaseService<JyjcInspectionR ...@@ -217,6 +217,7 @@ public class JyjcInspectionResultServiceImpl extends BaseService<JyjcInspectionR
} }
v.setSourceResult(ResultTypeEnum.getNameByCode(v.getResultType())); v.setSourceResult(ResultTypeEnum.getNameByCode(v.getResultType()));
v.setIdentity(identity); v.setIdentity(identity);
v.setUseInnerCode("null".equals(v.getUseInnerCode()) ? "" : v.getUseInnerCode());
}); });
return resultPage; return resultPage;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment