mirror of
https://github.com/PlayEdu/PlayEdu
synced 2025-12-25 20:35:35 +08:00
资源分类整改
This commit is contained in:
@@ -6,7 +6,8 @@
|
||||
|
||||
<resultMap id="BaseResultMap" type="xyz.playedu.api.domain.ResourceCategory">
|
||||
<id property="id" column="id" jdbcType="INTEGER"/>
|
||||
<result property="type" column="type" jdbcType="VARCHAR"/>
|
||||
<result property="parentId" column="parent_id" jdbcType="INTEGER"/>
|
||||
<result property="parentChain" column="parent_chain" jdbcType="VARCHAR"/>
|
||||
<result property="name" column="name" jdbcType="VARCHAR"/>
|
||||
<result property="sort" column="sort" jdbcType="INTEGER"/>
|
||||
<result property="createdAt" column="created_at" jdbcType="TIMESTAMP"/>
|
||||
@@ -14,7 +15,8 @@
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
id,type,name,
|
||||
sort,created_at,updated_at
|
||||
id,parent_id,parent_chain,
|
||||
name,sort,created_at,
|
||||
updated_at
|
||||
</sql>
|
||||
</mapper>
|
||||
|
||||
15
src/main/resources/mapper/ResourceCategoryRelationMapper.xml
Normal file
15
src/main/resources/mapper/ResourceCategoryRelationMapper.xml
Normal file
@@ -0,0 +1,15 @@
|
||||
<?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.ResourceCategoryRelationMapper">
|
||||
|
||||
<resultMap id="BaseResultMap" type="xyz.playedu.api.domain.ResourceCategoryRelation">
|
||||
<result property="cid" column="cid" jdbcType="INTEGER"/>
|
||||
<result property="rid" column="rid" jdbcType="INTEGER"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
cid,rid
|
||||
</sql>
|
||||
</mapper>
|
||||
@@ -7,7 +7,6 @@
|
||||
<resultMap id="BaseResultMap" type="xyz.playedu.api.domain.Resource">
|
||||
<id property="id" column="id" jdbcType="INTEGER"/>
|
||||
<result property="type" column="type" jdbcType="VARCHAR"/>
|
||||
<result property="categoryId" column="category_id" jdbcType="INTEGER"/>
|
||||
<result property="name" column="name" jdbcType="VARCHAR"/>
|
||||
<result property="extension" column="extension" jdbcType="VARCHAR"/>
|
||||
<result property="size" column="size" jdbcType="BIGINT"/>
|
||||
@@ -21,10 +20,9 @@
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
id,type,category_id,
|
||||
name,extension,size,
|
||||
disk,file_id,path,
|
||||
url,created_at,parent_id,
|
||||
is_hidden
|
||||
id,type,name,
|
||||
extension,size,disk,
|
||||
file_id,path,url,
|
||||
created_at,parent_id,is_hidden
|
||||
</sql>
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user