|
@@ -247,7 +247,7 @@ public class AskGoodsServiceImpl implements AskGoodsService {
|
|
|
for(AskGoods askGoods : list){
|
|
|
askGoods.setStorageCode(removalCode);
|
|
|
askGoods.setCompanyNumber(askGoods.getAccountSleeve());
|
|
|
- Inventory inventory = askGoodsMapper.getInventory(askGoods);
|
|
|
+ Inventory inventory = askGoodsMapper.getInventory(askGoods);//查询库存数量
|
|
|
if(inventory == null){
|
|
|
// throw new Exception("库存不存在");
|
|
|
// System.out.println("库存不存在");
|
|
@@ -349,8 +349,12 @@ public class AskGoodsServiceImpl implements AskGoodsService {
|
|
|
retunList.add(strJson);//*3 将父子表信息放在集合中
|
|
|
ReqOutStocks.put("ReqOutStocks",retunList);//*4 将放集合的数据封装到ReqOutStocks
|
|
|
returnData.put("strJson", JSON.toJSONString(ReqOutStocks));//*5 将封装好的ReqOutStocks放进strJson
|
|
|
+ //添加记录到tld_access
|
|
|
+ String names = "出库回传" ;
|
|
|
+ String accessType = "1" ;
|
|
|
+ String returnGsRemoval = returnData.toString() ;
|
|
|
+ askGoodsMapper.addAccess(names,returnGsRemoval,accessType);
|
|
|
System.out.println("封装好的:"+returnData);
|
|
|
-
|
|
|
//回传地址
|
|
|
String url = "https://erp4.teld.cn:8443/cwbase/sg/V1/ERP/TELD/TELD_WMS/TELD_API_WMS_StockManage/CreateProductiveOutStock";
|
|
|
// String url = "http://42.159.85.29:52480/cwbase/sg/V1/ERP/TELD/DEVTEST/API_WMS_PurInStock/CreateProductiveOutStock";
|
|
@@ -415,11 +419,6 @@ public class AskGoodsServiceImpl implements AskGoodsService {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- //添加记录到tld_access
|
|
|
- String names = "出库回传" ;
|
|
|
- String accessType = "1" ;
|
|
|
- String returnGsRemoval = returnData.toString() ;
|
|
|
- askGoodsMapper.addAccess(names,returnGsRemoval,accessType);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -807,8 +806,12 @@ public class AskGoodsServiceImpl implements AskGoodsService {
|
|
|
retunList.add(strJson);
|
|
|
ReqOutStocks.put("BILLs",retunList);
|
|
|
returnData.put("strJson", JSON.toJSONString(ReqOutStocks));
|
|
|
- System.out.println("封装好的:"+returnData);
|
|
|
-
|
|
|
+ //添加记录到tld_access
|
|
|
+ String names = "销售发货单" ;
|
|
|
+ String accessType = "1" ;
|
|
|
+ String returnGsRemoval = returnData.toString() ;
|
|
|
+ askGoodsMapper.addAccess(names,returnGsRemoval,accessType);
|
|
|
+ System.out.println("封装好的:"+returnData.toString());
|
|
|
//回传地址
|
|
|
// String url = "http://42.159.85.29:52480/cwbase/sg/V1/ERP/TELD/DEVTEST/API_WMS_PurInStock/CreateBOLOutStock";
|
|
|
String url = "https://erp4.teld.cn:8443/cwbase/sg/V1/ERP/TELD/TELD_WMS/TELD_API_WMS_StockManage/CreateBOLOutStock";
|
|
@@ -867,11 +870,6 @@ public class AskGoodsServiceImpl implements AskGoodsService {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- //添加记录到tld_access
|
|
|
- String names = "销售发货单" ;
|
|
|
- String accessType = "1" ;
|
|
|
- String returnGsRemoval = returnData.toString() ;
|
|
|
- askGoodsMapper.addAccess(names,returnGsRemoval,accessType);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -977,6 +975,11 @@ public class AskGoodsServiceImpl implements AskGoodsService {
|
|
|
retunList.add(strJson);
|
|
|
ReqOutStocks.put("BILLs", retunList);
|
|
|
returnData.put("strJson", JSON.toJSONString(ReqOutStocks));
|
|
|
+ //添加记录到tld_access
|
|
|
+ String names = "移库单";
|
|
|
+ String accessType = "1";
|
|
|
+ String returnGsRemoval = returnData.toString();
|
|
|
+ askGoodsMapper.addAccess(names, returnGsRemoval, accessType);
|
|
|
System.out.println("封装好的:"+returnData);
|
|
|
|
|
|
//
|
|
@@ -1029,11 +1032,6 @@ public class AskGoodsServiceImpl implements AskGoodsService {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- //添加记录到tld_access
|
|
|
- String names = "移库单";
|
|
|
- String accessType = "1";
|
|
|
- String returnGsRemoval = returnData.toString();
|
|
|
- askGoodsMapper.addAccess(names, returnGsRemoval, accessType);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -1101,7 +1099,12 @@ public class AskGoodsServiceImpl implements AskGoodsService {
|
|
|
retunList.add(strJson);
|
|
|
ReqOutStocks.put("BILLs", retunList);
|
|
|
returnData.put("strJson", JSON.toJSONString(ReqOutStocks));
|
|
|
- System.out.println("封装好的:"+returnData);
|
|
|
+ //添加记录到tld_access
|
|
|
+ String names = "生产收货";
|
|
|
+ String accessType = "1";
|
|
|
+ String returnGsRemoval = returnData.toString();
|
|
|
+ askGoodsMapper.addAccess(names, returnGsRemoval, accessType);
|
|
|
+ System.out.println("封装好的:"+returnData.toString());
|
|
|
|
|
|
//回传地址
|
|
|
// String url = "http://42.159.85.29:52480/cwbase/sg/V1/ERP/TELD/DEVTEST/API_WMS_PurInStock/CreateGRReqInStock";
|
|
@@ -1155,11 +1158,6 @@ public class AskGoodsServiceImpl implements AskGoodsService {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- //添加记录到tld_access
|
|
|
- String names = "生产收货";
|
|
|
- String accessType = "1";
|
|
|
- String returnGsRemoval = returnData.toString();
|
|
|
- askGoodsMapper.addAccess(names, returnGsRemoval, accessType);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -1223,7 +1221,12 @@ public class AskGoodsServiceImpl implements AskGoodsService {
|
|
|
retunList.add(strJson);
|
|
|
ReqOutStocks.put("BILLs", retunList);
|
|
|
returnData.put("strJson", JSON.toJSONString(ReqOutStocks));
|
|
|
- System.out.println("封装好的:"+returnData);
|
|
|
+ //添加记录到tld_access
|
|
|
+ String names = "其它入库";
|
|
|
+ String accessType = "1";
|
|
|
+ String returnGsRemoval = returnData.toString();
|
|
|
+ askGoodsMapper.addAccess(names, returnGsRemoval, accessType);
|
|
|
+ System.out.println("封装好的:"+returnData.toString());
|
|
|
|
|
|
// String url = "http://42.159.85.29:52480/cwbase/sg/V1/ERP/TELD/DEVTEST/API_WMS_PurInStock/CreateOtherInStock";
|
|
|
String url = "https://erp4.teld.cn:8443/cwbase/sg/V1/ERP/TELD/TELD_WMS/TELD_API_WMS_StockManage/CreateOtherInStock";
|
|
@@ -1275,11 +1278,6 @@ public class AskGoodsServiceImpl implements AskGoodsService {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- //添加记录到tld_access
|
|
|
- String names = "其它入库";
|
|
|
- String accessType = "1";
|
|
|
- String returnGsRemoval = returnData.toString();
|
|
|
- askGoodsMapper.addAccess(names, returnGsRemoval, accessType);
|
|
|
}
|
|
|
}
|
|
|
noticeIds.add(returnWarehousing1.get("noticeId").toString());
|
|
@@ -1343,7 +1341,12 @@ public class AskGoodsServiceImpl implements AskGoodsService {
|
|
|
retunList.add(strJson);
|
|
|
ReqOutStocks.put("ReqOutStocks", retunList);
|
|
|
returnData.put("strJson", JSON.toJSONString(ReqOutStocks));
|
|
|
- System.out.println("封装好的:"+returnData);
|
|
|
+ //添加记录到tld_access
|
|
|
+ String names = "其它出库";
|
|
|
+ String accessType = "1";
|
|
|
+ String returnGsRemoval = returnData.toString();
|
|
|
+ askGoodsMapper.addAccess(names, returnGsRemoval, accessType);
|
|
|
+ System.out.println("封装好的:"+returnData.toString());
|
|
|
|
|
|
// String url = "http://42.159.85.29:52480/cwbase/sg/V1/ERP/TELD/DEVTEST/API_WMS_PurInStock/CreateMakeUpOtherOutStock";
|
|
|
String url = "https://erp4.teld.cn:8443/cwbase/sg/V1/ERP/TELD/TELD_WMS/TELD_API_WMS_StockManage/CreateMakeUpOtherOutStock";
|
|
@@ -1395,11 +1398,6 @@ public class AskGoodsServiceImpl implements AskGoodsService {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- //添加记录到tld_access
|
|
|
- String names = "其它出库";
|
|
|
- String accessType = "1";
|
|
|
- String returnGsRemoval = returnData.toString();
|
|
|
- askGoodsMapper.addAccess(names, returnGsRemoval, accessType);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -1464,6 +1462,11 @@ public class AskGoodsServiceImpl implements AskGoodsService {
|
|
|
retunList.add(strJson);
|
|
|
ReqOutStocks.put("ReqOutStocks", retunList);
|
|
|
returnData.put("strJson", JSON.toJSONString(ReqOutStocks));
|
|
|
+ //添加记录到tld_access
|
|
|
+ String names = "其它出库";
|
|
|
+ String accessType = "1";
|
|
|
+ String returnGsRemoval = returnData.toString();
|
|
|
+ askGoodsMapper.addAccess(names, returnGsRemoval, accessType);
|
|
|
System.out.println("封装好的:"+returnData);
|
|
|
|
|
|
HttpClientUtil httpClientUtil1 = new HttpClientUtil();
|
|
@@ -1516,11 +1519,6 @@ public class AskGoodsServiceImpl implements AskGoodsService {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- //添加记录到tld_access
|
|
|
- String names = "其它出库";
|
|
|
- String accessType = "1";
|
|
|
- String returnGsRemoval = returnData.toString();
|
|
|
- askGoodsMapper.addAccess(names, returnGsRemoval, accessType);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -1555,9 +1553,10 @@ public class AskGoodsServiceImpl implements AskGoodsService {
|
|
|
public void test03() {
|
|
|
List<Map<String,Object>> mapList = askGoodsMapper.test03();
|
|
|
System.out.println("mapList:"+mapList);
|
|
|
- //生产收货接口文档/报工单 w
|
|
|
+ //入库回传 5
|
|
|
for (Map<String, Object> map : mapList) {
|
|
|
- CreateGRReqInStock(map.get("orderNumber").toString(),"李兆峰");
|
|
|
+// CreateGRReqInStock(map.get("orderNumber").toString(),"李兆峰");//生产收货接口文档
|
|
|
+ warehousingService.plugOutWarehousing(map.get("orderNumber").toString(),"李兆峰");//入库回传
|
|
|
}
|
|
|
}
|
|
|
|