|
|
|
@ -716,20 +716,20 @@ public class WarehousingStorageController {
|
|
|
|
|
//inventoryLogEntity.setRetailPrice();//零售价
|
|
|
|
|
inventoryLogService.saveOrUpdate(inventoryLogEntity);
|
|
|
|
|
}
|
|
|
|
|
if (entity.getWarehousingStorageType().equals("1")){
|
|
|
|
|
YunguanPurchaseInBoundModel yunguanPurchaseInBoundModel = warehousingStorageService.purchaseInBoundByYunGuan(id);
|
|
|
|
|
List<YunguanPurchaseInBoundModel> yunguanPurchaseProductInBoundModelList = warehousingStorageService.purchaseInBoundProductByYunGuanInfo(id);
|
|
|
|
|
for (YunguanPurchaseInBoundModel model : yunguanPurchaseProductInBoundModelList){
|
|
|
|
|
BeanMergeUtil.merge(model,yunguanPurchaseInBoundModel);
|
|
|
|
|
}
|
|
|
|
|
if (yunguanPurchaseProductInBoundModelList != null && yunguanPurchaseProductInBoundModelList.size()>0) {
|
|
|
|
|
JSONObject purchaseCode = HttpUtil.httpRequest("http://172.16.1.50:8020/fggj/pur/stoIn", "POST", JsonUtil.getObjectToString(yunguanPurchaseProductInBoundModelList));
|
|
|
|
|
if (ObjectUtil.isNotEmpty(purchaseCode)){
|
|
|
|
|
if (purchaseCode.get("code").equals("200")) {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// if (entity.getWarehousingStorageType().equals("1")){
|
|
|
|
|
// YunguanPurchaseInBoundModel yunguanPurchaseInBoundModel = warehousingStorageService.purchaseInBoundByYunGuan(id);
|
|
|
|
|
// List<YunguanPurchaseInBoundModel> yunguanPurchaseProductInBoundModelList = warehousingStorageService.purchaseInBoundProductByYunGuanInfo(id);
|
|
|
|
|
// for (YunguanPurchaseInBoundModel model : yunguanPurchaseProductInBoundModelList){
|
|
|
|
|
// BeanMergeUtil.merge(model,yunguanPurchaseInBoundModel);
|
|
|
|
|
// }
|
|
|
|
|
// if (yunguanPurchaseProductInBoundModelList != null && yunguanPurchaseProductInBoundModelList.size()>0) {
|
|
|
|
|
// JSONObject purchaseCode = HttpUtil.httpRequest("http://172.16.1.50:8020/fggj/pur/stoIn", "POST", JsonUtil.getObjectToString(yunguanPurchaseProductInBoundModelList));
|
|
|
|
|
// if (ObjectUtil.isNotEmpty(purchaseCode)){
|
|
|
|
|
// if (purchaseCode.get("code").equals("200")) {
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}catch(Exception e){
|
|
|
|
|