|
@@ -58,8 +58,10 @@ public class TourOrderServiceImpl extends BaseService<TourOrder, Long> implement
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
@Override
|
|
|
public TourOrder saveNew(TourOrder tourOrder) {
|
|
|
- tourOrderMapper.insert(this.buildDefaultValue(tourOrder));
|
|
|
- return tourOrder;
|
|
|
+ TourOrder tourOrder1 = this.buildDefaultValue(tourOrder);
|
|
|
+ tourOrder1.setOrderNo(tourOrder1.getId().toString());
|
|
|
+ tourOrderMapper.insert(tourOrder1);
|
|
|
+ return tourOrder1;
|
|
|
}
|
|
|
|
|
|
@Transactional(rollbackFor = Exception.class)
|