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.
 
 
 
 
 

38 lines
1.3 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.MiniNetworkInfoDao">
<!-- 小程序配置的合法域名信息插入 -->
<insert id="insertNetworkInfo">
INSERT INTO mini_network_info ( ID, PRIMARY_ID, CUSTOMER_ID, CLIENT_TYPE, NETWORK_TYPE, URL, DEL_FLAG, REVISION, CREATED_BY, CREATED_TIME, UPDATED_BY, UPDATED_TIME )
VALUES
<foreach collection="networkInfoList" item="network" separator=",">
(
REPLACE ( UUID(), '-', '' ),
#{network.primaryId},
#{network.customerId},
#{network.clientType},
#{network.networkType},
#{network.url},
#{network.delFlag},
#{network.revision},
#{network.createdBy},
NOW(),
#{network.updatedBy},
NOW()
)
</foreach>
</insert>
<!-- 小程序配置的合法域名信息删除 -->
<delete id="deleteNetworkInfo">
DELETE
FROM
mini_network_info
WHERE
del_flag = 0
AND customer_id = #{customerId}
AND client_type = #{clientType}
</delete>
</mapper>