|
@@ -127,6 +127,9 @@ public class CustomerController {
|
|
|
@ApiOperation(value = "客户信息导出", notes = "客户信息导出")
|
|
|
@LoginRequired(role = AuthenticationInterceptor.AUTH_ADMIN)
|
|
|
public void findCustomerRechargeExport(String customerName, String companyName, String companyBelongName, HttpServletResponse response) throws Exception {
|
|
|
+ if(!checkHasAuthRole.checkMessage(customerName,companyName,companyBelongName)){
|
|
|
+ log.error("findCustomerRecListExport客户信息导出信息有误");
|
|
|
+ }
|
|
|
CustomerRec customerRec = new CustomerRec();
|
|
|
customerRec.setCustomerName(customerName);
|
|
|
customerRec.setCompanyBelongName(companyBelongName);
|
|
@@ -171,6 +174,9 @@ public class CustomerController {
|
|
|
@LoginRequired
|
|
|
public RespR addCustomer(@RequestBody Customer customer, User user) {
|
|
|
checkHasAuthRole.checkCustomerRole(user, customer.getCustomerName());
|
|
|
+ if(!checkHasAuthRole.checkMessage(customer.getCustomerName())){
|
|
|
+ return new RespR(false, "客户添加失败,请查看数据是否维护准确");
|
|
|
+ }
|
|
|
return new RespR(customerService.addCustomers(customer), "客户添加失败,请查看是否重复");
|
|
|
}
|
|
|
|
|
@@ -281,7 +287,10 @@ public class CustomerController {
|
|
|
@ApiOperation(value = "账号充值", notes = "账号充值")
|
|
|
@LoginRequired(role = AuthenticationInterceptor.AUTH_ADMIN)
|
|
|
public RespR customRecharge(@RequestBody CustomerRecharge customerRecharge) {
|
|
|
-
|
|
|
+ if (null == customerRecharge.getRechargeMony() || "".equals(customerRecharge.getRechargeMony())) {
|
|
|
+ log.error("充值失败:CustomerServiceImpl.getRechargeMony:" + customerRecharge.getRechargeMony());
|
|
|
+ return new RespR(false,"充值记录为空");
|
|
|
+ }
|
|
|
return new RespR(customerService.customRecharge(customerRecharge));
|
|
|
}
|
|
|
|
|
@@ -486,6 +495,9 @@ public class CustomerController {
|
|
|
@ApiOperation(value = "用户换卡信息查询", notes = "用户换卡信息查询")
|
|
|
@LoginRequired(role = AuthenticationInterceptor.AUTH_ADMIN)
|
|
|
public RespR customerChangeInfo(String applyId) {
|
|
|
+ if(!checkHasAuthRole.checkMessage(applyId)){
|
|
|
+ return new RespR(false, "用户换卡信息查询失败,请查看数据是否维护准确");
|
|
|
+ }
|
|
|
List<Map<String, String>> cards = customerChangeInfoService.selectChangeCards(applyId);
|
|
|
return new RespR(cards);
|
|
|
}
|