|
|
@@ -23,6 +23,7 @@ import com.dk.mdm.mapper.sale.OrderMapper;
|
|
|
import com.dk.mdm.model.pojo.ivt.Outbound;
|
|
|
import com.dk.mdm.model.pojo.ivt.OutboundItem;
|
|
|
import com.dk.mdm.model.pojo.mst.Customer;
|
|
|
+import com.dk.mdm.model.pojo.pur.PurchaseItem;
|
|
|
import com.dk.mdm.model.pojo.sale.MultiOwner;
|
|
|
import com.dk.mdm.model.pojo.sale.Order;
|
|
|
import com.dk.mdm.model.pojo.sale.OrderItem;
|
|
|
@@ -32,6 +33,7 @@ import com.dk.mdm.model.response.ivt.OutboundItemResponse;
|
|
|
import com.dk.mdm.model.response.ivt.OutboundResponse;
|
|
|
import com.dk.mdm.model.response.sale.OrderItemResponse;
|
|
|
import com.dk.mdm.model.response.sale.OrderResponse;
|
|
|
+import com.dk.mdm.model.vo.ivt.InboundItemVO;
|
|
|
import com.dk.mdm.model.vo.ivt.OutboundItemVO;
|
|
|
import com.dk.mdm.model.vo.ivt.OutboundVO;
|
|
|
import com.dk.mdm.service.common.CommonService;
|
|
|
@@ -183,7 +185,7 @@ public class OutboundSaleOrderService extends BaseService<Outbound> {
|
|
|
}
|
|
|
//入库状态
|
|
|
String outStatus = this.setOutStatus(orderResponse.getOutingQty().add(order.getOutingQty()),
|
|
|
- orderResponse.getOutQty().add(order.getOutQty()),orderResponse.getSumQuantity());
|
|
|
+ orderResponse.getOutQty().add(order.getOutQty()), orderResponse.getSumQuantity());
|
|
|
order.setOutStatus(outStatus);
|
|
|
//修改
|
|
|
int countRow = orderMapper.updateById(order);
|
|
|
@@ -254,7 +256,7 @@ public class OutboundSaleOrderService extends BaseService<Outbound> {
|
|
|
}
|
|
|
//入库状态
|
|
|
String outStatus = this.setOutStatus(orderItemResponse.getOutingQty().add(orderItem.getOutingQty()),
|
|
|
- orderItemResponse.getOutQty().add(orderItem.getOutQty()),orderItemResponse.getItemQty());
|
|
|
+ orderItemResponse.getOutQty().add(orderItem.getOutQty()), orderItemResponse.getItemQty());
|
|
|
orderItem.setOutStatus(outStatus);
|
|
|
//修改
|
|
|
int countRow = orderItemMapper.updateById(orderItem);
|
|
|
@@ -354,26 +356,58 @@ public class OutboundSaleOrderService extends BaseService<Outbound> {
|
|
|
outboundItemVO.setOutAmt(outboundItemVO.getOutAmt());
|
|
|
//endregion
|
|
|
|
|
|
- //赋值
|
|
|
- OutboundItem outboundItem = new OutboundItem();
|
|
|
- outboundItem.setItemId(outboundItemVO.getItemId());
|
|
|
- outboundItem.setOutQty(outboundItemVO.getOutingQty());
|
|
|
- outboundItem.setOutAmt(outboundItemVO.getOutingAmt());
|
|
|
- outboundItem.setCostPrice(outboundItemVO.getPriceOut());
|
|
|
- outboundItem.setCostAmt(outboundItemVO.getOutQty().multiply(outboundItemVO.getPriceOut()).setScale(6, BigDecimal.ROUND_HALF_UP));
|
|
|
- //修改
|
|
|
- outboundItemMapper.update(outboundItem,
|
|
|
- new UpdateWrapper<OutboundItem>().lambda()
|
|
|
- .eq(OutboundItem::getItemId, UUID.fromString(outboundItem.getItemId()))
|
|
|
- );
|
|
|
+ //region 编辑明细
|
|
|
+ if (outboundItemVO.getItemId() != null) {
|
|
|
+ OutboundItem outboundItem = new OutboundItem();
|
|
|
+ outboundItem.setItemId(outboundItemVO.getItemId());
|
|
|
+ outboundItem.setOutQty(outboundItemVO.getOutingQty());
|
|
|
+ outboundItem.setOutAmt(outboundItemVO.getOutingAmt());
|
|
|
+ outboundItem.setCostPrice(outboundItemVO.getPriceOut());
|
|
|
+ outboundItem.setCostAmt(outboundItemVO.getOutQty().multiply(outboundItemVO.getPriceOut()).setScale(6, BigDecimal.ROUND_HALF_UP));
|
|
|
+ //修改
|
|
|
+ outboundItemMapper.update(outboundItem,
|
|
|
+ new UpdateWrapper<OutboundItem>().lambda()
|
|
|
+ .eq(OutboundItem::getItemId, UUID.fromString(outboundItem.getItemId()))
|
|
|
+ );
|
|
|
+ }
|
|
|
+ //endregion
|
|
|
+
|
|
|
+ //region 新建明细
|
|
|
+ else {
|
|
|
+ outboundItemVO
|
|
|
+ .setOutId(outboundItemVO.getOutId())
|
|
|
+ .setOutQty(outboundItemVO.getOutingQty())
|
|
|
+ .setOutAmt(outboundItemVO.getOutingAmt())
|
|
|
+ .setOutingQty(BigDecimal.ZERO)
|
|
|
+ .setOutingAmt(BigDecimal.ZERO)
|
|
|
+ .setCostPrice(outboundItemVO.getPriceOut())
|
|
|
+ .setCostAmt(outboundItemVO.getOutQty().multiply(outboundItemVO.getPriceOut()).setScale(2, BigDecimal.ROUND_HALF_UP))
|
|
|
+ .setOutType(Constant.OutType.SALE.getName())
|
|
|
+ ;
|
|
|
+ //出库状态
|
|
|
+ String outStatus = this.setOutStatus(outboundItemVO.getOutingQty(), outboundItemVO.getOutQty());
|
|
|
+ outboundItemVO.setOutStatus(outStatus);
|
|
|
+ //实体转换
|
|
|
+ OutboundItem outboundItem = outboundItemConvert.convertToPo(outboundItemVO);
|
|
|
+ //新建
|
|
|
+ outboundItemMapper.insert(outboundItem);
|
|
|
+ }
|
|
|
+ //endregion
|
|
|
|
|
|
//region 销售明细
|
|
|
if (outboundItemVO.getFromItemId() != null) {
|
|
|
//根据id查询
|
|
|
+ OrderItemResponse orderItemResponse = orderItemMapper.selectById(outboundItemVO.getFromItemId());
|
|
|
OrderItem orderItem = new OrderItem();
|
|
|
orderItem.setItemId(outboundItemVO.getFromItemId());
|
|
|
orderItem.setOutQty(outboundItemResponse.getOutQty().negate().add(outboundItemVO.getOutingQty()));
|
|
|
orderItem.setOutAmt(outboundItemResponse.getOutAmt().negate().add(outboundItemVO.getOutingAmt()));
|
|
|
+ orderItem.setOutingQty(outboundItemVO.getOutQty());
|
|
|
+ orderItem.setOutingAmt(outboundItemVO.getOutAmt());
|
|
|
+ //出库状态
|
|
|
+ String outStatus = this.setOutStatus(orderItemResponse.getOutingQty().add(orderItem.getOutingQty()),
|
|
|
+ orderItemResponse.getOutQty().add(orderItem.getOutQty()), orderItemResponse.getItemQty());
|
|
|
+ orderItem.setOutStatus(outStatus);
|
|
|
int countRow = orderItemMapper.updateById(orderItem);
|
|
|
//数量超出
|
|
|
if (countRow == 0) {
|
|
|
@@ -384,6 +418,47 @@ public class OutboundSaleOrderService extends BaseService<Outbound> {
|
|
|
}
|
|
|
//endregion
|
|
|
|
|
|
+ //region 删除明细
|
|
|
+ BigDecimal delOutQty = BigDecimal.ZERO;
|
|
|
+ BigDecimal delOutAmt = BigDecimal.ZERO;
|
|
|
+ if (outboundVO.getDeleteItemList() != null) {
|
|
|
+ delOutQty = outboundVO.getDeleteItemList().stream().map(OutboundItemVO::getOutQty).reduce(BigDecimal.ZERO, BigDecimal::add).setScale(6, BigDecimal.ROUND_HALF_UP);
|
|
|
+ delOutAmt = outboundVO.getDeleteItemList().stream().map(OutboundItemVO::getOutAmt).reduce(BigDecimal.ZERO, BigDecimal::add).setScale(2, BigDecimal.ROUND_HALF_UP);
|
|
|
+ for (OutboundItemVO outboundItemVO : outboundVO.getDeleteItemList()) {
|
|
|
+ if (outboundItemVO.getItemId() != null) {
|
|
|
+ OutboundItem outboundItem = outboundItemConvert.convertToPo(outboundItemVO);
|
|
|
+ outboundItem.setFlgValid(false);
|
|
|
+ //修改
|
|
|
+ outboundItemMapper.update(outboundItem,
|
|
|
+ new UpdateWrapper<OutboundItem>().lambda()
|
|
|
+ .eq(OutboundItem::getItemId, UUID.fromString(outboundItem.getItemId()))
|
|
|
+ );
|
|
|
+ }
|
|
|
+ //region 销售明细
|
|
|
+ if (outboundItemVO.getFromItemId() != null) {
|
|
|
+ //根据id查询
|
|
|
+ OrderItemResponse orderItemResponse = orderItemMapper.selectById(outboundItemVO.getFromItemId());
|
|
|
+ OrderItem orderItem = new OrderItem();
|
|
|
+ orderItem.setItemId(outboundItemVO.getFromItemId());
|
|
|
+ orderItem.setOutQty(outboundItemVO.getOutQty().negate());
|
|
|
+ orderItem.setOutAmt(outboundItemVO.getOutAmt().negate());
|
|
|
+ orderItem.setOutingQty(outboundItemVO.getOutQty());
|
|
|
+ orderItem.setOutingAmt(outboundItemVO.getOutQty());
|
|
|
+ //出库状态
|
|
|
+ String outStatus = this.setOutStatus(orderItemResponse.getOutingQty().add(orderItem.getOutingQty()),
|
|
|
+ orderItemResponse.getOutQty().add(orderItem.getOutQty()), orderItemResponse.getItemQty());
|
|
|
+ orderItem.setOutStatus(outStatus);
|
|
|
+ int countRow = orderItemMapper.updateById(orderItem);
|
|
|
+ //数量超出
|
|
|
+ if (countRow == 0) {
|
|
|
+ throw new BaseBusinessException(ResponseCodeEnum.OPERATE_FAIL.getCode(), ErrorCodeEnum.INVENTORY_QUANTITY_EXCEEDED_OUTBOUND.getMessage());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ //endregion
|
|
|
+ }
|
|
|
+ }
|
|
|
+ //endregion
|
|
|
+
|
|
|
//region 修改出库总单
|
|
|
Outbound outbound = new Outbound();
|
|
|
outbound.setOutId(outboundVO.getOutId());
|
|
|
@@ -395,17 +470,26 @@ public class OutboundSaleOrderService extends BaseService<Outbound> {
|
|
|
);
|
|
|
//endregion
|
|
|
|
|
|
-
|
|
|
//region 修改销售总单
|
|
|
- Order order = new Order();
|
|
|
- order.setOrderId(outboundVO.getFromId());
|
|
|
- order.setOutQty(outboundResponse.getOutQty().negate().add(sumQty));
|
|
|
- order.setOutAmt(outboundResponse.getOutAmt().negate().add(sumAmt));
|
|
|
- //修改
|
|
|
- int countRow = orderMapper.updateById(order);
|
|
|
- //数量超出
|
|
|
- if (countRow == 0) {
|
|
|
- throw new BaseBusinessException(ResponseCodeEnum.OPERATE_FAIL.getCode(), ErrorCodeEnum.INVENTORY_QUANTITY_EXCEEDED_OUTBOUND.getMessage());
|
|
|
+ if (outboundVO.getFromId() != null) {
|
|
|
+ //根据id查询
|
|
|
+ OrderResponse orderResponse = orderMapper.selectById(outboundVO.getFromId());
|
|
|
+ Order order = new Order();
|
|
|
+ order.setOrderId(outboundVO.getFromId());
|
|
|
+ order.setOutQty(outboundResponse.getOutQty().negate().add(sumQty).subtract(delOutQty));
|
|
|
+ order.setOutAmt(outboundResponse.getOutAmt().negate().add(sumAmt).subtract(delOutAmt));
|
|
|
+ order.setOutingQty(delOutQty);
|
|
|
+ order.setOutingAmt(delOutAmt);
|
|
|
+ //出库状态
|
|
|
+ String outStatus = this.setOutStatus(orderResponse.getOutingQty().add(order.getOutingQty()),
|
|
|
+ orderResponse.getOutQty().add(order.getOutQty()), orderResponse.getSumQuantity());
|
|
|
+ order.setOutStatus(outStatus);
|
|
|
+ //修改
|
|
|
+ int countRow = orderMapper.updateById(order);
|
|
|
+ //数量超出
|
|
|
+ if (countRow == 0) {
|
|
|
+ throw new BaseBusinessException(ResponseCodeEnum.OPERATE_FAIL.getCode(), ErrorCodeEnum.INVENTORY_QUANTITY_EXCEEDED_OUTBOUND.getMessage());
|
|
|
+ }
|
|
|
}
|
|
|
//endregion
|
|
|
|
|
|
@@ -429,8 +513,6 @@ public class OutboundSaleOrderService extends BaseService<Outbound> {
|
|
|
//region 修改明细
|
|
|
List<OutboundItemVO> itemList = outboundVO.getItemList();
|
|
|
for (OutboundItemVO outboundItemVO : itemList) {
|
|
|
- //根据id查询 获取到还未进行修改的数据
|
|
|
- OutboundItemResponse outboundItemResponse = outboundItemMapper.selectById(outboundItemVO.getItemId());
|
|
|
|
|
|
//region 不能新建
|
|
|
if (outboundItemVO.getFromItemId() == null) {
|
|
|
@@ -439,25 +521,55 @@ public class OutboundSaleOrderService extends BaseService<Outbound> {
|
|
|
}
|
|
|
//endregion
|
|
|
|
|
|
- //region 赋值明细
|
|
|
- OutboundItem outboundItem = new OutboundItem();
|
|
|
- outboundItem.setItemId(outboundItemResponse.getItemId());
|
|
|
- outboundItem.setOutingQty(outboundItemResponse.getOutingQty());
|
|
|
- outboundItem.setOutingAmt(outboundItemResponse.getOutingAmt());
|
|
|
- //修改
|
|
|
- outboundItemMapper.update(outboundItem,
|
|
|
- new UpdateWrapper<OutboundItem>().lambda()
|
|
|
- .eq(OutboundItem::getItemId, UUID.fromString(outboundItem.getItemId()))
|
|
|
- );
|
|
|
+ //根据id查询 获取到还未进行修改的数据
|
|
|
+ OutboundItemResponse outboundItemResponse = outboundItemMapper.selectById(outboundItemVO.getItemId());
|
|
|
+
|
|
|
+ //region 编辑明细
|
|
|
+ if (outboundItemVO.getItemId() != null) {
|
|
|
+ OutboundItem outboundItem = new OutboundItem();
|
|
|
+ outboundItem.setItemId(outboundItemResponse.getItemId());
|
|
|
+ outboundItem.setOutingQty(outboundItemResponse.getOutingQty());
|
|
|
+ outboundItem.setOutingAmt(outboundItemResponse.getOutingAmt());
|
|
|
+ //修改
|
|
|
+ outboundItemMapper.update(outboundItem,
|
|
|
+ new UpdateWrapper<OutboundItem>().lambda()
|
|
|
+ .eq(OutboundItem::getItemId, UUID.fromString(outboundItem.getItemId()))
|
|
|
+ );
|
|
|
+ }
|
|
|
+ //endregion
|
|
|
+
|
|
|
+ //region 新建明细
|
|
|
+ else {
|
|
|
+ outboundItemVO
|
|
|
+ .setOutId(outboundItemVO.getOutId())
|
|
|
+ .setOutQty(BigDecimal.ZERO)
|
|
|
+ .setOutAmt(BigDecimal.ZERO)
|
|
|
+ .setCostPrice(outboundItemVO.getPriceOut())
|
|
|
+ .setCostAmt(outboundItemVO.getOutingQty().multiply(outboundItemVO.getPriceOut()).setScale(2, BigDecimal.ROUND_HALF_UP))
|
|
|
+ .setOutType(Constant.OutType.SALE.getName())
|
|
|
+ ;
|
|
|
+ //出库状态
|
|
|
+ String outStatus = this.setOutStatus(outboundItemVO.getOutingQty(), outboundItemVO.getOutQty());
|
|
|
+ outboundItemVO.setOutStatus(outStatus);
|
|
|
+ //实体转换
|
|
|
+ OutboundItem outboundItem = outboundItemConvert.convertToPo(outboundItemVO);
|
|
|
+ //新建
|
|
|
+ outboundItemMapper.insert(outboundItem);
|
|
|
+ }
|
|
|
//endregion
|
|
|
|
|
|
//region 销售明细
|
|
|
if (outboundItemVO.getFromItemId() != null) {
|
|
|
//根据id查询
|
|
|
+ OrderItemResponse orderItemResponse = orderItemMapper.selectById(outboundItemVO.getFromItemId());
|
|
|
OrderItem orderItem = new OrderItem();
|
|
|
orderItem.setItemId(outboundItemVO.getFromItemId());
|
|
|
orderItem.setOutingQty(outboundItemResponse.getOutingQty().negate().add(outboundItemVO.getOutingQty()));
|
|
|
orderItem.setOutingAmt(outboundItemResponse.getOutingAmt().negate().add(outboundItemVO.getOutingAmt()));
|
|
|
+ //出库状态
|
|
|
+ String outStatus = this.setOutStatus(orderItemResponse.getOutingQty().add(orderItem.getOutingQty()),
|
|
|
+ orderItemResponse.getOutQty(), orderItemResponse.getItemQty());
|
|
|
+ orderItem.setOutStatus(outStatus);
|
|
|
int countRow = orderItemMapper.updateById(orderItem);
|
|
|
//数量超出
|
|
|
if (countRow == 0) {
|
|
|
@@ -467,6 +579,47 @@ public class OutboundSaleOrderService extends BaseService<Outbound> {
|
|
|
//endregion
|
|
|
}
|
|
|
//endregion
|
|
|
+
|
|
|
+
|
|
|
+ //region 删除明细
|
|
|
+ BigDecimal delOutQty = BigDecimal.ZERO;
|
|
|
+ BigDecimal delOutAmt = BigDecimal.ZERO;
|
|
|
+ if (outboundVO.getDeleteItemList() != null) {
|
|
|
+ delOutQty = outboundVO.getDeleteItemList().stream().map(OutboundItemVO::getOutingQty).reduce(BigDecimal.ZERO, BigDecimal::add).setScale(6, BigDecimal.ROUND_HALF_UP);
|
|
|
+ delOutAmt = outboundVO.getDeleteItemList().stream().map(OutboundItemVO::getOutingAmt).reduce(BigDecimal.ZERO, BigDecimal::add).setScale(2, BigDecimal.ROUND_HALF_UP);
|
|
|
+ for (OutboundItemVO outboundItemVO : outboundVO.getDeleteItemList()) {
|
|
|
+ if (outboundItemVO.getItemId() != null) {
|
|
|
+ OutboundItem outboundItem = outboundItemConvert.convertToPo(outboundItemVO);
|
|
|
+ outboundItem.setFlgValid(false);
|
|
|
+ //修改
|
|
|
+ outboundItemMapper.update(outboundItem,
|
|
|
+ new UpdateWrapper<OutboundItem>().lambda()
|
|
|
+ .eq(OutboundItem::getItemId, UUID.fromString(outboundItem.getItemId()))
|
|
|
+ );
|
|
|
+ }
|
|
|
+ //region 销售明细
|
|
|
+ if (outboundItemVO.getFromItemId() != null) {
|
|
|
+ //根据id查询
|
|
|
+ OrderItemResponse orderItemResponse = orderItemMapper.selectById(outboundItemVO.getFromItemId());
|
|
|
+ OrderItem orderItem = new OrderItem();
|
|
|
+ orderItem.setItemId(outboundItemVO.getFromItemId());
|
|
|
+ orderItem.setOutingQty(outboundItemVO.getOutQty().negate());
|
|
|
+ orderItem.setOutingAmt(outboundItemVO.getOutQty().negate());
|
|
|
+ //出库状态
|
|
|
+ String outStatus = this.setOutStatus(orderItemResponse.getOutingQty().add(orderItem.getOutingQty()),
|
|
|
+ orderItemResponse.getOutQty(), orderItemResponse.getItemQty());
|
|
|
+ orderItem.setOutStatus(outStatus);
|
|
|
+ int countRow = orderItemMapper.updateById(orderItem);
|
|
|
+ //数量超出
|
|
|
+ if (countRow == 0) {
|
|
|
+ throw new BaseBusinessException(ResponseCodeEnum.OPERATE_FAIL.getCode(), ErrorCodeEnum.INVENTORY_QUANTITY_EXCEEDED_OUTBOUND.getMessage());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ //endregion
|
|
|
+ }
|
|
|
+ }
|
|
|
+ //endregion
|
|
|
+
|
|
|
//region 修改入库总单
|
|
|
Outbound outbound = new Outbound();
|
|
|
outbound.setOutId(outboundVO.getOutId());
|
|
|
@@ -477,16 +630,25 @@ public class OutboundSaleOrderService extends BaseService<Outbound> {
|
|
|
new UpdateWrapper<Outbound>().lambda().eq(Outbound::getOutId, UUID.fromString(outbound.getOutId()))
|
|
|
);
|
|
|
//endregion
|
|
|
+
|
|
|
//region 修改采购总单
|
|
|
- Order order = new Order();
|
|
|
- order.setOrderId(outboundVO.getFromId());
|
|
|
- order.setOutingQty(outboundResponse.getOutingQty().negate().add(sumQty));
|
|
|
- order.setOutingAmt(outboundResponse.getOutingAmt().negate().add(sumAmt));
|
|
|
- //修改
|
|
|
- int countRow = orderMapper.updateById(order);
|
|
|
- //数量超出
|
|
|
- if (countRow == 0) {
|
|
|
- throw new BaseBusinessException(ResponseCodeEnum.OPERATE_FAIL.getCode(), ErrorCodeEnum.INVENTORY_QUANTITY_EXCEEDED_OUTBOUND.getMessage());
|
|
|
+ if (outboundVO.getFromId() != null) {
|
|
|
+ //根据id查询
|
|
|
+ OrderResponse orderResponse = orderMapper.selectById(outboundVO.getFromId());
|
|
|
+ Order order = new Order();
|
|
|
+ order.setOrderId(outboundVO.getFromId());
|
|
|
+ order.setOutingQty(outboundResponse.getOutingQty().negate().add(sumQty).subtract(delOutQty));
|
|
|
+ order.setOutingAmt(outboundResponse.getOutingAmt().negate().add(sumAmt).subtract(delOutAmt));
|
|
|
+ //出库状态
|
|
|
+ String outStatus = this.setOutStatus(orderResponse.getOutingQty().add(order.getOutingQty()),
|
|
|
+ orderResponse.getOutQty(), orderResponse.getSumQuantity());
|
|
|
+ order.setOutStatus(outStatus);
|
|
|
+ //修改
|
|
|
+ int countRow = orderMapper.updateById(order);
|
|
|
+ //数量超出
|
|
|
+ if (countRow == 0) {
|
|
|
+ throw new BaseBusinessException(ResponseCodeEnum.OPERATE_FAIL.getCode(), ErrorCodeEnum.INVENTORY_QUANTITY_EXCEEDED_OUTBOUND.getMessage());
|
|
|
+ }
|
|
|
}
|
|
|
//endregion
|
|
|
}
|
|
|
@@ -542,12 +704,15 @@ public class OutboundSaleOrderService extends BaseService<Outbound> {
|
|
|
//region 销售明细
|
|
|
if (outboundItemResponse.getFromItemId() != null) {
|
|
|
//根据id查询
|
|
|
+ OrderItemResponse orderItemResponse = orderItemMapper.selectById(outboundItemResponse.getFromItemId());
|
|
|
OrderItem orderItem = new OrderItem();
|
|
|
orderItem.setItemId(outboundItemResponse.getFromItemId());
|
|
|
-// orderItem.setOutQty(outboundItemResponse.getOutQty().negate());
|
|
|
-// orderItem.setOutAmt(outboundItemResponse.getOutAmt().negate());
|
|
|
- orderItem.setOutQty(BigDecimal.ZERO);
|
|
|
- orderItem.setOutAmt(BigDecimal.ZERO);
|
|
|
+ orderItem.setOutQty(outboundItemResponse.getOutQty().negate());
|
|
|
+ orderItem.setOutAmt(outboundItemResponse.getOutAmt().negate());
|
|
|
+ //出库状态
|
|
|
+ String orderOutStatus = this.setOutStatus(orderItemResponse.getOutingQty(),
|
|
|
+ orderItemResponse.getOutQty().add(orderItem.getOutQty()), orderItemResponse.getItemQty());
|
|
|
+ orderItem.setOutStatus(orderOutStatus);
|
|
|
int countRow = orderItemMapper.updateById(orderItem);
|
|
|
//数量超出
|
|
|
if (countRow == 0) {
|
|
|
@@ -569,18 +734,25 @@ public class OutboundSaleOrderService extends BaseService<Outbound> {
|
|
|
//endregion
|
|
|
|
|
|
//region 修改销售总单
|
|
|
- Order order = new Order();
|
|
|
- order.setOrderId(outboundResponse.getFromId());
|
|
|
-// order.setOutQty(outboundResponse.getOutQty().negate());
|
|
|
-// order.setOutAmt(outboundResponse.getOutAmt().negate());
|
|
|
- order.setOutQty(BigDecimal.ZERO);
|
|
|
- order.setOutAmt(BigDecimal.ZERO);
|
|
|
- //修改
|
|
|
- int countRow = orderMapper.updateById(order);
|
|
|
- //数量超出
|
|
|
- if (countRow == 0) {
|
|
|
- throw new BaseBusinessException(ResponseCodeEnum.OPERATE_FAIL.getCode(), ErrorCodeEnum.INVENTORY_QUANTITY_EXCEEDED_OUTBOUND.getMessage());
|
|
|
+ if (outboundResponse.getFromId() != null) {
|
|
|
+ //根据id查询
|
|
|
+ OrderResponse orderResponse = orderMapper.selectById(outboundResponse.getFromId());
|
|
|
+ Order order = new Order();
|
|
|
+ order.setOrderId(outboundResponse.getFromId());
|
|
|
+ order.setOutQty(outboundResponse.getOutQty().negate());
|
|
|
+ order.setOutAmt(outboundResponse.getOutAmt().negate());
|
|
|
+ //出库状态
|
|
|
+ String orderOutStatus = this.setOutStatus(orderResponse.getOutingQty(),
|
|
|
+ orderResponse.getOutQty().add(order.getOutQty()), orderResponse.getSumQuantity());
|
|
|
+ order.setOutStatus(orderOutStatus);
|
|
|
+ //修改
|
|
|
+ int countRow = orderMapper.updateById(order);
|
|
|
+ //数量超出
|
|
|
+ if (countRow == 0) {
|
|
|
+ throw new BaseBusinessException(ResponseCodeEnum.OPERATE_FAIL.getCode(), ErrorCodeEnum.INVENTORY_QUANTITY_EXCEEDED_OUTBOUND.getMessage());
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
//endregion
|
|
|
|
|
|
//region 入账
|
|
|
@@ -614,13 +786,19 @@ public class OutboundSaleOrderService extends BaseService<Outbound> {
|
|
|
.eq(OutboundItem::getItemId, UUID.fromString(outboundItem.getItemId()))
|
|
|
);
|
|
|
//endregion
|
|
|
+
|
|
|
//region 销售明细
|
|
|
if (outboundItemResponse.getFromItemId() != null) {
|
|
|
//根据id查询
|
|
|
+ OrderItemResponse orderItemResponse = orderItemMapper.selectById(outboundItemResponse.getFromItemId());
|
|
|
OrderItem orderItem = new OrderItem();
|
|
|
orderItem.setItemId(outboundItemResponse.getFromItemId());
|
|
|
orderItem.setOutingQty(outboundItemResponse.getOutingQty().negate());
|
|
|
orderItem.setOutingAmt(outboundItemResponse.getOutingAmt().negate());
|
|
|
+ //出库状态
|
|
|
+ String orderOutStatus = this.setOutStatus(orderItemResponse.getOutingQty().add(orderItem.getOutingQty()),
|
|
|
+ orderItemResponse.getOutQty(), orderItemResponse.getItemQty());
|
|
|
+ orderItem.setOutStatus(orderOutStatus);
|
|
|
int countRow = orderItemMapper.updateById(orderItem);
|
|
|
//数量超出
|
|
|
if (countRow == 0) {
|
|
|
@@ -643,15 +821,23 @@ public class OutboundSaleOrderService extends BaseService<Outbound> {
|
|
|
//endregion
|
|
|
|
|
|
//region 修改销售总单
|
|
|
- Order order = new Order();
|
|
|
- order.setOrderId(outboundResponse.getFromId());
|
|
|
- order.setOutingQty(outboundResponse.getOutingQty().negate());
|
|
|
- order.setOutingAmt(outboundResponse.getOutingAmt().negate());
|
|
|
- //修改
|
|
|
- int countRow = orderMapper.updateById(order);
|
|
|
- //数量超出
|
|
|
- if (countRow == 0) {
|
|
|
- throw new BaseBusinessException(ResponseCodeEnum.OPERATE_FAIL.getCode(), ErrorCodeEnum.INVENTORY_QUANTITY_EXCEEDED_OUTBOUND.getMessage());
|
|
|
+ if (outboundResponse.getFromId() != null) {
|
|
|
+ //根据id查询
|
|
|
+ OrderResponse orderResponse = orderMapper.selectById(outboundResponse.getFromId());
|
|
|
+ Order order = new Order();
|
|
|
+ order.setOrderId(outboundResponse.getFromId());
|
|
|
+ order.setOutingQty(outboundResponse.getOutingQty().negate());
|
|
|
+ order.setOutingAmt(outboundResponse.getOutingAmt().negate());
|
|
|
+ //出库状态
|
|
|
+ String orderOutStatus = this.setOutStatus(orderResponse.getOutingQty().add(order.getOutingQty()),
|
|
|
+ orderResponse.getOutQty(), orderResponse.getSumQuantity());
|
|
|
+ order.setOutStatus(orderOutStatus);
|
|
|
+ //修改
|
|
|
+ int countRow = orderMapper.updateById(order);
|
|
|
+ //数量超出
|
|
|
+ if (countRow == 0) {
|
|
|
+ throw new BaseBusinessException(ResponseCodeEnum.OPERATE_FAIL.getCode(), ErrorCodeEnum.INVENTORY_QUANTITY_EXCEEDED_OUTBOUND.getMessage());
|
|
|
+ }
|
|
|
}
|
|
|
//endregion
|
|
|
}
|
|
|
@@ -686,8 +872,10 @@ public class OutboundSaleOrderService extends BaseService<Outbound> {
|
|
|
ErrorCodeEnum.ITEMS_THAT_ARE_NOT_AVAILABLE_HANDLE.getMessage());
|
|
|
}
|
|
|
//endregion
|
|
|
+
|
|
|
//明细根据id查询
|
|
|
OutboundItemResponse outboundItemResponse = outboundItemMapper.selectById(outboundItemVO.getItemId());
|
|
|
+
|
|
|
//region 校验数量是否超出
|
|
|
if (outboundItemVO.getOutingQty().compareTo(outboundItemResponse.getOutingQty()) > 0) {
|
|
|
throw new BaseBusinessException(ErrorCodeEnum.CANNOT_EXCEED_THE_QUANTITYIN_THE_WAREHOUSE.getCode(),
|
|
|
@@ -700,42 +888,66 @@ public class OutboundSaleOrderService extends BaseService<Outbound> {
|
|
|
outboundItemResponse.setInventoryDocCode(Constant.InventoryDocCode.SALE_ORDER.getValue());
|
|
|
//endregion
|
|
|
|
|
|
- //region 出库明细
|
|
|
- //编辑明细
|
|
|
- outboundItemVO
|
|
|
- .setOutQty(outboundItemResponse.getOutQty().add(outboundItemVO.getOutingQty()))
|
|
|
- .setOutAmt(outboundItemResponse.getOutAmt().add(outboundItemVO.getOutingAmt()))
|
|
|
- .setOutingQty(BigDecimal.ZERO)
|
|
|
- .setOutAmt(BigDecimal.ZERO)
|
|
|
- .setCostPrice(outboundItemVO.getPriceOut())
|
|
|
- .setCostAmt(outboundItemVO.getOutQty().multiply(outboundItemVO.getPriceOut()).setScale(2, BigDecimal.ROUND_HALF_UP))
|
|
|
- ;
|
|
|
- //出库状态
|
|
|
- String outStatus = this.setOutStatus(outboundItemVO.getOutingQty(), outboundItemVO.getOutQty());
|
|
|
- outboundItemVO.setOutStatus(outStatus);
|
|
|
- //实体转换
|
|
|
- OutboundItem outboundItem = outboundItemConvert.convertToPo(outboundItemVO);
|
|
|
- //修改
|
|
|
- outboundItemMapper.update(outboundItem,
|
|
|
- new UpdateWrapper<OutboundItem>().lambda()
|
|
|
- .eq(OutboundItem::getItemId, UUID.fromString(outboundItem.getItemId()))
|
|
|
- );
|
|
|
+ //region 编辑明细
|
|
|
+ if (outboundItemVO.getFromItemId() != null) {
|
|
|
+ outboundItemVO
|
|
|
+ .setOutQty(outboundItemResponse.getOutQty().add(outboundItemVO.getOutingQty()))
|
|
|
+ .setOutAmt(outboundItemResponse.getOutAmt().add(outboundItemVO.getOutingAmt()))
|
|
|
+ .setOutingQty(BigDecimal.ZERO)
|
|
|
+ .setOutAmt(BigDecimal.ZERO)
|
|
|
+ .setCostPrice(outboundItemVO.getPriceOut())
|
|
|
+ .setCostAmt(outboundItemVO.getOutQty().multiply(outboundItemVO.getPriceOut()).setScale(2, BigDecimal.ROUND_HALF_UP))
|
|
|
+ ;
|
|
|
+ //出库状态
|
|
|
+ String outStatus = this.setOutStatus(outboundItemVO.getOutingQty(), outboundItemVO.getOutQty());
|
|
|
+ outboundItemVO.setOutStatus(outStatus);
|
|
|
+ //实体转换
|
|
|
+ OutboundItem outboundItem = outboundItemConvert.convertToPo(outboundItemVO);
|
|
|
+ //修改
|
|
|
+ outboundItemMapper.update(outboundItem,
|
|
|
+ new UpdateWrapper<OutboundItem>().lambda()
|
|
|
+ .eq(OutboundItem::getItemId, UUID.fromString(outboundItem.getItemId()))
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
+ //endregion
|
|
|
+
|
|
|
+ //region 新建明细
|
|
|
+ else {
|
|
|
+ outboundItemVO
|
|
|
+ .setOutId(outboundItemVO.getOutId())
|
|
|
+ .setOutQty(outboundItemVO.getOutingQty())
|
|
|
+ .setOutAmt(outboundItemVO.getOutingAmt())
|
|
|
+ .setCostPrice(outboundItemVO.getPriceOut())
|
|
|
+ .setCostAmt(outboundItemVO.getOutQty().multiply(outboundItemVO.getPriceOut()).setScale(2, BigDecimal.ROUND_HALF_UP))
|
|
|
+ .setOutType(Constant.OutType.SALE.getName())
|
|
|
+ .setOutingQty(BigDecimal.ZERO)
|
|
|
+ .setOutingAmt(BigDecimal.ZERO)
|
|
|
+ ;
|
|
|
+ //出库状态
|
|
|
+ String outStatus = this.setOutStatus(outboundItemVO.getOutingQty(), outboundItemVO.getOutQty());
|
|
|
+ outboundItemVO.setOutStatus(outStatus);
|
|
|
+ //实体转换
|
|
|
+ OutboundItem outboundItem = outboundItemConvert.convertToPo(outboundItemVO);
|
|
|
+ //新建
|
|
|
+ outboundItemMapper.insert(outboundItem);
|
|
|
+ }
|
|
|
//endregion
|
|
|
|
|
|
//region 销售订单明细
|
|
|
if (outboundItemVO.getFromItemId() != null) {
|
|
|
+ //根据id查询
|
|
|
+ OrderItemResponse orderItemResponse = orderItemMapper.selectById(outboundItemVO.getFromItemId());
|
|
|
//赋值(这里重写了更新方法,数量在更新方法中有数据库院士数量+本次数量)
|
|
|
OrderItem orderItem = new OrderItem();
|
|
|
orderItem.setItemId(outboundItemVO.getFromItemId());
|
|
|
- orderItem.setOutingQty(outboundItemVO.getOutingQty());
|
|
|
- orderItem.setOutingAmt(outboundItemVO.getOutingAmt());
|
|
|
+ orderItem.setOutingQty(outboundItemVO.getOutQty().negate());
|
|
|
+ orderItem.setOutingAmt(outboundItemVO.getOutAmt().negate());
|
|
|
orderItem.setOutQty(outboundItemVO.getOutQty());
|
|
|
orderItem.setOutAmt(outboundItemVO.getOutAmt());
|
|
|
- //根据id查询
|
|
|
- OrderItemResponse orderItemResponse = orderItemMapper.selectById(outboundItemVO.getFromItemId());
|
|
|
//出库状态
|
|
|
String orderOutStatus = this.setOutStatus(orderItemResponse.getOutingQty().add(orderItem.getOutingQty()),
|
|
|
- orderItemResponse.getOutQty().add(orderItem.getOutQty()),orderItemResponse.getItemQty());
|
|
|
+ orderItemResponse.getOutQty().add(orderItem.getOutQty()), orderItemResponse.getItemQty());
|
|
|
orderItem.setOutStatus(orderOutStatus);
|
|
|
//修改
|
|
|
int countRow = orderItemMapper.updateById(orderItem);
|
|
|
@@ -750,7 +962,15 @@ public class OutboundSaleOrderService extends BaseService<Outbound> {
|
|
|
//endregion
|
|
|
|
|
|
//region 删除明细
|
|
|
+ BigDecimal delOutingQty = BigDecimal.ZERO;
|
|
|
+ BigDecimal delOutingAmt = BigDecimal.ZERO;
|
|
|
+ BigDecimal delOutQty = BigDecimal.ZERO;
|
|
|
+ BigDecimal delOutAmt = BigDecimal.ZERO;
|
|
|
if (outboundVO.getDeleteItemList() != null) {
|
|
|
+ delOutingQty = outboundVO.getDeleteItemList().stream().map(OutboundItemVO::getOutingQty).reduce(BigDecimal.ZERO, BigDecimal::add).setScale(6, BigDecimal.ROUND_HALF_UP);
|
|
|
+ delOutingAmt = outboundVO.getDeleteItemList().stream().map(OutboundItemVO::getOutingAmt).reduce(BigDecimal.ZERO, BigDecimal::add).setScale(2, BigDecimal.ROUND_HALF_UP);
|
|
|
+ delOutQty = outboundVO.getDeleteItemList().stream().map(OutboundItemVO::getOutQty).reduce(BigDecimal.ZERO, BigDecimal::add).setScale(6, BigDecimal.ROUND_HALF_UP);
|
|
|
+ delOutAmt = outboundVO.getDeleteItemList().stream().map(OutboundItemVO::getOutAmt).reduce(BigDecimal.ZERO, BigDecimal::add).setScale(2, BigDecimal.ROUND_HALF_UP);
|
|
|
for (OutboundItemVO outboundItemVO : outboundVO.getDeleteItemList()) {
|
|
|
if (outboundItemVO.getItemId() != null) {
|
|
|
OutboundItem outboundItem = outboundItemConvert.convertToPo(outboundItemVO);
|
|
|
@@ -763,7 +983,8 @@ public class OutboundSaleOrderService extends BaseService<Outbound> {
|
|
|
}
|
|
|
//region 销售退货明细
|
|
|
if (outboundItemVO.getFromItemId() != null) {
|
|
|
- //region 销售退货订单明细
|
|
|
+ //根据id查询
|
|
|
+ OrderItemResponse orderItemResponse = orderItemMapper.selectById(outboundItemVO.getFromItemId());
|
|
|
//赋值(这里重写了更新方法,数量在更新方法中有数据库院士数量+本次数量)
|
|
|
OrderItem orderItem = new OrderItem();
|
|
|
orderItem.setItemId(outboundItemVO.getFromItemId());
|
|
|
@@ -771,11 +992,9 @@ public class OutboundSaleOrderService extends BaseService<Outbound> {
|
|
|
orderItem.setOutingAmt(outboundItemVO.getOutingAmt().negate());
|
|
|
orderItem.setOutQty(outboundItemVO.getOutQty().negate());
|
|
|
orderItem.setOutAmt(outboundItemVO.getOutAmt().negate());
|
|
|
- //根据id查询
|
|
|
- OrderItemResponse orderItemResponse = orderItemMapper.selectById(outboundItemVO.getFromItemId());
|
|
|
//出库状态
|
|
|
String outStatus = this.setOutStatus(orderItemResponse.getOutingQty().add(orderItem.getOutingQty()),
|
|
|
- orderItemResponse.getOutQty().add(orderItem.getOutQty()),orderItemResponse.getItemQty());
|
|
|
+ orderItemResponse.getOutQty().add(orderItem.getOutQty()), orderItemResponse.getItemQty());
|
|
|
orderItem.setOutStatus(outStatus);
|
|
|
//修改
|
|
|
int countRow = orderItemMapper.updateById(orderItem);
|
|
|
@@ -783,7 +1002,6 @@ public class OutboundSaleOrderService extends BaseService<Outbound> {
|
|
|
if (countRow == 0) {
|
|
|
throw new BaseBusinessException(ResponseCodeEnum.OPERATE_FAIL.getCode(), ErrorCodeEnum.INVENTORY_QUANTITY_EXCEEDED_OUTBOUND.getMessage());
|
|
|
}
|
|
|
- //endregion
|
|
|
}
|
|
|
//endregion
|
|
|
}
|
|
|
@@ -811,20 +1029,18 @@ public class OutboundSaleOrderService extends BaseService<Outbound> {
|
|
|
|
|
|
//region 修改销售退货订单
|
|
|
if (outboundVO.getFromId() != null) {
|
|
|
+ //根据id查询
|
|
|
+ OrderResponse orderResponse = orderMapper.selectById(outboundVO.getFromId());
|
|
|
//赋值(这里重写了更新方法,数量在更新方法中有数据库院士数量+本次数量)
|
|
|
Order order = new Order();
|
|
|
order.setOrderId(outboundVO.getFromId());
|
|
|
- if (outboundResponse != null) {
|
|
|
- order.setOutingQty(outboundResponse.getOutingQty().negate());
|
|
|
- order.setOutingAmt(outboundResponse.getOutingAmt().negate());
|
|
|
- }
|
|
|
- order.setOutQty(sumOutQty.negate());
|
|
|
- order.setOutAmt(sumOutAmt.negate());
|
|
|
- //根据id查询
|
|
|
- OrderResponse orderResponse = orderMapper.selectById(outboundVO.getFromId());
|
|
|
+ order.setOutQty(sumOutQty.subtract(delOutQty));
|
|
|
+ order.setOutAmt(sumOutAmt.subtract(delOutAmt));
|
|
|
+ order.setOutingQty((outboundResponse.getOutingQty().add(delOutingQty)).negate());
|
|
|
+ order.setOutingAmt((outboundResponse.getOutingAmt().add(delOutingAmt)).negate());
|
|
|
//出库状态
|
|
|
String orderOutStatus = this.setOutStatus(orderResponse.getOutingQty().add(order.getOutingQty()),
|
|
|
- orderResponse.getOutQty().add(order.getOutQty()),orderResponse.getSumQuantity());
|
|
|
+ orderResponse.getOutQty().add(order.getOutQty()), orderResponse.getSumQuantity());
|
|
|
order.setOutStatus(orderOutStatus);
|
|
|
//修改
|
|
|
int countRow = orderMapper.updateById(order);
|
|
|
@@ -869,16 +1085,16 @@ public class OutboundSaleOrderService extends BaseService<Outbound> {
|
|
|
if (outboundResponse.getFromId() != null) {
|
|
|
//赋值 (这里重写了更新方法,数量在更新方法中有数据库院士数量+本次数量)
|
|
|
Order order = new Order();
|
|
|
- order.setOrderId(outboundVO.getFromId());
|
|
|
- order.setOutingQty(outboundVO.getOutingQty());
|
|
|
- order.setOutingAmt(outboundVO.getOutingAmt());
|
|
|
- order.setOutQty(outboundVO.getOutQty().negate());
|
|
|
- order.setOutAmt(outboundVO.getOutAmt().negate());
|
|
|
+ order.setOrderId(outboundResponse.getFromId());
|
|
|
+ order.setOutingQty(outboundResponse.getOutQty());
|
|
|
+ order.setOutingAmt(outboundResponse.getOutAmt());
|
|
|
+ order.setOutQty(outboundResponse.getOutQty().negate());
|
|
|
+ order.setOutAmt(outboundResponse.getOutAmt().negate());
|
|
|
//根据id查询
|
|
|
OrderResponse orderResponse = orderMapper.selectById(outboundVO.getFromId());
|
|
|
//出库状态
|
|
|
String outStatus = this.setOutStatus(orderResponse.getOutingQty().add(order.getOutingQty()),
|
|
|
- orderResponse.getOutQty().add(order.getOutQty()),orderResponse.getSumQuantity());
|
|
|
+ orderResponse.getOutQty().add(order.getOutQty()), orderResponse.getSumQuantity());
|
|
|
order.setOutStatus(outStatus);
|
|
|
//修改
|
|
|
int countRow = orderMapper.updateById(order);
|
|
|
@@ -912,18 +1128,18 @@ public class OutboundSaleOrderService extends BaseService<Outbound> {
|
|
|
for (OutboundItemResponse outboundItemResponse : outboundItemResponseList) {
|
|
|
//region 修改销售退货明细数据信息
|
|
|
if (outboundItemResponse.getFromItemId() != null) {
|
|
|
+ //根据id查询
|
|
|
+ OrderItemResponse orderItemResponse = orderItemMapper.selectById(outboundItemResponse.getFromItemId());
|
|
|
//赋值 (这里重写了更新方法,数量在更新方法中有数据库院士数量+本次数量)
|
|
|
OrderItem orderItem = new OrderItem();
|
|
|
orderItem.setItemId(outboundItemResponse.getFromItemId());
|
|
|
orderItem.setOutQty(outboundItemResponse.getOutQty().negate());
|
|
|
orderItem.setOutAmt(outboundItemResponse.getOutAmt().negate());
|
|
|
- orderItem.setOutingQty(outboundItemResponse.getOutingQty());
|
|
|
- orderItem.setOutingAmt(outboundItemResponse.getOutingAmt());
|
|
|
- //根据id查询
|
|
|
- OrderItemResponse orderItemResponse = orderItemMapper.selectById(outboundItemResponse.getFromItemId());
|
|
|
+ orderItem.setOutingQty(outboundItemResponse.getOutQty());
|
|
|
+ orderItem.setOutingAmt(outboundItemResponse.getOutAmt());
|
|
|
//出库状态
|
|
|
String outStatus = this.setOutStatus(orderItemResponse.getOutingQty().add(orderItem.getOutingQty()),
|
|
|
- orderItemResponse.getOutQty().add(orderItem.getOutQty()),orderItemResponse.getItemQty());
|
|
|
+ orderItemResponse.getOutQty().add(orderItem.getOutQty()), orderItemResponse.getItemQty());
|
|
|
orderItem.setOutStatus(outStatus);
|
|
|
//修改
|
|
|
int countRow = orderItemMapper.updateById(orderItem);
|
|
|
@@ -1000,15 +1216,15 @@ public class OutboundSaleOrderService extends BaseService<Outbound> {
|
|
|
|
|
|
|
|
|
/**
|
|
|
- * @desc : 上游单据入库状态通用(目前本页面)
|
|
|
- * @date : 2024/4/1 17:14
|
|
|
+ * @desc : 上游单据入库状态通用(目前本页面)
|
|
|
+ * @date : 2024/4/1 17:14
|
|
|
* @author : 寇珊珊
|
|
|
*/
|
|
|
- public String setOutStatus(BigDecimal intoingQty, BigDecimal intoQty,BigDecimal sumQty) {
|
|
|
+ public String setOutStatus(BigDecimal intoingQty, BigDecimal intoQty, BigDecimal sumQty) {
|
|
|
//入库状态
|
|
|
String intoStatus = null;
|
|
|
//入库中+已入库 小于 总数
|
|
|
- if (intoingQty.add(intoingQty).compareTo(sumQty) < 0 ) {
|
|
|
+ if (intoingQty.add(intoingQty).compareTo(sumQty) < 0) {
|
|
|
//入库中
|
|
|
intoStatus = Constant.IntoStatus.RUKUZHONG.getName();
|
|
|
}
|
|
|
@@ -1026,7 +1242,6 @@ public class OutboundSaleOrderService extends BaseService<Outbound> {
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
/**
|
|
|
* @desc : 获取单据信息(编辑用)
|
|
|
* @date : 2024/3/16 16:28
|