Commit ad47cb6b by jx-art

装在数据逻辑填充~

parent 18ae2d67
...@@ -257,11 +257,11 @@ public class InteriorChangeConfigServiceImpl implements InteriorChangeConfigServ ...@@ -257,11 +257,11 @@ public class InteriorChangeConfigServiceImpl implements InteriorChangeConfigServ
*/ */
private void getGoodsPrincipalNameEmail(Integer type,Map<Long, ChangeGoodsPrincipalPO> map,String response){ private void getGoodsPrincipalNameEmail(Integer type,Map<Long, ChangeGoodsPrincipalPO> map,String response){
JSONObject jsonObject = JSONObject.parseObject(response); JSONObject jsonObject = JSONObject.parseObject(response);
Map<String,JSONObject> rpcMap = JSONObject.parseObject(jsonObject.get("data").toString(), Map.class); Map<Long,JSONObject> rpcMap = JSONObject.parseObject(jsonObject.get("data").toString(), Map.class);
if (rpcMap == null){ if (rpcMap == null){
throw ExceptionFactory.createBiz(ResponseCode.OPERATOR_NOT_EXIST); throw ExceptionFactory.createBiz(ResponseCode.OPERATOR_NOT_EXIST);
} }
for (String rpc : rpcMap.keySet()){ for (Long rpc : rpcMap.keySet()){
ChangeGoodsPrincipalPO goodsRpc; ChangeGoodsPrincipalPO goodsRpc;
if (map.containsKey(rpc)){ if (map.containsKey(rpc)){
goodsRpc = map.get(rpc); goodsRpc = map.get(rpc);
...@@ -275,7 +275,9 @@ public class InteriorChangeConfigServiceImpl implements InteriorChangeConfigServ ...@@ -275,7 +275,9 @@ public class InteriorChangeConfigServiceImpl implements InteriorChangeConfigServ
goodsRpc.setGoodsProjectName(rpcMap.get(rpc).get("uid").toString()); goodsRpc.setGoodsProjectName(rpcMap.get(rpc).get("uid").toString());
goodsRpc.setGoodsProjectEmail(rpcMap.get(rpc).get("name").toString()); goodsRpc.setGoodsProjectEmail(rpcMap.get(rpc).get("name").toString());
} }
map.put(Long.parseLong(rpc),goodsRpc); if (!map.containsKey(rpc)){
map.put(rpc,goodsRpc);
}
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment