|
@@ -10,6 +10,7 @@ import cn.com.ctop.common.module.service.ISysRoleExtService;
|
|
|
import cn.com.ctop.common.module.service.IUserAllocationService;
|
|
|
import cn.com.ctop.common.module.utils.Check;
|
|
|
import cn.com.ctop.common.module.utils.StringUtils;
|
|
|
+import com.alibaba.fastjson.JSONObject;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
@@ -197,6 +198,48 @@ public class UserAllocationController {
|
|
|
|
|
|
|
|
|
/**
|
|
|
+ * 统计报表 查看所有账号
|
|
|
+ *
|
|
|
+ * @param projectId
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @GetMapping(value = "/getUserIdListByProjectId")
|
|
|
+ public Result<List<JSONObject>> getUserIdListByProjectId(Long projectId) {
|
|
|
+ Result<List<JSONObject>> result = new Result<>();
|
|
|
+ try {
|
|
|
+ if (Check.isNull(projectId)) {
|
|
|
+ throw new Exception("请选择项目id");
|
|
|
+ }
|
|
|
+ List<JSONObject> userIdList = userAllocationService.getUserIdListByProjectId(projectId);
|
|
|
+ result.setSuccess(true);
|
|
|
+ result.setResult(userIdList);
|
|
|
+ } catch (Exception e) {
|
|
|
+ result.setSuccess(false);
|
|
|
+ result.success(e.getMessage());
|
|
|
+ }
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ @GetMapping(value = "/getAccountIdListByUserId")
|
|
|
+ public Result<List<JSONObject>> getAccountIdListByUserId(Long userId) {
|
|
|
+ Result<List<JSONObject>> result = new Result<>();
|
|
|
+ try {
|
|
|
+ if (Check.isNull(userId)) {
|
|
|
+ throw new Exception("请选择快手id");
|
|
|
+ }
|
|
|
+ List<JSONObject> accountIdList = userAllocationService.getAccountIdListByUserId(userId);
|
|
|
+ result.setSuccess(true);
|
|
|
+ result.setResult(accountIdList);
|
|
|
+ } catch (Exception e) {
|
|
|
+ result.setSuccess(false);
|
|
|
+ result.success(e.getMessage());
|
|
|
+ }
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
* 分页列表查询
|
|
|
*
|
|
|
* @param userAllocation
|