修改了困难模块查询列表的排序
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.KnzzGlApplyMapper">
|
||||
|
||||
|
||||
<resultMap type="KnzzGlApply" id="KnzzGlApplyResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="stuYearId" column="stu_year_id" />
|
||||
@@ -64,7 +64,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
|
||||
<select id="selectKnzzGlApplyList" parameterType="KnzzGlApply" resultMap="KnzzGlApplyResult">
|
||||
<include refid="selectKnzzGlApplyVo"/>
|
||||
<where>
|
||||
<where>
|
||||
<if test="stuYearId != null "> and stu_year_id = #{stuYearId}</if>
|
||||
<if test="stuNo != null and stuNo != ''"> and stu_no = #{stuNo}</if>
|
||||
<if test="stuName != null and stuName != ''"> and stu_name like concat('%', #{stuName}, '%')</if>
|
||||
@@ -112,13 +112,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="xgNo != null and xgNo != ''"> and xg_no = #{xgNo}</if>
|
||||
<if test="applyStatus != null and applyStatus != ''"> and apply_status = #{applyStatus}</if>
|
||||
</where>
|
||||
order by id desc
|
||||
</select>
|
||||
|
||||
|
||||
<select id="selectKnzzGlApplyById" parameterType="Long" resultMap="KnzzGlApplyResult">
|
||||
<include refid="selectKnzzGlApplyVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
|
||||
<insert id="insertKnzzGlApply" parameterType="KnzzGlApply" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into knzz_gl_apply
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
@@ -289,7 +290,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</delete>
|
||||
|
||||
<delete id="deleteKnzzGlApplyByIds" parameterType="String">
|
||||
delete from knzz_gl_apply where id in
|
||||
delete from knzz_gl_apply where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
@@ -317,4 +318,4 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
order by a.id desc
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user