Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
D
data-server
Project
Project
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
licc
data-server
Commits
fc0dc195
Commit
fc0dc195
authored
Feb 24, 2021
by
licc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
账户表新增字段
parent
254eed67
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
4 deletions
+22
-4
AccountInfoMapper.xml
...gy-mapper/src/main/resources/mapper/AccountInfoMapper.xml
+8
-2
AccountInfo.java
...del/src/main/java/cn/wisenergy/model/app/AccountInfo.java
+14
-0
UserSysController.java
.../main/java/cn/wisenergy/controller/UserSysController.java
+0
-1
AccountController.java
...wisenergy/web/admin/controller/app/AccountController.java
+0
-1
No files found.
wisenergy-mapper/src/main/resources/mapper/AccountInfoMapper.xml
View file @
fc0dc195
...
...
@@ -4,8 +4,10 @@
<resultMap
id=
"AccountMap"
type=
"cn.wisenergy.model.app.AccountInfo"
>
<id
column=
"id"
property=
"id"
/>
<result
column=
"user_id"
property=
"userId"
/>
<result
column=
"user_level"
property=
"userLevel"
/>
<result
column=
"extract_money"
property=
"extractMoney"
/>
<result
column=
"performance_month"
property=
"performanceMonth"
/>
<result
column=
"performance_team"
property=
"performanceTeam"
/>
<result
column=
"frozen_money"
property=
"frozenMoney"
/>
<result
column=
"performance_total"
property=
"performanceTotal"
/>
<result
column=
"create_time"
property=
"createTime"
/>
...
...
@@ -22,17 +24,19 @@
</sql>
<sql
id=
"cols_exclude_id"
>
user_id,
extract_money,performance_month
,frozen_money,performance_total,create_time,update_time
user_id,
user_level,extract_money,performance_month,performance_team
,frozen_money,performance_total,create_time,update_time
</sql>
<sql
id=
"vals"
>
#{userId},#{
extractMoney},#{performanceMonth
},#{frozenMoney}, #{performanceTotal},now(),now()
#{userId},#{
userLevel},#{extractMoney},#{performanceMonth},#{performanceTeam
},#{frozenMoney}, #{performanceTotal},now(),now()
</sql>
<sql
id=
"updateCondition"
>
<if
test=
"userId != null"
>
user_id = #{userId},
</if>
<if
test=
"userLevel != null"
>
user_level = #{userLevel},
</if>
<if
test=
"extractMoney != null"
>
extract_money =#{extractMoney},
</if>
<if
test=
"performanceMonth != null"
>
performance_month =#{performanceMonth},
</if>
<if
test=
"performanceTeam != null"
>
performance_team =#{performanceTeam},
</if>
<if
test=
"frozenMoney != null"
>
frozen_money =#{frozenMoney},
</if>
<if
test=
"performanceTotal != null"
>
performance_total =#{performanceTotal},
</if>
update_time =now()
...
...
@@ -41,8 +45,10 @@
<sql
id=
"criteria"
>
<if
test=
"id != null"
>
id = #{id}
</if>
<if
test=
"userId != null"
>
and user_id = #{userId}
</if>
<if
test=
"userLevel != null"
>
and user_level = #{userLevel}
</if>
<if
test=
"extractMoney != null"
>
and extract_money =#{extractMoney}
</if>
<if
test=
"performanceMonth != null"
>
and performance_month =#{performanceMonth}
</if>
<if
test=
"performanceTeam != null"
>
and performance_team =#{performanceTeam}
</if>
<if
test=
"frozenMoney != null"
>
and frozen_money =#{frozenMoney}
</if>
<if
test=
"performanceTotal != null"
>
performance_total =#{performanceTotal}
</if>
<if
test=
"createTime != null"
>
and create_time
>
= #{createTime}
</if>
...
...
wisenergy-model/src/main/java/cn/wisenergy/model/app/AccountInfo.java
View file @
fc0dc195
...
...
@@ -10,6 +10,7 @@ import java.util.Date;
/**
* 账户实体类
*
* @author 86187
*/
@Data
...
...
@@ -29,6 +30,13 @@ public class AccountInfo implements Serializable {
@ApiModelProperty
(
name
=
"userId"
,
value
=
"用户id"
)
private
String
userId
;
/**
* 用户等级
*/
@ApiModelProperty
(
name
=
"userLevel"
,
value
=
"用户等级"
)
private
Integer
userLevel
;
/**
* 可提现金额
*/
...
...
@@ -41,6 +49,12 @@ public class AccountInfo implements Serializable {
@ApiModelProperty
(
name
=
"performanceMonth"
,
value
=
"本月业绩"
)
private
BigDecimal
performanceMonth
;
/**
* 本月团队业绩
*/
@ApiModelProperty
(
name
=
"performanceTeam"
,
value
=
"本月团队业绩"
)
private
BigDecimal
performanceTeam
;
/**
* 冻结金额
*/
...
...
wisenergy-web-admin/src/main/java/cn/wisenergy/controller/UserSysController.java
View file @
fc0dc195
...
...
@@ -5,7 +5,6 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
springfox.documentation.swagger2.annotations.EnableSwagger2
;
/**
* Created by m1991 on 2021/2/23 15:45
...
...
wisenergy-web-admin/src/main/java/cn/wisenergy/web/admin/controller/app/AccountController.java
View file @
fc0dc195
...
...
@@ -2,7 +2,6 @@ package cn.wisenergy.web.admin.controller.app;
import
cn.wisenergy.common.utils.R
;
import
cn.wisenergy.model.app.AccountInfo
;
import
cn.wisenergy.model.app.User
;
import
cn.wisenergy.service.app.AccountService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiImplicitParam
;
...
...
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