|
|
@@ -343,17 +343,17 @@ public class UserController {
|
|
|
|
|
|
/**
|
|
|
* 将客户权限转移给用户(管理员操作)
|
|
|
- * @param custUU
|
|
|
+ * @param id
|
|
|
* @param json
|
|
|
* @return
|
|
|
*/
|
|
|
- @RequestMapping(value = "/transferUserToVendor/{uu}", method = RequestMethod.POST)
|
|
|
+ @RequestMapping(value = "/transferUserToVendor/{id}", method = RequestMethod.POST)
|
|
|
@ResponseBody
|
|
|
- public ResponseEntity<String> transferUserToVendor(@PathVariable("uu") Long custUU, @RequestBody String json) {
|
|
|
+ public ResponseEntity<String> transferUserToVendor(@PathVariable("id") Long id, @RequestBody String json) {
|
|
|
List<UserBaseInfo> users = FlexJsonUtils.fromJsonArray(json, UserBaseInfo.class);
|
|
|
- boolean result = userService.transferUserToVendor(custUU, users);
|
|
|
+ boolean result = userService.transferUserToVendor(id, users);
|
|
|
String resultInfo = result ? "成功" : "失败";
|
|
|
- LOGGER.log("客户分配", "将客户权限转移给用户", "客户UU: " + custUU + "结果: 绑定" + resultInfo);
|
|
|
+ LOGGER.log("客户分配", "将客户权限转移给用户", "客户UU: " + id + "结果: 绑定" + resultInfo);
|
|
|
return new ResponseEntity<>(result ? HttpStatus.OK : HttpStatus.INTERNAL_SERVER_ERROR);
|
|
|
}
|
|
|
|
|
|
@@ -432,10 +432,10 @@ public class UserController {
|
|
|
*
|
|
|
* @return
|
|
|
*/
|
|
|
- @RequestMapping(value = "/getDistribute/{custUU}", method = RequestMethod.GET)
|
|
|
+ @RequestMapping(value = "/getDistribute/{id}", method = RequestMethod.GET)
|
|
|
@ResponseBody
|
|
|
- public ModelMap getDistribute(@PathVariable("custUU") Long custUU) {
|
|
|
- Boolean result = userService.getDistribute(custUU);
|
|
|
+ public ModelMap getDistribute(@PathVariable("id") Long id) {
|
|
|
+ Boolean result = userService.getDistribute(id);
|
|
|
ModelMap modelMap = new ModelMap();
|
|
|
modelMap.put("result", result);
|
|
|
return modelMap;
|