|
@@ -158,7 +158,7 @@
|
|
|
and substation_name like concat('%', #{substationName}, '%')
|
|
and substation_name like concat('%', #{substationName}, '%')
|
|
|
</if>
|
|
</if>
|
|
|
<if test="jhMonth!=null and jhMonth!=''">
|
|
<if test="jhMonth!=null and jhMonth!=''">
|
|
|
- and jh_month like concat('%', #{jhMonth})
|
|
|
|
|
|
|
+ and LPAD(jh_month, 2, 0) = LPAD(#{month}, 2, 0)
|
|
|
</if>
|
|
</if>
|
|
|
</where>
|
|
</where>
|
|
|
</select>
|
|
</select>
|
|
@@ -170,7 +170,7 @@
|
|
|
and file_id = (select max(id) from show_file where data_type='bdsjxjh' and imp_result = '1')
|
|
and file_id = (select max(id) from show_file where data_type='bdsjxjh' and imp_result = '1')
|
|
|
and (completion_state != '1' || completion_state = '0' or completion_state is null)
|
|
and (completion_state != '1' || completion_state = '0' or completion_state is null)
|
|
|
<if test="jhMonth!=null and jhMonth!=''">
|
|
<if test="jhMonth!=null and jhMonth!=''">
|
|
|
- and jh_month like concat('%', #{jhMonth})
|
|
|
|
|
|
|
+ and LPAD(jh_month, 2, 0) = LPAD(#{month}, 2, 0)
|
|
|
</if>
|
|
</if>
|
|
|
</where>
|
|
</where>
|
|
|
</select>
|
|
</select>
|
|
@@ -182,7 +182,7 @@
|
|
|
and file_id = (select max(id) from show_file where data_type='bdsjxjh' and imp_result = '1')
|
|
and file_id = (select max(id) from show_file where data_type='bdsjxjh' and imp_result = '1')
|
|
|
and completion_state = '1'
|
|
and completion_state = '1'
|
|
|
<if test="month!=null and month!=''">
|
|
<if test="month!=null and month!=''">
|
|
|
- and LPAD(MONTH(completion_date), 2, 0) like concat('%', #{month})
|
|
|
|
|
|
|
+ and LPAD(MONTH(completion_date), 2, 0) = LPAD(#{month}, 2, 0)
|
|
|
</if>
|
|
</if>
|
|
|
</where>
|
|
</where>
|
|
|
</select>
|
|
</select>
|
|
@@ -201,7 +201,7 @@
|
|
|
where
|
|
where
|
|
|
del_flag='0'
|
|
del_flag='0'
|
|
|
and file_id = (select max(id) from show_file where data_type='bdsjxjh' and imp_result = '1')
|
|
and file_id = (select max(id) from show_file where data_type='bdsjxjh' and imp_result = '1')
|
|
|
- and jh_month = #{month}
|
|
|
|
|
|
|
+ and LPAD(jh_month, 2, 0) = LPAD(#{month}, 2, 0)
|
|
|
and (completion_state != '1' or completion_state = '')
|
|
and (completion_state != '1' or completion_state = '')
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|