Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gxpt_ht
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pseer
gxpt_ht
Commits
468fd578
Commit
468fd578
authored
Feb 26, 2024
by
吕明尚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
会员用户增加车牌字段
parent
13dac54f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
6 deletions
+32
-6
SConsumer.java
...e-system/src/main/java/share/system/domain/SConsumer.java
+8
-5
SConsumerMapper.xml
...stem/src/main/resources/mapper/system/SConsumerMapper.xml
+24
-1
No files found.
share-system/src/main/java/share/system/domain/SConsumer.java
View file @
468fd578
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
;
}
}
share-system/src/main/resources/mapper/system/SConsumerMapper.xml
View file @
468fd578
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment