|
@@ -885,9 +885,20 @@
|
|
|
b.remark as remark,
|
|
|
b.begin_date as beginDate,
|
|
|
b.end_date as endDate,
|
|
|
- b.rt_date as rtDate
|
|
|
+ b.rt_date as rtDate,
|
|
|
+ b.status_red as statusRed
|
|
|
from sub_fix a left join sub_info b on a.sub_id = b.id
|
|
|
where a.cat = #{queryVO.stateFix} and a.year = #{queryVO.year} and b.logic_delete_flag = 0
|
|
|
+ <if test="queryVO.statusRed!=null and queryVO.statusRed!=''">
|
|
|
+ <choose>
|
|
|
+ <when test="queryVO.statusRed==0">
|
|
|
+ and (b.status_red = '0' or b.status_red is null)
|
|
|
+ </when>
|
|
|
+ <otherwise>
|
|
|
+ and b.status_red = #{queryVO.statusRed}
|
|
|
+ </otherwise>
|
|
|
+ </choose>
|
|
|
+ </if>
|
|
|
<if test="queryVO.subName != null and queryVO.subName != ''">
|
|
|
AND b.sub_name LIKE CONCAT('%', #{queryVO.subName}, '%')
|
|
|
</if>
|