Skip to content

Commit

Permalink
fix admin: modify dict query sql. (apache#5375)
Browse files Browse the repository at this point in the history
Co-authored-by: 刘进山 <[email protected]>
  • Loading branch information
MRgenial and 刘进山 authored Dec 22, 2023
1 parent b1f0bad commit a9210db
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -237,10 +237,12 @@
AND `type` = #{type, jdbcType=VARCHAR}
</if>
<if test="dictCode != null and dictCode != ''">
AND dict_code = #{dictCode, jdbcType=VARCHAR}
<bind name="dictCodeLike" value="('%' + dictCode + '%')"/>
AND dict_code LIKE #{dictCodeLike, jdbcType=VARCHAR}
</if>
<if test="dictName != null and dictName != ''">
AND dict_name = #{dictName, jdbcType=VARCHAR}
<bind name="dictNameLike" value="('%' + dictName + '%')"/>
AND dict_name LIKE #{dictNameLike, jdbcType=VARCHAR}
</if>
</where>
</select>
Expand All @@ -255,7 +257,8 @@
AND `type` = #{type, jdbcType=VARCHAR}
</if>
<if test="dictCode != null and dictCode != ''">
AND dict_code = #{dictCode, jdbcType=VARCHAR}
<bind name="dictCodeLike" value="('%' + dictCode + '%')"/>
AND dict_code LIKE #{dictCodeLike, jdbcType=VARCHAR}
</if>
<if test="dictName != null and dictName != ''">
<bind name="dictNameLike" value="('%' + dictName + '%')"/>
Expand Down

0 comments on commit a9210db

Please sign in to comment.