Commit f2dec891 authored by 韩桐桐's avatar 韩桐桐

fix(cyl):企业气瓶信息统计接口改成以filling_starttime匹配

parent 1b70fc14
...@@ -147,7 +147,7 @@ ...@@ -147,7 +147,7 @@
</select> </select>
<select id="getFillingCountByDay" resultType="java.lang.Integer"> <select id="getFillingCountByDay" resultType="java.lang.Integer">
select count(1) from tz_cylinder_filling_record r where date_format(r.filling_endTime,'%Y-%m-%d') = date_format(#{time},'%Y-%m-%d') and app_id = #{appId} select count(1) from tz_cylinder_filling_record r where date_format(r.filling_starttime,'%Y-%m-%d') = date_format(#{time},'%Y-%m-%d') and app_id = #{appId}
</select> </select>
<select id="getFillingUnqualifiedCountByDay" resultType="java.lang.Integer"> <select id="getFillingUnqualifiedCountByDay" resultType="java.lang.Integer">
...@@ -155,7 +155,7 @@ ...@@ -155,7 +155,7 @@
FROM tz_cylinder_filling_record AS record FROM tz_cylinder_filling_record AS record
LEFT JOIN tz_cylinder_filling AS before ON record.filling_before_id = before.filling_before_id LEFT JOIN tz_cylinder_filling AS before ON record.filling_before_id = before.filling_before_id
LEFT JOIN tz_cylinder_filling_check AS after ON record.filling_check_id = after.filling_check_id LEFT JOIN tz_cylinder_filling_check AS after ON record.filling_check_id = after.filling_check_id
WHERE DATE_FORMAT(record.filling_endTime, '%Y-%m-%d') = DATE_FORMAT(#{time}, '%Y-%m-%d') WHERE DATE_FORMAT(record.filling_starttime, '%Y-%m-%d') = DATE_FORMAT(#{time}, '%Y-%m-%d')
AND record.app_id = #{appId} AND record.app_id = #{appId}
AND (before.check_results = '不合格' OR after.check_results = '不合格') AND (before.check_results = '不合格' OR after.check_results = '不合格')
</select> </select>
......
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