This commit is contained in:
linfso 2024-05-22 19:27:47 +08:00
parent 488ba9a301
commit 8e36a469a0

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 new_code
select IF(max(customer_code) is NULL,CONCAT(#{ownSiteCode},LPAD('1',6,'0')),CONCAT(CONVERT(customer_code,SIGNED)+1,'')) as code
from emis_customer_user where owner_site = #{ownSiteCode}
</select>