| 
					
				 | 
			
			
				@@ -4,74 +4,104 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 <mapper namespace="com.ym.mec.biz.dal.dao.TenantInfoDao"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	<resultMap type="com.ym.mec.biz.dal.entity.TenantInfo" id="TenantInfo"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		<result column="id_" property="id" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		<result column="name_" property="name" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		<result column="address_" property="address" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		<result column="domain_name_" property="domainName" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		<result column="logo_url_" property="logoUrl" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		<result column="contact_name_" property="contactName" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		<result column="contact_phone_" property="contactPhone" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		<result column="data_source_" property="dataSource" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		<result column="create_time_" property="createTime" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		<result column="update_time_" property="updateTime" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <id column="id_" jdbcType="INTEGER" property="id" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result column="name_" jdbcType="VARCHAR" property="name" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result column="contacts_" jdbcType="VARCHAR" property="contacts" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result column="phone_" jdbcType="VARCHAR" property="phone" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result column="address_" jdbcType="VARCHAR" property="address" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result column="email_" jdbcType="VARCHAR" property="email" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result column="logo_" jdbcType="VARCHAR" property="logo" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result column="customer_service_phone" jdbcType="VARCHAR" property="customerServicePhone" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result column="domain_name_" jdbcType="VARCHAR" property="domainName" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result column="data_source_" jdbcType="VARCHAR" property="dataSource" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result column="state_" jdbcType="INTEGER" property="state" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result column="created_by_" jdbcType="INTEGER" property="createdBy" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result column="created_time_" jdbcType="TIMESTAMP" property="createdTime" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result column="updated_by_" jdbcType="INTEGER" property="updatedBy" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result column="updated_time_" jdbcType="TIMESTAMP" property="updatedTime" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	</resultMap> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <sql id="Base_Column_List"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        id_, name_, contacts_, phone_, address_, email_, logo_, customer_service_phone, domain_name_, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    data_source_, state_, created_by_, created_time_, updated_by_, updated_time_ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    </sql> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	<!-- 根据主键查询一条记录 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	<select id="get" resultMap="TenantInfo"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		SELECT * FROM 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		SELECT 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <include refid="Base_Column_List" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		FROM 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		tenant_info WHERE id_ = #{id} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	</select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	<!-- 全查询 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	<select id="findAll" resultMap="TenantInfo"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		SELECT * FROM tenant_info ORDER 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		SELECT 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <include refid="Base_Column_List" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		FROM tenant_info ORDER 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		BY id_ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	</select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	<!-- 向数据库增加一条记录 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	<insert id="insert" parameterType="com.ym.mec.biz.dal.entity.TenantInfo" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		useGeneratedKeys="true" keyColumn="id" keyProperty="id"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		<!-- <selectKey resultClass="int" keyProperty="id" > SELECT SEQ_WSDEFINITION_ID.nextval  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			AS ID FROM DUAL </selectKey> --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		INSERT INTO tenant_info 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		(id_,name_,address_,domain_name_,logo_url_,contact_name_,contact_phone_,data_source_,create_time_,update_time_) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		VALUES(#{id},#{name},#{address},#{domainName},#{logoUrl},#{contactName},#{contactPhone},#{dataSource},#{createTime},#{updateTime}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	<insert id="insert" parameterType="com.ym.mec.biz.dal.entity.TenantInfo"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        insert into tenant_info (name_, contacts_, phone_, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        address_, email_, logo_, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        customer_service_phone, domain_name_, data_source_, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        state_, created_by_, created_time_, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        updated_by_, updated_time_) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        values (#{name,jdbcType=VARCHAR}, #{contacts,jdbcType=VARCHAR}, #{phone,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        #{address,jdbcType=VARCHAR}, #{email,jdbcType=VARCHAR}, #{logo,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        #{customerServicePhone,jdbcType=VARCHAR}, #{domainName,jdbcType=VARCHAR}, #{dataSource,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        #{state,jdbcType=INTEGER}, #{createdBy,jdbcType=VARCHAR}, #{createdTime,jdbcType=TIMESTAMP}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        #{updatedBy,jdbcType=VARCHAR}, #{updatedTime,jdbcType=TIMESTAMP}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	</insert> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	<!-- 根据主键查询一条记录 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	<update id="update" parameterType="com.ym.mec.biz.dal.entity.TenantInfo"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		UPDATE tenant_info 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		<set> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			<if test="address != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				address_ = #{address}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			<if test="dataSource != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				data_source_ = #{dataSource}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			<if test="id != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				id_ = #{id}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			<if test="updateTime != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				update_time_ = #{updateTime}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			<if test="logoUrl != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				logo_url_ = #{logoUrl}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			<if test="contactPhone != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				contact_phone_ = #{contactPhone}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			<if test="domainName != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				domain_name_ = #{domainName}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			<if test="contactName != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				contact_name_ = #{contactName}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			<if test="name != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				name_ = #{name}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			<if test="createTime != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				create_time_ = #{createTime}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="name != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                name_ = #{name,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="contacts != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                contacts_ = #{contacts,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="phone != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                phone_ = #{phone,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="address != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                address_ = #{address,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="email != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                email_ = #{email,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="logo != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                logo_ = #{logo,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="customerServicePhone != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                customer_service_phone = #{customerServicePhone,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="domainName != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                domain_name_ = #{domainName,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="dataSource != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                data_source_ = #{dataSource,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="state != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                state_ = #{state,jdbcType=INTEGER}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="createdBy != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                created_by_ = #{createdBy,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="createdTime != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                created_time_ = #{createdTime,jdbcType=TIMESTAMP}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="updatedBy != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                updated_by_ = #{updatedBy,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="updatedTime != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                updated_time_ = #{updatedTime,jdbcType=TIMESTAMP}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		</set> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		WHERE id_ = #{id} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	</update> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -83,12 +113,14 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	<!-- 分页查询 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	<select id="queryPage" resultMap="TenantInfo" parameterType="map"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		SELECT * FROM tenant_info ORDER BY id_ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		SELECT 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <include refid="Base_Column_List" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		FROM tenant_info ORDER BY id_ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		<include refid="global.limit" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	</select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	<!-- 查询当前表的总记录数 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	<select id="queryCount" resultType="int"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		SELECT COUNT(*) FROM tenant_info 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		SELECT COUNT(id_) FROM tenant_info 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	</select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 </mapper> 
			 |