|
@@ -401,6 +401,27 @@
|
|
FROM sub_fix
|
|
FROM sub_fix
|
|
LEFT JOIN sub_info ON sub_fix.sub_id = sub_info.id
|
|
LEFT JOIN sub_info ON sub_fix.sub_id = sub_info.id
|
|
WHERE sub_fix.cat = #{stateFix} and sub_fix.year = #{year} and sub_info.logic_delete_flag = 0
|
|
WHERE sub_fix.cat = #{stateFix} and sub_fix.year = #{year} and sub_info.logic_delete_flag = 0
|
|
|
|
+ <if test="subName != null and subName != ''">
|
|
|
|
+ AND sub_info.sub_name LIKE CONCAT('%', #{subName}, '%')
|
|
|
|
+ </if>
|
|
|
|
+ <if test="subjectId != null and subjectId != ''">
|
|
|
|
+ AND sub_info.subject_id = #{subjectId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="indusKinds != null and indusKinds.size() > 0">
|
|
|
|
+ AND sub_info.indus_kind IN
|
|
|
|
+ <foreach collection="indusKinds" item="item" separator="," open="(" close=")">
|
|
|
|
+ #{item}
|
|
|
|
+ </foreach>
|
|
|
|
+ </if>
|
|
|
|
+ <if test="sbdw != null and sbdw != ''">
|
|
|
|
+ AND sub_info.unit_desc LIKE CONCAT('%', #{sbdw}, '%')
|
|
|
|
+ </if>
|
|
|
|
+ <if test="startAmt != null and startAmt !=''">
|
|
|
|
+ AND sub_info.amt_total >= #{startAmt}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="endAmt != null and endAmt != ''">
|
|
|
|
+ AND sub_info.amt_total <= #{endAmt}
|
|
|
|
+ </if>
|
|
</select>
|
|
</select>
|
|
<select id="exportTotalExcelByStatus" resultType="com.rtrh.projects.modules.projects.vo.SubInfoTotalExcel">
|
|
<select id="exportTotalExcelByStatus" resultType="com.rtrh.projects.modules.projects.vo.SubInfoTotalExcel">
|
|
SELECT sub_info.subject_id as subjectId,
|
|
SELECT sub_info.subject_id as subjectId,
|