增加多数据源和主从

beetlsql3-dev
Mlxa0324 3 years ago
parent 23936cfdcc
commit 26abcb0c24

@ -9,6 +9,7 @@ import cn.hutool.core.util.ObjectUtil;
import cn.jlw.util.ToolUtils;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.dynamic.datasource.annotation.DSTransactional;
import com.baomidou.dynamic.datasource.annotation.Master;
import com.ibeetl.admin.core.service.CoreBaseService;
import com.ibeetl.admin.core.util.PlatformException;
@ -26,7 +27,6 @@ import org.apache.commons.lang3.StringUtils;
import org.beetl.sql.core.SqlId;
import org.beetl.sql.core.engine.PageQuery;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource;
import java.util.ArrayList;
@ -43,7 +43,7 @@ import static cn.hutool.core.date.DatePattern.NORM_DATE_PATTERN;
*/
@Service
@Transactional
@DSTransactional
public class TeacherOpenCourseScheduleSessionService extends CoreBaseService<TeacherOpenCourseScheduleSession>{
@Resource private TeacherOpenCourseScheduleSessionDao teacherOpenCourseScheduleSessionDao;

Loading…
Cancel
Save