Commit 4795d9b8 authored by 曹盼盼's avatar 曹盼盼

修改追溯接口

parent 8723305a
...@@ -67,21 +67,21 @@ public class TzCylinderServiceImpl extends BaseService<TzCylinderInfoDto, Cylind ...@@ -67,21 +67,21 @@ public class TzCylinderServiceImpl extends BaseService<TzCylinderInfoDto, Cylind
} }
} }
if (!ValidationUtil.isEmpty(tzCylinderProduceDto.getProductQualified())) { if (!ValidationUtil.isEmpty(tzCylinderProduceDto.getProductQualified())) {
String fileUrlQualified = JSONArray.parseArray(tzCylinderProduceDto.getProductQualified()).getJSONObject(0).getString("fileUrl");
tzCylinderProduceDto.setProductQualified(fileUrlQualified); tzCylinderProduceDto.setProductQualified(tzCylinderProduceDto.getProductQualified());
} }
if (!ValidationUtil.isEmpty(tzCylinderProduceDto.getProofQuality())) { if (!ValidationUtil.isEmpty(tzCylinderProduceDto.getProofQuality())) {
String fileUrlProof = JSONArray.parseArray(tzCylinderProduceDto.getProofQuality()).getJSONObject(0).getString("fileUrl");
tzCylinderProduceDto.setProofQuality(fileUrlProof); tzCylinderProduceDto.setProofQuality(tzCylinderProduceDto.getProofQuality());
} }
if (!ValidationUtil.isEmpty(tzCylinderProduceDto.getSupervisionInspec())) { if (!ValidationUtil.isEmpty(tzCylinderProduceDto.getSupervisionInspec())) {
String fileUrlSupervisionInspec = JSONArray.parseArray(tzCylinderProduceDto.getSupervisionInspec()).getJSONObject(0).getString("fileUrl");
tzCylinderProduceDto.setSupervisionInspec(fileUrlSupervisionInspec); tzCylinderProduceDto.setSupervisionInspec(tzCylinderProduceDto.getSupervisionInspec());
} }
if (!ValidationUtil.isEmpty(tzCylinderProduceDto.getTypeExperiments())) { if (!ValidationUtil.isEmpty(tzCylinderProduceDto.getTypeExperiments())) {
String fileUrlExperiments = JSONArray.parseArray(tzCylinderProduceDto.getTypeExperiments()).getJSONObject(0).getString("fileUrl");
tzCylinderProduceDto.setTypeExperiments(fileUrlExperiments); tzCylinderProduceDto.setTypeExperiments(tzCylinderProduceDto.getTypeExperiments());
} }
TzCylinderInfoDto tzCylinderInfoDto = tzCylinderMapper.getTzCylinderInfoDto(sequenceNbr); TzCylinderInfoDto tzCylinderInfoDto = tzCylinderMapper.getTzCylinderInfoDto(sequenceNbr);
...@@ -98,8 +98,8 @@ public class TzCylinderServiceImpl extends BaseService<TzCylinderInfoDto, Cylind ...@@ -98,8 +98,8 @@ public class TzCylinderServiceImpl extends BaseService<TzCylinderInfoDto, Cylind
TzCylinderTagsDto tzCylinderTagsDto = tzCylinderMapper.getTzCylinderTagsDto(orgCode); TzCylinderTagsDto tzCylinderTagsDto = tzCylinderMapper.getTzCylinderTagsDto(orgCode);
if (!ValidationUtil.isEmpty(tzCylinderTagsDto.getGasCylinderStamp())) { if (!ValidationUtil.isEmpty(tzCylinderTagsDto.getGasCylinderStamp())) {
String fileUrlStamp = JSONArray.parseArray(tzCylinderTagsDto.getGasCylinderStamp()).getJSONObject(0).getString("fileUrl");
tzCylinderTagsDto.setGasCylinderStamp(fileUrlStamp); tzCylinderTagsDto.setGasCylinderStamp(tzCylinderTagsDto.getGasCylinderStamp());
} }
List<TzCylinderInspectionDto> tzCylinderInspectionDtoList = tzCylinderMapper List<TzCylinderInspectionDto> tzCylinderInspectionDtoList = tzCylinderMapper
.getTzCylinderInspectionDto(orgCode); .getTzCylinderInspectionDto(orgCode);
......
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