|
@@ -38,9 +38,7 @@ public class FlowApiController {
|
|
|
*/
|
|
|
@PostMapping("flow/api/userTree")
|
|
|
public R getUserTree(@RequestBody UserTreeReq userTreeReq) {
|
|
|
- log.debug("接收到入参...{}", userTreeReq);
|
|
|
List<Map<String, Object>> userTree = flowService.getUserTree(userTreeReq);
|
|
|
- log.debug("返回结果...{}", userTree);
|
|
|
return R.ok().data(userTree);
|
|
|
}
|
|
|
|
|
@@ -49,12 +47,10 @@ public class FlowApiController {
|
|
|
*/
|
|
|
@PostMapping("flow/api/getPhoneListByRole")
|
|
|
public R getPhoneListByRole(@RequestBody JSONObject req) {
|
|
|
- log.debug("接收到入参...{}", req);
|
|
|
try {
|
|
|
int roleId = req.getIntValue("roleId");
|
|
|
int cityId = req.getIntValue("cityId");
|
|
|
List<String> phoneList = flowService.getPhoneListByRole(roleId, cityId);
|
|
|
- log.debug("返回结果...{}", phoneList);
|
|
|
return R.ok().data(phoneList);
|
|
|
} catch (NumberFormatException e) {
|
|
|
e.printStackTrace();
|
|
@@ -65,7 +61,6 @@ public class FlowApiController {
|
|
|
@PostMapping("flow/api")
|
|
|
@ResponseBody
|
|
|
public R flowApi(@RequestBody JSONObject jsonObject) {
|
|
|
- log.debug("接收到入参...{}", jsonObject);
|
|
|
String callType = jsonObject.getString("callType");
|
|
|
if (callType == null) {
|
|
|
return R.error().message("输入必须包含callType");
|
|
@@ -109,7 +104,6 @@ public class FlowApiController {
|
|
|
flowRoleCityVos.add(new FlowRoleCityVo(role));
|
|
|
}
|
|
|
}
|
|
|
- log.debug("返回结果...{}", flowRoleCityVos);
|
|
|
return R.ok().data(flowRoleCityVos);
|
|
|
}
|
|
|
|
|
@@ -119,13 +113,11 @@ public class FlowApiController {
|
|
|
return R.ok().data(flowService.findRoleList());
|
|
|
}
|
|
|
List<FlowRoleVo> roleList = flowService.findRoleList(username);
|
|
|
- log.debug("返回结果...{}", roleList);
|
|
|
return R.ok().data(roleList);
|
|
|
}
|
|
|
|
|
|
public R findToPage() {
|
|
|
List<FlowUserVo> flowUserVos = flowService.findToPage();
|
|
|
- log.debug("返回结果...{}", flowUserVos);
|
|
|
return R.ok().data(flowUserVos);
|
|
|
}
|
|
|
|
|
@@ -135,7 +127,6 @@ public class FlowApiController {
|
|
|
return R.error().message("输入必须包含loginId");
|
|
|
}
|
|
|
FlowUserVo flowUserVo = flowService.getByLoginId(loginId);
|
|
|
- log.debug("返回结果...{}", flowUserVo);
|
|
|
return R.ok().data(flowUserVo);
|
|
|
}
|
|
|
|
|
@@ -150,7 +141,6 @@ public class FlowApiController {
|
|
|
return R.error().message("输入必须包含userId");
|
|
|
}
|
|
|
FlowUserVo flowUserVo = flowService.getByUserId(userId);
|
|
|
- log.debug("返回结果...{}", flowUserVo);
|
|
|
return R.ok().data(flowUserVo);
|
|
|
}
|
|
|
|
|
@@ -165,7 +155,6 @@ public class FlowApiController {
|
|
|
return R.error().message("输入必须包含userId");
|
|
|
}
|
|
|
List<Integer> roleIdList = flowService.findRoleIdByUserId(userId);
|
|
|
- log.debug("返回结果...{}", roleIdList);
|
|
|
return R.ok().data(roleIdList);
|
|
|
}
|
|
|
|
|
@@ -180,7 +169,6 @@ public class FlowApiController {
|
|
|
return R.error().message("输入必须包含roleId");
|
|
|
}
|
|
|
List<Integer> userIdList = flowService.findUserIdByRoleId(roleId);
|
|
|
- log.debug("返回结果...{}", userIdList);
|
|
|
return R.ok().data(userIdList);
|
|
|
}
|
|
|
|
|
@@ -195,7 +183,6 @@ public class FlowApiController {
|
|
|
String userName = jsonObject.getString("userName");
|
|
|
userName = userName == null || userName.equals("") ? null : userName.trim();
|
|
|
List<FlowUserVo> flowUserVos = flowService.findAuthorizedUser(loginId, roleId, userName);
|
|
|
- log.debug("返回结果...{}", flowUserVos);
|
|
|
return R.ok().data(flowUserVos);
|
|
|
}
|
|
|
|