理论试题管理代码调整
This commit is contained in:
parent
b5497d4cd3
commit
cbc12523bc
@ -1,20 +0,0 @@
|
||||
package club.joylink.rtss.entity.paper.question;
|
||||
|
||||
import java.io.Serializable;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* @author
|
||||
*
|
||||
*/
|
||||
@Data
|
||||
public class PaperQuestionWithBLOBs extends PaperQuestion implements Serializable {
|
||||
/**
|
||||
* 问题内容
|
||||
*/
|
||||
private String topic;
|
||||
|
||||
private String questions;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
@ -77,10 +77,7 @@
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="Base_Column_List">
|
||||
id, `type`, create_user_id, create_time, project_code, company_id, race_lable, is_del,question_answer
|
||||
</sql>
|
||||
<sql id="Blob_Column_List">
|
||||
question, question_option
|
||||
id, `type`, create_user_id, create_time, project_code, company_id, race_lable, is_del,question_answer,question, question_option
|
||||
</sql>
|
||||
<!--<select id="selectByExampleWithBLOBs" parameterType="club.joylink.rtss.entity.race2.PaperQuestionExample" resultMap="ResultMapWithBLOBs">
|
||||
select
|
||||
@ -112,8 +109,7 @@
|
||||
distinct
|
||||
</if>
|
||||
<include refid="Base_Column_List" />
|
||||
,
|
||||
<include refid="Blob_Column_List" />
|
||||
|
||||
from paper_question
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
@ -133,8 +129,7 @@
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
,
|
||||
<include refid="Blob_Column_List" />
|
||||
|
||||
from paper_question
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
</select>
|
||||
@ -148,7 +143,7 @@
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</delete>
|
||||
<insert id="insert" parameterType="club.joylink.rtss.entity.paper.question.PaperQuestionWithBLOBs">
|
||||
<insert id="insert" parameterType="club.joylink.rtss.entity.paper.question.PaperQuestion">
|
||||
insert into paper_question (id, `type`, create_user_id,
|
||||
create_time, project_code, company_id,
|
||||
race_lable, is_del, question,
|
||||
@ -159,7 +154,7 @@
|
||||
#{raceLable,jdbcType=VARCHAR}, #{isDel,jdbcType=INTEGER}, #{question,jdbcType=LONGVARCHAR},
|
||||
#{questionOption,jdbcType=LONGVARCHAR},#{questionAnswer,jdbcType=VARCHAR})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="club.joylink.rtss.entity.paper.question.PaperQuestionWithBLOBs">
|
||||
<insert id="insertSelective" parameterType="club.joylink.rtss.entity.paper.question.PaperQuestion">
|
||||
insert into paper_question
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
@ -313,7 +308,7 @@
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="club.joylink.rtss.entity.paper.question.PaperQuestionWithBLOBs">
|
||||
<update id="updateByPrimaryKeySelective" parameterType="club.joylink.rtss.entity.paper.question.PaperQuestion">
|
||||
update paper_question
|
||||
<set>
|
||||
<if test="type != null">
|
||||
|
Loading…
Reference in New Issue
Block a user