select a.id,a.role_id,a.detail_name,a.detail_content,a.convert_status,a.status,b.role_name,b.id detaId from act_supplies_role_detail a,act_supplies_role b
<where>
<where>
<iftest="detaId != null "> and b.id = #{detaId}</if>
<iftest="roleId != null"> and a.role_id = #{roleId}</if>
<iftest="detailName != null and detailName != ''"> and a.detail_name like concat('%', #{detailName}, '%')</if>
...
...
@@ -66,22 +66,22 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"