人才培养方案新增自动生成代号,代码

This commit is contained in:
2026-09-16 11:04:18 +08:00
parent bbf54c26a3
commit 490e1845f6
5 changed files with 104 additions and 13 deletions
@@ -29,4 +29,9 @@ public interface ZYBMapper extends BaseMapper<ZYB> {
* @return 分页对象
*/
Page<ZYB> selectPageList(Page<ZYB> page, @Param("zyb") ZYB zyb);
/**
* 当前最大序号标识,用于新增时排到列表最前且顺序连续。
*/
Integer selectMaxXhbs();
}
@@ -50,8 +50,8 @@
<include refid="Base_Column_List" />
FROM "专业表"
WHERE 1=1
<if test="zyb.ty != null and zyb.ty != ''">
AND 停用 = #{zyb.ty},
<if test="zyb.ty != null">
AND 停用 = #{zyb.ty}
</if>
<if test="zyb.zymc != null and zyb.zymc != ''">
AND 专业名称 LIKE CONCAT('%', #{zyb.zymc}, '%')
@@ -68,7 +68,11 @@
<if test="zyb.zyfx != null and zyb.zyfx != ''">
AND 专业方向 LIKE CONCAT('%', #{zyb.zyfx}, '%')
</if>
ORDER BY 序号标识
ORDER BY 序号标识 DESC NULLS LAST, 启用时间 DESC NULLS LAST
</select>
<select id="selectMaxXhbs" resultType="java.lang.Integer">
SELECT MAX("序号标识") FROM "专业表"
</select>
</mapper>