|
@@ -208,28 +208,42 @@
|
|
|
<select id="countByywc" resultType="java.lang.Integer">
|
|
<select id="countByywc" resultType="java.lang.Integer">
|
|
|
select count(*)
|
|
select count(*)
|
|
|
from show_bpdjxjh
|
|
from show_bpdjxjh
|
|
|
- where LPAD(jh_month, 2, 0) = LPAD(#{month}, 2, 0)
|
|
|
|
|
|
|
+ where del_flag='0'
|
|
|
|
|
+ and file_id = (select max(id) from show_file where data_type='bdsjxjh' and imp_result = '1')
|
|
|
|
|
+ and LPAD(jh_month, 2, 0) = LPAD(#{month}, 2, 0)
|
|
|
and completion_state = '1';
|
|
and completion_state = '1';
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
<select id="countBywwc" resultType="java.lang.Integer">
|
|
<select id="countBywwc" resultType="java.lang.Integer">
|
|
|
select count(*)
|
|
select count(*)
|
|
|
from show_bpdjxjh
|
|
from show_bpdjxjh
|
|
|
- where LPAD(jh_month, 2, 0) = LPAD(#{month}, 2, 0) and (completion_state != '1' or completion_state = '')
|
|
|
|
|
|
|
+ where del_flag='0'
|
|
|
|
|
+ and file_id = (select max(id) from show_file where data_type='bdsjxjh' and imp_result = '1')
|
|
|
|
|
+ and LPAD(jh_month, 2, 0) = LPAD(#{month}, 2, 0) and (completion_state != '1' or completion_state = '')
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
<select id="countXyjhwc" resultType="java.lang.Integer">
|
|
<select id="countXyjhwc" resultType="java.lang.Integer">
|
|
|
- select count(*) from show_bpdjxjh where LPAD(jh_month, 2, 0) = LPAD(#{month}, 2, 0)
|
|
|
|
|
|
|
+ select count(*)
|
|
|
|
|
+ from show_bpdjxjh
|
|
|
|
|
+ where del_flag='0'
|
|
|
|
|
+ and file_id = (select max(id) from show_file where data_type='bdsjxjh' and imp_result = '1')
|
|
|
|
|
+ and LPAD(jh_month, 2, 0) = LPAD(#{month}, 2, 0)
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
<select id="countNdsys" resultType="java.lang.Integer">
|
|
<select id="countNdsys" resultType="java.lang.Integer">
|
|
|
- select count(*) from show_bpdjxjh where completion_state != '1' or completion_state = ''
|
|
|
|
|
|
|
+ select count(*)
|
|
|
|
|
+ from show_bpdjxjh
|
|
|
|
|
+ where del_flag='0'
|
|
|
|
|
+ and file_id = (select max(id) from show_file where data_type='bdsjxjh' and imp_result = '1')
|
|
|
|
|
+ and completion_state != '1' or completion_state = ''
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
<select id="listWwcmx" resultType="java.lang.String">
|
|
<select id="listWwcmx" resultType="java.lang.String">
|
|
|
select substation_name
|
|
select substation_name
|
|
|
from show_bpdjxjh
|
|
from show_bpdjxjh
|
|
|
- where LPAD(jh_month, 2, 0) = LPAD(#{month}, 2, 0) and (completion_state != '1' or completion_state = '')
|
|
|
|
|
|
|
+ where del_flag='0'
|
|
|
|
|
+ and file_id = (select max(id) from show_file where data_type='bdsjxjh' and imp_result = '1')
|
|
|
|
|
+ and LPAD(jh_month, 2, 0) = LPAD(#{month}, 2, 0) and (completion_state != '1' or completion_state = '')
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
</mapper>
|
|
</mapper>
|