Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
S
shop-Mall
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
shop-Mall
Commits
7cfbaa09
Commit
7cfbaa09
authored
Mar 15, 2021
by
m1991
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
8c8bd9d2
9ffc5382
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
68 additions
and
14 deletions
+68
-14
OrderServiceImpl.java
.../java/cn/wisenergy/service/app/impl/OrderServiceImpl.java
+2
-0
UserForestStatusServiceImpl.java
...senergy/service/app/impl/UserForestStatusServiceImpl.java
+3
-1
CustomerServiceController.java
...y/web/admin/controller/app/CustomerServiceController.java
+13
-4
LoginController.java
...n/wisenergy/web/admin/controller/app/LoginController.java
+6
-9
MonthTaskController.java
...senergy/web/admin/controller/app/MonthTaskController.java
+44
-0
No files found.
wisenergy-service/src/main/java/cn/wisenergy/service/app/impl/OrderServiceImpl.java
View file @
7cfbaa09
...
...
@@ -130,6 +130,8 @@ public class OrderServiceImpl extends ServiceImpl<OrderMapper, OrderInfo> implem
orderInfo
.
setPayment
(
new
BigDecimal
(
payInfo
.
getPayment
()));
//rebate_status 返佣状态
orderInfo
.
setRebateStatus
(
0
);
//level_status 升级状态
orderInfo
.
setLevelStatus
(
0
);
//month_order_status //当月订单处理状态
orderInfo
.
setMonthOrderStatus
(
0
);
//monthly_task_status //月度任务处理状态
...
...
wisenergy-service/src/main/java/cn/wisenergy/service/app/impl/UserForestStatusServiceImpl.java
View file @
7cfbaa09
...
...
@@ -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 @
7cfbaa09
...
...
@@ -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
);
...
...
wisenergy-web-admin/src/main/java/cn/wisenergy/web/admin/controller/app/LoginController.java
View file @
7cfbaa09
...
...
@@ -34,6 +34,7 @@ import java.util.Map;
/**
* Created by m1991 on 2021/3/2 13:35
* @author 86187
*/
@Api
(
tags
=
"登录/注册"
)
@Slf4j
...
...
@@ -48,16 +49,13 @@ public class LoginController {
@Autowired
private
UserService
usersService
;
// @Autowired
// private Result result;
/**
* 手机登录接口
*
* @param userId
* @param sms
* @return
* @throws Exception
* @param userId
用户id
* @param sms
短信验证码
* @return
返回结果
* @throws Exception
异常
*/
@ApiOperation
(
value
=
"登录"
,
notes
=
"登录"
,
httpMethod
=
"POST"
,
produces
=
"application/json;charset=UTF-8"
)
...
...
@@ -74,7 +72,6 @@ public class LoginController {
map
.
put
(
"code"
,
"1003"
);
map
.
put
(
"msg"
,
"验证码错误"
);
// throw new BaseException(ResultEnum.FAIL_VERIFY);
return
map
;
}
redisUtils
.
delete
(
key
);
...
...
@@ -197,7 +194,7 @@ public class LoginController {
/**
* 退出登录
*
* @param
request
* @param
token
* @return
*/
@ApiOperation
(
value
=
"退出登录"
,
produces
=
"application/json"
,
notes
=
"退出登录"
)
...
...
wisenergy-web-admin/src/main/java/cn/wisenergy/web/admin/controller/app/MonthTaskController.java
0 → 100644
View file @
7cfbaa09
package
cn
.
wisenergy
.
web
.
admin
.
controller
.
app
;
import
cn.wisenergy.common.utils.R
;
import
cn.wisenergy.service.app.MonthTaskService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
/**
* @author 86187
*/
@Api
(
tags
=
"月度任务管理"
)
@RestController
@RequestMapping
(
"/task"
)
@Slf4j
public
class
MonthTaskController
{
@Autowired
private
MonthTaskService
monthTaskService
;
@ApiOperation
(
value
=
"月度肥料--月定时任务"
,
notes
=
"月度肥料--月定时任务"
,
httpMethod
=
"GET"
)
@GetMapping
(
"/monthManure"
)
public
R
<
Boolean
>
monthManure
()
{
return
monthTaskService
.
performanceCount
();
}
@ApiOperation
(
value
=
"最大进步奖--月定时任务"
,
notes
=
"最大进步奖--月定时任务"
,
httpMethod
=
"GET"
)
@GetMapping
(
"/growAward"
)
public
R
<
Boolean
>
growAward
()
{
return
monthTaskService
.
progressPrizeCount
();
}
@ApiOperation
(
value
=
""
,
notes
=
"账户表镜像---每月更新一次,保存上一个的数据"
,
httpMethod
=
"GET"
)
@GetMapping
(
"/mirrorImage"
)
public
R
<
String
>
mirrorImage
()
{
monthTaskService
.
mirrorImage
();
return
R
.
ok
(
"success"
);
}
}
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