yonge 3 năm trước cách đây
mục cha
commit
ef5b1143a6

+ 2 - 2
cms/src/main/java/com/ym/mec/cms/CmsServerApplication.java

@@ -16,8 +16,8 @@ import com.spring4all.swagger.EnableSwagger2Doc;
 @SpringBootApplication
 @EnableDiscoveryClient
 @EnableFeignClients("com.ym.mec")
-@MapperScan("com.ym.mec.cms.dal.dao")
-@ComponentScan(basePackages = { "com.ym.mec.cms", "com.ym.mec.im", "com.ym.mec.auth", "com.ym.mec.common.config", "com.ym.mec.common.security", "com.yonge.log" })
+@MapperScan({"com.ym.mec.cms.dal.dao", "com.yonge.datasource.dao"})
+@ComponentScan(basePackages = { "com.ym.mec.cms", "com.ym.mec.im", "com.ym.mec.auth", "com.ym.mec.common.config", "com.ym.mec.common.security", "com.yonge.log", "com.yonge.datasource" })
 @Configuration
 @EnableSwagger2Doc
 public class CmsServerApplication {

+ 4 - 4
dynamic-datasource/src/main/resources/config/mybatis/DatabaseSourceMapper.xml

@@ -1,9 +1,9 @@
 <?xml version="1.0" encoding="UTF-8" ?>
 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
 <!-- 这个文件是自动生成的。 不要修改此文件。所有改动将在下次重新自动生成时丢失。 -->
-<mapper namespace="com.keao.edu.datasource.dao.DatabaseSourceDao">
+<mapper namespace="com.yonge.datasource.dao.DatabaseSourceDao">
 
-	<resultMap type="com.keao.edu.datasource.entity.DatabaseSource"
+	<resultMap type="com.yonge.datasource.entity.DatabaseSource"
 		id="DatabaseSource">
 		<result column="id_" property="id" />
 		<result column="tenant_id_" property="tenantId" />
@@ -30,7 +30,7 @@
 	</select>
 
 	<!-- 向数据库增加一条记录 -->
-	<insert id="insert" parameterType="com.keao.edu.datasource.entity.DatabaseSource"
+	<insert id="insert" parameterType="com.yonge.datasource.entity.DatabaseSource"
 		useGeneratedKeys="true" keyColumn="id" keyProperty="id">
 		<!-- <selectKey resultClass="int" keyProperty="id" > SELECT SEQ_WSDEFINITION_ID.nextval 
 			AS ID FROM DUAL </selectKey> -->
@@ -40,7 +40,7 @@
 	</insert>
 
 	<!-- 根据主键查询一条记录 -->
-	<update id="update" parameterType="com.keao.edu.datasource.entity.DatabaseSource">
+	<update id="update" parameterType="com.yonge.datasource.entity.DatabaseSource">
 		UPDATE database_source
 		<set>
 			<if test="driver != null">