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
9ffc5382
Commit
9ffc5382
authored
Mar 15, 2021
by
codezwjava
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
森林状态bug修复用户没有下单时查询订单表null指针异常
parent
4660ffb6
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
5 deletions
+16
-5
UserForestStatusServiceImpl.java
...senergy/service/app/impl/UserForestStatusServiceImpl.java
+3
-1
CustomerServiceController.java
...y/web/admin/controller/app/CustomerServiceController.java
+13
-4
No files found.
wisenergy-service/src/main/java/cn/wisenergy/service/app/impl/UserForestStatusServiceImpl.java
View file @
9ffc5382
...
...
@@ -76,6 +76,9 @@ public class UserForestStatusServiceImpl implements UserForestStatusService {
//用户等级 < 幼苗 显示业绩缺少额度
//获取当前用户的业绩
BigDecimal
performanceByUserid
=
orderMapper
.
getPerformanceByUserid
(
userId
);
if
(
performanceByUserid
==
null
){
performanceByUserid
=
new
BigDecimal
(
0
);
}
//距离升级还差多少额度
BigDecimal
differenceAmount
=
levelTerm
.
subtract
(
performanceByUserid
);
difference
.
put
(
"differenceAmount"
,
differenceAmount
);
...
...
@@ -134,7 +137,6 @@ public class UserForestStatusServiceImpl implements UserForestStatusService {
difference
.
put
(
"teamDifferenceBronze"
,
teamDifferenceBronze
);
userForestStatusMap
.
put
(
"differenceMap"
,
difference
);
}
else
if
(
userLevel
==
4
){
//用户等级为黄金树
...
...
wisenergy-web-admin/src/main/java/cn/wisenergy/web/admin/controller/app/CustomerServiceController.java
View file @
9ffc5382
...
...
@@ -26,9 +26,14 @@ public class CustomerServiceController {
@Autowired
private
CustomerServiceService
customerServiceService
;
/**
* 给用户分配专属客服
* @param userId
* @return
*/
@ApiOperation
(
value
=
"获取专属客服"
,
notes
=
"获取专属客服"
)
@GetMapping
(
"/service"
)
public
R
getServiceByRand
(
String
userId
){
public
R
<
String
>
getServiceByRand
(
String
userId
){
try
{
CustomerService
serviceByRand
=
customerServiceService
.
getServiceByRand
(
userId
);
String
wechatImgUrl
=
serviceByRand
.
getWechatImgUrl
();
...
...
@@ -39,12 +44,16 @@ public class CustomerServiceController {
}
/**
* String wechatId ,@RequestParam("file") MultipartFile file,
* 上传专属客服微信二维码图片
* 上传专属客服的二维码图片及微信ID
* @param file 图片文件
* @param request
* @param wechatId 微信ID
* @return
*/
@ApiOperation
(
value
=
"设置专属客服二维码图片及微信id"
,
notes
=
"设置专属客服二维码图片及微信id"
)
@ResponseBody
@PostMapping
(
"/uploadWeChatImg"
)
public
R
uploadWeChatQRImg
(
@RequestParam
(
"file"
)
MultipartFile
file
,
HttpServletRequest
request
,
String
wechatId
){
public
R
<
String
>
uploadWeChatQRImg
(
@RequestParam
(
"file"
)
MultipartFile
file
,
HttpServletRequest
request
,
String
wechatId
){
try
{
customerServiceService
.
uploadImage
(
file
,
request
,
wechatId
);
...
...
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