删除courseCategory该用resource_category

This commit is contained in:
none
2023-03-09 10:06:55 +08:00
parent db1f6fc9c6
commit da74e6425d
16 changed files with 192 additions and 540 deletions

View File

@@ -1,22 +0,0 @@
<?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="xyz.playedu.api.mapper.CourseCategoryMapper">
<resultMap id="BaseResultMap" type="xyz.playedu.api.domain.CourseCategory">
<id property="id" column="id" jdbcType="INTEGER"/>
<result property="name" column="name" jdbcType="VARCHAR"/>
<result property="parentId" column="parent_id" jdbcType="INTEGER"/>
<result property="parentChain" column="parent_chain" jdbcType="VARCHAR"/>
<result property="sort" column="sort" jdbcType="INTEGER"/>
<result property="createdAt" column="created_at" jdbcType="TIMESTAMP"/>
<result property="updatedAt" column="updated_at" jdbcType="TIMESTAMP"/>
</resultMap>
<sql id="Base_Column_List">
id,name,parent_id,
parent_chain,sort,created_at,
updated_at
</sql>
</mapper>

View File

@@ -2,9 +2,9 @@
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="xyz.playedu.api.mapper.CategoryCourseMapper">
<mapper namespace="xyz.playedu.api.mapper.ResourceCourseCategoryMapper">
<resultMap id="BaseResultMap" type="xyz.playedu.api.domain.CategoryCourse">
<resultMap id="BaseResultMap" type="xyz.playedu.api.domain.ResourceCourseCategory">
<result property="courseId" column="course_id" jdbcType="INTEGER"/>
<result property="categoryId" column="category_id" jdbcType="INTEGER"/>
</resultMap>