|
@@ -246,7 +246,7 @@ public class AskGoodsServiceImpl implements AskGoodsService {
|
|
|
Inventory inventory = askGoodsMapper.getInventory(askGoods);
|
|
|
if(inventory == null){
|
|
|
// throw new Exception("库存不存在");
|
|
|
- System.out.println("库存不存在");
|
|
|
+// System.out.println("库存不存在");
|
|
|
continue;
|
|
|
}
|
|
|
//如果出库库存等于虚拟表库存则删除此库存
|
|
@@ -273,7 +273,7 @@ public class AskGoodsServiceImpl implements AskGoodsService {
|
|
|
}
|
|
|
//查询要货单父级信息
|
|
|
AskGoods askGoods3 = askGoodsMapper.getAskDetailedF(askGoodsId);
|
|
|
- if(askGoods3 != null){
|
|
|
+// if(askGoods3 != null){
|
|
|
ReturRemoval returRemoval1 = new ReturRemoval()
|
|
|
.setDocumentId(askGoods3.getAskGoodsId())
|
|
|
.setRemovalCode(removalCode)
|
|
@@ -281,9 +281,9 @@ public class AskGoodsServiceImpl implements AskGoodsService {
|
|
|
.setMoveType(askGoods3.getMoveType());
|
|
|
askGoodsMapper.addReturnGsRemovalF(returRemoval1);//新增返回gs数据父表信息
|
|
|
map.put("data", askGoods3.getAskGoodsId());
|
|
|
- } else {
|
|
|
- map.put("data", "0");
|
|
|
- }
|
|
|
+// } else {
|
|
|
+// map.put("data", "0");
|
|
|
+// }
|
|
|
|
|
|
map.put("msg", "200");
|
|
|
}catch (Exception e){
|
|
@@ -1586,9 +1586,12 @@ public class AskGoodsServiceImpl implements AskGoodsService {
|
|
|
for(Map<String, Object> map : list1){
|
|
|
Map<String, Object> map1 = OutOfLibrary("1111", "计划出库", map.get("ask_goods_id").toString());
|
|
|
System.out.println(map1.get("data"));
|
|
|
-// if(map1.get("data") != null){
|
|
|
+ if(map1.get("data") != null){
|
|
|
+ System.out.println("-------------------------------------");
|
|
|
+ System.out.println("测试");
|
|
|
+ System.out.println("-------------------------------------");
|
|
|
plugOutRemoval(map1.get("data").toString(), "王孝苗");
|
|
|
-// }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|