Commit 2698a55a authored by lisong's avatar lisong

修改bug

parent 420a0ec8
...@@ -261,12 +261,12 @@ ...@@ -261,12 +261,12 @@
ct.qrCode, ct.qrCode,
ct.electronic_label_code ct.electronic_label_code
FROM FROM
tz_cylinder_inspection AS isp tz_cylinder_info AS ci
LEFT JOIN tz_cylinder_info AS ci ON ci.sequence_code = isp.sequence_code LEFT JOIN tz_cylinder_inspection AS isp ON ci.sequence_code = isp.sequence_code
LEFT JOIN cb_data_dictionary AS d1 ON d1.type = 'CZJZMC' AND d1.code = ci.filling_media LEFT JOIN cb_data_dictionary AS d1 ON d1.type = 'CZJZMC' AND d1.code = ci.filling_media
LEFT JOIN cb_data_dictionary AS d2 ON d2.sequence_nbr = ci.cylinder_variety LEFT JOIN cb_data_dictionary AS d2 ON d2.sequence_nbr = ci.cylinder_variety
LEFT JOIN cb_data_dictionary AS d3 ON d3.sequence_nbr = ci.cylinder_status LEFT JOIN cb_data_dictionary AS d3 ON d3.sequence_nbr = ci.cylinder_status
LEFT JOIN tz_cylinder_tags AS ct ON ct.sequence_code = ci.sequence_code LEFT JOIN tz_cylinder_tags AS ct ON ct.sequence_code = ci.sequence_code and ci.app_id = ct.app_id
WHERE isp.next_inspection_date <![CDATA[ < ]]> now() WHERE isp.next_inspection_date <![CDATA[ < ]]> now()
<if test="appids != null and appids.size > 0 "> <if test="appids != null and appids.size > 0 ">
and ci.app_id in and ci.app_id in
......
...@@ -513,6 +513,10 @@ public class CylinderInfoController extends BaseController { ...@@ -513,6 +513,10 @@ public class CylinderInfoController extends BaseController {
appids.add("-1"); appids.add("-1");
} }
cylinderInfoDto.setAppIds(appids); cylinderInfoDto.setAppIds(appids);
}else {
if (!ObjectUtils.isEmpty(cylinderInfoDto.getAppId())){
appids.add(cylinderInfoDto.getAppId());
}
} }
......
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