ow bug修改;

This commit is contained in:
王奎兴
2026-06-16 18:41:23 +08:00
parent 7f72ba410b
commit 4e00c8d5d5
2 changed files with 5 additions and 1 deletions
@@ -23,6 +23,7 @@ import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.CollectionUtils;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
@@ -142,6 +143,9 @@ public class ReserveOutMaterialDetailImpl extends ServiceImpl<ReserveOutMaterial
for (ReserveOutMaterialDetailDO outMaterialDetailDO : outMaterialDetailDOList){
ReserveOutMaterialDetail outMaterialDetail = new ReserveOutMaterialDetail();
BeanUtils.copyProperties(outMaterialDetailDO, outMaterialDetail);
BigDecimal allocationQuantity = outMaterialDetail.getAllocationQuantity();
outMaterialDetail.setStockQuantity(allocationQuantity);
outMaterialDetail.setAllocationQuantity(BigDecimal.ZERO);
outMaterialDetail.setUniqueId(idGenerator.snowflakeId(SnowFlakeConstants.wmsId));
outMaterialDetail.setOutOrderNumber(outOrderNumber);
outMaterialDetail.setTopOrganizationId(loginUser.getUserPo().getOrganizationId());
@@ -149,7 +149,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
update "NGWL_TEST_OMS".RESERVATION_STOCK_IN_ORDER set ISSUE_STATUS = #{status},in_quantity = #{shelvesQuantity},STORAGE_TIME = CURRENT_TIMESTAMP where IN_ORDER_NUMBER = #{orderNumber}
</update>
<update id="updateOmsReserveOrder">
update "NGWL_TEST_OMS".RESERVE_STOCK_IN_ORDER set in_quantity = #{shelvesQuantity} where IN_ORDER_NUMBER = #{orderNumber}
update "NGWL_TEST_OMS".RESERVE_STOCK_IN_ORDER set in_quantity = #{shelvesQuantity},STORAGE_TIME = CURRENT_TIMESTAMP where IN_ORDER_NUMBER = #{orderNumber}
</update>
<update id="updateOmsDocument">
update "NGWL_TEST_OMS".RESERVATION_IN_MATERIAL_DETAIL set INBOUND_ITEMS = #{shelvesQuantity}, TOTAL_NET_WEIGHT= #{totalNetWeight},STORAGE_TIME = CURRENT_TIMESTAMP where MATERIAL_DETAIL_ID = #{omsInMaterialDetail}