bug:企标编号重复问题处理

This commit is contained in:
wxyclub
2023-08-09 16:13:39 +08:00
parent e2da9d3eb6
commit f286b6050b
2 changed files with 11 additions and 4 deletions
@@ -1258,7 +1258,7 @@
select * from sar_bussioness_stand where stand_code = #{standCode} and VALID_FLAG = 0 limit 1
</select>
<select id="selectMaxStandSn" resultType="java.lang.String">
select max(STAND_NUMBER) from sar_bussioness_stand where STAND_SORT =#{standSort} and VALID_FLAG = 0
select MAX(DISTINCT CAST(STAND_NUMBER AS decimal(9))) from sar_bussioness_stand where STAND_SORT =#{standSort} and VALID_FLAG = 0
</select>
<update id="updateByIdInfo" >