|
@@ -63,11 +63,12 @@ public class KuaishouChannelController {
|
|
|
private IKuaishouChannelService kuaishouChannelService;
|
|
|
@Autowired
|
|
|
private ISysRoleExtService sysRoleService;
|
|
|
+
|
|
|
/**
|
|
|
* 查询渠道号管理首页数据
|
|
|
*/
|
|
|
@GetMapping(value = "/channelManagementHome")
|
|
|
- public Result<Object> channelManagementHome(Long productId, Long projectId, Long accountId,String userId,
|
|
|
+ public Result<Object> channelManagementHome(Long productId, Long projectId, Long accountId, String userId,
|
|
|
@RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
|
|
|
@RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize) {
|
|
|
try {
|
|
@@ -77,7 +78,7 @@ public class KuaishouChannelController {
|
|
|
}
|
|
|
|
|
|
PageHelper.startPage(pageNo, pageSize);
|
|
|
- return kuaishouChannelService.channelManagementHome(productId, projectId, accountId,userId);
|
|
|
+ return kuaishouChannelService.channelManagementHome(productId, projectId, accountId, userId);
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
return Result.error("查询渠道号管理首页数据异常");
|
|
@@ -273,13 +274,13 @@ public class KuaishouChannelController {
|
|
|
/**
|
|
|
* 通过账户查询渠道号级别
|
|
|
*/
|
|
|
- @GetMapping(value = "/queryChannelLevel")
|
|
|
- public Result<Object> queryChannelLevel(Long accountId) {
|
|
|
+ @PostMapping(value = "/queryChannelLevel")
|
|
|
+ public Result<Object> queryChannelLevel(@RequestParam JSONObject request) {
|
|
|
try {
|
|
|
- if (Check.isNull(accountId)) {
|
|
|
+ if (Check.isNull(request.getLong("accountId")) || Check.isNull(request.getJSONArray("appIdArray"))) {
|
|
|
return Result.error("缺失参数");
|
|
|
}
|
|
|
- return kuaishouChannelService.queryChannelLevel(accountId);
|
|
|
+ return kuaishouChannelService.queryChannelLevel(request);
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
log.error("通过账户查询渠道号级别异常", e);
|