委托加工更新提交erp优化
This commit is contained in:
@@ -192,5 +192,7 @@ public class EntrustOrderOrderRespVO {
|
||||
@ExcelProperty("订单类型")
|
||||
@Schema(description = "订单类型,(字典:SPLY_BSN_TP)")
|
||||
private String splyBsnTp;
|
||||
@Schema(description = "相关订单id")
|
||||
private Long relatedOrderId;
|
||||
|
||||
}
|
||||
@@ -227,4 +227,7 @@ public class SalesOrderRespVO {
|
||||
@Schema(description = "erp失败原因")
|
||||
private String issueCause;
|
||||
|
||||
@Schema(description = "相关订单id")
|
||||
private Long relatedOrderId;
|
||||
|
||||
}
|
||||
|
||||
@@ -981,8 +981,10 @@ public class PurchaseOrderServiceImpl implements PurchaseOrderService {
|
||||
int update = purchaseOrderMapper.update(updateWrapper);
|
||||
log.info("已绑定的订单已解绑,订单ID:{},影响行数:{}",orderDO.getRelatedOrderId(),update);
|
||||
}
|
||||
orderDO.setRelatedOrderId(reqVO.getBoundId());
|
||||
purchaseOrderMapper.updateById(orderDO);
|
||||
LambdaUpdateWrapper<PurchaseOrderDO> boundUpdateWrapper = new LambdaUpdateWrapper<>();
|
||||
boundUpdateWrapper.eq(PurchaseOrderDO::getId, reqVO.getId())
|
||||
.set(PurchaseOrderDO::getRelatedOrderId, reqVO.getBoundId());
|
||||
purchaseOrderMapper.update(boundUpdateWrapper);
|
||||
log.info("订单ID:{} 已绑定订单ID:{}", reqVO.getId(), reqVO.getBoundId());
|
||||
//修改已绑定的的订单
|
||||
if (boundOrder.getRelatedOrderId() != null){
|
||||
|
||||
Reference in New Issue
Block a user