Commit 18ae2d67 by jx-art

参数类型内部转换~

parent 0c8205f7
...@@ -231,8 +231,8 @@ public class InteriorChangeConfigServiceImpl implements InteriorChangeConfigServ ...@@ -231,8 +231,8 @@ public class InteriorChangeConfigServiceImpl implements InteriorChangeConfigServ
JSONObject jsonObject = JSONObject.parseObject(GoodsPurchase); JSONObject jsonObject = JSONObject.parseObject(GoodsPurchase);
List<GoodsPurchaseRpc> purchaseRpcs = JSONObject.parseArray(jsonObject.get("data").toString(), GoodsPurchaseRpc.class); List<GoodsPurchaseRpc> purchaseRpcs = JSONObject.parseArray(jsonObject.get("data").toString(), GoodsPurchaseRpc.class);
for (GoodsPurchaseRpc rpc: purchaseRpcs){ for (GoodsPurchaseRpc rpc: purchaseRpcs){
map.get(rpc.getItemId()).setPurchaseName(rpc.getSupplierName()); map.get(rpc.getItemId().longValue()).setPurchaseName(rpc.getSupplierName());
map.get(rpc.getItemId()).setPurchaseEmail(rpc.getSupplierTraceBusiness()); map.get(rpc.getItemId().longValue()).setPurchaseEmail(rpc.getSupplierTraceBusiness());
} }
//SQE //SQE
for(Long itemId : itemIds){ for(Long itemId : itemIds){
......
...@@ -54,6 +54,6 @@ public class TestController { ...@@ -54,6 +54,6 @@ public class TestController {
@PostMapping("/test1") @PostMapping("/test1")
public Map<Long, ChangeGoodsPrincipalPO> test1(@RequestBody List<Long> itemIds){ public Map<Long, ChangeGoodsPrincipalPO> test1(@RequestBody List<Long> itemIds){
return service.queryGoodsPrincipalInfo(itemIds); return service.queryGoodsPrincipalInfo(itemIds);
} }
} }
\ No newline at end of file
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