You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

33 lines
1.1 KiB

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.epmet.dao.BindingAccountDao">
<!-- 插入 公众号/小程序绑定开放平台帐号表 -->
<insert id="insertBindingAccount">
INSERT INTO binding_account ( ID, OPEN_PLATFORM_ACCOUNT_ID, AUTH_APP_ID, CUSTOMER_ID, CLIENT_TYPE, DEL_FLAG, REVISION, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME )
VALUES
(
REPLACE ( UUID(), '-', '' ),
#{openPlatformAccountId},
#{authAppId},
#{customerId},
#{clientType},
#{delFlag},
#{revision},
#{createdBy},
NOW(),
#{updatedBy},
NOW()
)
</insert>
<!-- 更新绑定状态 -->
<update id="updateBindStatus">
UPDATE binding_account
SET del_flag = 1
WHERE
customer_id = #{customerId}
AND client_type = #{clientType}
</update>
</mapper>