是否自动生产

This commit is contained in:
Owen 2025-01-11 18:39:19 +08:00
parent 44d3eb78f0
commit f282828075
1 changed files with 11 additions and 9 deletions

View File

@ -15,6 +15,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;
import jakarta.annotation.Resource;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.validation.annotation.Validated;
import cn.iocoder.yudao.module.haoka.controller.admin.orders.vo.*;
@ -99,6 +100,7 @@ public class OrdersServiceImpl extends ServiceImpl<OrdersMapper, OrdersDO> imple
// 19547688 -> 电信 19547688 湖南电信号码+号码ID
@Override
@Transactional(rollbackFor = Exception.class)
public Long createOrders(OrdersSaveReqVO createReqVO) {
// orderCreateParam='{号码ID:1666666}'
// createReqVO.getOrderCreateParam();
@ -117,16 +119,16 @@ public class OrdersServiceImpl extends ServiceImpl<OrdersMapper, OrdersDO> imple
// 创建后需要发送短信
// OrdersDO ordersDO = ordersMapper.selectById(orders.getId());
OrdersDO ordersDO = ordersMapper.selectById(orders.getId());
smsTaskService.sendSMS(
orders.getStatus(),
orders.getId(),
orders.getSource(),
orders.getOnSaleProductId(),
orders.getRefundStatus(),
orders.getCallStatus(),
orders.getAddressMobile(),
orders
ordersDO.getStatus(),
ordersDO.getId(),
ordersDO.getSource(),
ordersDO.getOnSaleProductId(),
ordersDO.getRefundStatus(),
ordersDO.getCallStatus(),
ordersDO.getAddressMobile(),
ordersDO
);
// 返回
return orders.getId();