|
@@ -1,26 +0,0 @@
|
|
|
-<?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.ym.mec.biz.dal.dao.TenantProxyRelationDao">
|
|
|
- <resultMap id="BaseResultMap" type="com.ym.mec.biz.dal.entity.TenantProxyRelation">
|
|
|
- <id column="id_" jdbcType="INTEGER" property="id"/>
|
|
|
- <result column="proxy_id_" jdbcType="VARCHAR" property="proxyId"/>
|
|
|
- <result column="user_id_" jdbcType="INTEGER" property="userId"/>
|
|
|
- <result column="tenant_id_" jdbcType="INTEGER" property="tenantId"/>
|
|
|
- <result column="create_time_" jdbcType="TIMESTAMP" property="createTime"/>
|
|
|
- </resultMap>
|
|
|
-
|
|
|
- <sql id="Base_Column_List">
|
|
|
- id_
|
|
|
- , proxy_id_, user_id_, tenant_id_, create_time_
|
|
|
- </sql>
|
|
|
-
|
|
|
- <insert id="insertBatch" keyColumn="id_" keyProperty="id" useGeneratedKeys="true"
|
|
|
- parameterType="com.ym.mec.biz.dal.entity.TenantProxyRelation">
|
|
|
- insert into tenant_proxy_relation(proxy_id_, user_id_, tenant_id_, create_time_)
|
|
|
- values
|
|
|
- <foreach collection="entities" item="entity" separator=",">
|
|
|
- (#{entity.proxyId}, #{entity.userId}, #{entity.tenantId}, #{entity.createTime})
|
|
|
- </foreach>
|
|
|
- </insert>
|
|
|
-
|
|
|
-</mapper>
|