Commit 2845ccb3 authored by tianbo's avatar tianbo

气瓶充装前后记录查询增加appId筛选字段

parent c2efdfe3
...@@ -29,13 +29,13 @@ public interface TzCylinderMapper extends BaseMapper<CylinderInfo> { ...@@ -29,13 +29,13 @@ public interface TzCylinderMapper extends BaseMapper<CylinderInfo> {
List<TzCylinderInspectionDto> getTzCylinderInspectionDto(String sequenceCode, String appId); List<TzCylinderInspectionDto> getTzCylinderInspectionDto(String sequenceCode, String appId);
List<TzCylinderFillingDto> getTzCylinderFillingDto(String sequenceCode); List<TzCylinderFillingDto> getTzCylinderFillingDto(String sequenceCode, String appId);
TzCylinderBeforeCheckDto getTzCylinderBeforeCheck(String fillingBeforeId); TzCylinderBeforeCheckDto getTzCylinderBeforeCheck(String appId, String fillingBeforeId);
List<TzCylinderCheckDto> getTzCylinderCheckItem(); List<TzCylinderCheckDto> getTzCylinderCheckItem();
TzCylinderAfterCheckDto getTzCylinderAfterCheck(String fillingCheckId); TzCylinderAfterCheckDto getTzCylinderAfterCheck(String appId, String fillingCheckId);
List<TzCylinderCheckDto> getTzCylinderAfterCheckItem(); List<TzCylinderCheckDto> getTzCylinderAfterCheckItem();
......
...@@ -166,7 +166,8 @@ ...@@ -166,7 +166,8 @@
LEFT JOIN tz_cylinder_filling AS CF ON CF.filling_before_id = FR.filling_before_id LEFT JOIN tz_cylinder_filling AS CF ON CF.filling_before_id = FR.filling_before_id
LEFT JOIN tz_cylinder_filling_check AS FC ON FC.filling_check_id = FR.filling_check_id LEFT JOIN tz_cylinder_filling_check AS FC ON FC.filling_check_id = FR.filling_check_id
WHERE WHERE
CF.sequence_code = #{sequence_code} CF.sequence_code = #{sequenceCode}
and FR.app_id = #{appId}
ORDER BY FR.filling_startTime DESC ORDER BY FR.filling_startTime DESC
</select> </select>
...@@ -181,7 +182,7 @@ ...@@ -181,7 +182,7 @@
CF.have_security_documents, CF.have_security_documents,
CF.fill_before_item CF.fill_before_item
FROM tz_cylinder_filling AS CF FROM tz_cylinder_filling AS CF
WHERE CF.filling_before_id=#{fillingBeforeId} WHERE CF.app_id=#{appId} and CF.filling_before_id=#{fillingBeforeId}
</select> </select>
<select id="getTzCylinderCheckItem" resultType="com.yeejoin.amos.boot.module.cylinder.flc.api.dto.TzCylinderCheckDto"> <select id="getTzCylinderCheckItem" resultType="com.yeejoin.amos.boot.module.cylinder.flc.api.dto.TzCylinderCheckDto">
...@@ -200,7 +201,7 @@ ...@@ -200,7 +201,7 @@
FC.abnormal_temperature, FC.abnormal_temperature,
FC.warning_sign FC.warning_sign
FROM tz_cylinder_filling_check AS FC FROM tz_cylinder_filling_check AS FC
WHERE FC.filling_check_id=#{fillingCheckId} WHERE FC.app_id=#{appId} and FC.filling_check_id=#{fillingCheckId}
</select> </select>
<select id="getTzCylinderAfterCheckItem" resultType="com.yeejoin.amos.boot.module.cylinder.flc.api.dto.TzCylinderCheckDto"> <select id="getTzCylinderAfterCheckItem" resultType="com.yeejoin.amos.boot.module.cylinder.flc.api.dto.TzCylinderCheckDto">
......
...@@ -113,7 +113,7 @@ public class TzCylinderServiceImpl extends BaseService<TzCylinderInfoDto, Cylind ...@@ -113,7 +113,7 @@ public class TzCylinderServiceImpl extends BaseService<TzCylinderInfoDto, Cylind
} }
List<TzCylinderInspectionDto> tzCylinderInspectionDtoList = tzCylinderMapper List<TzCylinderInspectionDto> tzCylinderInspectionDtoList = tzCylinderMapper
.getTzCylinderInspectionDto(sequenceCode, appId); .getTzCylinderInspectionDto(sequenceCode, appId);
List<TzCylinderFillingDto> tzCylinderFillingDtoList = tzCylinderMapper.getTzCylinderFillingDto(sequenceCode); List<TzCylinderFillingDto> tzCylinderFillingDtoList = tzCylinderMapper.getTzCylinderFillingDto(sequenceCode, appId);
/** /**
* 取气瓶追溯详情 充装前检查项 名称和结果列表 * 取气瓶追溯详情 充装前检查项 名称和结果列表
...@@ -132,7 +132,7 @@ public class TzCylinderServiceImpl extends BaseService<TzCylinderInfoDto, Cylind ...@@ -132,7 +132,7 @@ public class TzCylinderServiceImpl extends BaseService<TzCylinderInfoDto, Cylind
} }
List<TzCylinderCheckDto> tzCylinderCheckDtoListResult = new ArrayList<>(); List<TzCylinderCheckDto> tzCylinderCheckDtoListResult = new ArrayList<>();
TzCylinderBeforeCheckDto tzcylinderBeforeCheckDto = tzCylinderMapper TzCylinderBeforeCheckDto tzcylinderBeforeCheckDto = tzCylinderMapper
.getTzCylinderBeforeCheck(tzCylinderFillingDto.getFillingBeforeId()); .getTzCylinderBeforeCheck(appId, tzCylinderFillingDto.getFillingBeforeId());
JSONObject obj = JSONObject.parseObject(JSONObject.toJSONString(tzcylinderBeforeCheckDto)); JSONObject obj = JSONObject.parseObject(JSONObject.toJSONString(tzcylinderBeforeCheckDto));
for (String str : obj.keySet()) { for (String str : obj.keySet()) {
String explain = map.get(str); String explain = map.get(str);
...@@ -157,7 +157,7 @@ public class TzCylinderServiceImpl extends BaseService<TzCylinderInfoDto, Cylind ...@@ -157,7 +157,7 @@ public class TzCylinderServiceImpl extends BaseService<TzCylinderInfoDto, Cylind
for (TzCylinderFillingDto tzCylinderFillingDto : tzCylinderFillingDtoList) { for (TzCylinderFillingDto tzCylinderFillingDto : tzCylinderFillingDtoList) {
List<TzCylinderCheckDto> tzCylinderAfterCheckDtoListResult = new ArrayList<>(); List<TzCylinderCheckDto> tzCylinderAfterCheckDtoListResult = new ArrayList<>();
TzCylinderAfterCheckDto tzcylinderAfterCheckDto = tzCylinderMapper TzCylinderAfterCheckDto tzcylinderAfterCheckDto = tzCylinderMapper
.getTzCylinderAfterCheck(tzCylinderFillingDto.getFillingCheckId()); .getTzCylinderAfterCheck(appId, tzCylinderFillingDto.getFillingCheckId());;
if (!ValidationUtil.isEmpty(tzcylinderAfterCheckDto)) { if (!ValidationUtil.isEmpty(tzcylinderAfterCheckDto)) {
JSONObject obj = JSONObject.parseObject(JSONObject.toJSONString(tzcylinderAfterCheckDto)); JSONObject obj = JSONObject.parseObject(JSONObject.toJSONString(tzcylinderAfterCheckDto));
for (String str : obj.keySet()) { for (String str : obj.keySet()) {
......
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