|
@@ -180,35 +180,39 @@
|
|
</where>
|
|
</where>
|
|
</select>
|
|
</select>
|
|
|
|
|
|
-<!-- <select id="subFixCbAll" resultType="com.rtrh.projects.modules.projects.vo.SubFixCbVo">-->
|
|
|
|
-<!-- SELECT sub_info.sub_name as subName,sub_info.subject_id as subjectId,sub_info.content as content,sub_info.amt_total as amtTotal,-->
|
|
|
|
-<!-- sub_info.progress as progress,sub_info.remark as remark-->
|
|
|
|
-<!-- FROM sub_fix-->
|
|
|
|
-<!-- LEFT JOIN sub_info ON sub_fix.sub_id = sub_info.id-->
|
|
|
|
-<!-- WHERE sub_fix.status = 1-->
|
|
|
|
-<!-- AND sub_fix.logic_delete_flag = 0-->
|
|
|
|
-<!-- AND sub_info.logic_delete_flag = 0-->
|
|
|
|
-<!-- <if test="subKeyCbSearch.year != null and subKeyCbSearch.year != ''">-->
|
|
|
|
-<!-- AND sub_fix.year = #{subKeyCbSearch.year}-->
|
|
|
|
-<!-- </if>-->
|
|
|
|
-<!-- <if test="subKeyCbSearch.subName != null and subKeyCbSearch.subName != ''">-->
|
|
|
|
-<!-- AND sub_info.sub_name LIKE CONCAT('%', #{subKeyCbSearch.subName}, '%')-->
|
|
|
|
-<!-- </if>-->
|
|
|
|
-<!-- <if test="subKeyCbSearch.subjectId != null and subKeyCbSearch.subjectId != ''">-->
|
|
|
|
-<!-- AND sub_info.subject_id = #{subKeyCbSearch.subjectId}-->
|
|
|
|
-<!-- </if>-->
|
|
|
|
-<!-- <if test="subKeyCbSearch.indusKind != null and subKeyCbSearch.indusKind != ''">-->
|
|
|
|
-<!-- AND sub_info.indus_kind = #{subKeyCbSearch.indusKind}-->
|
|
|
|
-<!-- </if>-->
|
|
|
|
-<!-- <if test="subKeyCbSearch.startAmt != null">-->
|
|
|
|
-<!-- AND sub_fix.amt_total >= #{subKeyCbSearch.startAmt}-->
|
|
|
|
-<!-- </if>-->
|
|
|
|
-<!-- <if test="subKeyCbSearch.endAmt != null">-->
|
|
|
|
-<!-- AND sub_fix.amt_total <= #{subKeyCbSearch.endAmt}-->
|
|
|
|
-<!-- </if>-->
|
|
|
|
-<!-- <if test="subKeyCbSearch.sbdw != null and subKeyCbSearch.sbdw != ''">-->
|
|
|
|
-<!-- AND sub_fix.sbdw LIKE CONCAT('%', #{subKeyCbSearch.sbdw}, '%')-->
|
|
|
|
-<!-- </if>-->
|
|
|
|
-<!-- </select>-->
|
|
|
|
|
|
+ <select id="subFixCbAll" resultType="com.rtrh.projects.modules.projects.vo.SubFixCbVo">
|
|
|
|
+ SELECT sub_info.id as id,
|
|
|
|
+ sub_info.sub_name as subName,
|
|
|
|
+ sub_info.subject_id as subjectId,
|
|
|
|
+ sub_info.content as content,
|
|
|
|
+ sub_info.amt_total as amtTotal,
|
|
|
|
+ sub_info.progress as progress,
|
|
|
|
+ sub_info.remark as remark
|
|
|
|
+ FROM sub_fix
|
|
|
|
+ LEFT JOIN sub_info ON sub_fix.sub_id = sub_info.id
|
|
|
|
+ WHERE sub_fix.status = 1
|
|
|
|
+ AND sub_info.logic_delete_flag = 0
|
|
|
|
+ <if test="subFixCbSearch.year != null and subFixCbSearch.year != ''">
|
|
|
|
+ AND sub_fix.year = #{subFixCbSearch.year}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="subFixCbSearch.subName != null and subFixCbSearch.subName != ''">
|
|
|
|
+ AND sub_info.sub_name LIKE CONCAT('%', #{subFixCbSearch.subName}, '%')
|
|
|
|
+ </if>
|
|
|
|
+ <if test="subFixCbSearch.subjectId != null and subFixCbSearch.subjectId != ''">
|
|
|
|
+ AND sub_info.subject_id = #{subFixCbSearch.subjectId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="subFixCbSearch.indusKind != null and subFixCbSearch.indusKind != ''">
|
|
|
|
+ AND sub_info.indus_kind = #{subFixCbSearch.indusKind}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="subFixCbSearch.startAmt != null">
|
|
|
|
+ AND sub_info.amt_total >= #{subFixCbSearch.startAmt}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="subFixCbSearch.endAmt != null">
|
|
|
|
+ AND sub_info.amt_total <= #{subFixCbSearch.endAmt}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="subFixCbSearch.sbdw != null and subFixCbSearch.sbdw != ''">
|
|
|
|
+ AND sub_info.sbdw LIKE CONCAT('%', #{subFixCbSearch.sbdw}, '%')
|
|
|
|
+ </if>
|
|
|
|
+ </select>
|
|
|
|
|
|
</mapper>
|
|
</mapper>
|