|
@@ -326,19 +326,19 @@ public class LibJoinServiceImpl extends BaseServiceImpl<TbLibJoin, String> imple
|
|
|
libCommissionService.insertCommission(lib.getId());
|
|
|
libBorrowedServiceService.insertBorrowedService(lib.getId(),lib.getLibtype());
|
|
|
|
|
|
- try {
|
|
|
- TbClass tbClass=tbClassService.getTbClassByLibId(lib.getId(), "一班");
|
|
|
- if(tbClass==null) {
|
|
|
- tbClass=new TbClass();
|
|
|
- tbClass.setLibId(lib.getId());
|
|
|
- tbClass.setSchool(lib.getLeagueName());
|
|
|
- tbClass.setClassName("一班");
|
|
|
- tbClass.setCreateTime(new Date());
|
|
|
- tbClass.setStatus(2);
|
|
|
- tbClassService.save(tbClass);
|
|
|
- }
|
|
|
- } catch (Exception e) {
|
|
|
- throw new Exception("添加馆创建班级异常...");
|
|
|
- }
|
|
|
+// try {
|
|
|
+// TbClass tbClass=tbClassService.getTbClassByLibId(lib.getId(), "一班");
|
|
|
+// if(tbClass==null) {
|
|
|
+// tbClass=new TbClass();
|
|
|
+// tbClass.setLibId(lib.getId());
|
|
|
+// tbClass.setSchool(lib.getLeagueName());
|
|
|
+// tbClass.setClassName("一班");
|
|
|
+// tbClass.setCreateTime(new Date());
|
|
|
+// tbClass.setStatus(2);
|
|
|
+// tbClassService.save(tbClass);
|
|
|
+// }
|
|
|
+// } catch (Exception e) {
|
|
|
+// throw new Exception("添加馆创建班级异常...");
|
|
|
+// }
|
|
|
}
|
|
|
}
|