Commit 468fd578 by 吕明尚

会员用户增加车牌字段

parent 13dac54f
package share.system.domain; package share.system.domain;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
...@@ -12,7 +8,10 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize; ...@@ -12,7 +8,10 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import share.common.core.domain.BaseEntity;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
/** /**
* 会员用户对象 s_consumer * 会员用户对象 s_consumer
...@@ -96,4 +95,8 @@ public class SConsumer implements Serializable ...@@ -96,4 +95,8 @@ public class SConsumer implements Serializable
@TableField(exist = false) @TableField(exist = false)
private Integer number; private Integer number;
@ApiModelProperty(value = "车牌号")
//车牌号
private String numberplate;
} }
...@@ -22,10 +22,29 @@ ...@@ -22,10 +22,29 @@
<result property="pwd" column="pwd" /> <result property="pwd" column="pwd" />
<result property="createTime" column="create_time" /> <result property="createTime" column="create_time" />
<result property="lastLoginTime" column="last_login_time" /> <result property="lastLoginTime" column="last_login_time" />
<result property="numberplate" column="numberplate"/>
</resultMap> </resultMap>
<sql id="selectSConsumerVo"> <sql id="selectSConsumerVo">
select id, account, nick_name, avatar, phone, level, role_type, sex, addres, amount, free_amount, total_times, duration, status, pwd, create_time, last_login_time from s_consumer select id,
account,
nick_name,
avatar,
phone,
level,
role_type,
sex,
addres,
amount,
free_amount,
total_times,
duration,
status,
pwd,
create_time,
last_login_time,
numberplate
from s_consumer
</sql> </sql>
<select id="selectSConsumerList" parameterType="SConsumer" resultMap="SConsumerResult"> <select id="selectSConsumerList" parameterType="SConsumer" resultMap="SConsumerResult">
...@@ -46,6 +65,7 @@ ...@@ -46,6 +65,7 @@
<if test="status != null "> and status = #{status}</if> <if test="status != null "> and status = #{status}</if>
<if test="pwd != null and pwd != ''"> and pwd = #{pwd}</if> <if test="pwd != null and pwd != ''"> and pwd = #{pwd}</if>
<if test="lastLoginTime != null "> and last_login_time = #{lastLoginTime}</if> <if test="lastLoginTime != null "> and last_login_time = #{lastLoginTime}</if>
<if test="numberplate != null">and numberplate = #{numberplate}</if>
</where> </where>
</select> </select>
...@@ -120,6 +140,7 @@ ...@@ -120,6 +140,7 @@
<if test="pwd != null and pwd != ''">pwd,</if> <if test="pwd != null and pwd != ''">pwd,</if>
<if test="createTime != null">create_time,</if> <if test="createTime != null">create_time,</if>
<if test="lastLoginTime != null">last_login_time,</if> <if test="lastLoginTime != null">last_login_time,</if>
<if test="numberplate != null">numberplate,</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="account != null and account != ''">#{account},</if> <if test="account != null and account != ''">#{account},</if>
...@@ -138,6 +159,7 @@ ...@@ -138,6 +159,7 @@
<if test="pwd != null and pwd != ''">#{pwd},</if> <if test="pwd != null and pwd != ''">#{pwd},</if>
<if test="createTime != null">#{createTime},</if> <if test="createTime != null">#{createTime},</if>
<if test="lastLoginTime != null">#{lastLoginTime},</if> <if test="lastLoginTime != null">#{lastLoginTime},</if>
<if test="numberplate !=null">#{numberplate},</if>
</trim> </trim>
</insert> </insert>
...@@ -160,6 +182,7 @@ ...@@ -160,6 +182,7 @@
<if test="pwd != null and pwd != ''">pwd = #{pwd},</if> <if test="pwd != null and pwd != ''">pwd = #{pwd},</if>
<if test="createTime != null">create_time = #{createTime},</if> <if test="createTime != null">create_time = #{createTime},</if>
<if test="lastLoginTime != null">last_login_time = #{lastLoginTime},</if> <if test="lastLoginTime != null">last_login_time = #{lastLoginTime},</if>
<if test="numberplate != null">numberplate = #{numberplate},</if>
</trim> </trim>
where id = #{id} where id = #{id}
</update> </update>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment