|
|
|
@@ -666,25 +666,21 @@ public class DataTowerServiceImpl implements DataTowerService { |
|
|
|
|
|
|
|
@Override |
|
|
|
public ResultData queryCustomerData(String tenantId, Map<String, String> params) { |
|
|
|
|
|
|
|
WxWiWideInfo wiWideInfo = new WxWiWideInfo(); |
|
|
|
wiWideInfo.setTenantId(tenantId); |
|
|
|
List<WxWiWideInfo> list = wxWiwideInfoMapper.findList(wiWideInfo); |
|
|
|
if (list.isEmpty()){ |
|
|
|
return new ResultData(ErrorCode.WIWIDE_INFO_NOT_FOUND); |
|
|
|
} |
|
|
|
wiWideInfo = list.get(0); |
|
|
|
if (wiWideInfo == null) |
|
|
|
return new ResultData(ErrorCode.MALL_INFO_NOT_FOUND); |
|
|
|
|
|
|
|
String res = WiwideUtil.queryData(wiWideInfo, getWiwideToken(wiWideInfo), params); |
|
|
|
|
|
|
|
JSONObject result = JSONObject.parseObject(res); |
|
|
|
|
|
|
|
if (result.getInteger("result") == 200) |
|
|
|
return new ResultData(result.getInteger("result"), |
|
|
|
result.getString("msg"), |
|
|
|
result.getJSONObject("data")); |
|
|
|
else |
|
|
|
return new ResultData(result.getInteger("result"), |
|
|
|
result.getString("msg")); |
|
|
|
if (result.getInteger("result") == 200){ |
|
|
|
return new ResultData(result.getInteger("result"),result.getString("msg"), |
|
|
|
result.getJSONObject("data")); |
|
|
|
} else{ |
|
|
|
return new ResultData(result.getInteger("result"),result.getString("msg")); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|