Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
quanku
qk_backend
Commits
58c6e1b9
Commit
58c6e1b9
authored
Jul 31, 2024
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
查询介绍佣金
parent
15abe8ac
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
1 deletion
+18
-1
ch-wx-api/src/main/java/com/wwdz/ch/wx/service/distribution/UserAccountDetailService.java
.../ch/wx/service/distribution/UserAccountDetailService.java
+0
-1
ch-wx-api/src/main/java/com/wwdz/ch/wx/web/distribution/SelfPageController.java
...a/com/wwdz/ch/wx/web/distribution/SelfPageController.java
+18
-0
No files found.
ch-wx-api/src/main/java/com/wwdz/ch/wx/service/distribution/UserAccountDetailService.java
View file @
58c6e1b9
...
@@ -22,7 +22,6 @@ public interface UserAccountDetailService {
...
@@ -22,7 +22,6 @@ public interface UserAccountDetailService {
Result
cancel
(
DistributionOrder
distributionOrder
);
Result
cancel
(
DistributionOrder
distributionOrder
);
/**
/**
* 统计介绍佣金
* 统计介绍佣金
* @param userId
* @param userId
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/web/distribution/SelfPageController.java
View file @
58c6e1b9
...
@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSON;
...
@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSON;
import
com.wwdz.ch.core.type.Result
;
import
com.wwdz.ch.core.type.Result
;
import
com.wwdz.ch.wx.entity.request.SelfPageRequestDto
;
import
com.wwdz.ch.wx.entity.request.SelfPageRequestDto
;
import
com.wwdz.ch.wx.service.distribution.SelfPageService
;
import
com.wwdz.ch.wx.service.distribution.SelfPageService
;
import
com.wwdz.ch.wx.service.distribution.UserAccountDetailService
;
import
com.xxdxxs.service.FormHandler
;
import
com.xxdxxs.service.FormHandler
;
import
com.xxdxxs.validation.Validator
;
import
com.xxdxxs.validation.Validator
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
...
@@ -25,6 +26,9 @@ public class SelfPageController {
...
@@ -25,6 +26,9 @@ public class SelfPageController {
@Autowired
@Autowired
SelfPageService
selfPageService
;
SelfPageService
selfPageService
;
@Autowired
UserAccountDetailService
userAccountDetailService
;
@ApiOperation
(
value
=
"查询分销商个人主页信息"
)
@ApiOperation
(
value
=
"查询分销商个人主页信息"
)
@PostMapping
(
"/getDistributorPageInfo"
)
@PostMapping
(
"/getDistributorPageInfo"
)
...
@@ -97,6 +101,20 @@ public class SelfPageController {
...
@@ -97,6 +101,20 @@ public class SelfPageController {
}
}
@ApiOperation
(
value
=
"查询介绍佣金"
)
@PostMapping
(
"/countIntroduceAmount"
)
public
Result
countIntroduceAmount
(
@RequestBody
SelfPageRequestDto
dto
)
{
logger
.
info
(
"查询介绍佣金,请求参数:{}"
,
JSON
.
toJSONString
(
dto
));
Validator
validator
=
new
Validator
(
FormHandler
.
ofEntity
(
dto
));
validator
.
set
(
"userId"
,
"用户id"
).
must
().
number
()
.
end
();
if
(!
validator
.
isValid
())
{
return
Result
.
failed
(
validator
.
getErrorInfo
());
}
return
userAccountDetailService
.
countIntroduceAmount
(
dto
.
getUserId
());
}
@ApiOperation
(
value
=
"修改开关状态"
)
@ApiOperation
(
value
=
"修改开关状态"
)
@GetMapping
(
"/updateSwitch"
)
@GetMapping
(
"/updateSwitch"
)
public
Result
updateSwitch
(
@RequestParam
(
"state"
)
Integer
state
)
{
public
Result
updateSwitch
(
@RequestParam
(
"state"
)
Integer
state
)
{
...
...
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