wuxw
2019-04-28 2633f776bb8fdb0b1efe3a56293b6a1bb04616a7
java110-config/src/main/resources/mapper/user/UserServiceDaoImplMapper.xml
@@ -173,31 +173,31 @@
    <update id="updateUserInfoInstance" parameterType="map">
        update u_user u set u.status_cd = #{statusCd}
        <if test="newBId != null and newBId != ''">
            ,s.b_id = #{newBId}
            ,u.b_id = #{newBId}
        </if>
        <if test="name !=null and name != ''">
            ,s.name= #{name}
            ,u.name= #{name}
        </if>
        <if test="email !=null and email != ''">
            ,s.email= #{email}
            ,u.email= #{email}
        </if>
        <if test="address !=null and address != ''">
            ,s.address= #{address}
            ,u.address= #{address}
        </if>
        <if test="password !=null and password != ''">
            ,s.password= #{password}
            ,u.password= #{password}
        </if>
        <if test="locationCd !=null and locationCd != ''">
            ,s.location_cd= #{locationCd}
            ,u.location_cd= #{locationCd}
        </if>
        <if test="age !=null and age != ''">
            ,s.age= #{age}
            ,u.age= #{age}
        </if>
        <if test="sex !=null and sex != ''">
            ,s.sex= #{sex}
            ,u.sex= #{sex}
        </if>
        <if test="tel !=null and tel != ''">
            ,s.tel= #{tel}
            ,u.tel= #{tel}
        </if>
        where 1 = 1
        <if test="bId != null and bId != ''">
@@ -259,7 +259,7 @@
    <!-- 查询用户信息 -->
    <select id="queryUserInfo" parameterType="map" resultType="map">
        select u.user_id,u.name,u.email,u.address,u.password,u.location_cd,
        select u.user_id, u.user_id userId,u.name,u.name userName,u.email,u.address,u.password,u.location_cd,u.location_cd locationCd,
        u.age,u.sex,u.tel,u.level_cd,u.b_id
        from u_user u where 1= 1
        <if test="bId != null and bId !=''">
@@ -271,6 +271,12 @@
        <if test="statusCd !=null and statusCd != ''">
            and u.status_cd = #{statusCd}
        </if>
        <if test="userIds != null and userIds != null">
            and u.user_id in
                <foreach collection="userIds" item="item" open="(" close=")" separator=",">
                    #{item}
                </foreach>
        </if>
    </select>