UPDATE code_customer SET DEL_FLAG = '1' WHERE CUSTOMER_ID = #{customerId} AND CLIENT_TYPE = #{clientType} AND STATUS = 'unaudited' AND DEL_FLAG = '0' UPDATE code_customer SET DEL_FLAG = '1' WHERE CUSTOMER_ID = #{customerId} AND CLIENT_TYPE = #{clientType} AND STATUS = 'release_success' AND DEL_FLAG = '0' UPDATE code_customer SET DEL_FLAG = '0' WHERE ID = #{codeId}