|
|
|
|
@ -89,14 +89,15 @@ public class WmsRawMaterialOutServiceImpl implements IWmsRawMaterialOutService {
|
|
|
|
|
public AjaxResult submitTransferMaterialList(OdsProcureOutOrder params) {
|
|
|
|
|
|
|
|
|
|
//更新出库单及新增出库明细
|
|
|
|
|
updateOdsProcureOutOrder(params);
|
|
|
|
|
List<String> ids = updateOdsProcureOutOrder(params);
|
|
|
|
|
|
|
|
|
|
//获取已完成,但没有过账的转储物料
|
|
|
|
|
BatchProductionMaterialQuery query = new BatchProductionMaterialQuery();
|
|
|
|
|
query.setUserDefined3("ZC");
|
|
|
|
|
query.setUserDefined3(params.getUserDefined3());
|
|
|
|
|
query.setOrderStatus("3");
|
|
|
|
|
query.setActive("1");
|
|
|
|
|
query.setUserDefined10("1");
|
|
|
|
|
query.setIds(ids);
|
|
|
|
|
List<OdsProcureOutOrder> orderList = odsProcureOutOrderMapper.getBatchProductionMaterialList(query);
|
|
|
|
|
|
|
|
|
|
if (orderList.isEmpty()){
|
|
|
|
|
@ -125,7 +126,7 @@ public class WmsRawMaterialOutServiceImpl implements IWmsRawMaterialOutService {
|
|
|
|
|
@DS("#header.poolName")
|
|
|
|
|
public AjaxResult submitReverseMaterialList(OdsProcureOutOrder params) {
|
|
|
|
|
//更新出库单及新增出库明细
|
|
|
|
|
updateOdsProcureOutOrder(params);
|
|
|
|
|
List<String> ids = updateOdsProcureOutOrder(params);
|
|
|
|
|
|
|
|
|
|
//获取已完成,但没有过账的反冲物料
|
|
|
|
|
BatchProductionMaterialQuery query = new BatchProductionMaterialQuery();
|
|
|
|
|
@ -133,6 +134,7 @@ public class WmsRawMaterialOutServiceImpl implements IWmsRawMaterialOutService {
|
|
|
|
|
query.setOrderStatus("3");
|
|
|
|
|
query.setActive("1");
|
|
|
|
|
query.setUserDefined10("1");
|
|
|
|
|
query.setIds(ids);
|
|
|
|
|
List<OdsProcureOutOrder> orderList = odsProcureOutOrderMapper.getBatchProductionMaterialList(query);
|
|
|
|
|
if (orderList.isEmpty()){
|
|
|
|
|
return AjaxResult.success();
|
|
|
|
|
@ -155,11 +157,14 @@ public class WmsRawMaterialOutServiceImpl implements IWmsRawMaterialOutService {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//更新出库单及出库明细
|
|
|
|
|
private void updateOdsProcureOutOrder(OdsProcureOutOrder params) {
|
|
|
|
|
private List<String> updateOdsProcureOutOrder(OdsProcureOutOrder params) {
|
|
|
|
|
List<OdsProcureOutOrder> orderList = params.getOrderList();
|
|
|
|
|
|
|
|
|
|
List<String> ids = new ArrayList<>();
|
|
|
|
|
|
|
|
|
|
//遍历列表
|
|
|
|
|
for (OdsProcureOutOrder order : orderList) {
|
|
|
|
|
ids.add(order.getID());
|
|
|
|
|
//计划数量
|
|
|
|
|
BigDecimal planQty = order.getPlanNumber();
|
|
|
|
|
//已出数量
|
|
|
|
|
@ -206,6 +211,7 @@ public class WmsRawMaterialOutServiceImpl implements IWmsRawMaterialOutService {
|
|
|
|
|
order.setUserDefined2(null);
|
|
|
|
|
odsProcureOutOrderMapper.insertWmsRawMissionOut(order);
|
|
|
|
|
}
|
|
|
|
|
return ids;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//过账信息处理
|
|
|
|
|
|