Browse Source

场地设置

liujc 2 years ago
parent
commit
8a2b0b3d9c

+ 2 - 1
mec-biz/src/main/java/com/ym/mec/biz/service/impl/CourseScheduleServiceImpl.java

@@ -5607,8 +5607,9 @@ public class CourseScheduleServiceImpl extends BaseServiceImpl<Long, CourseSched
      * @param teachingPoint
      */
     @Override
+    @Transactional(rollbackFor = Exception.class)
     public Boolean teachingPointCourse(TeachingPointWrapper.TeachingPoint teachingPoint) {
-        CourseSchedule courseSchedule = get(Long.valueOf(teachingPoint.getCourseScheduleId()));
+        CourseSchedule courseSchedule = courseScheduleDao.get(Long.valueOf(teachingPoint.getCourseScheduleId()));
         if (courseSchedule == null) {
             throw new BizException("课程不存在");
         }

+ 3 - 0
mec-biz/src/main/resources/config/mybatis/CourseScheduleMapper.xml

@@ -327,6 +327,9 @@
             <if test="isLock != null">
                 is_lock_ = #{isLock},
             </if>
+            <if test="teachingPoint != null">
+                teaching_point_ = #{teachingPoint},
+            </if>
         </set>
         WHERE id_ = #{id} and tenant_id_ = #{tenantId}
     </update>