Преглед изворни кода

解决mybatis 不支持乐观锁

周箭河 пре 5 година
родитељ
комит
ed494473a8

+ 1 - 1
mec-biz/src/main/java/com/ym/mec/biz/service/StudentRegistrationService.java

@@ -73,7 +73,7 @@ public interface StudentRegistrationService extends BaseService<Long, StudentReg
 	 * @param studentRegistration
 	 * @return
 	 */
-	StudentRegistration addStudent(StudentRegistration studentRegistration) throws IOException;
+	StudentRegistration addStudent(StudentRegistration studentRegistration) throws Exception;
 
 	/**
 	 * 查询学生信息

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

@@ -192,7 +192,7 @@ public class StudentRegistrationServiceImpl extends BaseServiceImpl<Long, Studen
 
     @Override
     @Transactional(rollbackFor = Exception.class)
-    public StudentRegistration addStudent(StudentRegistration studentRegistration) throws IOException {
+    public StudentRegistration addStudent(StudentRegistration studentRegistration) throws Exception {
     	String key = "_student_registration";
     	long threadId = Thread.currentThread().getId();
     	if(!redisCache.getLocked(key, threadId, 10)){