项目初始化
This commit is contained in:
56
ruoyi-dw/src/main/resources/mapper/dw/CjOptionMapper.xml
Normal file
56
ruoyi-dw/src/main/resources/mapper/dw/CjOptionMapper.xml
Normal file
@ -0,0 +1,56 @@
|
||||
<?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.ruoyi.dw.mapper.CjOptionMapper">
|
||||
|
||||
<resultMap type="CjOption" id="CjOptionResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="optionInfo" column="option_info" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectCjOptionVo">
|
||||
select id, option_info from cj_option
|
||||
</sql>
|
||||
|
||||
<select id="selectCjOptionList" parameterType="CjOption" resultMap="CjOptionResult">
|
||||
<include refid="selectCjOptionVo"/>
|
||||
<where>
|
||||
<if test="optionInfo != null and optionInfo != ''"> and option_info = #{optionInfo}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectCjOptionById" parameterType="Long" resultMap="CjOptionResult">
|
||||
<include refid="selectCjOptionVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertCjOption" parameterType="CjOption" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into cj_option
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="optionInfo != null">option_info,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="optionInfo != null">#{optionInfo},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateCjOption" parameterType="CjOption">
|
||||
update cj_option
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="optionInfo != null">option_info = #{optionInfo},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteCjOptionById" parameterType="Long">
|
||||
delete from cj_option where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteCjOptionByIds" parameterType="String">
|
||||
delete from cj_option where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
138
ruoyi-dw/src/main/resources/mapper/dw/CjStudentMapper.xml
Normal file
138
ruoyi-dw/src/main/resources/mapper/dw/CjStudentMapper.xml
Normal file
@ -0,0 +1,138 @@
|
||||
<?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.ruoyi.dw.mapper.CjStudentMapper">
|
||||
|
||||
<resultMap type="CjStudent" id="CjStudentResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="xm" column="xm" />
|
||||
<result property="xb" column="xb" />
|
||||
<result property="zy" column="zy" />
|
||||
<result property="bynf" column="bynf" />
|
||||
<result property="zgyl" column="zgyl" />
|
||||
<result property="gzdw" column="gzdw" />
|
||||
<result property="dwxz" column="dwxz" />
|
||||
<result property="dwdz" column="dwdz" />
|
||||
<result property="zwjb" column="zwjb" />
|
||||
<result property="shjz" column="shjz" />
|
||||
<result property="dbry" column="dbry" />
|
||||
<result property="rysfzs" column="rysfzs" />
|
||||
<result property="sj" column="sj" />
|
||||
<result property="yx" column="yx" />
|
||||
<result property="qt" column="qt" />
|
||||
<result property="sfqr" column="sfqr" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectCjStudentVo">
|
||||
select id, xm, xb, zy, bynf, zgyl, gzdw, dwxz, dwdz, zwjb, shjz, dbry, rysfzs, sj, yx, qt, sfqr from cj_student
|
||||
</sql>
|
||||
|
||||
<select id="selectCjStudentList" parameterType="CjStudent" resultMap="CjStudentResult">
|
||||
<include refid="selectCjStudentVo"/>
|
||||
<where>
|
||||
<if test="xm != null and xm != ''"> and xm = #{xm}</if>
|
||||
<if test="xb != null and xb != ''"> and xb = #{xb}</if>
|
||||
<if test="zy != null and zy != ''"> and zy = #{zy}</if>
|
||||
<if test="bynf != null "> and bynf = #{bynf}</if>
|
||||
<if test="zgyl != null and zgyl != ''"> and zgyl = #{zgyl}</if>
|
||||
<if test="gzdw != null and gzdw != ''"> and gzdw = #{gzdw}</if>
|
||||
<if test="dwxz != null and dwxz != ''"> and dwxz = #{dwxz}</if>
|
||||
<if test="dwdz != null and dwdz != ''"> and dwdz = #{dwdz}</if>
|
||||
<if test="zwjb != null and zwjb != ''"> and zwjb = #{zwjb}</if>
|
||||
<if test="shjz != null and shjz != ''"> and shjz = #{shjz}</if>
|
||||
<if test="dbry != null and dbry != ''"> and dbry = #{dbry}</if>
|
||||
<if test="rysfzs != null "> and rysfzs = #{rysfzs}</if>
|
||||
<if test="sj != null and sj != ''"> and sj = #{sj}</if>
|
||||
<if test="yx != null and yx != ''"> and yx = #{yx}</if>
|
||||
<if test="qt != null and qt != ''"> and qt = #{qt}</if>
|
||||
<if test="sfqr != null "> and sfqr = #{sfqr}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectCjStudentById" parameterType="Long" resultMap="CjStudentResult">
|
||||
<include refid="selectCjStudentVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertCjStudent" parameterType="CjStudent" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into cj_student
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="xm != null">xm,</if>
|
||||
<if test="xb != null">xb,</if>
|
||||
<if test="zy != null">zy,</if>
|
||||
<if test="bynf != null">bynf,</if>
|
||||
<if test="zgyl != null">zgyl,</if>
|
||||
<if test="gzdw != null">gzdw,</if>
|
||||
<if test="dwxz != null">dwxz,</if>
|
||||
<if test="dwdz != null">dwdz,</if>
|
||||
<if test="zwjb != null">zwjb,</if>
|
||||
<if test="shjz != null">shjz,</if>
|
||||
<if test="dbry != null">dbry,</if>
|
||||
<if test="rysfzs != null">rysfzs,</if>
|
||||
<if test="sj != null">sj,</if>
|
||||
<if test="yx != null">yx,</if>
|
||||
<if test="qt != null">qt,</if>
|
||||
<if test="sfqr != null">sfqr,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="xm != null">#{xm},</if>
|
||||
<if test="xb != null">#{xb},</if>
|
||||
<if test="zy != null">#{zy},</if>
|
||||
<if test="bynf != null">#{bynf},</if>
|
||||
<if test="zgyl != null">#{zgyl},</if>
|
||||
<if test="gzdw != null">#{gzdw},</if>
|
||||
<if test="dwxz != null">#{dwxz},</if>
|
||||
<if test="dwdz != null">#{dwdz},</if>
|
||||
<if test="zwjb != null">#{zwjb},</if>
|
||||
<if test="shjz != null">#{shjz},</if>
|
||||
<if test="dbry != null">#{dbry},</if>
|
||||
<if test="rysfzs != null">#{rysfzs},</if>
|
||||
<if test="sj != null">#{sj},</if>
|
||||
<if test="yx != null">#{yx},</if>
|
||||
<if test="qt != null">#{qt},</if>
|
||||
<if test="sfqr != null">#{sfqr},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateCjStudent" parameterType="CjStudent">
|
||||
update cj_student
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="xm != null">xm = #{xm},</if>
|
||||
<if test="xb != null">xb = #{xb},</if>
|
||||
<if test="zy != null">zy = #{zy},</if>
|
||||
<if test="bynf != null">bynf = #{bynf},</if>
|
||||
<if test="zgyl != null">zgyl = #{zgyl},</if>
|
||||
<if test="gzdw != null">gzdw = #{gzdw},</if>
|
||||
<if test="dwxz != null">dwxz = #{dwxz},</if>
|
||||
<if test="dwdz != null">dwdz = #{dwdz},</if>
|
||||
<if test="zwjb != null">zwjb = #{zwjb},</if>
|
||||
<if test="shjz != null">shjz = #{shjz},</if>
|
||||
<if test="dbry != null">dbry = #{dbry},</if>
|
||||
<if test="rysfzs != null">rysfzs = #{rysfzs},</if>
|
||||
<if test="sj != null">sj = #{sj},</if>
|
||||
<if test="yx != null">yx = #{yx},</if>
|
||||
<if test="qt != null">qt = #{qt},</if>
|
||||
<if test="sfqr != null">sfqr = #{sfqr},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteCjStudentById" parameterType="Long">
|
||||
delete from cj_student where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteCjStudentByIds" parameterType="String">
|
||||
delete from cj_student where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
<delete id="confirmCjStudentByIds" parameterType="String">
|
||||
update cj_student set sfqr = 1 where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
68
ruoyi-dw/src/main/resources/mapper/dw/DwAnswerMapper.xml
Normal file
68
ruoyi-dw/src/main/resources/mapper/dw/DwAnswerMapper.xml
Normal file
@ -0,0 +1,68 @@
|
||||
<?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.ruoyi.dw.mapper.DwAnswerMapper">
|
||||
|
||||
<resultMap type="DwAnswer" id="DwAnswerResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="infoId" column="info_id" />
|
||||
<result property="questionId" column="question_id" />
|
||||
<result property="answer" column="answer" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectDwAnswerVo">
|
||||
select id, info_id, question_id, answer from dw_answer
|
||||
</sql>
|
||||
|
||||
<select id="selectDwAnswerList" parameterType="DwAnswer" resultMap="DwAnswerResult">
|
||||
<include refid="selectDwAnswerVo"/>
|
||||
<where>
|
||||
<if test="infoId != null "> and info_id = #{infoId}</if>
|
||||
<if test="questionId != null "> and question_id = #{questionId}</if>
|
||||
<if test="answer != null and answer != ''"> and answer = #{answer}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectDwAnswerById" parameterType="Long" resultMap="DwAnswerResult">
|
||||
<include refid="selectDwAnswerVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertDwAnswer" parameterType="DwAnswer">
|
||||
insert into dw_answer
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="infoId != null">info_id,</if>
|
||||
<if test="questionId != null">question_id,</if>
|
||||
<if test="answer != null">answer,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="infoId != null">#{infoId},</if>
|
||||
<if test="questionId != null">#{questionId},</if>
|
||||
<if test="answer != null">#{answer},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateDwAnswer" parameterType="DwAnswer">
|
||||
update dw_answer
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="infoId != null">info_id = #{infoId},</if>
|
||||
<if test="questionId != null">question_id = #{questionId},</if>
|
||||
<if test="answer != null">answer = #{answer},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteDwAnswerById" parameterType="Long">
|
||||
delete from dw_answer where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteDwAnswerByIds" parameterType="String">
|
||||
delete from dw_answer where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
58
ruoyi-dw/src/main/resources/mapper/dw/DwInfoMapper.xml
Normal file
58
ruoyi-dw/src/main/resources/mapper/dw/DwInfoMapper.xml
Normal file
@ -0,0 +1,58 @@
|
||||
<?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.ruoyi.dw.mapper.DwInfoMapper">
|
||||
|
||||
<resultMap type="DwInfo" id="DwInfoResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="dwName" column="dw_name" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectDwInfoVo">
|
||||
select id, dw_name from dw_info
|
||||
</sql>
|
||||
|
||||
<select id="selectDwInfoList" parameterType="DwInfo" resultMap="DwInfoResult">
|
||||
<include refid="selectDwInfoVo"/>
|
||||
<where>
|
||||
<if test="dwName != null and dwName != ''"> and dw_name like concat('%', #{dwName}, '%')</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectDwInfoById" parameterType="Long" resultMap="DwInfoResult">
|
||||
<include refid="selectDwInfoVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertDwInfo" parameterType="DwInfo">
|
||||
insert into dw_info
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="dwName != null">dw_name,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="dwName != null">#{dwName},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateDwInfo" parameterType="DwInfo">
|
||||
update dw_info
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="dwName != null">dw_name = #{dwName},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteDwInfoById" parameterType="Long">
|
||||
delete from dw_info where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteDwInfoByIds" parameterType="String">
|
||||
delete from dw_info where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
68
ruoyi-dw/src/main/resources/mapper/dw/DwQuestionMapper.xml
Normal file
68
ruoyi-dw/src/main/resources/mapper/dw/DwQuestionMapper.xml
Normal file
@ -0,0 +1,68 @@
|
||||
<?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.ruoyi.dw.mapper.DwQuestionMapper">
|
||||
|
||||
<resultMap type="DwQuestion" id="DwQuestionResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="infoId" column="info_id" />
|
||||
<result property="question" column="question" />
|
||||
<result property="questionSort" column="question_sort" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectDwQuestionVo">
|
||||
select id, info_id, question, question_sort from dw_question
|
||||
</sql>
|
||||
|
||||
<select id="selectDwQuestionList" parameterType="DwQuestion" resultMap="DwQuestionResult">
|
||||
<include refid="selectDwQuestionVo"/>
|
||||
<where>
|
||||
<if test="infoId != null "> and info_id = #{infoId}</if>
|
||||
<if test="question != null and question != ''"> and question = #{question}</if>
|
||||
<if test="questionSort != null "> and question_sort = #{questionSort}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectDwQuestionById" parameterType="Long" resultMap="DwQuestionResult">
|
||||
<include refid="selectDwQuestionVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertDwQuestion" parameterType="DwQuestion">
|
||||
insert into dw_question
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">id,</if>
|
||||
<if test="infoId != null">info_id,</if>
|
||||
<if test="question != null">question,</if>
|
||||
<if test="questionSort != null">question_sort,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="infoId != null">#{infoId},</if>
|
||||
<if test="question != null">#{question},</if>
|
||||
<if test="questionSort != null">#{questionSort},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateDwQuestion" parameterType="DwQuestion">
|
||||
update dw_question
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="infoId != null">info_id = #{infoId},</if>
|
||||
<if test="question != null">question = #{question},</if>
|
||||
<if test="questionSort != null">question_sort = #{questionSort},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteDwQuestionById" parameterType="Long">
|
||||
delete from dw_question where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteDwQuestionByIds" parameterType="String">
|
||||
delete from dw_question where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
Reference in New Issue
Block a user