修复查询报错问题
parent
8f4ac15a31
commit
e03419a4a3
|
@ -45,7 +45,7 @@ public class IndexServiceImpl implements IndexService {
|
||||||
JSONObject param = new JSONObject();
|
JSONObject param = new JSONObject();
|
||||||
User user = userRepository.query(requestContext.getTarget());
|
User user = userRepository.query(requestContext.getTarget());
|
||||||
log.info("user:{}", JSON.toJSONString(user));
|
log.info("user:{}", JSON.toJSONString(user));
|
||||||
param.put("userId", user.getUserId());
|
param.put("userId", user.getUserId() == null ? ykUtil.getReqUserId() : user.getUserId());
|
||||||
param.put("page", pager.getPage());
|
param.put("page", pager.getPage());
|
||||||
param.put("limit", pager.getRows());
|
param.put("limit", pager.getRows());
|
||||||
String result = ykUtil.call(YkInfo.getTaskList, param, JSONArray.class);
|
String result = ykUtil.call(YkInfo.getTaskList, param, JSONArray.class);
|
||||||
|
@ -92,7 +92,7 @@ public class IndexServiceImpl implements IndexService {
|
||||||
JSONObject param = new JSONObject();
|
JSONObject param = new JSONObject();
|
||||||
User user = userRepository.query(requestContext.getTarget());
|
User user = userRepository.query(requestContext.getTarget());
|
||||||
log.info("user:{}", JSON.toJSONString(user));
|
log.info("user:{}", JSON.toJSONString(user));
|
||||||
param.put("userId", user.getUserId());
|
param.put("userId", user.getUserId() == null ? ykUtil.getReqUserId() : user.getUserId());
|
||||||
param.put("page", 1);
|
param.put("page", 1);
|
||||||
param.put("limit", Integer.MAX_VALUE);
|
param.put("limit", Integer.MAX_VALUE);
|
||||||
String result = ykUtil.call(YkInfo.getTaskList, param, JSONArray.class);
|
String result = ykUtil.call(YkInfo.getTaskList, param, JSONArray.class);
|
||||||
|
@ -107,7 +107,7 @@ public class IndexServiceImpl implements IndexService {
|
||||||
JSONObject userParam = new JSONObject();
|
JSONObject userParam = new JSONObject();
|
||||||
User user = userRepository.query(requestContext.getTarget());
|
User user = userRepository.query(requestContext.getTarget());
|
||||||
log.info("user:{}", JSON.toJSONString(user));
|
log.info("user:{}", JSON.toJSONString(user));
|
||||||
userParam.put("userId", user.getUserId());
|
userParam.put("userId", user.getUserId() == null ? ykUtil.getReqUserId() : user.getUserId());
|
||||||
String data = ykUtil.call(YkInfo.getCountTaskByUser, userParam, JSONArray.class);
|
String data = ykUtil.call(YkInfo.getCountTaskByUser, userParam, JSONArray.class);
|
||||||
List<JSONObject> list = JSONObject.parseObject(data, List.class);
|
List<JSONObject> list = JSONObject.parseObject(data, List.class);
|
||||||
|
|
||||||
|
@ -221,7 +221,7 @@ public class IndexServiceImpl implements IndexService {
|
||||||
JSONObject param = new JSONObject();
|
JSONObject param = new JSONObject();
|
||||||
User user = userRepository.query(requestContext.getTarget());
|
User user = userRepository.query(requestContext.getTarget());
|
||||||
log.info("user:{}", JSON.toJSONString(user));
|
log.info("user:{}", JSON.toJSONString(user));
|
||||||
param.put("userId", user.getUserId());
|
param.put("userId", user.getUserId() == null ? ykUtil.getReqUserId() : user.getUserId());
|
||||||
param.put("type", "user");
|
param.put("type", "user");
|
||||||
log.info("get user app list params:{}", JSON.toJSONString(param));
|
log.info("get user app list params:{}", JSON.toJSONString(param));
|
||||||
String result = ykUtil.call(YkInfo.getUserAppList, param, JSONArray.class);
|
String result = ykUtil.call(YkInfo.getUserAppList, param, JSONArray.class);
|
||||||
|
|
|
@ -5,12 +5,14 @@ import com.alibaba.fastjson.JSONObject;
|
||||||
import com.bocloud.sms.entity.YkReqVo;
|
import com.bocloud.sms.entity.YkReqVo;
|
||||||
import com.bocloud.sms.enums.YkInfo;
|
import com.bocloud.sms.enums.YkInfo;
|
||||||
import com.google.protobuf.ServiceException;
|
import com.google.protobuf.ServiceException;
|
||||||
|
import lombok.Data;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.beans.factory.annotation.Value;
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
@Component
|
@Data
|
||||||
@Slf4j
|
@Slf4j
|
||||||
|
@Component
|
||||||
public class YkUtil {
|
public class YkUtil {
|
||||||
|
|
||||||
//参考application.yml配置文件
|
//参考application.yml配置文件
|
||||||
|
|
Loading…
Reference in New Issue