Commit 7cfbaa09 authored by m1991's avatar m1991

Merge remote-tracking branch 'origin/master'

parents 8c8bd9d2 9ffc5382
...@@ -130,6 +130,8 @@ public class OrderServiceImpl extends ServiceImpl<OrderMapper, OrderInfo> implem ...@@ -130,6 +130,8 @@ public class OrderServiceImpl extends ServiceImpl<OrderMapper, OrderInfo> implem
orderInfo.setPayment(new BigDecimal(payInfo.getPayment())); orderInfo.setPayment(new BigDecimal(payInfo.getPayment()));
//rebate_status 返佣状态 //rebate_status 返佣状态
orderInfo.setRebateStatus(0); orderInfo.setRebateStatus(0);
//level_status 升级状态
orderInfo.setLevelStatus(0);
//month_order_status //当月订单处理状态 //month_order_status //当月订单处理状态
orderInfo.setMonthOrderStatus(0); orderInfo.setMonthOrderStatus(0);
//monthly_task_status //月度任务处理状态 //monthly_task_status //月度任务处理状态
......
...@@ -76,6 +76,9 @@ public class UserForestStatusServiceImpl implements UserForestStatusService { ...@@ -76,6 +76,9 @@ public class UserForestStatusServiceImpl implements UserForestStatusService {
//用户等级 < 幼苗 显示业绩缺少额度 //用户等级 < 幼苗 显示业绩缺少额度
//获取当前用户的业绩 //获取当前用户的业绩
BigDecimal performanceByUserid = orderMapper.getPerformanceByUserid(userId); BigDecimal performanceByUserid = orderMapper.getPerformanceByUserid(userId);
if (performanceByUserid == null){
performanceByUserid = new BigDecimal(0);
}
//距离升级还差多少额度 //距离升级还差多少额度
BigDecimal differenceAmount = levelTerm.subtract(performanceByUserid); BigDecimal differenceAmount = levelTerm.subtract(performanceByUserid);
difference.put("differenceAmount",differenceAmount); difference.put("differenceAmount",differenceAmount);
...@@ -134,7 +137,6 @@ public class UserForestStatusServiceImpl implements UserForestStatusService { ...@@ -134,7 +137,6 @@ public class UserForestStatusServiceImpl implements UserForestStatusService {
difference.put("teamDifferenceBronze",teamDifferenceBronze); difference.put("teamDifferenceBronze",teamDifferenceBronze);
userForestStatusMap.put("differenceMap",difference); userForestStatusMap.put("differenceMap",difference);
}else if (userLevel == 4){ }else if (userLevel == 4){
//用户等级为黄金树 //用户等级为黄金树
......
...@@ -26,9 +26,14 @@ public class CustomerServiceController { ...@@ -26,9 +26,14 @@ public class CustomerServiceController {
@Autowired @Autowired
private CustomerServiceService customerServiceService; private CustomerServiceService customerServiceService;
/**
* 给用户分配专属客服
* @param userId
* @return
*/
@ApiOperation(value = "获取专属客服", notes = "获取专属客服") @ApiOperation(value = "获取专属客服", notes = "获取专属客服")
@GetMapping("/service") @GetMapping("/service")
public R getServiceByRand(String userId){ public R<String> getServiceByRand(String userId){
try { try {
CustomerService serviceByRand = customerServiceService.getServiceByRand(userId); CustomerService serviceByRand = customerServiceService.getServiceByRand(userId);
String wechatImgUrl = serviceByRand.getWechatImgUrl(); String wechatImgUrl = serviceByRand.getWechatImgUrl();
...@@ -39,12 +44,16 @@ public class CustomerServiceController { ...@@ -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 @ResponseBody
@PostMapping("/uploadWeChatImg") @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 { try {
customerServiceService.uploadImage(file,request,wechatId); customerServiceService.uploadImage(file,request,wechatId);
......
...@@ -34,6 +34,7 @@ import java.util.Map; ...@@ -34,6 +34,7 @@ import java.util.Map;
/** /**
* Created by m1991 on 2021/3/2 13:35 * Created by m1991 on 2021/3/2 13:35
* @author 86187
*/ */
@Api(tags = "登录/注册") @Api(tags = "登录/注册")
@Slf4j @Slf4j
...@@ -48,16 +49,13 @@ public class LoginController { ...@@ -48,16 +49,13 @@ public class LoginController {
@Autowired @Autowired
private UserService usersService; private UserService usersService;
// @Autowired
// private Result result;
/** /**
* 手机登录接口 * 手机登录接口
* *
* @param userId * @param userId 用户id
* @param sms * @param sms 短信验证码
* @return * @return 返回结果
* @throws Exception * @throws Exception 异常
*/ */
@ApiOperation(value = "登录", notes = "登录", httpMethod = "POST", produces = "application/json;charset=UTF-8") @ApiOperation(value = "登录", notes = "登录", httpMethod = "POST", produces = "application/json;charset=UTF-8")
...@@ -74,7 +72,6 @@ public class LoginController { ...@@ -74,7 +72,6 @@ public class LoginController {
map.put("code", "1003"); map.put("code", "1003");
map.put("msg", "验证码错误"); map.put("msg", "验证码错误");
// throw new BaseException(ResultEnum.FAIL_VERIFY);
return map; return map;
} }
redisUtils.delete(key); redisUtils.delete(key);
...@@ -197,7 +194,7 @@ public class LoginController { ...@@ -197,7 +194,7 @@ public class LoginController {
/** /**
* 退出登录 * 退出登录
* *
* @param request * @param token
* @return * @return
*/ */
@ApiOperation(value = "退出登录", produces = "application/json", notes = "退出登录") @ApiOperation(value = "退出登录", produces = "application/json", notes = "退出登录")
......
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");
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment