理论试题管理代码调整
This commit is contained in:
parent
a6ccd7dc81
commit
f8efdbc965
@ -5,9 +5,9 @@ import club.joylink.rtss.services.completition.question.PagerQuestionService;
|
|||||||
import club.joylink.rtss.vo.AccountVO;
|
import club.joylink.rtss.vo.AccountVO;
|
||||||
import club.joylink.rtss.vo.LoginUserInfoVO;
|
import club.joylink.rtss.vo.LoginUserInfoVO;
|
||||||
import club.joylink.rtss.vo.client.PageVO;
|
import club.joylink.rtss.vo.client.PageVO;
|
||||||
|
import club.joylink.rtss.vo.client.pager.question.PagerLableQueryVO;
|
||||||
|
import club.joylink.rtss.vo.client.pager.question.PaperQuestionVO;
|
||||||
import club.joylink.rtss.vo.client.question.QuestionQueryVO;
|
import club.joylink.rtss.vo.client.question.QuestionQueryVO;
|
||||||
import club.joylink.rtss.vo.client.question.v2.PagerLableQueryVO;
|
|
||||||
import club.joylink.rtss.vo.client.question.v2.PaperQuestionVO;
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.validation.annotation.Validated;
|
import org.springframework.validation.annotation.Validated;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
package club.joylink.rtss.dao;
|
package club.joylink.rtss.dao.paper;
|
||||||
|
|
||||||
import club.joylink.rtss.entity.question.PaperQuestion;
|
import club.joylink.rtss.dao.MyBatisBaseDao;
|
||||||
import club.joylink.rtss.entity.question.PaperQuestionExample;
|
import club.joylink.rtss.entity.paper.question.PaperQuestion;
|
||||||
|
import club.joylink.rtss.entity.paper.question.PaperQuestionExample;
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
import org.apache.ibatis.annotations.Select;
|
import org.apache.ibatis.annotations.Select;
|
||||||
import org.springframework.stereotype.Repository;
|
import org.springframework.stereotype.Repository;
|
@ -1,4 +1,4 @@
|
|||||||
package club.joylink.rtss.entity.question;
|
package club.joylink.rtss.entity.paper.question;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
@ -1,4 +1,4 @@
|
|||||||
package club.joylink.rtss.entity.question;
|
package club.joylink.rtss.entity.paper.question;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
@ -1,4 +1,4 @@
|
|||||||
package club.joylink.rtss.entity.question;
|
package club.joylink.rtss.entity.paper.question;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
@ -2,20 +2,19 @@ package club.joylink.rtss.services.completition.question;
|
|||||||
|
|
||||||
import club.joylink.rtss.constants.BusinessConsts;
|
import club.joylink.rtss.constants.BusinessConsts;
|
||||||
import club.joylink.rtss.constants.Project;
|
import club.joylink.rtss.constants.Project;
|
||||||
import club.joylink.rtss.dao.PagerQuestionDAO;
|
import club.joylink.rtss.dao.paper.PagerQuestionDAO;
|
||||||
import club.joylink.rtss.entity.question.PaperQuestion;
|
import club.joylink.rtss.entity.paper.question.PaperQuestion;
|
||||||
import club.joylink.rtss.entity.question.PaperQuestionExample;
|
import club.joylink.rtss.entity.paper.question.PaperQuestionExample;
|
||||||
import club.joylink.rtss.exception.BusinessExceptionAssertEnum;
|
import club.joylink.rtss.exception.BusinessExceptionAssertEnum;
|
||||||
import club.joylink.rtss.vo.AccountVO;
|
import club.joylink.rtss.vo.AccountVO;
|
||||||
import club.joylink.rtss.vo.client.PageVO;
|
import club.joylink.rtss.vo.client.PageVO;
|
||||||
|
import club.joylink.rtss.vo.client.pager.question.PagerLableQueryVO;
|
||||||
|
import club.joylink.rtss.vo.client.pager.question.PaperQuestionOptionVO2;
|
||||||
|
import club.joylink.rtss.vo.client.pager.question.PaperQuestionVO;
|
||||||
import club.joylink.rtss.vo.client.question.QuestionQueryVO;
|
import club.joylink.rtss.vo.client.question.QuestionQueryVO;
|
||||||
import club.joylink.rtss.vo.client.question.v2.PagerLableQueryVO;
|
|
||||||
import club.joylink.rtss.vo.client.question.v2.PaperQuestionOptionVO2;
|
|
||||||
import club.joylink.rtss.vo.client.question.v2.PaperQuestionVO;
|
|
||||||
import com.github.pagehelper.Page;
|
import com.github.pagehelper.Page;
|
||||||
import com.github.pagehelper.PageHelper;
|
import com.github.pagehelper.PageHelper;
|
||||||
import com.google.common.base.Splitter;
|
import com.google.common.base.Splitter;
|
||||||
import com.google.common.base.Strings;
|
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
import org.springframework.util.CollectionUtils;
|
import org.springframework.util.CollectionUtils;
|
||||||
|
@ -1,11 +1,8 @@
|
|||||||
package club.joylink.rtss.vo.client.question.v2;
|
package club.joylink.rtss.vo.client.pager.question;
|
||||||
|
|
||||||
import com.google.common.base.Joiner;
|
|
||||||
import com.google.common.base.Strings;
|
import com.google.common.base.Strings;
|
||||||
import com.google.common.collect.Lists;
|
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import org.springframework.util.CollectionUtils;
|
import org.springframework.util.CollectionUtils;
|
||||||
import org.springframework.util.StringUtils;
|
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
@ -1,4 +1,4 @@
|
|||||||
package club.joylink.rtss.vo.client.question.v2;
|
package club.joylink.rtss.vo.client.pager.question;
|
||||||
|
|
||||||
import club.joylink.rtss.entity.RaceQuestionOption;
|
import club.joylink.rtss.entity.RaceQuestionOption;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
@ -1,8 +1,8 @@
|
|||||||
package club.joylink.rtss.vo.client.question.v2;
|
package club.joylink.rtss.vo.client.pager.question;
|
||||||
|
|
||||||
import club.joylink.rtss.constants.BusinessConsts;
|
import club.joylink.rtss.constants.BusinessConsts;
|
||||||
import club.joylink.rtss.constants.Project;
|
import club.joylink.rtss.constants.Project;
|
||||||
import club.joylink.rtss.entity.question.PaperQuestion;
|
import club.joylink.rtss.entity.paper.question.PaperQuestion;
|
||||||
import club.joylink.rtss.util.JsonUtils;
|
import club.joylink.rtss.util.JsonUtils;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import lombok.NoArgsConstructor;
|
import lombok.NoArgsConstructor;
|
@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?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">
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="club.joylink.rtss.dao.PagerQuestionDAO">
|
<mapper namespace="club.joylink.rtss.dao.paper.PagerQuestionDAO">
|
||||||
<resultMap id="BaseResultMap" type="club.joylink.rtss.entity.question.PaperQuestion">
|
<resultMap id="BaseResultMap" type="club.joylink.rtss.entity.paper.question.PaperQuestion">
|
||||||
<id column="id" jdbcType="BIGINT" property="id" />
|
<id column="id" jdbcType="BIGINT" property="id" />
|
||||||
<result column="type" jdbcType="VARCHAR" property="type" />
|
<result column="type" jdbcType="VARCHAR" property="type" />
|
||||||
<result column="create_user_id" jdbcType="BIGINT" property="createUserId" />
|
<result column="create_user_id" jdbcType="BIGINT" property="createUserId" />
|
||||||
@ -105,7 +105,7 @@
|
|||||||
</if>
|
</if>
|
||||||
</if>
|
</if>
|
||||||
</select>-->
|
</select>-->
|
||||||
<select id="selectByExample" parameterType="club.joylink.rtss.entity.question.PaperQuestionExample" resultMap="BaseResultMap">
|
<select id="selectByExample" parameterType="club.joylink.rtss.entity.paper.question.PaperQuestionExample" resultMap="BaseResultMap">
|
||||||
select
|
select
|
||||||
<if test="distinct">
|
<if test="distinct">
|
||||||
distinct
|
distinct
|
||||||
@ -141,13 +141,13 @@
|
|||||||
delete from paper_question
|
delete from paper_question
|
||||||
where id = #{id,jdbcType=BIGINT}
|
where id = #{id,jdbcType=BIGINT}
|
||||||
</delete>
|
</delete>
|
||||||
<delete id="deleteByExample" parameterType="club.joylink.rtss.entity.question.PaperQuestionExample">
|
<delete id="deleteByExample" parameterType="club.joylink.rtss.entity.paper.question.PaperQuestionExample">
|
||||||
delete from paper_question
|
delete from paper_question
|
||||||
<if test="_parameter != null">
|
<if test="_parameter != null">
|
||||||
<include refid="Example_Where_Clause" />
|
<include refid="Example_Where_Clause" />
|
||||||
</if>
|
</if>
|
||||||
</delete>
|
</delete>
|
||||||
<insert id="insert" parameterType="club.joylink.rtss.entity.question.PaperQuestionWithBLOBs">
|
<insert id="insert" parameterType="club.joylink.rtss.entity.paper.question.PaperQuestionWithBLOBs">
|
||||||
insert into paper_question (id, `type`, create_user_id,
|
insert into paper_question (id, `type`, create_user_id,
|
||||||
create_time, project_code, company_id,
|
create_time, project_code, company_id,
|
||||||
race_lable, is_del, topic,
|
race_lable, is_del, topic,
|
||||||
@ -157,7 +157,7 @@
|
|||||||
#{raceLable,jdbcType=VARCHAR}, #{isDel,jdbcType=INTEGER}, #{topic,jdbcType=LONGVARCHAR},
|
#{raceLable,jdbcType=VARCHAR}, #{isDel,jdbcType=INTEGER}, #{topic,jdbcType=LONGVARCHAR},
|
||||||
#{questions,jdbcType=LONGVARCHAR})
|
#{questions,jdbcType=LONGVARCHAR})
|
||||||
</insert>
|
</insert>
|
||||||
<insert id="insertSelective" parameterType="club.joylink.rtss.entity.question.PaperQuestionWithBLOBs">
|
<insert id="insertSelective" parameterType="club.joylink.rtss.entity.paper.question.PaperQuestionWithBLOBs">
|
||||||
insert into paper_question
|
insert into paper_question
|
||||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||||
<if test="id != null">
|
<if test="id != null">
|
||||||
@ -224,7 +224,7 @@
|
|||||||
</if>
|
</if>
|
||||||
</trim>
|
</trim>
|
||||||
</insert>
|
</insert>
|
||||||
<select id="countByExample" parameterType="club.joylink.rtss.entity.question.PaperQuestionExample" resultType="java.lang.Long">
|
<select id="countByExample" parameterType="club.joylink.rtss.entity.paper.question.PaperQuestionExample" resultType="java.lang.Long">
|
||||||
select count(*) from paper_question
|
select count(*) from paper_question
|
||||||
<if test="_parameter != null">
|
<if test="_parameter != null">
|
||||||
<include refid="Example_Where_Clause" />
|
<include refid="Example_Where_Clause" />
|
||||||
@ -301,7 +301,7 @@
|
|||||||
<include refid="Update_By_Example_Where_Clause" />
|
<include refid="Update_By_Example_Where_Clause" />
|
||||||
</if>
|
</if>
|
||||||
</update>
|
</update>
|
||||||
<update id="updateByPrimaryKeySelective" parameterType="club.joylink.rtss.entity.question.PaperQuestionWithBLOBs">
|
<update id="updateByPrimaryKeySelective" parameterType="club.joylink.rtss.entity.paper.question.PaperQuestionWithBLOBs">
|
||||||
update paper_question
|
update paper_question
|
||||||
<set>
|
<set>
|
||||||
<if test="type != null">
|
<if test="type != null">
|
||||||
@ -347,7 +347,7 @@
|
|||||||
questions = #{questions,jdbcType=LONGVARCHAR}
|
questions = #{questions,jdbcType=LONGVARCHAR}
|
||||||
where id = #{id,jdbcType=BIGINT}
|
where id = #{id,jdbcType=BIGINT}
|
||||||
</update>-->
|
</update>-->
|
||||||
<update id="updateByPrimaryKey" parameterType="club.joylink.rtss.entity.question.PaperQuestion">
|
<update id="updateByPrimaryKey" parameterType="club.joylink.rtss.entity.paper.question.PaperQuestion">
|
||||||
update paper_question
|
update paper_question
|
||||||
set `type` = #{type,jdbcType=VARCHAR},
|
set `type` = #{type,jdbcType=VARCHAR},
|
||||||
create_user_id = #{createUserId,jdbcType=BIGINT},
|
create_user_id = #{createUserId,jdbcType=BIGINT},
|
||||||
|
Loading…
Reference in New Issue
Block a user