|
@@ -1,13 +1,13 @@
|
|
|
<?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.qxgmat.data.relation.UserPaperRelationMapper">
|
|
|
- <resultMap id="BaseResultMap" type="com.qxgmat.data.dao.entity.UserPaper">
|
|
|
+ <resultMap id="IdMap" type="com.qxgmat.data.dao.entity.UserPaper">
|
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
|
-->
|
|
|
- <id column="id" jdbcType="INT" property="id" />
|
|
|
+ <id column="id" jdbcType="INTEGER" property="id" />
|
|
|
</resultMap>
|
|
|
- <sql id="Base_Column_List">
|
|
|
+ <sql id="Id_Column_List">
|
|
|
<!--
|
|
|
WARNING - @mbg.generated
|
|
|
-->
|
|
@@ -18,9 +18,9 @@
|
|
|
用户预习作业列表: 后台
|
|
|
https://blog.csdn.net/t_1007/article/details/52369261
|
|
|
-->
|
|
|
- <select id="listHomeworkPreviewAdmin" resultMap="BaseResultMap">
|
|
|
+ <select id="listHomeworkPreviewAdmin" resultMap="IdMap">
|
|
|
select
|
|
|
- <include refid="Base_Column_List" />
|
|
|
+ <include refid="Id_Column_List" />
|
|
|
from `user_paper` up
|
|
|
left join `homework_preview` hp on hp.`id` = up.`module_id`
|
|
|
and up.`module` = "homework_preview"
|
|
@@ -46,9 +46,9 @@
|
|
|
<!--
|
|
|
用户预习作业列表: 用户端
|
|
|
-->
|
|
|
- <select id="listHomeworkPreview" resultMap="BaseResultMap">
|
|
|
+ <select id="listHomeworkPreview" resultMap="IdMap">
|
|
|
select
|
|
|
- <include refid="Base_Column_List" />
|
|
|
+ <include refid="Id_Column_List" />
|
|
|
from `user_paper` up
|
|
|
left join `homework_preview` hp on hp.`id` = up.`module_id`
|
|
|
and up.`module` = "homework_preview"
|
|
@@ -76,9 +76,9 @@
|
|
|
<!--
|
|
|
用户预习作业Top列表: 用户端
|
|
|
-->
|
|
|
- <select id="listHomeworkPreviewGroupTop" resultMap="BaseResultMap">
|
|
|
+ <select id="listHomeworkPreviewGroupTop" resultMap="IdMap">
|
|
|
select
|
|
|
- <include refid="Base_Column_List" />
|
|
|
+ <include refid="Id_Column_List" />
|
|
|
from `user_paper` up
|
|
|
where
|
|
|
hp.`id` != null
|