退伍复学-表格下载调整
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
<?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">
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.srs.routine.mapper.SysDisMateMapper">
|
||||
|
||||
|
||||
<resultMap type="SysDisMate" id="SysDisMateResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="stId" column="st_id" />
|
||||
@@ -23,15 +23,21 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="finaldata2" column="finaldata2" />
|
||||
<result property="finalmajor" column="finalmajor" />
|
||||
<result property="finallabel" column="finallabel" />
|
||||
<result property="collegeInfo" column="college_info" />
|
||||
<result property="gradeInfo" column="grade_info" />
|
||||
<result property="majorInfo" column="major_info" />
|
||||
<result property="classInfo" column="class_info" />
|
||||
<result property="testData" column="test_data" />
|
||||
<result property="testSave" column="test_save" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectSysDisMateVo">
|
||||
select id, st_id, st_name, times, college, oldgrade, oldmajor, newgrade, newmajor, proof, idcard, material, data1, data2, finaldata1, finaldata2, finalmajor, finallabel from sys_dis_mate
|
||||
select id, st_id, st_name, times, college, oldgrade, oldmajor, newgrade, newmajor, proof, idcard, material, data1, data2, finaldata1, finaldata2, finalmajor, finallabel, college_info, grade_info, major_info, class_info, test_data, test_save from sys_dis_mate
|
||||
</sql>
|
||||
|
||||
<select id="selectSysDisMateList" parameterType="SysDisMate" resultMap="SysDisMateResult">
|
||||
<include refid="selectSysDisMateVo"/>
|
||||
<where>
|
||||
<where>
|
||||
<if test="stId != null and stId != ''"> and st_id = #{stId}</if>
|
||||
<if test="stName != null and stName != ''"> and st_name like concat('%', #{stName}, '%')</if>
|
||||
<if test="times != null and times != ''"> and times = #{times}</if>
|
||||
@@ -49,6 +55,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="finaldata2 != null and finaldata2 != ''"> and finaldata2 = #{finaldata2}</if>
|
||||
<if test="finalmajor != null and finalmajor != ''"> and finalmajor = #{finalmajor}</if>
|
||||
<if test="finallabel != null and finallabel != ''"> and finallabel = #{finallabel}</if>
|
||||
<if test="collegeInfo != null and collegeInfo != ''"> and college_info = #{collegeInfo}</if>
|
||||
<if test="gradeInfo != null and gradeInfo != ''"> and grade_info = #{gradeInfo}</if>
|
||||
<if test="majorInfo != null and majorInfo != ''"> and major_info = #{majorInfo}</if>
|
||||
<if test="classInfo != null and classInfo != ''"> and class_info = #{classInfo}</if>
|
||||
<if test="testData != null and testData != ''"> and test_data = #{testData}</if>
|
||||
<if test="testSave != null and testSave != ''"> and test_save = #{testSave}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
@@ -77,7 +89,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="finaldata2 != null">finaldata2,</if>
|
||||
<if test="finalmajor != null">finalmajor,</if>
|
||||
<if test="finallabel != null">finallabel,</if>
|
||||
</trim>
|
||||
<if test="collegeInfo != null">college_info,</if>
|
||||
<if test="gradeInfo != null">grade_info,</if>
|
||||
<if test="majorInfo != null">major_info,</if>
|
||||
<if test="classInfo != null">class_info,</if>
|
||||
<if test="testData != null">test_data,</if>
|
||||
<if test="testSave != null">test_save,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="stId != null">#{stId},</if>
|
||||
<if test="stName != null">#{stName},</if>
|
||||
@@ -96,7 +114,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="finaldata2 != null">#{finaldata2},</if>
|
||||
<if test="finalmajor != null">#{finalmajor},</if>
|
||||
<if test="finallabel != null">#{finallabel},</if>
|
||||
</trim>
|
||||
<if test="collegeInfo != null">#{collegeInfo},</if>
|
||||
<if test="gradeInfo != null">#{gradeInfo},</if>
|
||||
<if test="majorInfo != null">#{majorInfo},</if>
|
||||
<if test="classInfo != null">#{classInfo},</if>
|
||||
<if test="testData != null">#{testData},</if>
|
||||
<if test="testSave != null">#{testSave},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateSysDisMate" parameterType="SysDisMate">
|
||||
@@ -119,6 +143,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="finaldata2 != null">finaldata2 = #{finaldata2},</if>
|
||||
<if test="finalmajor != null">finalmajor = #{finalmajor},</if>
|
||||
<if test="finallabel != null">finallabel = #{finallabel},</if>
|
||||
<if test="collegeInfo != null">college_info = #{collegeInfo},</if>
|
||||
<if test="gradeInfo != null">grade_info = #{gradeInfo},</if>
|
||||
<if test="majorInfo != null">major_info = #{majorInfo},</if>
|
||||
<if test="classInfo != null">class_info = #{classInfo},</if>
|
||||
<if test="testData != null">test_data = #{testData},</if>
|
||||
<if test="testSave != null">test_save = #{testSave},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
@@ -144,16 +174,23 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="finaldata2 != null">finaldata2 = #{finaldata2},</if>
|
||||
<if test="finalmajor != null">finalmajor = #{finalmajor},</if>
|
||||
<if test="finallabel != null">finallabel = #{finallabel},</if>
|
||||
<if test="collegeInfo != null">college_info = #{collegeInfo},</if>
|
||||
<if test="gradeInfo != null">grade_info = #{gradeInfo},</if>
|
||||
<if test="majorInfo != null">major_info = #{majorInfo},</if>
|
||||
<if test="classInfo != null">class_info = #{classInfo},</if>
|
||||
<if test="testData != null">test_data = #{testData},</if>
|
||||
<if test="testSave != null">test_save = #{testSave},</if>
|
||||
</trim>
|
||||
where st_id = #{stId}
|
||||
</update>
|
||||
|
||||
|
||||
<delete id="deleteSysDisMateById" parameterType="Long">
|
||||
delete from sys_dis_mate where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteSysDisMateByIds" parameterType="String">
|
||||
delete from sys_dis_mate where id in
|
||||
delete from sys_dis_mate where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
|
||||
Reference in New Issue
Block a user