修改了困难模块查询列表的排序

This commit is contained in:
MDSMO
2025-08-27 15:36:48 +08:00
parent b52a083676
commit ca09add9b0
11 changed files with 50 additions and 42 deletions

View File

@@ -112,6 +112,7 @@ 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">

View File

@@ -98,6 +98,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="leaderNo != null and leaderNo != ''"> and leader_no = #{leaderNo}</if>
<if test="stuYearId != null "> and stu_year_id = #{stuYearId}</if>
</where>
order by id desc
</select>
<select id="selectKnzzTufaApplyById" parameterType="Long" resultMap="KnzzTufaApplyResult">

View File

@@ -110,6 +110,7 @@ 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">

View File

@@ -96,6 +96,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="applyStatus != null and applyStatus != ''"> and apply_status = #{applyStatus}</if>
<if test="applyFile != null and applyFile != ''"> and apply_file = #{applyFile}</if>
</where>
order by id desc
</select>
<select id="selectKnzzZzqApplyById" parameterType="Long" resultMap="KnzzZzqApplyResult">

View File

@@ -159,7 +159,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="majorId != null ">and d.major_id = #{majorId}</if>
<if test="classId != null ">and c.class_id = #{classId}</if>
</where>
order by a.id asc
order by a.id desc
</select>
<select id="countXw" parameterType="CphSearch" resultType="SrsKnrdApply">
@@ -185,6 +185,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="classId != null ">and c.class_id = #{classId}</if>
</where>
group by ejxyldqmyj
order by a.id desc
</select>

View File

@@ -60,7 +60,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="yj != null "> and (a.bjpyyj = #{yj} or a.ejxyldqmyj = #{yj} or xsqmyj = #{yj})</if>
<if test="applyYear != null "> and a.apply_year like CONCAT('%',#{applyYear},'%')</if>
order by a.id asc
order by a.id desc
</select>
<select id="selectSrsKnrdApprovalRecordByIds" resultType="SrsKnrdApprovalRecord">
select * from srs_knrd_approval_record where apply_id=#{id}

View File

@@ -36,6 +36,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="stuYearId != null "> and a.stu_year_id = #{stuYearId}</if>
<if test="term != null and term != ''"> and a.term = #{term}</if>
</where>
order by a.id desc
</select>
<select id="selectSrsKnrdTimeById" parameterType="Long" resultMap="SrsKnrdTimeResult">

View File

@@ -27,6 +27,7 @@
<if test="knrdType != null and knrdType != ''">and a.knrd_type = #{knrdType}</if>
<if test="stuYearId != null ">and a.stu_year_id = #{stuYearId}</if>
</where>
order by a.id desc
</select>
<select id="selectSrsKnrdTypeById" parameterType="Long" resultMap="SrsKnrdTypeResult">

View File

@@ -307,7 +307,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="status != null "> and (a.status1 = #{status} or a.status2 = #{status} or a.status3 = #{status})</if>
<if test="applyYear != null"> and a.apply_year like CONCAT('%',#{applyYear},'%')</if>
</where>
order by a.id asc
order by a.id desc
</select>
<insert id="insertSrsZxjApply" parameterType="SrsZxjApply" useGeneratedKeys="true" keyProperty="id">

View File

@@ -88,7 +88,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="operator != null ">and r.operator like concat('%',#{operator},'%')</if>
<if test="status != null"> and r.status = #{status}</if>
order by a.id asc
order by a.id desc
</select>
<delete id="deleteSrsZxjApprovalRecordById" parameterType="Long">
delete from srs_zxj_approval_record where id = #{id}

View File

@@ -43,6 +43,7 @@
<if test="stuYearId != null ">and a.stu_year_id = #{stuYearId}</if>
<if test="term != null and term != ''">and a.term = #{term}</if>
</where>
order by a.id desc
</select>
<select id="selectSrsZxjTimeById" parameterType="Long" resultMap="SrsZxjTimeResult">