Commit bd5c49a9 by 唐功亮

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

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