|
|
@@ -879,7 +879,7 @@ public class AdminCustomerApiController extends BaseApiController{
|
|
|
res.getError().add(buildError(ErrorConstants.PARAM_ERROR,""));
|
|
|
return res;
|
|
|
}
|
|
|
- customerService.updateEnteringAudit(bo);
|
|
|
+ res.data(customerService.updateEnteringAudit(bo));
|
|
|
return res;
|
|
|
}
|
|
|
|
|
|
@@ -890,4 +890,25 @@ public class AdminCustomerApiController extends BaseApiController{
|
|
|
res.setData(customerService.findEnteringAuditIsNo(clo, pageNo, pageSize));
|
|
|
return res;
|
|
|
}
|
|
|
+
|
|
|
+ /** 修改拒绝客户信息 **/
|
|
|
+ @RequestMapping(value = "/updateRefusedCustomer", method = RequestMethod.POST)
|
|
|
+ public Result updateRefusedCustomer(String id,String nickname,String mobile,String societyTag){
|
|
|
+ Result res = new Result();
|
|
|
+ if(StringUtils.isBlank(nickname)){
|
|
|
+ res.getError().add(buildError(ErrorConstants.PARAM_ERROR,"名称"));
|
|
|
+ return res;
|
|
|
+ }
|
|
|
+ if(StringUtils.isBlank(mobile)){
|
|
|
+ res.getError().add(buildError(ErrorConstants.PARAM_ERROR,"电话"));
|
|
|
+ return res;
|
|
|
+ }
|
|
|
+ if(StringUtils.isBlank(societyTag)){
|
|
|
+ res.getError().add(buildError(ErrorConstants.PARAM_ERROR,"社会性质"));
|
|
|
+ return res;
|
|
|
+ }
|
|
|
+ customerService.updateRefusedCustomer(id, nickname, mobile, societyTag);
|
|
|
+ return res;
|
|
|
+ }
|
|
|
+
|
|
|
}
|