bug:企标编号重复问题处理
This commit is contained in:
+1
-1
@@ -6,7 +6,7 @@
|
||||
select Max(STAND_SN) from sar_buss_stand_sn
|
||||
</select>
|
||||
<select id="selectMaxStandSn" resultType="java.lang.String">
|
||||
select Max(STAND_SN) from sar_buss_stand_sn where STAND_SORT = #{standSort} and VALID_FLAG = '0'
|
||||
select Max(STAND_SN) from sar_buss_stand_sn where STAND_SORT = #{standSort} and USE_STATUS = 'yes' and VALID_FLAG = '0'
|
||||
</select>
|
||||
<select id="selectStandSort" resultType="java.lang.String">
|
||||
select STAND_SORT from sar_buss_stand_sn where STAND_SORT = #{standSort} and VALID_FLAG = '0' limit 1
|
||||
|
||||
+1
-1
@@ -350,7 +350,7 @@
|
||||
|
||||
</select>
|
||||
|
||||
<select id="getStandInfoByReviseStatus" resultMap="BaseResultMap" parameterType="java.lang.String">
|
||||
<select id="getStandInfoByReviseStatus" resultType="String" parameterType="java.lang.String">
|
||||
select MAX(DISTINCT CAST(stand_number AS decimal(9))) AS newStandSn from sar_bussioness_stand
|
||||
where REPLACE(STAND_SORT,' ','') = REPLACE(#{standSort},' ','') and valid_flag=0
|
||||
</select>
|
||||
|
||||
Reference in New Issue
Block a user