新增案件或者批量导入时自动生成案件编号

This commit is contained in:
18792927508
2023-10-09 14:38:30 +08:00
parent 0f7b9842bb
commit 62878cb969
4 changed files with 47 additions and 32 deletions
@@ -237,9 +237,10 @@
AND c.id = #{id}
</select>
<select id="selectCaseNumLike" resultType="java.lang.Integer">
select max(substring(case_num, #{length}+1,12)+1) as maxCaseNum
from case_application where case_num like CONCAT(#{caseNum},'%') ;
</select>
</mapper>