|
|
|
@ -15,8 +15,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<result property="userType" column="user_type" />
|
|
|
|
<result property="userType" column="user_type" />
|
|
|
|
<result property="level" column="level" />
|
|
|
|
<result property="level" column="level" />
|
|
|
|
<result property="mobile" column="mobile" />
|
|
|
|
<result property="mobile" column="mobile" />
|
|
|
|
<result property="password" column="password" />
|
|
|
|
|
|
|
|
<result property="userQr" column="user_qr" />
|
|
|
|
|
|
|
|
<result property="provinceId" column="province_id" />
|
|
|
|
<result property="provinceId" column="province_id" />
|
|
|
|
<result property="cityId" column="city_id" />
|
|
|
|
<result property="cityId" column="city_id" />
|
|
|
|
<result property="areaId" column="area_id" />
|
|
|
|
<result property="areaId" column="area_id" />
|
|
|
|
@ -27,10 +25,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<result property="clock" column="clock" />
|
|
|
|
<result property="clock" column="clock" />
|
|
|
|
<result property="activity" column="activity" />
|
|
|
|
<result property="activity" column="activity" />
|
|
|
|
<result property="wechat" column="wechat" />
|
|
|
|
<result property="wechat" column="wechat" />
|
|
|
|
<result property="code" column="code" />
|
|
|
|
|
|
|
|
<result property="isAbutment" column="is_abutment" />
|
|
|
|
<result property="isAbutment" column="is_abutment" />
|
|
|
|
<result property="collagenDay" column="collagen_day" />
|
|
|
|
<result property="isCompleteInformation" column="is_complete_information" />
|
|
|
|
<result property="collagenMount" column="collagen_mount" />
|
|
|
|
<result property="devicesNum" column="devices_num" />
|
|
|
|
<result property="loginTime" column="login_time" />
|
|
|
|
<result property="loginTime" column="login_time" />
|
|
|
|
<result property="status" column="status" />
|
|
|
|
<result property="status" column="status" />
|
|
|
|
<result property="createBy" column="create_by" />
|
|
|
|
<result property="createBy" column="create_by" />
|
|
|
|
@ -41,7 +38,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
</resultMap>
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
|
|
<sql id="selectWxUserMemberVo">
|
|
|
|
<sql id="selectWxUserMemberVo">
|
|
|
|
select id, nickname, headimg, username, credit, openid, unionid, user_type, level, mobile, password, user_qr, province_id, city_id, area_id, province, city, area, birthday, clock, activity, wechat, code, is_abutment, collagen_day, collagen_mount, login_time, status, create_by, create_time, update_by, update_time, remark from wx_user_member
|
|
|
|
select id, nickname, headimg, username, credit, openid, unionid, user_type, level, mobile, province_id, city_id, area_id, province, city, area, birthday, clock, activity, wechat, is_abutment, login_time, is_complete_information, devices_num, status, create_by, create_time, update_by, update_time, remark from wx_user_member
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectWxUserMemberList" parameterType="WxUserMember" resultMap="WxUserMemberResult">
|
|
|
|
<select id="selectWxUserMemberList" parameterType="WxUserMember" resultMap="WxUserMemberResult">
|
|
|
|
@ -56,8 +53,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<if test="userType != null "> and user_type = #{userType}</if>
|
|
|
|
<if test="userType != null "> and user_type = #{userType}</if>
|
|
|
|
<if test="level != null "> and level = #{level}</if>
|
|
|
|
<if test="level != null "> and level = #{level}</if>
|
|
|
|
<if test="mobile != null and mobile != ''"> and mobile = #{mobile}</if>
|
|
|
|
<if test="mobile != null and mobile != ''"> and mobile = #{mobile}</if>
|
|
|
|
<if test="password != null and password != ''"> and password = #{password}</if>
|
|
|
|
|
|
|
|
<if test="userQr != null and userQr != ''"> and user_qr = #{userQr}</if>
|
|
|
|
|
|
|
|
<if test="provinceId != null and provinceId != ''"> and province = #{provinceId}</if>
|
|
|
|
<if test="provinceId != null and provinceId != ''"> and province = #{provinceId}</if>
|
|
|
|
<if test="cityId != null and cityId != ''"> and city = #{cityId}</if>
|
|
|
|
<if test="cityId != null and cityId != ''"> and city = #{cityId}</if>
|
|
|
|
<if test="areaId != null and areaId != ''"> and area = #{areaId}</if>
|
|
|
|
<if test="areaId != null and areaId != ''"> and area = #{areaId}</if>
|
|
|
|
@ -68,11 +63,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<if test="clock != null "> and clock = #{clock}</if>
|
|
|
|
<if test="clock != null "> and clock = #{clock}</if>
|
|
|
|
<if test="activity != null "> and activity = #{activity}</if>
|
|
|
|
<if test="activity != null "> and activity = #{activity}</if>
|
|
|
|
<if test="wechat != null and wechat != ''"> and wechat = #{wechat}</if>
|
|
|
|
<if test="wechat != null and wechat != ''"> and wechat = #{wechat}</if>
|
|
|
|
<if test="code != null and code != ''"> and code = #{code}</if>
|
|
|
|
|
|
|
|
<if test="isAbutment != null "> and is_abutment = #{isAbutment}</if>
|
|
|
|
<if test="isAbutment != null "> and is_abutment = #{isAbutment}</if>
|
|
|
|
<if test="collagenDay != null "> and collagen_day = #{collagenDay}</if>
|
|
|
|
|
|
|
|
<if test="collagenMount != null "> and collagen_mount = #{collagenMount}</if>
|
|
|
|
|
|
|
|
<if test="loginTime != null "> and login_time = #{loginTime}</if>
|
|
|
|
<if test="loginTime != null "> and login_time = #{loginTime}</if>
|
|
|
|
|
|
|
|
<if test="isCompleteInformation != null "> and is_complete_information = #{isCompleteInformation}</if>
|
|
|
|
|
|
|
|
<if test="devicesNum != null "> and devices_num = #{devicesNum}</if>
|
|
|
|
<if test="status != null "> and status = #{status}</if>
|
|
|
|
<if test="status != null "> and status = #{status}</if>
|
|
|
|
</where>
|
|
|
|
</where>
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
@ -87,6 +81,22 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
WHERE openid = #{openid}
|
|
|
|
WHERE openid = #{openid}
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectWxUserMemberListByVm" parameterType="WxUserMemberVm" resultMap="WxUserMemberResult">
|
|
|
|
|
|
|
|
<include refid="selectWxUserMemberVo"/>
|
|
|
|
|
|
|
|
<where>
|
|
|
|
|
|
|
|
<if test="id != null" >id = #{id}</if>
|
|
|
|
|
|
|
|
<if test="nickname != null and nickname != ''"> and nickname like concat('%', #{nickname}, '%')</if>
|
|
|
|
|
|
|
|
<if test="creditStart != null and creditEnd != null"> and credit >= #{creditStart} and credit <= #{creditEnd}</if>
|
|
|
|
|
|
|
|
<if test="userType != null "> and user_type = #{userType}</if>
|
|
|
|
|
|
|
|
<if test="mobile != null and mobile != ''"> and mobile = #{mobile}</if>
|
|
|
|
|
|
|
|
<if test="provinceId != null and provinceId != ''"> and province = #{provinceId}</if>
|
|
|
|
|
|
|
|
<if test="cityId != null and cityId != ''"> and city = #{cityId}</if>
|
|
|
|
|
|
|
|
<if test="areaId != null and areaId != ''"> and area = #{areaId}</if>
|
|
|
|
|
|
|
|
<if test="birthday != null "> and birthday = #{birthday}</if>
|
|
|
|
|
|
|
|
and status = 0
|
|
|
|
|
|
|
|
</where>
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<insert id="insertWxUserMember" parameterType="WxUserMember" useGeneratedKeys="true" keyProperty="id">
|
|
|
|
<insert id="insertWxUserMember" parameterType="WxUserMember" useGeneratedKeys="true" keyProperty="id">
|
|
|
|
insert into wx_user_member
|
|
|
|
insert into wx_user_member
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
@ -99,8 +109,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<if test="userType != null">user_type,</if>
|
|
|
|
<if test="userType != null">user_type,</if>
|
|
|
|
<if test="level != null">level,</if>
|
|
|
|
<if test="level != null">level,</if>
|
|
|
|
<if test="mobile != null">mobile,</if>
|
|
|
|
<if test="mobile != null">mobile,</if>
|
|
|
|
<if test="password != null">password,</if>
|
|
|
|
|
|
|
|
<if test="userQr != null">user_qr,</if>
|
|
|
|
|
|
|
|
<if test="provinceId != null">province_id,</if>
|
|
|
|
<if test="provinceId != null">province_id,</if>
|
|
|
|
<if test="cityId != null">city_id,</if>
|
|
|
|
<if test="cityId != null">city_id,</if>
|
|
|
|
<if test="areaId != null">area_id,</if>
|
|
|
|
<if test="areaId != null">area_id,</if>
|
|
|
|
@ -111,10 +119,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<if test="clock != null">clock,</if>
|
|
|
|
<if test="clock != null">clock,</if>
|
|
|
|
<if test="activity != null">activity,</if>
|
|
|
|
<if test="activity != null">activity,</if>
|
|
|
|
<if test="wechat != null">wechat,</if>
|
|
|
|
<if test="wechat != null">wechat,</if>
|
|
|
|
<if test="code != null">code,</if>
|
|
|
|
|
|
|
|
<if test="isAbutment != null">is_abutment,</if>
|
|
|
|
<if test="isAbutment != null">is_abutment,</if>
|
|
|
|
<if test="collagenDay != null">collagen_day,</if>
|
|
|
|
<if test="isCompleteInformation != null">is_complete_information,</if>
|
|
|
|
<if test="collagenMount != null">collagen_mount,</if>
|
|
|
|
<if test="devicesNum != null">devices_num,</if>
|
|
|
|
<if test="loginTime != null">login_time,</if>
|
|
|
|
<if test="loginTime != null">login_time,</if>
|
|
|
|
<if test="status != null">status,</if>
|
|
|
|
<if test="status != null">status,</if>
|
|
|
|
<if test="createBy != null">create_by,</if>
|
|
|
|
<if test="createBy != null">create_by,</if>
|
|
|
|
@ -133,8 +140,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<if test="userType != null">#{userType},</if>
|
|
|
|
<if test="userType != null">#{userType},</if>
|
|
|
|
<if test="level != null">#{level},</if>
|
|
|
|
<if test="level != null">#{level},</if>
|
|
|
|
<if test="mobile != null">#{mobile},</if>
|
|
|
|
<if test="mobile != null">#{mobile},</if>
|
|
|
|
<if test="password != null">#{password},</if>
|
|
|
|
|
|
|
|
<if test="userQr != null">#{userQr},</if>
|
|
|
|
|
|
|
|
<if test="provinceId != null">#{provinceId},</if>
|
|
|
|
<if test="provinceId != null">#{provinceId},</if>
|
|
|
|
<if test="cityId != null">#{cityId},</if>
|
|
|
|
<if test="cityId != null">#{cityId},</if>
|
|
|
|
<if test="areaId != null">#{areaId},</if>
|
|
|
|
<if test="areaId != null">#{areaId},</if>
|
|
|
|
@ -145,10 +150,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<if test="clock != null">#{clock},</if>
|
|
|
|
<if test="clock != null">#{clock},</if>
|
|
|
|
<if test="activity != null">#{activity},</if>
|
|
|
|
<if test="activity != null">#{activity},</if>
|
|
|
|
<if test="wechat != null">#{wechat},</if>
|
|
|
|
<if test="wechat != null">#{wechat},</if>
|
|
|
|
<if test="code != null">#{code},</if>
|
|
|
|
|
|
|
|
<if test="isAbutment != null">#{isAbutment},</if>
|
|
|
|
<if test="isAbutment != null">#{isAbutment},</if>
|
|
|
|
<if test="collagenDay != null">#{collagenDay},</if>
|
|
|
|
<if test="isCompleteInformation != null">#{isCompleteInformation},</if>
|
|
|
|
<if test="collagenMount != null">#{collagenMount},</if>
|
|
|
|
<if test="devicesNum != null">#{devicesNum},</if>
|
|
|
|
<if test="loginTime != null">#{loginTime},</if>
|
|
|
|
<if test="loginTime != null">#{loginTime},</if>
|
|
|
|
<if test="status != null">#{status},</if>
|
|
|
|
<if test="status != null">#{status},</if>
|
|
|
|
<if test="createBy != null">#{createBy},</if>
|
|
|
|
<if test="createBy != null">#{createBy},</if>
|
|
|
|
@ -171,8 +175,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<if test="userType != null">user_type = #{userType},</if>
|
|
|
|
<if test="userType != null">user_type = #{userType},</if>
|
|
|
|
<if test="level != null">level = #{level},</if>
|
|
|
|
<if test="level != null">level = #{level},</if>
|
|
|
|
<if test="mobile != null">mobile = #{mobile},</if>
|
|
|
|
<if test="mobile != null">mobile = #{mobile},</if>
|
|
|
|
<if test="password != null">password = #{password},</if>
|
|
|
|
|
|
|
|
<if test="userQr != null">user_qr = #{userQr},</if>
|
|
|
|
|
|
|
|
<if test="provinceId != null">province_id = #{provinceId},</if>
|
|
|
|
<if test="provinceId != null">province_id = #{provinceId},</if>
|
|
|
|
<if test="cityId != null">city_id = #{cityId},</if>
|
|
|
|
<if test="cityId != null">city_id = #{cityId},</if>
|
|
|
|
<if test="areaId != null">area_id = #{areaId},</if>
|
|
|
|
<if test="areaId != null">area_id = #{areaId},</if>
|
|
|
|
@ -183,11 +185,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
<if test="clock != null">clock = #{clock},</if>
|
|
|
|
<if test="clock != null">clock = #{clock},</if>
|
|
|
|
<if test="activity != null">activity = #{activity},</if>
|
|
|
|
<if test="activity != null">activity = #{activity},</if>
|
|
|
|
<if test="wechat != null">wechat = #{wechat},</if>
|
|
|
|
<if test="wechat != null">wechat = #{wechat},</if>
|
|
|
|
<if test="code != null">code = #{code},</if>
|
|
|
|
|
|
|
|
<if test="isAbutment != null">is_abutment = #{isAbutment},</if>
|
|
|
|
<if test="isAbutment != null">is_abutment = #{isAbutment},</if>
|
|
|
|
<if test="collagenDay != null">collagen_day = #{collagenDay},</if>
|
|
|
|
|
|
|
|
<if test="collagenMount != null">collagen_mount = #{collagenMount},</if>
|
|
|
|
|
|
|
|
<if test="loginTime != null">login_time = #{loginTime},</if>
|
|
|
|
<if test="loginTime != null">login_time = #{loginTime},</if>
|
|
|
|
|
|
|
|
<if test="isCompleteInformation != null">is_complete_information = #{isCompleteInformation},</if>
|
|
|
|
|
|
|
|
<if test="devicesNum != null">devices_num = #{devicesNum},</if>
|
|
|
|
<if test="status != null">status = #{status},</if>
|
|
|
|
<if test="status != null">status = #{status},</if>
|
|
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|
|
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|
|
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
|
|
|