车型项目库查询bug

This commit is contained in:
yuezhihang
2021-08-13 16:44:09 +08:00
parent 39c08ecb81
commit 699b1ef9c4
10 changed files with 33 additions and 11 deletions
@@ -65,10 +65,24 @@
<select id="selectLawsId" resultType="string">
select stand_id from sar_laws_attr_detailed_list
LEFT JOIN sar_standards_info si ON sar_laws_attr_detailed_list.stand_id = si.ID
<where>
<if test="standId != null">
and detailed_list_id = #{standId,jdbcType=VARCHAR}
and detailed_list_id = #{standId}
</if>
<if test="sar.standSort != null">
and si.STAND_SORT = #{sar.standSort}
</if>
<if test="sar.standType != null">
and si.STAND_TYPE = #{sar.standType}
</if>
<if test="sar.standNumber != null">
and concat(concat(concat(concat(si.STAND_SORT,' '),si.STAND_NUMBER),'-'),si.STAND_YEAR) like concat(concat('%', #{sar.standNumber}),'%')
</if>
<if test="sar.standName != null">
and si.STAND_NAME like concat(concat('%', #{sar.standName}),'%')
</if>
</where>
order by number
LIMIT #{param3} , #{param2};