教室编号生成调整

This commit is contained in:
2026-09-16 12:02:33 +08:00
parent 49b3232e79
commit 58499afe8e
4 changed files with 68 additions and 1 deletions
@@ -20,4 +20,11 @@ public interface ClassRoomMapper extends BaseMapper<JSB> {
* @return 分页结果
*/
Page<JSB> selectPageList(Page<JSB> page, @Param("jsb") JSB jsb);
/**
* 获取最大教室编号(仅统计纯数字编号)
*
* @return 最大教室编号
*/
String selectMaxJsbh();
}
@@ -54,4 +54,8 @@
ORDER BY 序号
</select>
<select id="selectMaxJsbh" resultType="java.lang.String">
SELECT MAX(CAST(教室编号 AS INT)) FROM 教室表 WHERE DEL_FLAG = 0 AND REGEXP_LIKE(教室编号, '^[0-9]+$')
</select>
</mapper>