|
|
|
@ -250,8 +250,6 @@ public class SplitUnitServiceImpl implements SplitUnitService { |
|
|
|
} else { |
|
|
|
map.put("price", Double.toString(0)); |
|
|
|
depositoryRecordService.applicationInPlace(map,flagForApprovalPass); |
|
|
|
map.put("applicationInId", map.get("id")); |
|
|
|
map.remove("id"); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -284,8 +282,6 @@ public class SplitUnitServiceImpl implements SplitUnitService { |
|
|
|
} else { |
|
|
|
map.put("price", Double.toString(0)); |
|
|
|
result += depositoryRecordService.applicationInPlace(map,flagForApprovalPass); |
|
|
|
map.put("applicationInId", map.get("id")); |
|
|
|
map.remove("id"); |
|
|
|
Map<String, Object> paramForInventoryToPlace = new HashMap<>(); |
|
|
|
paramForInventoryToPlace.put("mid", map.get("newInMid")); |
|
|
|
paramForInventoryToPlace.put("pid", map.get("placeId")); |
|
|
|
@ -295,8 +291,6 @@ public class SplitUnitServiceImpl implements SplitUnitService { |
|
|
|
} else { |
|
|
|
map.put("price", Double.toString(0)); |
|
|
|
result += depositoryRecordService.applicationInPlace(map,flagForApprovalPass); |
|
|
|
map.put("applicationInId", map.get("id")); |
|
|
|
map.remove("id"); |
|
|
|
} |
|
|
|
} else { |
|
|
|
// 如果不大于设置的进制数量
|
|
|
|
@ -321,15 +315,11 @@ public class SplitUnitServiceImpl implements SplitUnitService { |
|
|
|
// 先插入一条库存记录用于后续操作
|
|
|
|
map.put("quantity", "0"); |
|
|
|
depositoryRecordService.applicationInPlace(map,flagForApprovalPass); |
|
|
|
map.put("applicationInId", map.get("id")); |
|
|
|
depositoryRecordMapper.deleteApplicationInRecordById(ObjectFormatUtil.toInteger(map.get("id"))); |
|
|
|
map.remove("id"); |
|
|
|
depositoryRecordMapper.deleteApplicationInRecordById(ObjectFormatUtil.toInteger(map.get("applicationInId"))); |
|
|
|
|
|
|
|
} else { |
|
|
|
// 如果没有父级
|
|
|
|
depositoryRecordService.applicationInPlace(map,flagForApprovalPass); |
|
|
|
map.put("applicationInId", map.get("id")); |
|
|
|
map.remove("id"); |
|
|
|
} |
|
|
|
Map<String, Object> paramForInventoryToPlace = new HashMap<>(); |
|
|
|
paramForInventoryToPlace.put("mid", map.get("newInMid")); |
|
|
|
@ -613,8 +603,6 @@ public class SplitUnitServiceImpl implements SplitUnitService { |
|
|
|
depositoryRecordService.applicationInPlace(map,false); |
|
|
|
// 删除入库订单
|
|
|
|
// depositoryRecordMapper.deleteApplicationInRecordById(ObjectFormatUtil.toInteger(map.get("id")));
|
|
|
|
map.put("applicationInId", map.get("id")); |
|
|
|
map.remove("id"); |
|
|
|
} |
|
|
|
} else { |
|
|
|
// 当前库存拆单记录与新入库的数目不大于预设的进制
|
|
|
|
@ -629,8 +617,6 @@ public class SplitUnitServiceImpl implements SplitUnitService { |
|
|
|
depositoryRecordService.applicationInPlace(map,false); |
|
|
|
// 删除入库订单
|
|
|
|
// depositoryRecordMapper.deleteApplicationInRecordById(ObjectFormatUtil.toInteger(map.get("id")));
|
|
|
|
map.put("applicationInId", map.get("id")); |
|
|
|
map.remove("id"); |
|
|
|
} |
|
|
|
} else { |
|
|
|
|
|
|
|
@ -665,8 +651,6 @@ public class SplitUnitServiceImpl implements SplitUnitService { |
|
|
|
depositoryRecordService.applicationInPlace(map,false); |
|
|
|
// 删除入库订单
|
|
|
|
// depositoryRecordMapper.deleteApplicationInRecordById(ObjectFormatUtil.toInteger(map.get("id")));
|
|
|
|
map.put("applicationInId", map.get("id")); |
|
|
|
map.remove("id"); |
|
|
|
} |
|
|
|
} else { |
|
|
|
// 如果不大于
|
|
|
|
@ -678,8 +662,6 @@ public class SplitUnitServiceImpl implements SplitUnitService { |
|
|
|
depositoryRecordService.applicationInPlace(map,false); |
|
|
|
// 删除入库订单
|
|
|
|
// depositoryRecordMapper.deleteApplicationInRecordById(ObjectFormatUtil.toInteger(map.get("id")));
|
|
|
|
map.put("applicationInId", map.get("id")); |
|
|
|
map.remove("id"); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|