Fix:BeanUtils.copyProperties(ordersDO,ordersSaveReqVO);

This commit is contained in:
Owen 2025-02-25 17:38:42 +08:00
parent 73194f5f42
commit 058bf99296
1 changed files with 2 additions and 2 deletions

View File

@ -336,7 +336,7 @@ public class DouDianOrderCatchServiceImpl implements OrderCatchService {
orderListAll.addAll(orderList);
for (OrdersDO ordersDO : orderList) {
OrdersSaveReqVO ordersSaveReqVO = new OrdersSaveReqVO();
BeanUtils.copyProperties(ordersSaveReqVO,ordersDO);
BeanUtils.copyProperties(ordersDO,ordersSaveReqVO);
ordersService.createOrders(ordersSaveReqVO);
}
// ordersMapper.insertBatch(orderList);
@ -518,7 +518,7 @@ public class DouDianOrderCatchServiceImpl implements OrderCatchService {
//调用创建订单流程触发发送短信
for (OrdersDO ordersDO : orderList) {
OrdersSaveReqVO ordersSaveReqVO = new OrdersSaveReqVO();
BeanUtils.copyProperties(ordersSaveReqVO,ordersDO);
BeanUtils.copyProperties(ordersDO,ordersSaveReqVO);
ordersService.createOrders(ordersSaveReqVO);
}
// ordersMapper.insertBatch(orderList);