|
@@ -105,7 +105,24 @@
|
|
|
<if test=" dicName != null and dicName!='' ">
|
|
|
and dic_name like CONCAT('%',trim(#{dicName}),'%')
|
|
|
</if>
|
|
|
+ <if test=" dicCode != null and dicCode!='' ">
|
|
|
+ and dic_code like CONCAT('%',trim(#{dicCode}),'%')
|
|
|
+ </if>
|
|
|
</where>
|
|
|
</select>
|
|
|
+ <select id="getPageListByObjOrderByTips" parameterType="TDicBase" resultMap="BaseResultMap">
|
|
|
+ SELECT b.dic_id, dic_code,dic_name,
|
|
|
+ (SELECT a.dic_name FROM t_dic_base AS a WHERE b.parent_id=a.dic_id AND a.dic_name=#{dicName}) AS dic_pname,dic_desc,sort
|
|
|
+ from t_dic_base b
|
|
|
+ <where>
|
|
|
+ <if test=" dicName != null and dicName!='' ">
|
|
|
+ and dic_name like CONCAT('%',trim(#{dicName}),'%')
|
|
|
+ </if>
|
|
|
+ <if test=" dicCode != null and dicCode!='' ">
|
|
|
+ and dic_code like CONCAT('%',trim(#{dicCode}),'%')
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
+ </select>
|
|
|
+
|
|
|
|
|
|
</mapper>
|