forked from liweijie/education
教室编号生成调整
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user