|
@@ -27,13 +27,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<select id="selectTInvoiceTagList" parameterType="TInvoiceTag" resultMap="TInvoiceTagResult">
|
|
|
<include refid="selectTInvoiceTagVo"/>
|
|
|
<where>
|
|
|
- <if test="tag != null and tag != ''"> and tag = #{tag}</if>
|
|
|
+ <if test="tag != null and tag != ''"> and tag like concat(concat('%', #{tag}), '%')</if>
|
|
|
<if test="type != null and type != ''"> and type = #{type}</if>
|
|
|
and d.del_flag = 0
|
|
|
</where>
|
|
|
<!-- 数据范围过滤 -->
|
|
|
${params.dataScope}
|
|
|
- order by d.sort desc
|
|
|
+ order by d.sort desc ,d.tag
|
|
|
</select>
|
|
|
|
|
|
<select id="selectTInvoiceTagById" parameterType="Long" resultMap="TInvoiceTagResult">
|