Merge branch 'dev' into dev_WMS20260401
# Conflicts: # mhd_wms/src/main/java/com/mhd/wms/domain/shelfMaterialDetail/repository/persistence/ShelfMaterialDetailImpl.java
This commit is contained in:
+2
-2
@@ -230,6 +230,7 @@ public class BusinessDocumentOrderImpl extends ServiceImpl<BusinessDocumentOrder
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public Boolean executeAndIssue(List<Long> ids,Long organizationId) {
|
||||
LoginUser loginUser = SecurityUtils.getLoginUser();//获取登录人
|
||||
String orgName = executeOrderMapper.getOrgNameByOrgId(organizationId);
|
||||
try {
|
||||
for (Long id:ids){
|
||||
BusinessDocumentOrder businessDocumentOrder=businessDocumentOrderMapper.selectById(id);
|
||||
@@ -283,6 +284,7 @@ public class BusinessDocumentOrderImpl extends ServiceImpl<BusinessDocumentOrder
|
||||
executeOrder.setIssueName(loginUser.getWlhyLoginUser().getRealname());
|
||||
executeOrder.setUpdateByName(loginUser.getWlhyLoginUser().getRealname());
|
||||
executeOrder.setOrderStatus(1L);
|
||||
executeOrder.setBusinessUnit(orgName);
|
||||
executeOrderMapper.updateById(executeOrder);
|
||||
|
||||
//下发到tms
|
||||
@@ -360,8 +362,6 @@ public class BusinessDocumentOrderImpl extends ServiceImpl<BusinessDocumentOrder
|
||||
tmsOrderAddDTO.setOrderSource("0");
|
||||
tmsOrderAddDTO.setOrganizationId(organizationId);
|
||||
tmsOrderAddDTO.setLoginUser(loginUser);
|
||||
String orgName = executeOrderMapper.getOrgNameByOrgId(organizationId);
|
||||
|
||||
tmsOrderAddDTO.setOrganizationName(orgName);
|
||||
|
||||
AjaxResult ajaxResult=wlhyServiceFeign.add(tmsOrderAddDTO);
|
||||
|
||||
@@ -140,5 +140,8 @@ public class ExecuteOrder extends BaseVOEntity{
|
||||
@ApiModelProperty("备注")
|
||||
private String shippingNote;
|
||||
|
||||
@ApiModelProperty("业务单元")
|
||||
private String businessUnit;
|
||||
|
||||
|
||||
}
|
||||
|
||||
+3
-1
@@ -119,6 +119,7 @@ public class ExecuteOrderImpl extends ServiceImpl<ExecuteOrderMapper, ExecuteOrd
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public Boolean issueDocuments(List<Long> ids,Long organizationId) {
|
||||
LoginUser loginUser = SecurityUtils.getLoginUser();//获取登录人
|
||||
String orgName = executeOrderMapper.getOrgNameByOrgId(organizationId);
|
||||
for (Long id:ids){
|
||||
ExecuteOrder executeOrder=executeOrderMapper.selectById(id);
|
||||
if (ObjectUtil.isNotNull(executeOrder)){
|
||||
@@ -128,6 +129,7 @@ public class ExecuteOrderImpl extends ServiceImpl<ExecuteOrderMapper, ExecuteOrd
|
||||
executeOrder.setIssueName(loginUser.getWlhyLoginUser().getRealname());
|
||||
executeOrder.setUpdateByName(loginUser.getWlhyLoginUser().getRealname());
|
||||
executeOrder.setOrderStatus(1L);
|
||||
executeOrder.setBusinessUnit(orgName);
|
||||
executeOrderMapper.updateById(executeOrder);
|
||||
//下发到tms
|
||||
TmsOrderAddDTO tmsOrderAddDTO=new TmsOrderAddDTO();
|
||||
@@ -205,7 +207,7 @@ public class ExecuteOrderImpl extends ServiceImpl<ExecuteOrderMapper, ExecuteOrd
|
||||
tmsOrderAddDTO.setOrderSource("0");
|
||||
tmsOrderAddDTO.setOrganizationId(organizationId);
|
||||
tmsOrderAddDTO.setLoginUser(loginUser);
|
||||
String orgName = executeOrderMapper.getOrgNameByOrgId(organizationId);
|
||||
|
||||
|
||||
tmsOrderAddDTO.setOrganizationName(orgName);
|
||||
|
||||
|
||||
+3
@@ -197,6 +197,9 @@ public class ExecuteOrderPO extends BaseVOEntity{
|
||||
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
|
||||
private String salesmanName;
|
||||
|
||||
@ApiModelProperty("业务单元")
|
||||
private String businessUnit;
|
||||
|
||||
@ApiModelProperty("业务单货物集合")
|
||||
private List<BusinessDocumentCargoMulti> businessDocumentCargoMultiList;
|
||||
|
||||
|
||||
+3
@@ -141,4 +141,7 @@ public class ExecuteOrderDO extends BaseVOEntity{
|
||||
|
||||
@ApiModelProperty("备注")
|
||||
private String shippingNote;
|
||||
|
||||
@ApiModelProperty("业务单元")
|
||||
private String businessUnit;
|
||||
}
|
||||
|
||||
+4
-4
@@ -498,10 +498,10 @@ public class ReservationMaterialInventoryImpl extends ServiceImpl<ReservationMat
|
||||
BigDecimal oldFreezeQuantity = materialInventoryPO.getFreezeQuantity();
|
||||
oldFreezeQuantity = oldFreezeQuantity != null ? oldFreezeQuantity : BigDecimal.ZERO;
|
||||
//扣减后库存数量
|
||||
BigDecimal newInventoryQuantity = oldInventoryQuantity.subtract(quantity);
|
||||
BigDecimal newInventoryQuantity = oldInventoryQuantity.add(quantity);
|
||||
//扣减后可用数量
|
||||
BigDecimal newAllocationQuantity = oldAllocationQuantity.subtract(quantity);
|
||||
BigDecimal newFreezeQuantity = oldFreezeQuantity.subtract(quantity);
|
||||
BigDecimal newAllocationQuantity = oldAllocationQuantity.add(quantity);
|
||||
BigDecimal newFreezeQuantity = oldFreezeQuantity.add(quantity);
|
||||
|
||||
|
||||
|
||||
@@ -522,7 +522,7 @@ public class ReservationMaterialInventoryImpl extends ServiceImpl<ReservationMat
|
||||
BigDecimal newNetWeight = oldNetWeight.add(netWeight);
|
||||
|
||||
materialInventoryPO.setInventoryQuantity(newInventoryQuantity);
|
||||
//materialInventoryPO.setAllocationQuantity(materialInventoryPO.getAllocationQuantity());
|
||||
materialInventoryPO.setAllocationQuantity(newAllocationQuantity);
|
||||
materialInventoryPO.setFreezeQuantity(newFreezeQuantity);
|
||||
materialInventoryPO.setArea(newArea);
|
||||
materialInventoryPO.setVolume(newVolume);
|
||||
|
||||
@@ -134,4 +134,7 @@ public class ExecuteOrderDTO extends BaseVOEntity{
|
||||
|
||||
@ApiModelProperty("预计出发日期")
|
||||
private Date layDate;
|
||||
|
||||
@ApiModelProperty("业务单元")
|
||||
private String businessUnit;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user