chenchen 2 сар өмнө
parent
commit
5a549975f4

+ 5 - 4
application-webadmin/src/main/java/com/tourism/webadmin/back/service/impl/TourismProjectServiceImpl.java

@@ -127,10 +127,11 @@ public class TourismProjectServiceImpl extends BaseService<TourismProject, Strin
     @Transactional(rollbackFor = Exception.class)
     @Override
     public boolean update(TourismProject tourismProject, TourismProject originalTourismProject) {
-        MyModelUtil.fillCommonsForUpdate(tourismProject, originalTourismProject);
-        // 这里重点提示,在执行主表数据更新之前,如果有哪些字段不支持修改操作,请用原有数据对象字段替换当前数据字段。
-        UpdateWrapper<TourismProject> uw = this.createUpdateQueryForNullValue(tourismProject, String.valueOf(tourismProject.getId()));
-        return tourismProjectMapper.update(tourismProject, uw) == 1;
+//        MyModelUtil.fillCommonsForUpdate(tourismProject, originalTourismProject);
+//        // 这里重点提示,在执行主表数据更新之前,如果有哪些字段不支持修改操作,请用原有数据对象字段替换当前数据字段。
+//        UpdateWrapper<TourismProject> uw = this.createUpdateQueryForNullValue(tourismProject, tourismProject.getId());
+//        return tourismProjectMapper.update(tourismProject, uw) == 1;
+        return tourismProjectMapper.updateById(tourismProject) == 1;
     }
 
     @Transactional(rollbackFor = Exception.class)