修改了困难模块查询列表的排序
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.srs.comprehensive.mapper.KnzzZsgApplyMapper">
|
||||
|
||||
|
||||
<resultMap type="KnzzZsgApply" id="KnzzZsgApplyResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="stuName" column="stu_name" />
|
||||
@@ -64,7 +64,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
|
||||
<select id="selectKnzzZsgApplyList" parameterType="KnzzZsgApply" resultMap="KnzzZsgApplyResult">
|
||||
<include refid="selectKnzzZsgApplyVo"/>
|
||||
<where>
|
||||
<where>
|
||||
<if test="stuName != null and stuName != ''"> and stu_name like concat('%', #{stuName}, '%')</if>
|
||||
<if test="gender != null and gender != ''"> and gender = #{gender}</if>
|
||||
<if test="birthMonth != null and birthMonth != ''"> and birth_month = #{birthMonth}</if>
|
||||
@@ -110,13 +110,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="applyFile != null and applyFile != ''"> and apply_file = #{applyFile}</if>
|
||||
<if test="stuYearId != null "> and stu_year_id = #{stuYearId}</if>
|
||||
</where>
|
||||
order by id desc
|
||||
</select>
|
||||
|
||||
|
||||
<select id="selectKnzzZsgApplyById" parameterType="Long" resultMap="KnzzZsgApplyResult">
|
||||
<include refid="selectKnzzZsgApplyVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
|
||||
<insert id="insertKnzzZsgApply" parameterType="KnzzZsgApply" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into knzz_zsg_apply
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
@@ -286,7 +287,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</delete>
|
||||
|
||||
<delete id="deleteKnzzZsgApplyByIds" parameterType="String">
|
||||
delete from knzz_zsg_apply where id in
|
||||
delete from knzz_zsg_apply where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
@@ -314,4 +315,4 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user