Commit 5192fbf7 authored by 刘林's avatar 刘林

fix(jg):【现场问题】历史设备登记时候,报使用登记证重复(历史一码通设备历史设备清除(待认领、草稿箱、拒领设备清除))

parent 86ca77c1
...@@ -875,11 +875,12 @@ ...@@ -875,11 +875,12 @@
<select id="useRegistrationCertificateAccountUnique" resultType="java.lang.Integer"> <select id="useRegistrationCertificateAccountUnique" resultType="java.lang.Integer">
SELECT COUNT( 1 ) SELECT COUNT( 1 )
FROM FROM idx_biz_jg_register_info jri
"amos_tzs_biz"."idx_biz_jg_register_info" LEFT JOIN idx_biz_jg_other_info joi ON joi."RECORD" = jri."RECORD"
WHERE WHERE
"USE_ORG_CODE" = #{useRegistrationCode} jri."USE_ORG_CODE" = #{useRegistrationCode}
AND "RECORD" != #{equipId} AND jri."RECORD" != #{equipId}
AND joi.CLAIM_STATUS = '已认领'
</select> </select>
<select id="queryOutOfMaintenanceRecord" resultType="java.util.Map"> <select id="queryOutOfMaintenanceRecord" resultType="java.util.Map">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment