|
|
@@ -9,6 +9,7 @@ import com.tld.mapper.*;
|
|
|
import com.tld.model.*;
|
|
|
import com.tld.model.Error;
|
|
|
import com.tld.service.AskGoodsService;
|
|
|
+import com.tld.service.WarehousingService;
|
|
|
import com.tld.util.DateUtil;
|
|
|
import com.tld.util.HttpClientUtil;
|
|
|
import org.redisson.api.RLock;
|
|
|
@@ -33,6 +34,9 @@ public class AskGoodsServiceImpl implements AskGoodsService {
|
|
|
//入库
|
|
|
@Autowired
|
|
|
private WarehousingMapper warehousingMapper;
|
|
|
+ //入库
|
|
|
+ @Autowired
|
|
|
+ private WarehousingService warehousingService;
|
|
|
@Autowired
|
|
|
private ErrorMapper errorMapper;
|
|
|
@Autowired
|
|
|
@@ -810,7 +814,7 @@ public class AskGoodsServiceImpl implements AskGoodsService {
|
|
|
String url = "https://erp4.teld.cn:8443/cwbase/sg/V1/ERP/TELD/TELD_WMS/TELD_API_WMS_StockManage/CreateBOLOutStock";
|
|
|
HttpClientUtil httpClientUtil1 = new HttpClientUtil();
|
|
|
Map<String, Object> result = httpClientUtil1.doPost(url, returnData);
|
|
|
-
|
|
|
+ System.out.println("返回信息为:"+result.toString());
|
|
|
//
|
|
|
Error error = new Error();
|
|
|
if(Integer.parseInt(result.get("msg").toString()) != 200){
|
|
|
@@ -980,6 +984,7 @@ public class AskGoodsServiceImpl implements AskGoodsService {
|
|
|
String url = "https://erp4.teld.cn:8443/cwbase/sg/V1/ERP/TELD/TELD_WMS/TELD_API_WMS_StockManage/CreateGMReqOutStock";
|
|
|
HttpClientUtil httpClientUtil1 = new HttpClientUtil();
|
|
|
Map<String, Object> result = httpClientUtil1.doPost(url, returnData);
|
|
|
+ System.out.println("返回信息为:"+result.toString());
|
|
|
Error error = new Error();
|
|
|
if (Integer.parseInt(result.get("msg").toString()) != 200) {
|
|
|
//如果失败存入报错信息跟数据
|
|
|
@@ -1103,6 +1108,7 @@ public class AskGoodsServiceImpl implements AskGoodsService {
|
|
|
String url = "https://erp4.teld.cn:8443/cwbase/sg/V1/ERP/TELD/TELD_WMS/TELD_API_WMS_StockManage/CreateGRReqInStock";
|
|
|
HttpClientUtil httpClientUtil1 = new HttpClientUtil();
|
|
|
Map<String, Object> result = httpClientUtil1.doPost(url, returnData);
|
|
|
+ System.out.println("返回信息为:"+result.toString());
|
|
|
Error error = new Error();
|
|
|
if (Integer.parseInt(result.get("msg").toString()) != 200) {
|
|
|
//如果失败存入报错信息跟数据
|
|
|
@@ -1224,6 +1230,7 @@ public class AskGoodsServiceImpl implements AskGoodsService {
|
|
|
HttpClientUtil httpClientUtil1 = new HttpClientUtil();
|
|
|
Map<String, Object> result = httpClientUtil1.doPost(url, returnData);
|
|
|
System.out.println("result:" + result);
|
|
|
+ System.out.println("返回信息为:"+result.toString());
|
|
|
Error error = new Error();
|
|
|
if (Integer.parseInt(result.get("msg").toString()) != 200) {
|
|
|
//如果失败存入报错信息跟数据
|
|
|
@@ -1343,6 +1350,7 @@ public class AskGoodsServiceImpl implements AskGoodsService {
|
|
|
HttpClientUtil httpClientUtil1 = new HttpClientUtil();
|
|
|
Map<String, Object> result = httpClientUtil1.doPost(url, returnData);
|
|
|
System.out.println("result:" + result);
|
|
|
+ System.out.println("返回信息为:"+result.toString());
|
|
|
Error error = new Error();
|
|
|
if (Integer.parseInt(result.get("msg").toString()) != 200) {
|
|
|
//如果失败存入报错信息跟数据
|
|
|
@@ -1463,6 +1471,7 @@ public class AskGoodsServiceImpl implements AskGoodsService {
|
|
|
String url = "https://erp4.teld.cn:8443/cwbase/sg/V1/ERP/TELD/TELD_WMS/TELD_API_WMS_StockManage/CreateOtherOutStock";
|
|
|
Map<String, Object> result = httpClientUtil1.doPost(url, returnData);
|
|
|
System.out.println("result:" + result);
|
|
|
+ System.out.println("返回信息为:"+result.toString());
|
|
|
Error error = new Error();
|
|
|
if (Integer.parseInt(result.get("msg").toString()) != 200) {
|
|
|
//如果失败存入报错信息跟数据
|
|
|
@@ -1542,6 +1551,16 @@ public class AskGoodsServiceImpl implements AskGoodsService {
|
|
|
return map;
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public void test03() {
|
|
|
+ List<Map<String,Object>> mapList = askGoodsMapper.test03();
|
|
|
+ System.out.println("mapList:"+mapList);
|
|
|
+ //生产收货接口文档/报工单 w
|
|
|
+ for (Map<String, Object> map : mapList) {
|
|
|
+ CreateGRReqInStock(map.get("orderNumber").toString(),"李兆峰");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
@Override
|
|
|
public void test() {
|
|
|
AskGoods askGoods = new AskGoods();
|