java110
2020-10-24 82eb6782bd9264798bea70220d4199d559759dcb
java110-db/src/main/resources/mapper/user/UserServiceDaoImplMapper.xml
@@ -300,6 +300,9 @@
        <if test="attrId != null and attrId != ''">
            and u.attr_id = #{attrId}
        </if>
        <if test="specCd != null and specCd != ''">
            and u.spec_cd = #{specCd}
        </if>
    </select>
@@ -537,12 +540,21 @@
        <if test="openId != null and openId !=''">
            ,u_user_attr ua
        </if>
        <if test="key != null and key !=''">
            ,u_user_attr ub
        </if>
        where 1= 1
        <if test="openId != null and openId != ''">
            and u.user_id = ua.user_id
            and ua.spec_cd = '100201911001'
            and ua.value = #{openId}
            and ua.status_cd = '0'
        </if>
        <if test="key != null and key != ''">
            and u.user_id = ub.user_id
            and ub.spec_cd = '100202061602'
            and ub.value = #{key}
            and ub.status_cd = '0'
        </if>
        <if test="bId != null and bId !=''">
            and u.b_id = #{bId}
@@ -559,6 +571,31 @@
                #{item}
            </foreach>
        </if>
        <if test="name !=null and name != ''">
            and u.name= #{name}
        </if>
        <if test="userName !=null and userName != ''">
            and u.name= #{userName}
        </if>
        <if test="email !=null and email != ''">
            and u.email= #{email}
        </if>
        <if test="password !=null and password != ''">
            and u.password= #{password}
        </if>
        <if test="locationCd !=null and locationCd != ''">
            and u.location_cd= #{locationCd}
        </if>
        <if test="age !=null and age != ''">
            and u.age= #{age}
        </if>
        <if test="sex !=null and sex != ''">
            and u.sex= #{sex}
        </if>
        <if test="tel !=null and tel != ''">
            and u.tel= #{tel}
        </if>
        order by u.create_time desc
        <if test="page != -1 and page != null ">
            limit #{page}, #{row}