...
|
...
|
@@ -126,6 +126,7 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService { |
|
|
@Value("${ip.port.uic.server}")
|
|
|
private String uicServerIpAndPort;
|
|
|
|
|
|
private static final String UIC_GETPROFILE_URL = "/uic/profile/getProfile";
|
|
|
|
|
|
public Map<String, Integer> getCountByJudgeStatus(BuyerOrderReq req){
|
|
|
List<Byte> toBeJudgedList = Lists.newArrayList();
|
...
|
...
|
@@ -550,12 +551,9 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService { |
|
|
|
|
|
private String getMobileByUid(Integer uid) {
|
|
|
LOGGER.info("call getMobileByUid uid is{}", uid);
|
|
|
String url = "/uic/profile/getProfile";
|
|
|
Map<String,Integer> request = Collections.singletonMap("uid", uid);
|
|
|
JSONObject jsonObject = serviceCaller.get("uic.getProfileAction", "http://" + uicServerIpAndPort + url, request, JSONObject.class, null).get(1);
|
|
|
JSONObject jsonObject = serviceCaller.get("uic.getProfileAction", "http://" + uicServerIpAndPort + UIC_GETPROFILE_URL, request, JSONObject.class, null).get(1);
|
|
|
|
|
|
// Map<String,Integer> request = Collections.singletonMap("uid", uid);
|
|
|
// JSONObject jsonObject = serviceCaller.getcall("uic.getProfileAction", request, JSONObject.class);
|
|
|
if(null == jsonObject.getJSONObject("data") || null == jsonObject.getJSONObject("data").getString("mobile_phone")) {
|
|
|
return null;
|
|
|
}
|
...
|
...
|
@@ -565,7 +563,7 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService { |
|
|
|
|
|
private Integer getUidByMobile(String mobile) {
|
|
|
Map<String,String> request = Collections.singletonMap("account", mobile);
|
|
|
JSONObject jsonObject = serviceCaller.getcall("uic.getProfileAction", request, JSONObject.class);
|
|
|
JSONObject jsonObject = serviceCaller.get("uic.getProfileAction", "http://" + uicServerIpAndPort + UIC_GETPROFILE_URL, request, JSONObject.class, null).get(1);
|
|
|
if(null == jsonObject.getJSONObject("data") || null == jsonObject.getJSONObject("data").getInteger("uid")) {
|
|
|
return null;
|
|
|
}
|
...
|
...
|
@@ -574,9 +572,9 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService { |
|
|
}
|
|
|
|
|
|
private String getUserNameByUid(Integer uid) {
|
|
|
UserProfileReqBO userReq = new UserProfileReqBO();
|
|
|
userReq.setUid(uid);
|
|
|
JSONObject jsonObject = serviceCaller.call("uic.getUserProfile", userReq, JSONObject.class);
|
|
|
Map<String,Integer> request = Collections.singletonMap("uid", uid);
|
|
|
JSONObject jsonObject = serviceCaller.get("uic.getProfileAction", "http://" + uicServerIpAndPort + UIC_GETPROFILE_URL, request, JSONObject.class, null).get(1);
|
|
|
|
|
|
if(null != jsonObject.getJSONObject("data") && null != jsonObject.getJSONObject("data").getInteger("profile_name")) {
|
|
|
return jsonObject.getJSONObject("data").getString("profile_name");
|
|
|
}
|
...
|
...
|
|