|
|
@@ -48,220 +48,221 @@ import java.util.stream.Collectors;
|
|
|
@Transactional
|
|
|
public class OutboundService extends BaseService<Outbound> {
|
|
|
|
|
|
- @Override
|
|
|
- public String getPrimaryKey() {
|
|
|
- return "out_id";
|
|
|
- }
|
|
|
-
|
|
|
- @Override
|
|
|
- public BaseMapper<Outbound> getRepository() {
|
|
|
- return outboundMapper;
|
|
|
- }
|
|
|
-
|
|
|
- @Autowired
|
|
|
- private OutboundMapper outboundMapper;
|
|
|
-
|
|
|
- @Autowired
|
|
|
- private OutboundItemService outboundItemService;
|
|
|
-
|
|
|
- @Autowired
|
|
|
- private OutboundItemMapper outboundItemMapper;
|
|
|
-
|
|
|
- @Autowired
|
|
|
- private OrderService orderService;
|
|
|
-
|
|
|
- @Autowired
|
|
|
- private OrderMapper orderMapper;
|
|
|
-
|
|
|
- @Autowired
|
|
|
- private OrderItemService orderItemService;
|
|
|
-
|
|
|
- @Autowired
|
|
|
- private OrderItemMapper orderItemMapper;
|
|
|
-
|
|
|
- @Autowired
|
|
|
- private CommonService commonService;
|
|
|
-
|
|
|
- @Autowired
|
|
|
- private OutboundConvert outboundConvert;
|
|
|
-
|
|
|
- @Autowired
|
|
|
- private OutboundItemConvert outboundItemConvert;
|
|
|
-
|
|
|
- @Autowired
|
|
|
- private PurchaseItemMapper purchaseItemMapper;
|
|
|
-
|
|
|
- /**
|
|
|
- * @desc : 条件查询
|
|
|
- * @author : 付斌
|
|
|
- * @date : 2023/1/9 10:40
|
|
|
- */
|
|
|
- @Pagination
|
|
|
- public ResponseResultVO<PageList<OutboundResponse>> selectByCond(OutboundQuery outboundQuery) {
|
|
|
- return super.mergeListWithCount(outboundQuery, outboundMapper.selectByCond(outboundQuery),
|
|
|
- outboundMapper.countByCond(outboundQuery));
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * @desc : 查询订单明细(货物、收款、附件)
|
|
|
- * @author : 付斌
|
|
|
- * @date : 2024-02-28 13:25
|
|
|
- */
|
|
|
- @Pagination
|
|
|
- public ResponseResultVO<Map<String, Object>> selectOutboundInfoById(String id) {
|
|
|
- Map<String, Object> result = new HashMap<>();
|
|
|
- // 商品明细
|
|
|
- List<OutboundItemResponse> outboundItem = outboundItemMapper.selectByCond(new OutboundItemQuery().setOutId(id));
|
|
|
- result.put("outboundItem", outboundItem);
|
|
|
-
|
|
|
- // 收款
|
|
|
-
|
|
|
- // 附件
|
|
|
- return ResponseResultUtil.success(result);
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * @desc : 新建方法
|
|
|
- * @author : 付斌
|
|
|
- * @date : 2023/1/9 10:49
|
|
|
- */
|
|
|
- @Transactional(
|
|
|
- rollbackFor = {Exception.class}
|
|
|
- )
|
|
|
- public ResponseResultVO<?> insert(OutboundVO outboundVO) {
|
|
|
-
|
|
|
- // 获取单号
|
|
|
- Map<String , Object> codeMap = commonService.getUniqueNoteCode(Constant.docNameConstant.OUTBOUND.getName(),false);
|
|
|
- outboundVO.setOutId(codeMap.get("outId").toString()).setOutNo(codeMap.get("outNote").toString())
|
|
|
- .setOutType(Constant.OutType.SALE.getName());
|
|
|
- // 转化实体
|
|
|
- Outbound outbound = outboundConvert.convertToPo(outboundVO);
|
|
|
- // 总单保存
|
|
|
- super.insert(outbound);
|
|
|
-
|
|
|
- // 明细保存
|
|
|
- if (outboundVO.getItemList() != null && outboundVO.getItemList().size() > 0) {
|
|
|
- double sumOutingQty = 0; // 合计出库中数量
|
|
|
- double sumOutingAmt = 0; // 合计出库中金额
|
|
|
- for (OutboundItemVO outboundItemVO : outboundVO.getItemList()) {
|
|
|
- OutboundItem outboundItem = outboundItemConvert.convertToPo(outboundItemVO);
|
|
|
- outboundItem.setOutId(outbound.getOutId()).setCpId(outbound.getCpId()).setOutStatus(Constant.OutStatus.CHUKUZHONG.getName())
|
|
|
- .setOutType(Constant.OutType.SALE.getName());
|
|
|
- outboundItemMapper.insert(outboundItem);
|
|
|
-
|
|
|
- // 反写订单出库中数量、金额
|
|
|
- OrderItem orderItem = orderItemMapper.selectById(outboundItem.getFromItemId());
|
|
|
- // 如果商品数量小于订单+本次出库单上的出库中数量
|
|
|
- if(orderItem.getItemQty().compareTo(orderItem.getOutingQty().add(outboundItem.getOutingQty())) == -1){
|
|
|
- throw new BaseBusinessException(ResponseCodeEnum.OPERATE_FAIL.getCode(), ErrorCodeEnum.ITEMQTY_NO_LESS_OUTQTY.getMessage());
|
|
|
- }else{
|
|
|
- OrderItem orderItemUpdate = new OrderItem();
|
|
|
- orderItemUpdate.setOutingQty(orderItem.getOutingQty().add(outboundItem.getOutingQty()))
|
|
|
- .setOutingAmt(orderItem.getOutingAmt().add(outboundItem.getOutingAmt()))
|
|
|
- .setItemId(orderItem.getItemId());
|
|
|
- orderItemService.updateByUuid(orderItemUpdate);
|
|
|
- // 累加出库中数量,金额
|
|
|
- sumOutingQty += outboundItem.getOutingQty().doubleValue();
|
|
|
- sumOutingAmt += outboundItem.getOutingAmt().doubleValue();
|
|
|
- }
|
|
|
- }
|
|
|
- // 更新订单上的出库中数量,金额,状态
|
|
|
- OrderResponse orderResponse = orderMapper.selectById(outboundVO.getFromId());
|
|
|
- Order orderUpdate = new Order();
|
|
|
- orderUpdate.setOutingQty(orderResponse.getOutingQty().add(new BigDecimal(sumOutingQty)))
|
|
|
- .setOutingAmt(orderResponse.getOutingAmt().add(new BigDecimal(sumOutingAmt)))
|
|
|
- .setOutStatus(Constant.OutStatus.CHUKUZHONG.getName())
|
|
|
- .setOrderId(outboundVO.getFromId());
|
|
|
- orderService.updateByUuid(orderUpdate);
|
|
|
- }
|
|
|
- return ResponseResultUtil.success();
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * @desc : 获取订单信息(编辑用)
|
|
|
- * @author : 付斌
|
|
|
- * @date : 2024-03-02 17:27
|
|
|
- */
|
|
|
- public ResponseResultVO<?> getOutboundForUpdate(String id) {
|
|
|
- Map<String, Object> outboundInfo = new HashMap<>();
|
|
|
- OutboundResponse outboundResponse = outboundMapper.selectById(id);
|
|
|
- outboundInfo.put("outbound", outboundResponse);
|
|
|
-
|
|
|
- // 商品明细
|
|
|
- List<OutboundItemResponse> outboundItemResponse = outboundItemMapper.selectByCond(new OutboundItemQuery().setOutId(id));
|
|
|
- outboundInfo.put("outboundItem", outboundItemResponse);
|
|
|
- return ResponseResultUtil.success(outboundInfo);
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * @desc : 编辑方法
|
|
|
- * @author : 付斌
|
|
|
- * @date : 2023/1/9 10:49
|
|
|
- */
|
|
|
- @Transactional(
|
|
|
- rollbackFor = {Exception.class}
|
|
|
- )
|
|
|
- public ResponseResultVO<Boolean> update(OutboundVO outboundVO) {
|
|
|
- // 转化实体
|
|
|
- Outbound outbound = outboundConvert.convertToPo(outboundVO);
|
|
|
-
|
|
|
- // 编辑的
|
|
|
- List<OutboundItemVO> editOutboundItemVOList = outboundVO.getItemList().stream().filter(it -> it.getItemId() != null).collect(Collectors.toList());
|
|
|
- for (OutboundItemVO outboundItemVO : editOutboundItemVOList) {
|
|
|
- // 出库中数量不能小于出库数量
|
|
|
- if(outboundItemVO.getOutingQty().compareTo(outboundItemVO.getOutQty()) == -1){
|
|
|
- throw new BaseBusinessException(ResponseCodeEnum.OPERATE_FAIL.getCode(), ErrorCodeEnum.OUTINGQTY_NO_LESS_OUTQTY.getMessage());
|
|
|
- } else {
|
|
|
- OutboundItem outboundItem = outboundItemConvert.convertToPo(outboundItemVO);
|
|
|
- outboundItemService.updateByUuid(outboundItem);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- return ResponseResultUtil.success(super.update(outbound, new UpdateWrapper<Outbound>().lambda().eq(Outbound::getOutId,
|
|
|
- UUID.fromString(outbound.getOutId()))));
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * @desc : 作废
|
|
|
- * @author : 付斌
|
|
|
- * @date : 2024-03-08 16:38
|
|
|
- */
|
|
|
- public ResponseResultVO<?> invalid(String id) {
|
|
|
- return ResponseResultUtil.success();
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * @desc : 采购退货出库
|
|
|
- * @author : 于继渤
|
|
|
- * @date : 2023/1/9 10:49
|
|
|
- */
|
|
|
- @Transactional(
|
|
|
- rollbackFor = {Exception.class}
|
|
|
- )
|
|
|
- public ResponseResultVO<?> insertOutBound(OutboundVO outboundVO) {
|
|
|
-
|
|
|
- // 获取单号
|
|
|
- Map<String , Object> codeMap = commonService.getUniqueNoteCode(Constant.docNameConstant.OUTBOUND.getName(),false);
|
|
|
- outboundVO.setOutId(codeMap.get("outId").toString()).setOutNo(codeMap.get("outNote").toString())
|
|
|
- .setOutType(Constant.OutType.PURRETURN.getName());
|
|
|
- // 转化实体
|
|
|
- Outbound outbound = outboundConvert.convertToPo(outboundVO);
|
|
|
- // 总单保存
|
|
|
- super.insert(outbound);
|
|
|
-
|
|
|
- // 明细保存
|
|
|
- if (outboundVO.getItemList() != null && outboundVO.getItemList().size() > 0) {
|
|
|
- double sumOutingQty = 0; // 合计出库中数量
|
|
|
- double sumOutingAmt = 0; // 合计出库中金额
|
|
|
- for (OutboundItemVO outboundItemVO : outboundVO.getItemList()) {
|
|
|
- OutboundItem outboundItem = outboundItemConvert.convertToPo(outboundItemVO);
|
|
|
- outboundItem.setOutId(outbound.getOutId()).setCpId(outbound.getCpId()).setOutStatus(Constant.OutStatus.CHUKUZHONG.getName())
|
|
|
- .setOutType(Constant.OutType.PURRETURN.getName());
|
|
|
- outboundItemMapper.insert(outboundItem);
|
|
|
+ @Override
|
|
|
+ public String getPrimaryKey() {
|
|
|
+ return "out_id";
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public BaseMapper<Outbound> getRepository() {
|
|
|
+ return outboundMapper;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private OutboundMapper outboundMapper;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private OutboundItemService outboundItemService;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private OutboundItemMapper outboundItemMapper;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private OrderService orderService;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private OrderMapper orderMapper;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private OrderItemService orderItemService;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private OrderItemMapper orderItemMapper;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private CommonService commonService;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private OutboundConvert outboundConvert;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private OutboundItemConvert outboundItemConvert;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private PurchaseItemMapper purchaseItemMapper;
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @desc : 条件查询
|
|
|
+ * @author : 付斌
|
|
|
+ * @date : 2023/1/9 10:40
|
|
|
+ */
|
|
|
+ @Pagination
|
|
|
+ public ResponseResultVO<PageList<OutboundResponse>> selectByCond(OutboundQuery outboundQuery) {
|
|
|
+ return super.mergeListWithCount(outboundQuery, outboundMapper.selectByCond(outboundQuery),
|
|
|
+ outboundMapper.countByCond(outboundQuery));
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @desc : 查询订单明细(货物、收款、附件)
|
|
|
+ * @author : 付斌
|
|
|
+ * @date : 2024-02-28 13:25
|
|
|
+ */
|
|
|
+ @Pagination
|
|
|
+ public ResponseResultVO<Map<String, Object>> selectOutboundInfoById(String id) {
|
|
|
+ Map<String, Object> result = new HashMap<>();
|
|
|
+ // 商品明细
|
|
|
+ List<OutboundItemResponse> outboundItem = outboundItemMapper.selectByCond(new OutboundItemQuery().setOutId(id));
|
|
|
+ result.put("outboundItem", outboundItem);
|
|
|
+
|
|
|
+ // 收款
|
|
|
+
|
|
|
+ // 附件
|
|
|
+ return ResponseResultUtil.success(result);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @desc : 新建方法
|
|
|
+ * @author : 付斌
|
|
|
+ * @date : 2023/1/9 10:49
|
|
|
+ */
|
|
|
+ @Transactional(
|
|
|
+ rollbackFor = {Exception.class}
|
|
|
+ )
|
|
|
+ public ResponseResultVO<?> insert(OutboundVO outboundVO) {
|
|
|
+
|
|
|
+ // 获取单号
|
|
|
+ Map<String, Object> codeMap = commonService.getUniqueNoteCode(Constant.docNameConstant.OUTBOUND.getName(), false);
|
|
|
+ outboundVO.setOutId(codeMap.get("outId").toString()).setOutNo(codeMap.get("outNote").toString())
|
|
|
+ .setOutType(Constant.OutType.SALE.getName());
|
|
|
+ // 转化实体
|
|
|
+ Outbound outbound = outboundConvert.convertToPo(outboundVO);
|
|
|
+ // 总单保存
|
|
|
+ super.insert(outbound);
|
|
|
+
|
|
|
+ // 明细保存
|
|
|
+ if (outboundVO.getItemList() != null && outboundVO.getItemList().size() > 0) {
|
|
|
+ double sumOutingQty = 0; // 合计出库中数量
|
|
|
+ double sumOutingAmt = 0; // 合计出库中金额
|
|
|
+ OrderItem orderItemForUpdate;
|
|
|
+ for (OutboundItemVO outboundItemVO : outboundVO.getItemList()) {
|
|
|
+ OutboundItem outboundItem = outboundItemConvert.convertToPo(outboundItemVO);
|
|
|
+ outboundItem.setOutId(outbound.getOutId()).setCpId(outbound.getCpId()).setOutStatus(Constant.OutStatus.CHUKUZHONG.getName())
|
|
|
+ .setOutType(Constant.OutType.SALE.getName());
|
|
|
+ outboundItemMapper.insert(outboundItem);
|
|
|
+
|
|
|
+ // 反写订单出库中数量、金额
|
|
|
+ orderItemForUpdate = orderItemMapper.selectByIdForUpdate(outboundItem.getFromItemId());
|
|
|
+ // 如果商品数量小于订单+本次出库单上的出库中数量
|
|
|
+ if (orderItemForUpdate.getItemQty().compareTo(orderItemForUpdate.getOutingQty().add(outboundItem.getOutingQty())) == -1) {
|
|
|
+ throw new BaseBusinessException(ResponseCodeEnum.OPERATE_FAIL.getCode(), ErrorCodeEnum.ITEMQTY_NO_LESS_OUTQTY.getMessage());
|
|
|
+ }
|
|
|
+ OrderItem orderItemUpdate = new OrderItem();
|
|
|
+ orderItemUpdate.setOutingQty(orderItemForUpdate.getOutingQty().add(outboundItem.getOutingQty()))
|
|
|
+ .setOutingAmt(orderItemForUpdate.getOutingAmt().add(outboundItem.getOutingAmt()))
|
|
|
+ .setItemId(orderItemForUpdate.getItemId());
|
|
|
+ orderItemService.updateByUuid(orderItemUpdate);
|
|
|
+ // 累加出库中数量,金额
|
|
|
+ sumOutingQty += outboundItem.getOutingQty().doubleValue();
|
|
|
+ sumOutingAmt += outboundItem.getOutingAmt().doubleValue();
|
|
|
+
|
|
|
+ }
|
|
|
+ // 更新订单上的出库中数量,金额,状态
|
|
|
+ Order orderForUpdate = orderMapper.selectByIdForUpdate(outboundVO.getFromId());
|
|
|
+ Order orderUpdate = new Order();
|
|
|
+ orderUpdate.setOutingQty(orderForUpdate.getOutingQty().add(new BigDecimal(sumOutingQty)))
|
|
|
+ .setOutingAmt(orderForUpdate.getOutingAmt().add(new BigDecimal(sumOutingAmt)))
|
|
|
+ .setOutStatus(Constant.OutStatus.CHUKUZHONG.getName())
|
|
|
+ .setOrderId(outboundVO.getFromId());
|
|
|
+ orderService.updateByUuid(orderUpdate);
|
|
|
+ }
|
|
|
+ return ResponseResultUtil.success();
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @desc : 编辑方法
|
|
|
+ * @author : 付斌
|
|
|
+ * @date : 2023/1/9 10:49
|
|
|
+ */
|
|
|
+ @Transactional(
|
|
|
+ rollbackFor = {Exception.class}
|
|
|
+ )
|
|
|
+ public ResponseResultVO<Boolean> update(OutboundVO outboundVO) {
|
|
|
+ // 转化实体
|
|
|
+ Outbound outbound = outboundConvert.convertToPo(outboundVO);
|
|
|
+
|
|
|
+ // 编辑的
|
|
|
+ List<OutboundItemVO> editOutboundItemVOList = outboundVO.getItemList().stream().filter(it -> it.getItemId() != null).collect(Collectors.toList());
|
|
|
+ for (OutboundItemVO outboundItemVO : editOutboundItemVOList) {
|
|
|
+ // 出库中数量不能小于出库数量
|
|
|
+ if (outboundItemVO.getOutingQty().compareTo(outboundItemVO.getOutQty()) == -1) {
|
|
|
+ throw new BaseBusinessException(ResponseCodeEnum.OPERATE_FAIL.getCode(), ErrorCodeEnum.OUTINGQTY_NO_LESS_OUTQTY.getMessage());
|
|
|
+ } else {
|
|
|
+ OutboundItem outboundItem = outboundItemConvert.convertToPo(outboundItemVO);
|
|
|
+ outboundItemService.updateByUuid(outboundItem);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ return ResponseResultUtil.success(super.update(outbound, new UpdateWrapper<Outbound>().lambda().eq(Outbound::getOutId,
|
|
|
+ UUID.fromString(outbound.getOutId()))));
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @desc : 作废
|
|
|
+ * @author : 付斌
|
|
|
+ * @date : 2024-03-08 16:38
|
|
|
+ */
|
|
|
+ public ResponseResultVO<?> invalid(String id) {
|
|
|
+ return ResponseResultUtil.success();
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @desc : 获取订单信息(编辑用)
|
|
|
+ * @author : 付斌
|
|
|
+ * @date : 2024-03-02 17:27
|
|
|
+ */
|
|
|
+ public ResponseResultVO<?> getOutboundForUpdate(String id) {
|
|
|
+ Map<String, Object> outboundInfo = new HashMap<>();
|
|
|
+ OutboundResponse outboundResponse = outboundMapper.selectById(id);
|
|
|
+ outboundInfo.put("outbound", outboundResponse);
|
|
|
+
|
|
|
+ // 商品明细
|
|
|
+ List<OutboundItemResponse> outboundItemResponse = outboundItemMapper.selectByCond(new OutboundItemQuery().setOutId(id));
|
|
|
+ outboundInfo.put("outboundItem", outboundItemResponse);
|
|
|
+ return ResponseResultUtil.success(outboundInfo);
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @desc : 采购退货出库
|
|
|
+ * @author : 于继渤
|
|
|
+ * @date : 2023/1/9 10:49
|
|
|
+ */
|
|
|
+ @Transactional(
|
|
|
+ rollbackFor = {Exception.class}
|
|
|
+ )
|
|
|
+ public ResponseResultVO<?> insertOutBound(OutboundVO outboundVO) {
|
|
|
+
|
|
|
+ // 获取单号
|
|
|
+ Map<String, Object> codeMap = commonService.getUniqueNoteCode(Constant.docNameConstant.OUTBOUND.getName(), false);
|
|
|
+ outboundVO.setOutId(codeMap.get("outId").toString()).setOutNo(codeMap.get("outNote").toString())
|
|
|
+ .setOutType(Constant.OutType.PURRETURN.getName());
|
|
|
+ // 转化实体
|
|
|
+ Outbound outbound = outboundConvert.convertToPo(outboundVO);
|
|
|
+ // 总单保存
|
|
|
+ super.insert(outbound);
|
|
|
+
|
|
|
+ // 明细保存
|
|
|
+ if (outboundVO.getItemList() != null && outboundVO.getItemList().size() > 0) {
|
|
|
+ double sumOutingQty = 0; // 合计出库中数量
|
|
|
+ double sumOutingAmt = 0; // 合计出库中金额
|
|
|
+ for (OutboundItemVO outboundItemVO : outboundVO.getItemList()) {
|
|
|
+ OutboundItem outboundItem = outboundItemConvert.convertToPo(outboundItemVO);
|
|
|
+ outboundItem.setOutId(outbound.getOutId()).setCpId(outbound.getCpId()).setOutStatus(Constant.OutStatus.CHUKUZHONG.getName())
|
|
|
+ .setOutType(Constant.OutType.PURRETURN.getName());
|
|
|
+ outboundItemMapper.insert(outboundItem);
|
|
|
|
|
|
// PurchaseItemResponse purchaseItemResponse = purchaseItemMapper.selectById(outboundItem.getFromItemId());
|
|
|
|
|
|
- // 如果商品数量小于订单+本次出库单上的出库中数量
|
|
|
+ // 如果商品数量小于订单+本次出库单上的出库中数量
|
|
|
// if(orderItem.getItemQty().compareTo(orderItem.getOutingQty().add(outboundItem.getOutingQty())) == -1){
|
|
|
// throw new BaseBusinessException(ResponseCodeEnum.OPERATE_FAIL.getCode(), ErrorCodeEnum.ITEMQTY_NO_LESS_OUTQTY.getMessage());
|
|
|
// }else{
|
|
|
@@ -274,7 +275,7 @@ public class OutboundService extends BaseService<Outbound> {
|
|
|
// sumOutingQty += outboundItem.getOutingQty().doubleValue();
|
|
|
// sumOutingAmt += outboundItem.getOutingAmt().doubleValue();
|
|
|
// }
|
|
|
- }
|
|
|
+ }
|
|
|
// // 更新订单上的出库中数量,金额,状态
|
|
|
// OrderResponse orderResponse = orderMapper.selectById(outboundVO.getFromId());
|
|
|
// Order orderUpdate = new Order();
|
|
|
@@ -283,8 +284,8 @@ public class OutboundService extends BaseService<Outbound> {
|
|
|
// .setOutStatus(Constant.OutStatus.CHUKUZHONG.getName())
|
|
|
// .setOrderId(outboundVO.getFromId());
|
|
|
// orderService.updateByUuid(orderUpdate);
|
|
|
- }
|
|
|
- return ResponseResultUtil.success();
|
|
|
- }
|
|
|
+ }
|
|
|
+ return ResponseResultUtil.success();
|
|
|
+ }
|
|
|
|
|
|
}
|