|
@@ -58,9 +58,10 @@ public class InviteServiceImpl implements InviteService {
|
|
|
Inventory inventory = new Inventory()
|
|
|
.setMaterialId(askGoods1.getMaterialId())
|
|
|
.setWbs(askGoods1.getWbs())
|
|
|
- .setCompanyCode(askGoods1.getCompanyNumber());
|
|
|
+ .setCompanyCode(askGoods1.getCompanyNumber())
|
|
|
+ .setGroupBy(askGoods.getGroupBy());
|
|
|
List<Map<String, Object>> inventorVal = queryListMapper.storageLocation(inventory);
|
|
|
- if(inventorVal.size() != 0){
|
|
|
+ if(inventorVal.size() != 0) {
|
|
|
mapVal.add(inventorVal.get(0).get("sum").toString());
|
|
|
} else {
|
|
|
mapVal.add("0");
|
|
@@ -70,7 +71,7 @@ public class InviteServiceImpl implements InviteService {
|
|
|
map.put("sum", mapVal);
|
|
|
map.put("data", list);
|
|
|
map.put("msg", "200");
|
|
|
- }catch (Exception e){
|
|
|
+ }catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
map.put("msg", "500");
|
|
|
map.put("errMsg", "失败");
|