Commit bd5c49a9 by 唐功亮

【修复】 管理员 厂商分页查询

parent 1dc25461
......@@ -70,15 +70,16 @@
<select id="selectTycpdmFirmList" resultMap="tycpdmFirmChangeMap" parameterType="java.util.Map">
select * from tycpdm_firm_change where 1=1
select a.* from tycpdm_firm_change a left join tycpdm_user_service b on a.f_id=b.f_id
where 1=1
<if test="params.firmName !='' and params.firmName !=null">
and firmName like concat('%',#{params.firmName},'%')
and a.firmName like concat('%',#{params.firmName},'%')
</if>
<if test="params.logout_flag !='' and params.logout_flag !=null">
and logout_flag =#{params.logout_flag}
and a.logout_flag =#{params.logout_flag}
</if>
<if test="params.branchCode !='' and params.branchCode !=null">
and branchCode =#{params.branchCode}
and a.branchCode =#{params.branchCode}
</if>
</select>
......
......@@ -68,15 +68,16 @@
<select id="selectTycpdmFirmList" resultMap="tycpdmFirmMap" parameterType="java.util.Map">
select * from tycpdm_firm where 1=1
select a.* from tycpdm_firm a left join tycpdm_user_service b on a.f_id=b.f_id
where 1=1
<if test="params.firmName !='' and params.firmName !=null">
and firmName like concat('%',#{params.firmName},'%')
and a.firmName like concat('%',#{params.firmName},'%')
</if>
<if test="params.logout_flag !='' and params.logout_flag !=null">
and logout_flag =#{params.logout_flag}
and a.logout_flag =#{params.logout_flag}
</if>
<if test="params.branchCode !='' and params.branchCode !=null">
and branchCode =#{params.branchCode}
and a.branchCode =#{params.branchCode}
</if>
</select>
......
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