600 lines
22 KiB
XML
600 lines
22 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
<mapper namespace="com.chaozhanggui.system.cashierservice.dao.TbUserInfoMapper">
|
|
<resultMap id="BaseResultMap" type="com.chaozhanggui.system.cashierservice.entity.TbUserInfo">
|
|
<id column="id" jdbcType="INTEGER" property="id" />
|
|
<result column="amount" jdbcType="DECIMAL" property="amount" />
|
|
<result column="charge_amount" jdbcType="DECIMAL" property="chargeAmount" />
|
|
<result column="line_of_credit" jdbcType="DECIMAL" property="lineOfCredit" />
|
|
<result column="consume_amount" jdbcType="DECIMAL" property="consumeAmount" />
|
|
<result column="consume_number" jdbcType="INTEGER" property="consumeNumber" />
|
|
<result column="total_score" jdbcType="INTEGER" property="totalScore" />
|
|
<result column="lock_score" jdbcType="INTEGER" property="lockScore" />
|
|
<result column="card_no" jdbcType="VARCHAR" property="cardNo" />
|
|
<result column="card_password" jdbcType="VARCHAR" property="cardPassword" />
|
|
<result column="level_id" jdbcType="VARCHAR" property="levelId" />
|
|
<result column="head_img" jdbcType="VARCHAR" property="headImg" />
|
|
<result column="nick_name" jdbcType="VARCHAR" property="nickName" />
|
|
<result column="telephone" jdbcType="VARCHAR" property="telephone" />
|
|
<result column="wx_ma_app_id" jdbcType="VARCHAR" property="wxMaAppId" />
|
|
<result column="birth_day" jdbcType="VARCHAR" property="birthDay" />
|
|
<result column="sex" jdbcType="TINYINT" property="sex" />
|
|
<result column="mini_app_open_id" jdbcType="VARCHAR" property="miniAppOpenId" />
|
|
<result column="open_id" jdbcType="VARCHAR" property="openId" />
|
|
<result column="union_id" jdbcType="VARCHAR" property="unionId" />
|
|
<result column="code" jdbcType="VARCHAR" property="code" />
|
|
<result column="type" jdbcType="VARCHAR" property="type" />
|
|
<result column="identify" jdbcType="TINYINT" property="identify" />
|
|
<result column="status" jdbcType="TINYINT" property="status" />
|
|
<result column="parent_id" jdbcType="VARCHAR" property="parentId" />
|
|
<result column="parent_level" jdbcType="VARCHAR" property="parentLevel" />
|
|
<result column="parent_type" jdbcType="VARCHAR" property="parentType" />
|
|
<result column="project_id" jdbcType="VARCHAR" property="projectId" />
|
|
<result column="merchant_id" jdbcType="VARCHAR" property="merchantId" />
|
|
<result column="is_resource" jdbcType="TINYINT" property="isResource" />
|
|
<result column="is_online" jdbcType="TINYINT" property="isOnline" />
|
|
<result column="is_vip" jdbcType="TINYINT" property="isVip" />
|
|
<result column="vip_effect_at" jdbcType="INTEGER" property="vipEffectAt" />
|
|
<result column="tips" jdbcType="VARCHAR" property="tips" />
|
|
<result column="source_path" jdbcType="VARCHAR" property="sourcePath" />
|
|
<result column="is_sales_person" jdbcType="TINYINT" property="isSalesPerson" />
|
|
<result column="is_attention_mp" jdbcType="TINYINT" property="isAttentionMp" />
|
|
<result column="city" jdbcType="VARCHAR" property="city" />
|
|
<result column="search_word" jdbcType="VARCHAR" property="searchWord" />
|
|
<result column="last_log_in_at" jdbcType="BIGINT" property="lastLogInAt" />
|
|
<result column="last_leave_at" jdbcType="BIGINT" property="lastLeaveAt" />
|
|
<result column="created_at" jdbcType="BIGINT" property="createdAt" />
|
|
<result column="updated_at" jdbcType="BIGINT" property="updatedAt" />
|
|
<result column="bind_parent_at" jdbcType="BIGINT" property="bindParentAt" />
|
|
<result column="grand_parent_id" jdbcType="VARCHAR" property="grandParentId" />
|
|
<result column="password" jdbcType="VARCHAR" property="password" />
|
|
<result column="is_pwd" jdbcType="VARCHAR" property="isPwd" />
|
|
<result column="pwd" jdbcType="VARCHAR" property="pwd" />
|
|
|
|
</resultMap>
|
|
<sql id="Base_Column_List">
|
|
id, amount, charge_amount, line_of_credit, consume_amount, consume_number, total_score,
|
|
lock_score, card_no, card_password, level_id, head_img, nick_name, telephone, wx_ma_app_id,
|
|
birth_day, sex, mini_app_open_id, open_id, union_id, code, type, identify, status,
|
|
parent_id, parent_level, parent_type, project_id, merchant_id, is_resource, is_online,
|
|
is_vip, vip_effect_at, tips, source_path, is_sales_person, is_attention_mp, city,
|
|
search_word, last_log_in_at, last_leave_at, created_at, updated_at, bind_parent_at,
|
|
grand_parent_id,password,is_pwd,pwd
|
|
</sql>
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
select
|
|
<include refid="Base_Column_List" />
|
|
from tb_user_info
|
|
where id = #{id,jdbcType=INTEGER}
|
|
</select>
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
|
delete from tb_user_info
|
|
where id = #{id,jdbcType=INTEGER}
|
|
</delete>
|
|
|
|
<insert id="insert" parameterType="com.chaozhanggui.system.cashierservice.entity.TbUserInfo" useGeneratedKeys="true" keyProperty="id">
|
|
insert into tb_user_info (id, amount, charge_amount,
|
|
line_of_credit, consume_amount, consume_number,
|
|
total_score, lock_score, card_no,
|
|
card_password, level_id, head_img,
|
|
nick_name, telephone, wx_ma_app_id,
|
|
birth_day, sex, mini_app_open_id,
|
|
open_id, union_id, code,
|
|
type, identify, status,
|
|
parent_id, parent_level, parent_type,
|
|
project_id, merchant_id, is_resource,
|
|
is_online, is_vip, vip_effect_at,
|
|
tips, source_path, is_sales_person,
|
|
is_attention_mp, city, search_word,
|
|
last_log_in_at, last_leave_at, created_at,
|
|
updated_at, bind_parent_at, grand_parent_id,password,is_pwd,pwd
|
|
)
|
|
values (#{id,jdbcType=INTEGER}, #{amount,jdbcType=DECIMAL}, #{chargeAmount,jdbcType=DECIMAL},
|
|
#{lineOfCredit,jdbcType=DECIMAL}, #{consumeAmount,jdbcType=DECIMAL}, #{consumeNumber,jdbcType=INTEGER},
|
|
#{totalScore,jdbcType=INTEGER}, #{lockScore,jdbcType=INTEGER}, #{cardNo,jdbcType=VARCHAR},
|
|
#{cardPassword,jdbcType=VARCHAR}, #{levelId,jdbcType=VARCHAR}, #{headImg,jdbcType=VARCHAR},
|
|
#{nickName,jdbcType=VARCHAR}, #{telephone,jdbcType=VARCHAR}, #{wxMaAppId,jdbcType=VARCHAR},
|
|
#{birthDay,jdbcType=VARCHAR}, #{sex,jdbcType=TINYINT}, #{miniAppOpenId,jdbcType=VARCHAR},
|
|
#{openId,jdbcType=VARCHAR}, #{unionId,jdbcType=VARCHAR}, #{code,jdbcType=VARCHAR},
|
|
#{type,jdbcType=VARCHAR}, #{identify,jdbcType=TINYINT}, #{status,jdbcType=TINYINT},
|
|
#{parentId,jdbcType=VARCHAR}, #{parentLevel,jdbcType=VARCHAR}, #{parentType,jdbcType=VARCHAR},
|
|
#{projectId,jdbcType=VARCHAR}, #{merchantId,jdbcType=VARCHAR}, #{isResource,jdbcType=TINYINT},
|
|
#{isOnline,jdbcType=TINYINT}, #{isVip,jdbcType=TINYINT}, #{vipEffectAt,jdbcType=INTEGER},
|
|
#{tips,jdbcType=VARCHAR}, #{sourcePath,jdbcType=VARCHAR}, #{isSalesPerson,jdbcType=TINYINT},
|
|
#{isAttentionMp,jdbcType=TINYINT}, #{city,jdbcType=VARCHAR}, #{searchWord,jdbcType=VARCHAR},
|
|
#{lastLogInAt,jdbcType=BIGINT}, #{lastLeaveAt,jdbcType=BIGINT}, #{createdAt,jdbcType=BIGINT},
|
|
#{updatedAt,jdbcType=BIGINT}, #{bindParentAt,jdbcType=BIGINT}, #{grandParentId,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR},
|
|
#{isPwd,jdbcType=VARCHAR},#{pwd,jdbcType=VARCHAR}
|
|
)
|
|
</insert>
|
|
<insert id="insertSelective" parameterType="com.chaozhanggui.system.cashierservice.entity.TbUserInfo">
|
|
insert into tb_user_info
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<if test="id != null">
|
|
id,
|
|
</if>
|
|
<if test="amount != null">
|
|
amount,
|
|
</if>
|
|
<if test="chargeAmount != null">
|
|
charge_amount,
|
|
</if>
|
|
<if test="lineOfCredit != null">
|
|
line_of_credit,
|
|
</if>
|
|
<if test="consumeAmount != null">
|
|
consume_amount,
|
|
</if>
|
|
<if test="consumeNumber != null">
|
|
consume_number,
|
|
</if>
|
|
<if test="totalScore != null">
|
|
total_score,
|
|
</if>
|
|
<if test="lockScore != null">
|
|
lock_score,
|
|
</if>
|
|
<if test="cardNo != null">
|
|
card_no,
|
|
</if>
|
|
<if test="cardPassword != null">
|
|
card_password,
|
|
</if>
|
|
<if test="levelId != null">
|
|
level_id,
|
|
</if>
|
|
<if test="headImg != null">
|
|
head_img,
|
|
</if>
|
|
<if test="nickName != null">
|
|
nick_name,
|
|
</if>
|
|
<if test="telephone != null">
|
|
telephone,
|
|
</if>
|
|
<if test="wxMaAppId != null">
|
|
wx_ma_app_id,
|
|
</if>
|
|
<if test="birthDay != null">
|
|
birth_day,
|
|
</if>
|
|
<if test="sex != null">
|
|
sex,
|
|
</if>
|
|
<if test="miniAppOpenId != null">
|
|
mini_app_open_id,
|
|
</if>
|
|
<if test="openId != null">
|
|
open_id,
|
|
</if>
|
|
<if test="unionId != null">
|
|
union_id,
|
|
</if>
|
|
<if test="code != null">
|
|
code,
|
|
</if>
|
|
<if test="type != null">
|
|
type,
|
|
</if>
|
|
<if test="identify != null">
|
|
identify,
|
|
</if>
|
|
<if test="status != null">
|
|
status,
|
|
</if>
|
|
<if test="parentId != null">
|
|
parent_id,
|
|
</if>
|
|
<if test="parentLevel != null">
|
|
parent_level,
|
|
</if>
|
|
<if test="parentType != null">
|
|
parent_type,
|
|
</if>
|
|
<if test="projectId != null">
|
|
project_id,
|
|
</if>
|
|
<if test="merchantId != null">
|
|
merchant_id,
|
|
</if>
|
|
<if test="isResource != null">
|
|
is_resource,
|
|
</if>
|
|
<if test="isOnline != null">
|
|
is_online,
|
|
</if>
|
|
<if test="isVip != null">
|
|
is_vip,
|
|
</if>
|
|
<if test="vipEffectAt != null">
|
|
vip_effect_at,
|
|
</if>
|
|
<if test="tips != null">
|
|
tips,
|
|
</if>
|
|
<if test="sourcePath != null">
|
|
source_path,
|
|
</if>
|
|
<if test="isSalesPerson != null">
|
|
is_sales_person,
|
|
</if>
|
|
<if test="isAttentionMp != null">
|
|
is_attention_mp,
|
|
</if>
|
|
<if test="city != null">
|
|
city,
|
|
</if>
|
|
<if test="searchWord != null">
|
|
search_word,
|
|
</if>
|
|
<if test="lastLogInAt != null">
|
|
last_log_in_at,
|
|
</if>
|
|
<if test="lastLeaveAt != null">
|
|
last_leave_at,
|
|
</if>
|
|
<if test="createdAt != null">
|
|
created_at,
|
|
</if>
|
|
<if test="updatedAt != null">
|
|
updated_at,
|
|
</if>
|
|
<if test="bindParentAt != null">
|
|
bind_parent_at,
|
|
</if>
|
|
<if test="grandParentId != null">
|
|
grand_parent_id,
|
|
</if>
|
|
<if test="password != null and password != ''">
|
|
password
|
|
</if>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="id != null">
|
|
#{id,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="amount != null">
|
|
#{amount,jdbcType=DECIMAL},
|
|
</if>
|
|
<if test="chargeAmount != null">
|
|
#{chargeAmount,jdbcType=DECIMAL},
|
|
</if>
|
|
<if test="lineOfCredit != null">
|
|
#{lineOfCredit,jdbcType=DECIMAL},
|
|
</if>
|
|
<if test="consumeAmount != null">
|
|
#{consumeAmount,jdbcType=DECIMAL},
|
|
</if>
|
|
<if test="consumeNumber != null">
|
|
#{consumeNumber,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="totalScore != null">
|
|
#{totalScore,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="lockScore != null">
|
|
#{lockScore,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="cardNo != null">
|
|
#{cardNo,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="cardPassword != null">
|
|
#{cardPassword,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="levelId != null">
|
|
#{levelId,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="headImg != null">
|
|
#{headImg,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="nickName != null">
|
|
#{nickName,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="telephone != null">
|
|
#{telephone,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="wxMaAppId != null">
|
|
#{wxMaAppId,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="birthDay != null">
|
|
#{birthDay,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="sex != null">
|
|
#{sex,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="miniAppOpenId != null">
|
|
#{miniAppOpenId,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="openId != null">
|
|
#{openId,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="unionId != null">
|
|
#{unionId,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="code != null">
|
|
#{code,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="type != null">
|
|
#{type,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="identify != null">
|
|
#{identify,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="status != null">
|
|
#{status,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="parentId != null">
|
|
#{parentId,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="parentLevel != null">
|
|
#{parentLevel,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="parentType != null">
|
|
#{parentType,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="projectId != null">
|
|
#{projectId,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="merchantId != null">
|
|
#{merchantId,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="isResource != null">
|
|
#{isResource,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="isOnline != null">
|
|
#{isOnline,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="isVip != null">
|
|
#{isVip,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="vipEffectAt != null">
|
|
#{vipEffectAt,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="tips != null">
|
|
#{tips,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="sourcePath != null">
|
|
#{sourcePath,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="isSalesPerson != null">
|
|
#{isSalesPerson,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="isAttentionMp != null">
|
|
#{isAttentionMp,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="city != null">
|
|
#{city,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="searchWord != null">
|
|
#{searchWord,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="lastLogInAt != null">
|
|
#{lastLogInAt,jdbcType=BIGINT},
|
|
</if>
|
|
<if test="lastLeaveAt != null">
|
|
#{lastLeaveAt,jdbcType=BIGINT},
|
|
</if>
|
|
<if test="createdAt != null">
|
|
#{createdAt,jdbcType=BIGINT},
|
|
</if>
|
|
<if test="updatedAt != null">
|
|
#{updatedAt,jdbcType=BIGINT},
|
|
</if>
|
|
<if test="bindParentAt != null">
|
|
#{bindParentAt,jdbcType=BIGINT},
|
|
</if>
|
|
<if test="grandParentId != null">
|
|
#{grandParentId,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="password != null and password != ''">
|
|
#{password,jdbcType=VARCHAR}
|
|
</if>
|
|
</trim>
|
|
</insert>
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.chaozhanggui.system.cashierservice.entity.TbUserInfo">
|
|
update tb_user_info
|
|
<set>
|
|
<if test="amount != null">
|
|
amount = #{amount,jdbcType=DECIMAL},
|
|
</if>
|
|
<if test="chargeAmount != null">
|
|
charge_amount = #{chargeAmount,jdbcType=DECIMAL},
|
|
</if>
|
|
<if test="lineOfCredit != null">
|
|
line_of_credit = #{lineOfCredit,jdbcType=DECIMAL},
|
|
</if>
|
|
<if test="consumeAmount != null">
|
|
consume_amount = #{consumeAmount,jdbcType=DECIMAL},
|
|
</if>
|
|
<if test="consumeNumber != null">
|
|
consume_number = #{consumeNumber,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="totalScore != null">
|
|
total_score = #{totalScore,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="lockScore != null">
|
|
lock_score = #{lockScore,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="cardNo != null">
|
|
card_no = #{cardNo,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="cardPassword != null">
|
|
card_password = #{cardPassword,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="levelId != null">
|
|
level_id = #{levelId,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="headImg != null">
|
|
head_img = #{headImg,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="nickName != null">
|
|
nick_name = #{nickName,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="telephone != null">
|
|
telephone = #{telephone,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="wxMaAppId != null">
|
|
wx_ma_app_id = #{wxMaAppId,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="birthDay != null">
|
|
birth_day = #{birthDay,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="sex != null">
|
|
sex = #{sex,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="miniAppOpenId != null">
|
|
mini_app_open_id = #{miniAppOpenId,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="openId != null">
|
|
open_id = #{openId,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="unionId != null">
|
|
union_id = #{unionId,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="code != null">
|
|
code = #{code,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="type != null">
|
|
type = #{type,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="identify != null">
|
|
identify = #{identify,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="status != null">
|
|
status = #{status,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="parentId != null">
|
|
parent_id = #{parentId,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="parentLevel != null">
|
|
parent_level = #{parentLevel,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="parentType != null">
|
|
parent_type = #{parentType,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="projectId != null">
|
|
project_id = #{projectId,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="merchantId != null">
|
|
merchant_id = #{merchantId,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="isResource != null">
|
|
is_resource = #{isResource,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="isOnline != null">
|
|
is_online = #{isOnline,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="isVip != null">
|
|
is_vip = #{isVip,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="vipEffectAt != null">
|
|
vip_effect_at = #{vipEffectAt,jdbcType=INTEGER},
|
|
</if>
|
|
<if test="tips != null">
|
|
tips = #{tips,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="sourcePath != null">
|
|
source_path = #{sourcePath,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="isSalesPerson != null">
|
|
is_sales_person = #{isSalesPerson,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="isAttentionMp != null">
|
|
is_attention_mp = #{isAttentionMp,jdbcType=TINYINT},
|
|
</if>
|
|
<if test="city != null">
|
|
city = #{city,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="searchWord != null">
|
|
search_word = #{searchWord,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="lastLogInAt != null">
|
|
last_log_in_at = #{lastLogInAt,jdbcType=BIGINT},
|
|
</if>
|
|
<if test="lastLeaveAt != null">
|
|
last_leave_at = #{lastLeaveAt,jdbcType=BIGINT},
|
|
</if>
|
|
<if test="createdAt != null">
|
|
created_at = #{createdAt,jdbcType=BIGINT},
|
|
</if>
|
|
<if test="updatedAt != null">
|
|
updated_at = #{updatedAt,jdbcType=BIGINT},
|
|
</if>
|
|
<if test="bindParentAt != null">
|
|
bind_parent_at = #{bindParentAt,jdbcType=BIGINT},
|
|
</if>
|
|
<if test="grandParentId != null">
|
|
grand_parent_id = #{grandParentId,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="password != null and password != ''">
|
|
password = #{password,jdbcType=VARCHAR},
|
|
</if>
|
|
</set>
|
|
where id = #{id,jdbcType=INTEGER}
|
|
</update>
|
|
<update id="updateByPrimaryKey" parameterType="com.chaozhanggui.system.cashierservice.entity.TbUserInfo">
|
|
update tb_user_info
|
|
set
|
|
amount = #{amount,jdbcType=DECIMAL},
|
|
charge_amount = #{chargeAmount,jdbcType=DECIMAL},
|
|
line_of_credit = #{lineOfCredit,jdbcType=DECIMAL},
|
|
consume_amount = #{consumeAmount,jdbcType=DECIMAL},
|
|
consume_number = #{consumeNumber,jdbcType=INTEGER},
|
|
total_score = #{totalScore,jdbcType=INTEGER},
|
|
lock_score = #{lockScore,jdbcType=INTEGER},
|
|
card_no = #{cardNo,jdbcType=VARCHAR},
|
|
card_password = #{cardPassword,jdbcType=VARCHAR},
|
|
level_id = #{levelId,jdbcType=VARCHAR},
|
|
head_img = #{headImg,jdbcType=VARCHAR},
|
|
nick_name = #{nickName,jdbcType=VARCHAR},
|
|
telephone = #{telephone,jdbcType=VARCHAR},
|
|
wx_ma_app_id = #{wxMaAppId,jdbcType=VARCHAR},
|
|
birth_day = #{birthDay,jdbcType=VARCHAR},
|
|
sex = #{sex,jdbcType=TINYINT},
|
|
mini_app_open_id = #{miniAppOpenId,jdbcType=VARCHAR},
|
|
open_id = #{openId,jdbcType=VARCHAR},
|
|
union_id = #{unionId,jdbcType=VARCHAR},
|
|
code = #{code,jdbcType=VARCHAR},
|
|
type = #{type,jdbcType=VARCHAR},
|
|
identify = #{identify,jdbcType=TINYINT},
|
|
status = #{status,jdbcType=TINYINT},
|
|
parent_id = #{parentId,jdbcType=VARCHAR},
|
|
parent_level = #{parentLevel,jdbcType=VARCHAR},
|
|
parent_type = #{parentType,jdbcType=VARCHAR},
|
|
project_id = #{projectId,jdbcType=VARCHAR},
|
|
merchant_id = #{merchantId,jdbcType=VARCHAR},
|
|
is_resource = #{isResource,jdbcType=TINYINT},
|
|
is_online = #{isOnline,jdbcType=TINYINT},
|
|
is_vip = #{isVip,jdbcType=TINYINT},
|
|
vip_effect_at = #{vipEffectAt,jdbcType=INTEGER},
|
|
tips = #{tips,jdbcType=VARCHAR},
|
|
source_path = #{sourcePath,jdbcType=VARCHAR},
|
|
is_sales_person = #{isSalesPerson,jdbcType=TINYINT},
|
|
is_attention_mp = #{isAttentionMp,jdbcType=TINYINT},
|
|
city = #{city,jdbcType=VARCHAR},
|
|
search_word = #{searchWord,jdbcType=VARCHAR},
|
|
last_log_in_at = #{lastLogInAt,jdbcType=BIGINT},
|
|
last_leave_at = #{lastLeaveAt,jdbcType=BIGINT},
|
|
created_at = #{createdAt,jdbcType=BIGINT},
|
|
updated_at = #{updatedAt,jdbcType=BIGINT},
|
|
bind_parent_at = #{bindParentAt,jdbcType=BIGINT},
|
|
grand_parent_id = #{grandParentId,jdbcType=VARCHAR},
|
|
password = #{password,jdbcType=VARCHAR},
|
|
is_pwd=#{isPwd,jdbcType=VARCHAR},
|
|
pwd=#{pwd,jdbcType=VARCHAR}
|
|
where id = #{id,jdbcType=INTEGER}
|
|
</update>
|
|
|
|
|
|
<select id="selectByOpenId" resultMap="BaseResultMap">
|
|
select * from tb_user_info where mini_app_open_id=#{openId} limit 1
|
|
</select>
|
|
|
|
|
|
<select id="selectByPhone" resultMap="BaseResultMap">
|
|
select * from tb_user_info where telephone=#{phone}
|
|
</select>
|
|
<select id="selectAll" resultType="com.chaozhanggui.system.cashierservice.entity.TbUserInfo">
|
|
select * from tb_user_info
|
|
</select>
|
|
</mapper>
|