|
|
@@ -2971,11 +2971,6 @@ public class SyPackingListFabricServiceImpl extends ServiceImpl<SyPackingListFab
|
|
|
List<Object> autoIds=new ArrayList<>();
|
|
|
for (SyPackingListFabricItem item : listFabricItems){
|
|
|
JSONObject jsonObject=new JSONObject();
|
|
|
-// if(item.getMasterMetering().equalsIgnoreCase("KG")){
|
|
|
-// jsonObject.put("IQUANTITY",item.getNetWeight());//净重
|
|
|
-// }else{
|
|
|
-// jsonObject.put("IQUANTITY",item.getActualDeclaredQuantity());//实际报关数量
|
|
|
-// }
|
|
|
jsonObject.put("IQUANTITY",item.getActualDeclaredQuantity());//实际报关数量
|
|
|
jsonObject.put("CINVCODE",item.getInventoryCode());//存货编码
|
|
|
// jsonObject.put("CWHCODE",syPackingListFabricItemMapper.getVencode(item.getSupplier()));//获取仓库编码
|
|
|
@@ -2984,6 +2979,11 @@ public class SyPackingListFabricServiceImpl extends ServiceImpl<SyPackingListFab
|
|
|
(item.getInventoryCcode().substring(0,2).equals("03")&&!item.getInventoryCcode().equals("0399"))||
|
|
|
(item.getInventoryCcode().substring(0,2).equals("04")&&!item.getInventoryCcode().equals("0499"))){
|
|
|
cwhcode="PT0004";//面料仓
|
|
|
+ if(item.getMasterMetering().equalsIgnoreCase("KG")){
|
|
|
+ jsonObject.put("IQUANTITY",item.getNetWeight());//净重
|
|
|
+ }else{
|
|
|
+ jsonObject.put("IQUANTITY",item.getActualDeclaredQuantity());//实际报关数量
|
|
|
+ }
|
|
|
}
|
|
|
jsonObject.put("CWHCODE",cwhcode);//获取仓库编码
|
|
|
|