瀏覽代碼

mapper配置修改

hym 4 年之前
父節點
當前提交
1e54ea0e5f

+ 2 - 0
operation_manager/src/main/java/com/huaxu/task/dao/PlanManageMapper.java

@@ -1,7 +1,9 @@
 package com.huaxu.task.dao;
 
 import com.huaxu.task.entity.PlanManage;
+import org.apache.ibatis.annotations.Mapper;
 
+@Mapper
 public interface PlanManageMapper {
 
     int deleteByPrimaryKey(Integer id);

+ 1 - 1
operation_manager/src/main/resources/application-dev.properties

@@ -8,7 +8,7 @@ spring.datasource.username=root
 spring.datasource.password=100Zone@123
 spring.datasource.driver-class-name=com.mysql.jdbc.Driver
 spring.datasource.hikari.max-lifetime=30000
-mybatis-plus.mapper-locations=classpath:mapper/*.xml
+mybatis-plus.mapper-locations=classpath:mapper/*.xml,classpath*:mapper/task/*.xml,classpath*:mapper/order/*.xml
 mybatis-plus.type-aliases-package=com.huaxu.entity
 mybatis-plus.configuration.log-impl=org.apache.ibatis.logging.stdout.StdOutImpl
 mybatis-plus.global-config.db-config.logic-delete-value=0 

+ 2 - 2
operation_manager/src/main/resources/mapper/task/PlanManageMapper.xml

@@ -26,7 +26,7 @@
     <result column="update_by" property="updateBy" jdbcType="VARCHAR" />
     <result column="date_update" property="dateUpdate" jdbcType="DATE" />
 
-    <association property="planUser" javaType="com.huaxu.entity.UserEntity">
+  <!--  <association property="planUser" javaType="com.huaxu.entity.UserEntity">
       <id column="plan_user_id" property="id" jdbcType="INTEGER"/>
       <result column="plan_user_name" property="username"/>
     </association>
@@ -45,7 +45,7 @@
       <id column="update_by_id" property="id" jdbcType="INTEGER"/>
       <result column="update_by_name" property="username"/>
     </association>
-
+-->
   </resultMap>
   <sql id="Base_Column_List" >
     id, plan_id, plan_name, plan_user_id, user_id, plan_date, plan_start_date, plan_end_date,