This commit is contained in:
linfso 2024-05-23 01:02:19 +08:00
parent 6ed64f34da
commit d799e7b9a2

View File

@ -367,7 +367,7 @@
<select id="selectMaxCustomerCodeBySite" parameterType="String" resultType="Long">
select IF(max(customer_code) is NULL,CONCAT(#{ownSiteCode},LPAD('1',6,'0')),CONCAT(CONVERT(customer_code,SIGNED)+1,'')) as code
select IF(max(customer_code) is NULL,CONCAT(#{ownSiteCode},LPAD('1',6,'0')),CONCAT(CONVERT(max(customer_code),SIGNED)+1,'')) as code
from emis_customer_user where owner_site = #{ownSiteCode}
</select>