Commit 22d51e6e by zhiwj

修改sql

parent a9872bd7
......@@ -142,14 +142,13 @@
select
<include refid="Base_Column_List" />
from tab_audited_group
<where>
<if test="enterpriseId != null ">
and enterprise_id = #{enterpriseId}
</if>
<if test="auditedGroupName != null and auditedGroupName != '' ">
and audited_group_name like concat('%', #{auditedGroupName}, '%')
</if>
</where>
where status = 1
<if test="enterpriseId != null ">
and enterprise_id = #{enterpriseId}
</if>
<if test="auditedGroupName != null and auditedGroupName != '' ">
and audited_group_name like concat('%', #{auditedGroupName}, '%')
</if>
</select>
<select id="countByAuditedGroupIds" resultType="java.lang.Integer">
select count(1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment