添加了课程模块
This commit is contained in:
24
src/main/resources/mapper/CourseChapterMapper.xml
Normal file
24
src/main/resources/mapper/CourseChapterMapper.xml
Normal file
@ -0,0 +1,24 @@
|
||||
<?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.greenorange.promotion.mapper.CourseChapterMapper">
|
||||
|
||||
<resultMap id="BaseResultMap" type="com.greenorange.promotion.model.entity.CourseChapter">
|
||||
<id property="id" column="id" jdbcType="BIGINT"/>
|
||||
<result property="name" column="name" jdbcType="VARCHAR"/>
|
||||
<result property="duration" column="duration" jdbcType="VARCHAR"/>
|
||||
<result property="permissions" column="permissions" jdbcType="OTHER"/>
|
||||
<result property="videoView" column="videoView" jdbcType="VARCHAR"/>
|
||||
<result property="courseId" column="courseId" jdbcType="BIGINT"/>
|
||||
<result property="isDelete" column="isDelete" jdbcType="TINYINT"/>
|
||||
<result property="createTime" column="createTime" jdbcType="TIMESTAMP"/>
|
||||
<result property="updateTime" column="updateTime" jdbcType="TIMESTAMP"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
id,name,duration,
|
||||
permissions,videoView,courseId,
|
||||
isDelete,createTime,updateTime
|
||||
</sql>
|
||||
</mapper>
|
31
src/main/resources/mapper/CourseMapper.xml
Normal file
31
src/main/resources/mapper/CourseMapper.xml
Normal file
@ -0,0 +1,31 @@
|
||||
<?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.greenorange.promotion.mapper.CourseMapper">
|
||||
|
||||
<resultMap id="BaseResultMap" type="com.greenorange.promotion.model.entity.Course">
|
||||
<id property="id" column="id" jdbcType="BIGINT"/>
|
||||
<result property="name" column="name" jdbcType="VARCHAR"/>
|
||||
<result property="type" column="type" jdbcType="VARCHAR"/>
|
||||
<result property="detail" column="detail" jdbcType="VARCHAR"/>
|
||||
<result property="promoCodeDesc" column="promoCodeDesc" jdbcType="VARCHAR"/>
|
||||
<result property="image" column="image" jdbcType="VARCHAR"/>
|
||||
<result property="originPrice" column="originPrice" jdbcType="DECIMAL"/>
|
||||
<result property="discountPrice" column="discountPrice" jdbcType="DECIMAL"/>
|
||||
<result property="orderCount" column="orderCount" jdbcType="INTEGER"/>
|
||||
<result property="firstLevelRate" column="firstLevelRate" jdbcType="DECIMAL"/>
|
||||
<result property="secondLevelRate" column="secondLevelRate" jdbcType="DECIMAL"/>
|
||||
<result property="isDelete" column="isDelete" jdbcType="TINYINT"/>
|
||||
<result property="createTime" column="createTime" jdbcType="TIMESTAMP"/>
|
||||
<result property="updateTime" column="updateTime" jdbcType="TIMESTAMP"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
id,name,type,
|
||||
detail,promoCodeDesc,image,
|
||||
originPrice,discountPrice,orderCount,
|
||||
firstLevelRate,secondLevelRate,isDelete,
|
||||
createTime,updateTime
|
||||
</sql>
|
||||
</mapper>
|
31
src/main/resources/mapper/CourseOrderMapper.xml
Normal file
31
src/main/resources/mapper/CourseOrderMapper.xml
Normal file
@ -0,0 +1,31 @@
|
||||
<?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.greenorange.promotion.mapper.CourseOrderMapper">
|
||||
|
||||
<resultMap id="BaseResultMap" type="com.greenorange.promotion.model.entity.CourseOrder">
|
||||
<id property="id" column="id" jdbcType="BIGINT"/>
|
||||
<result property="orderNumber" column="orderNumber" jdbcType="VARCHAR"/>
|
||||
<result property="courseId" column="courseId" jdbcType="BIGINT"/>
|
||||
<result property="name" column="name" jdbcType="VARCHAR"/>
|
||||
<result property="type" column="type" jdbcType="VARCHAR"/>
|
||||
<result property="image" column="image" jdbcType="VARCHAR"/>
|
||||
<result property="originPrice" column="originPrice" jdbcType="DECIMAL"/>
|
||||
<result property="discountPrice" column="discountPrice" jdbcType="DECIMAL"/>
|
||||
<result property="totalAmount" column="totalAmount" jdbcType="DECIMAL"/>
|
||||
<result property="transactionNumber" column="transactionNumber" jdbcType="VARCHAR"/>
|
||||
<result property="orderStatus" column="orderStatus" jdbcType="OTHER"/>
|
||||
<result property="isDelete" column="isDelete" jdbcType="TINYINT"/>
|
||||
<result property="createTime" column="createTime" jdbcType="TIMESTAMP"/>
|
||||
<result property="updateTime" column="updateTime" jdbcType="TIMESTAMP"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
id,orderNumber,courseId,
|
||||
name,type,image,
|
||||
originPrice,discountPrice,totalAmount,
|
||||
transactionNumber,orderStatus,isDelete,
|
||||
createTime,updateTime
|
||||
</sql>
|
||||
</mapper>
|
28
src/main/resources/mapper/PromoRecordMapper.xml
Normal file
28
src/main/resources/mapper/PromoRecordMapper.xml
Normal file
@ -0,0 +1,28 @@
|
||||
<?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.greenorange.promotion.mapper.PromoRecordMapper">
|
||||
|
||||
<resultMap id="BaseResultMap" type="com.greenorange.promotion.model.entity.PromoRecord">
|
||||
<id property="id" column="id" jdbcType="BIGINT"/>
|
||||
<result property="courseId" column="courseId" jdbcType="BIGINT"/>
|
||||
<result property="subUserId" column="subUserId" jdbcType="BIGINT"/>
|
||||
<result property="nickName" column="nickName" jdbcType="VARCHAR"/>
|
||||
<result property="phone" column="phone" jdbcType="VARCHAR"/>
|
||||
<result property="benefits" column="benefits" jdbcType="DECIMAL"/>
|
||||
<result property="bindTime" column="bindTime" jdbcType="VARCHAR"/>
|
||||
<result property="promoType" column="promoType" jdbcType="OTHER"/>
|
||||
<result property="userId" column="userId" jdbcType="BIGINT"/>
|
||||
<result property="isDelete" column="isDelete" jdbcType="TINYINT"/>
|
||||
<result property="createTime" column="createTime" jdbcType="TIMESTAMP"/>
|
||||
<result property="updateTime" column="updateTime" jdbcType="TIMESTAMP"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
id,courseId,subUserId,
|
||||
nickName,phone,benefits,
|
||||
bindTime,promoType,userId,
|
||||
isDelete,createTime,updateTime
|
||||
</sql>
|
||||
</mapper>
|
36
src/main/resources/mapper/RakeRewardMapper.xml
Normal file
36
src/main/resources/mapper/RakeRewardMapper.xml
Normal file
@ -0,0 +1,36 @@
|
||||
<?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.greenorange.promotion.mapper.RakeRewardMapper">
|
||||
|
||||
<resultMap id="BaseResultMap" type="com.greenorange.promotion.model.entity.RakeReward">
|
||||
<id property="id" column="id" jdbcType="BIGINT"/>
|
||||
<result property="courseId" column="courseId" jdbcType="BIGINT"/>
|
||||
<result property="name" column="name" jdbcType="VARCHAR"/>
|
||||
<result property="type" column="type" jdbcType="VARCHAR"/>
|
||||
<result property="image" column="image" jdbcType="VARCHAR"/>
|
||||
<result property="firstLevelRate" column="firstLevelRate" jdbcType="DECIMAL"/>
|
||||
<result property="secondLevelRate" column="secondLevelRate" jdbcType="DECIMAL"/>
|
||||
<result property="orderId" column="orderId" jdbcType="BIGINT"/>
|
||||
<result property="userId" column="userId" jdbcType="BIGINT"/>
|
||||
<result property="nickName" column="nickName" jdbcType="VARCHAR"/>
|
||||
<result property="totalAmount" column="totalAmount" jdbcType="DECIMAL"/>
|
||||
<result property="orderCreateTime" column="orderCreateTime" jdbcType="DATE"/>
|
||||
<result property="promoId" column="promoId" jdbcType="BIGINT"/>
|
||||
<result property="promoType" column="promoType" jdbcType="OTHER"/>
|
||||
<result property="reward" column="reward" jdbcType="DECIMAL"/>
|
||||
<result property="isDelete" column="isDelete" jdbcType="TINYINT"/>
|
||||
<result property="createTime" column="createTime" jdbcType="TIMESTAMP"/>
|
||||
<result property="updateTime" column="updateTime" jdbcType="TIMESTAMP"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
id,courseId,name,
|
||||
type,image,firstLevelRate,
|
||||
secondLevelRate,orderId,userId,
|
||||
nickName,totalAmount,orderCreateTime,
|
||||
promoId,promoType,reward,
|
||||
isDelete,createTime,updateTime
|
||||
</sql>
|
||||
</mapper>
|
Reference in New Issue
Block a user