|
@@ -41,10 +41,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="registerCode" column="register_code" />
|
|
|
<result property="source" column="source" />
|
|
|
<result property="userCode" column="user_code" />
|
|
|
+ <result property="isShow" column="is_show" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectFsUserVo">
|
|
|
- select user_id, username, password, real_name, birthday, id_card, remark, nickname, avatar, phone, create_time, update_time, last_ip, now_money, brokerage_price, integral, sign_num, status, level, spread_user_id, spread_time, user_type, is_promoter, pay_count, spread_count, addres,ma_open_id,mp_open_id,union_id, is_del,is_weixin_auth,company_id,company_user_id,register_date,register_code,source,user_code from fs_user
|
|
|
+ select user_id, username, password, real_name, birthday, id_card, remark, nickname, avatar, phone, create_time, update_time, last_ip, now_money, brokerage_price, integral, sign_num, status, level, spread_user_id, spread_time, user_type, is_promoter, pay_count, spread_count, addres,ma_open_id,mp_open_id,union_id, is_del,is_weixin_auth,company_id,company_user_id,register_date,register_code,source,user_code,is_show from fs_user
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectFsUserList" parameterType="FsUser" resultMap="FsUserResult">
|
|
@@ -79,6 +80,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="registerDate != null "> and DATE_FORMAT(register_date,'%Y-%m-%d') = DATE_FORMAT(#{registerDate},'%Y-%m-%d')</if>
|
|
|
<if test="registerCode != null and registerCode != '' "> and register_code = #{registerCode}</if>
|
|
|
<if test="source != null and source != '' "> and source = #{source}</if>
|
|
|
+ <if test="isShow != null and isShow != '' "> and is_show = #{isShow}</if>
|
|
|
</where>
|
|
|
order by user_id desc
|
|
|
</select>
|
|
@@ -127,6 +129,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="registerCode != null">register_code,</if>
|
|
|
<if test="source != null">source,</if>
|
|
|
<if test="userCode != null">user_code,</if>
|
|
|
+ <if test="isShow != null">is_show,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="username != null">#{username},</if>
|
|
@@ -165,6 +168,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="registerCode != null">#{registerCode},</if>
|
|
|
<if test="source != null">#{source},</if>
|
|
|
<if test="userCode != null">#{userCode},</if>
|
|
|
+ <if test="isShow != null">#{isShow},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
@@ -207,6 +211,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="registerCode != null">register_code = #{registerCode},</if>
|
|
|
<if test="source != null">source = #{source},</if>
|
|
|
<if test="userCode != null">user_code = #{userCode},</if>
|
|
|
+ <if test="isShow != null">is_show = #{isShow},</if>
|
|
|
</trim>
|
|
|
where user_id = #{userId}
|
|
|
</update>
|