chenchen 5 сар өмнө
parent
commit
fa9d35cb91

+ 4 - 2
application-webadmin/src/main/java/com/tourism/webadmin/back/service/impl/TourOrderServiceImpl.java

@@ -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)