| 
					
				 | 
			
			
				@@ -13,14 +13,21 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     id_, sys_config_id_, tenant_id_, param_value_, create_time_, update_time_ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   </sql> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   <select id="get" parameterType="java.lang.Integer" resultMap="SysTenantConfig"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    select  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    SELECT 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <include refid="Base_Column_List" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    from sys_tenant_config 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    where id_ = #{id,jdbcType=INTEGER} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    FROM sys_tenant_config 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    WHERE id_ = #{id,jdbcType=INTEGER} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   </select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   <delete id="delete" parameterType="java.lang.Integer"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    delete from sys_tenant_config 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    where id_ = #{id,jdbcType=INTEGER} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    DELETE FROM sys_tenant_config 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    WHERE id_ = #{id,jdbcType=INTEGER} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  </delete> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  <delete id="delByConfigId"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    DELETE FROM sys_tenant_config WHERE tenant_id_ = #{tenantId} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    AND sys_config_id_ IN 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <foreach collection="configIdList" open="(" close=")" item="configId" separator=","> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      #{configId} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </foreach> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   </delete> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   <insert id="insert" keyColumn="id_" keyProperty="id" parameterType="com.ym.mec.biz.dal.entity.SysTenantConfig" useGeneratedKeys="true"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     insert into sys_tenant_config (sys_config_id_, tenant_id_, param_value_, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -28,42 +35,12 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     values (#{sysConfigId,jdbcType=INTEGER}, #{tenantId,jdbcType=INTEGER}, #{paramValue,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   </insert> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  <insert id="insertSelective" keyColumn="id_" keyProperty="id" parameterType="com.ym.mec.biz.dal.entity.SysTenantConfig" useGeneratedKeys="true"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    insert into sys_tenant_config 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    <trim prefix="(" suffix=")" suffixOverrides=","> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      <if test="sysConfigId != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        sys_config_id_, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      <if test="tenantId != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        tenant_id_, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      <if test="paramValue != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        param_value_, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      <if test="createTime != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        create_time_, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      <if test="updateTime != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        update_time_, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    </trim> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    <trim prefix="values (" suffix=")" suffixOverrides=","> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      <if test="sysConfigId != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        #{sysConfigId,jdbcType=INTEGER}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      <if test="tenantId != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        #{tenantId,jdbcType=INTEGER}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      <if test="paramValue != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        #{paramValue,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      <if test="createTime != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        #{createTime,jdbcType=TIMESTAMP}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      <if test="updateTime != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        #{updateTime,jdbcType=TIMESTAMP}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    </trim> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  <insert id="batchInsert"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    INSERT INTO sys_tenant_config (sys_config_id_, tenant_id_, param_value_,create_time_, update_time_) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    VALUES 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <foreach collection="sysConfigs" item="item" separator=","> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      (#{item.id}, #{tenantId}, #{item.paranValue},NOW(),NOW()) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </foreach> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   </insert> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   <update id="update" parameterType="com.ym.mec.biz.dal.entity.SysTenantConfig"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     update sys_tenant_config 
			 |