|
|
@ -10,6 +10,8 @@ import cn.estsh.i3plus.pojo.base.bean.DdlPackBean;
|
|
|
|
import cn.estsh.i3plus.pojo.base.enumutil.CommonEnumUtil;
|
|
|
|
import cn.estsh.i3plus.pojo.base.enumutil.CommonEnumUtil;
|
|
|
|
import cn.estsh.i3plus.pojo.base.tool.DdlPreparedPack;
|
|
|
|
import cn.estsh.i3plus.pojo.base.tool.DdlPreparedPack;
|
|
|
|
import cn.estsh.i3plus.pojo.mes.bean.*;
|
|
|
|
import cn.estsh.i3plus.pojo.mes.bean.*;
|
|
|
|
|
|
|
|
import cn.estsh.i3plus.pojo.mes.bean.shipping.MesShippingOrderManagement;
|
|
|
|
|
|
|
|
import cn.estsh.i3plus.pojo.mes.bean.shipping.MesShippingOrderManagementDetail;
|
|
|
|
import cn.estsh.i3plus.pojo.mes.repository.*;
|
|
|
|
import cn.estsh.i3plus.pojo.mes.repository.*;
|
|
|
|
import cn.estsh.i3plus.pojo.mes.util.MesExtEnumUtil;
|
|
|
|
import cn.estsh.i3plus.pojo.mes.util.MesExtEnumUtil;
|
|
|
|
import cn.estsh.impp.framework.boot.auth.AuthUtil;
|
|
|
|
import cn.estsh.impp.framework.boot.auth.AuthUtil;
|
|
|
@ -124,7 +126,7 @@ public class MesShippingOrderManagementService extends BaseMesService<MesShippin
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bean.setCustDockCode(customerDock.getCustDockCode());
|
|
|
|
bean.setCustDockCode(customerDock.getCustDockCode());
|
|
|
|
bean.setPartShippingId(partShippingGroup.getId());
|
|
|
|
bean.setPartShippingGroupId(partShippingGroup.getId());
|
|
|
|
bean.setShippingType(MesExtEnumUtil.SHIPPING_ORDER_TYPE.SORT_SHIPPING.getValue());
|
|
|
|
bean.setShippingType(MesExtEnumUtil.SHIPPING_ORDER_TYPE.SORT_SHIPPING.getValue());
|
|
|
|
bean.setIsLoading(partShippingGroup.getIsLoading());
|
|
|
|
bean.setIsLoading(partShippingGroup.getIsLoading());
|
|
|
|
bean.setIsFirstInstall(partShippingGroup.getIsFirstInstall());
|
|
|
|
bean.setIsFirstInstall(partShippingGroup.getIsFirstInstall());
|
|
|
@ -156,7 +158,7 @@ public class MesShippingOrderManagementService extends BaseMesService<MesShippin
|
|
|
|
detail.setUnit(part.getUnit());
|
|
|
|
detail.setUnit(part.getUnit());
|
|
|
|
detail.setCustPartNo(k.getCustPartNo());
|
|
|
|
detail.setCustPartNo(k.getCustPartNo());
|
|
|
|
detail.setPlanQty(1);
|
|
|
|
detail.setPlanQty(1);
|
|
|
|
detail.setShippingId(finalBean.getId());
|
|
|
|
detail.setPid(finalBean.getId());
|
|
|
|
// detail.setActualQty(1);
|
|
|
|
// detail.setActualQty(1);
|
|
|
|
detail.setShippingCode(finalBean.getShippingCode());
|
|
|
|
detail.setShippingCode(finalBean.getShippingCode());
|
|
|
|
detail.setOrganizeCode(k.getOrganizeCode());
|
|
|
|
detail.setOrganizeCode(k.getOrganizeCode());
|
|
|
@ -235,7 +237,7 @@ public class MesShippingOrderManagementService extends BaseMesService<MesShippin
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bean.setCustDockCode(customerDock.getCustDockCode());
|
|
|
|
bean.setCustDockCode(customerDock.getCustDockCode());
|
|
|
|
bean.setPartShippingId(partShippingGroup.getId());
|
|
|
|
bean.setPartShippingGroupId(partShippingGroup.getId());
|
|
|
|
bean.setShippingType(MesExtEnumUtil.SHIPPING_ORDER_TYPE.SORT_SHIPPING.getValue());
|
|
|
|
bean.setShippingType(MesExtEnumUtil.SHIPPING_ORDER_TYPE.SORT_SHIPPING.getValue());
|
|
|
|
bean.setIsLoading(partShippingGroup.getIsLoading());
|
|
|
|
bean.setIsLoading(partShippingGroup.getIsLoading());
|
|
|
|
bean.setIsFirstInstall(partShippingGroup.getIsFirstInstall());
|
|
|
|
bean.setIsFirstInstall(partShippingGroup.getIsFirstInstall());
|
|
|
@ -270,7 +272,7 @@ public class MesShippingOrderManagementService extends BaseMesService<MesShippin
|
|
|
|
detail.setUnit(part.getUnit());
|
|
|
|
detail.setUnit(part.getUnit());
|
|
|
|
detail.setCustPartNo(k.getCustPartNo());
|
|
|
|
detail.setCustPartNo(k.getCustPartNo());
|
|
|
|
detail.setPlanQty(1);
|
|
|
|
detail.setPlanQty(1);
|
|
|
|
detail.setShippingId(originBean.getId());
|
|
|
|
detail.setPid(originBean.getId());
|
|
|
|
detail.setShippingCode(originBean.getShippingCode());
|
|
|
|
detail.setShippingCode(originBean.getShippingCode());
|
|
|
|
detail.setOrganizeCode(k.getOrganizeCode());
|
|
|
|
detail.setOrganizeCode(k.getOrganizeCode());
|
|
|
|
detail.setStatus(MesExtEnumUtil.SHIPPING_ORDER_STATUS.CREATE.getValue());
|
|
|
|
detail.setStatus(MesExtEnumUtil.SHIPPING_ORDER_STATUS.CREATE.getValue());
|
|
|
@ -333,7 +335,7 @@ public class MesShippingOrderManagementService extends BaseMesService<MesShippin
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
DdlPackBean packBean = DdlPackBean.getDdlPackBean(item.getOrganizeCode());
|
|
|
|
DdlPackBean packBean = DdlPackBean.getDdlPackBean(item.getOrganizeCode());
|
|
|
|
DdlPreparedPack.getStringEqualPack(item.getSeq(), "seq", packBean);
|
|
|
|
DdlPreparedPack.getNumEqualPack(item.getSeq(), "seq", packBean);
|
|
|
|
boolean flg1 = baseRDao.isExitByHql(packBean);
|
|
|
|
boolean flg1 = baseRDao.isExitByHql(packBean);
|
|
|
|
if (flg1) {
|
|
|
|
if (flg1) {
|
|
|
|
throw ImppExceptionBuilder.newInstance()
|
|
|
|
throw ImppExceptionBuilder.newInstance()
|
|
|
@ -369,7 +371,7 @@ public class MesShippingOrderManagementService extends BaseMesService<MesShippin
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
DdlPackBean packBean = DdlPackBean.getDdlPackBean(item.getOrganizeCode());
|
|
|
|
DdlPackBean packBean = DdlPackBean.getDdlPackBean(item.getOrganizeCode());
|
|
|
|
DdlPreparedPack.getStringEqualPack(item.getSeq(), "seq", packBean);
|
|
|
|
DdlPreparedPack.getNumEqualPack(item.getSeq(), "seq", packBean);
|
|
|
|
DdlPreparedPack.getNumNOEqualPack(item.getId(), "id", packBean);
|
|
|
|
DdlPreparedPack.getNumNOEqualPack(item.getId(), "id", packBean);
|
|
|
|
boolean flg1 = baseRDao.isExitByHql(packBean);
|
|
|
|
boolean flg1 = baseRDao.isExitByHql(packBean);
|
|
|
|
if (flg1) {
|
|
|
|
if (flg1) {
|
|
|
|