| 
					
				 | 
			
			
				@@ -29,9 +29,10 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <result column="UPDATE_USERNAME" jdbcType="VARCHAR" property="updateUsername" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <result column="UPDATE_TIME" jdbcType="TIMESTAMP" property="updateTime" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <result column="INSERT_UPDATE_REMARK" jdbcType="VARCHAR" property="insertUpdateRemark" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <result column="EAS_SUPPLIER_ID" jdbcType="VARCHAR" property="easSupplierId" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    <result column="DELETED" jdbcType="DECIMAL" property="deleted" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <result column="SUPPLIER_BUSINESS_LICENSE" jdbcType="BLOB" property="supplierBusinessLicense" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <result column="SUPPLIER_BUSINESS_ABLELICENSE" jdbcType="BLOB" property="supplierBusinessAblelicense" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    <result column="DELETED" jdbcType="DECIMAL" property="deleted" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   </resultMap> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   <sql id="columns"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     SUPPLIER_ID, SUPPLIER_NAME, SUPPLIER_ABBREVIATION, SUPPLIER_ADDRESS, SUPPLIER_LEGAL_REPRESENTATIVE,  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -40,7 +41,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     SUPPLIERBUSINESS_SCOPE, SUPPLIER_COMPANY_STATUS, SUPPLIER_OPERATION_PERIOD, SUPPLIER_REGISTER_DATE,  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     SUPPLIER_REGISTER_ORGANIZATION, SUPPLIER_REGISTER_APTITUDES, SUPPLIER_CREDENTIAL,  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     SUPPLIER_CONTACTS_NAME, INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME,  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    INSERT_UPDATE_REMARK, SUPPLIER_BUSINESS_LICENSE, SUPPLIER_BUSINESS_ABLELICENSE,DELETED 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    INSERT_UPDATE_REMARK, EAS_SUPPLIER_ID, DELETED, SUPPLIER_BUSINESS_LICENSE, SUPPLIER_BUSINESS_ABLELICENSE 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   </sql> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   <sql id="columns_alias"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     t.SUPPLIER_ID, t.SUPPLIER_NAME, t.SUPPLIER_ABBREVIATION, t.SUPPLIER_ADDRESS, t.SUPPLIER_LEGAL_REPRESENTATIVE,  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -49,8 +50,8 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     t.SUPPLIER_REGISTER_CAPITAL, t.SUPPLIERBUSINESS_SCOPE, t.SUPPLIER_COMPANY_STATUS,  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     t.SUPPLIER_OPERATION_PERIOD, t.SUPPLIER_REGISTER_DATE, t.SUPPLIER_REGISTER_ORGANIZATION,  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     t.SUPPLIER_REGISTER_APTITUDES, t.SUPPLIER_CREDENTIAL, t.SUPPLIER_CONTACTS_NAME, t.INSERT_USERNAME,  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    t.INSERT_TIME, t.UPDATE_USERNAME, t.UPDATE_TIME, t.INSERT_UPDATE_REMARK, t.SUPPLIER_BUSINESS_LICENSE,  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    t.SUPPLIER_BUSINESS_ABLELICENSE,t.DELETED 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    t.INSERT_TIME, t.UPDATE_USERNAME, t.UPDATE_TIME, t.INSERT_UPDATE_REMARK, t.EAS_SUPPLIER_ID,  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    t.DELETED, t.SUPPLIER_BUSINESS_LICENSE, t.SUPPLIER_BUSINESS_ABLELICENSE 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   </sql> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   <sql id="select"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     SELECT <include refid="columns" /> FROM RMS_SUPPLIER 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -141,15 +142,18 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <if test="insertUpdateRemark != null and insertUpdateRemark != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         and INSERT_UPDATE_REMARK = #{insertUpdateRemark} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="easSupplierId != null and easSupplierId != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        and EAS_SUPPLIER_ID = #{easSupplierId} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="deleted != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        and DELETED = #{deleted} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <if test="supplierBusinessLicense != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         and SUPPLIER_BUSINESS_LICENSE = #{supplierBusinessLicense} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <if test="supplierBusinessAblelicense != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         and SUPPLIER_BUSINESS_ABLELICENSE = #{supplierBusinessAblelicense} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      <if test="deleted != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        and DELETED = #{deleted} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </where> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   </sql> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   <sql id="whereLike"> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -235,18 +239,21 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <if test="insertUpdateRemark != null and insertUpdateRemark != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         and INSERT_UPDATE_REMARK LIKE '%${insertUpdateRemark}%' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="easSupplierId != null and easSupplierId != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        and EAS_SUPPLIER_ID LIKE '%${easSupplierId}%' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="deleted != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        and DELETED = #{deleted} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <if test="supplierBusinessLicense != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         and SUPPLIER_BUSINESS_LICENSE = #{supplierBusinessLicense} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <if test="supplierBusinessAblelicense != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         and SUPPLIER_BUSINESS_ABLELICENSE = #{supplierBusinessAblelicense} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      <if test="deleted != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        and DELETED = #{deleted} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </where> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   </sql> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  <delete id="deleteByPrimaryKey" parameterType="java.math.BigDecimal"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Short"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     delete from RMS_SUPPLIER 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     where SUPPLIER_ID = #{supplierId,jdbcType=DECIMAL} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   </delete> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -331,15 +338,18 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <if test="insertUpdateRemark != null and insertUpdateRemark != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         or INSERT_UPDATE_REMARK = #{insertUpdateRemark} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="easSupplierId != null and easSupplierId != ''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        or EAS_SUPPLIER_ID = #{easSupplierId} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="deleted != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        or DELETED = #{deleted} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <if test="supplierBusinessLicense != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         or SUPPLIER_BUSINESS_LICENSE = #{supplierBusinessLicense} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <if test="supplierBusinessAblelicense != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         or SUPPLIER_BUSINESS_ABLELICENSE = #{supplierBusinessAblelicense} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      <if test="deleted != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        or DELETED = #{deleted} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   </delete> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   <insert id="insert" parameterType="com.steerinfo.dil.model.RmsSupplier"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     insert into RMS_SUPPLIER (SUPPLIER_ID, SUPPLIER_NAME, SUPPLIER_ABBREVIATION,  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -353,8 +363,8 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       SUPPLIER_REGISTER_APTITUDES, SUPPLIER_CREDENTIAL,  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       SUPPLIER_CONTACTS_NAME, INSERT_USERNAME, INSERT_TIME,  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK,  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      SUPPLIER_BUSINESS_LICENSE, SUPPLIER_BUSINESS_ABLELICENSE,DELETED 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      ) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      EAS_SUPPLIER_ID, DELETED, SUPPLIER_BUSINESS_LICENSE,  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      SUPPLIER_BUSINESS_ABLELICENSE) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     values (#{supplierId,jdbcType=DECIMAL}, #{supplierName,jdbcType=VARCHAR}, #{supplierAbbreviation,jdbcType=VARCHAR},  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       #{supplierAddress,jdbcType=VARCHAR}, #{supplierLegalRepresentative,jdbcType=VARCHAR},  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       #{supplierRegisterNo,jdbcType=VARCHAR}, #{supplierAgent,jdbcType=VARCHAR}, #{supplierContactNumber,jdbcType=VARCHAR},  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -366,8 +376,8 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       #{supplierRegisterAptitudes,jdbcType=VARCHAR}, #{supplierCredential,jdbcType=VARCHAR},  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       #{supplierContactsName,jdbcType=VARCHAR}, #{insertUsername,jdbcType=VARCHAR}, #{insertTime,jdbcType=TIMESTAMP},  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       #{updateUsername,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{insertUpdateRemark,jdbcType=VARCHAR},  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      #{supplierBusinessLicense,jdbcType=BLOB}, #{supplierBusinessAblelicense,jdbcType=BLOB}, #{deleted,jdbcType=DECIMAL} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      ) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      #{easSupplierId,jdbcType=VARCHAR}, #{deleted,jdbcType=DECIMAL}, #{supplierBusinessLicense,jdbcType=BLOB},  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      #{supplierBusinessAblelicense,jdbcType=BLOB}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   </insert> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   <insert id="insertSelective" parameterType="com.steerinfo.dil.model.RmsSupplier"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     insert into RMS_SUPPLIER 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -453,15 +463,18 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <if test="insertUpdateRemark != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         INSERT_UPDATE_REMARK, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="easSupplierId != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        EAS_SUPPLIER_ID, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="deleted != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        DELETED, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <if test="supplierBusinessLicense != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         SUPPLIER_BUSINESS_LICENSE, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <if test="supplierBusinessAblelicense != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         SUPPLIER_BUSINESS_ABLELICENSE, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      <if test="deleted != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        DELETED, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </trim> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <trim prefix="values (" suffix=")" suffixOverrides=","> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <if test="supplierId != null"> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -545,15 +558,18 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <if test="insertUpdateRemark != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         #{insertUpdateRemark,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="easSupplierId != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        #{easSupplierId,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="deleted != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        #{deleted,jdbcType=DECIMAL}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <if test="supplierBusinessLicense != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         #{supplierBusinessLicense,jdbcType=BLOB}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <if test="supplierBusinessAblelicense != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         #{supplierBusinessAblelicense,jdbcType=BLOB}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      <if test="deleted != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        #{deleted,jdbcType=DECIMAL}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </trim> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   </insert> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   <update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.RmsSupplier"> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -584,9 +600,10 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       UPDATE_USERNAME = #{updateUsername,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       INSERT_UPDATE_REMARK = #{insertUpdateRemark,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      EAS_SUPPLIER_ID = #{easSupplierId,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      DELETED = #{deleted,jdbcType=DECIMAL}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       SUPPLIER_BUSINESS_LICENSE = #{supplierBusinessLicense,jdbcType=BLOB}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      SUPPLIER_BUSINESS_ABLELICENSE = #{supplierBusinessAblelicense,jdbcType=BLOB}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      DELETED = #{deleted,jdbcType=DECIMAL} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      SUPPLIER_BUSINESS_ABLELICENSE = #{supplierBusinessAblelicense,jdbcType=BLOB} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     where SUPPLIER_ID = #{supplierId,jdbcType=DECIMAL} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   </update> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   <update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.RmsSupplier"> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -670,19 +687,22 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <if test="insertUpdateRemark != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         INSERT_UPDATE_REMARK = #{insertUpdateRemark,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="easSupplierId != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        EAS_SUPPLIER_ID = #{easSupplierId,jdbcType=VARCHAR}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      <if test="deleted != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        DELETED = #{deleted,jdbcType=DECIMAL}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <if test="supplierBusinessLicense != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         SUPPLIER_BUSINESS_LICENSE = #{supplierBusinessLicense,jdbcType=BLOB}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <if test="supplierBusinessAblelicense != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         SUPPLIER_BUSINESS_ABLELICENSE = #{supplierBusinessAblelicense,jdbcType=BLOB}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      <if test="deleted != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        DELETED = #{deleted,jdbcType=DECIMAL}, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </set> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     where SUPPLIER_ID = #{supplierId,jdbcType=DECIMAL} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   </update> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  <select id="selectByPrimaryKey" parameterType="java.math.BigDecimal" resultMap="BaseResultMap"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  <select id="selectByPrimaryKey" parameterType="java.lang.Short" resultMap="BaseResultMap"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <include refid="select" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     where SUPPLIER_ID = #{supplierId,jdbcType=DECIMAL} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   </select> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -710,8 +730,8 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       SUPPLIER_CONTACTS_NAME, INSERT_USERNAME,  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       INSERT_TIME, UPDATE_USERNAME,  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       UPDATE_TIME, INSERT_UPDATE_REMARK,  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      SUPPLIER_BUSINESS_LICENSE, SUPPLIER_BUSINESS_ABLELICENSE,DELETED 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      ) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      EAS_SUPPLIER_ID, DELETED, SUPPLIER_BUSINESS_LICENSE,  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      SUPPLIER_BUSINESS_ABLELICENSE) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     ( <foreach collection="list" item="item" separator="union all">  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    select   
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       #{item.supplierId,jdbcType=DECIMAL},  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -728,8 +748,8 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       #{item.supplierContactsName,jdbcType=VARCHAR}, #{item.insertUsername,jdbcType=VARCHAR},  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       #{item.insertTime,jdbcType=TIMESTAMP}, #{item.updateUsername,jdbcType=VARCHAR},  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       #{item.updateTime,jdbcType=TIMESTAMP}, #{item.insertUpdateRemark,jdbcType=VARCHAR},  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      #{item.supplierBusinessLicense,jdbcType=BLOB}, #{item.supplierBusinessAblelicense,jdbcType=BLOB}, #{item.deleted,jdbcType=DECIMAL 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-       from dual   
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      #{item.easSupplierId,jdbcType=VARCHAR}, #{item.deleted,jdbcType=DECIMAL}, #{item.supplierBusinessLicense,jdbcType=BLOB},  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      #{item.supplierBusinessAblelicense,jdbcType=BLOB} from dual   
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    </foreach> ) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   </insert> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   <update id="batchUpdate" parameterType="java.util.List"> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -843,6 +863,14 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        <foreach close="end" collection="list" index="index" item="item" open="case SUPPLIER_ID" separator=" "> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           when #{item.supplierId,jdbcType=DECIMAL} then #{item.insertUpdateRemark,jdbcType=VARCHAR} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        </foreach> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+       ,EAS_SUPPLIER_ID= 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+       <foreach close="end" collection="list" index="index" item="item" open="case SUPPLIER_ID" separator=" "> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          when #{item.supplierId,jdbcType=DECIMAL} then #{item.easSupplierId,jdbcType=VARCHAR} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+       </foreach> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+       ,DELETED= 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+       <foreach close="end" collection="list" index="index" item="item" open="case SUPPLIER_ID" separator=" "> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          when #{item.supplierId,jdbcType=DECIMAL} then #{item.deleted,jdbcType=DECIMAL} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+       </foreach> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        ,SUPPLIER_BUSINESS_LICENSE= 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        <foreach close="end" collection="list" index="index" item="item" open="case SUPPLIER_ID" separator=" "> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           when #{item.supplierId,jdbcType=DECIMAL} then #{item.supplierBusinessLicense,jdbcType=BLOB} 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -851,10 +879,6 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        <foreach close="end" collection="list" index="index" item="item" open="case SUPPLIER_ID" separator=" "> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           when #{item.supplierId,jdbcType=DECIMAL} then #{item.supplierBusinessAblelicense,jdbcType=BLOB} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        </foreach> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      ,DELETED= 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      <foreach close="end" collection="list" index="index" item="item" open="case SHIPPER_ID" separator=" "> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        when #{item.shipperId,jdbcType=DECIMAL} then #{item.deleted,jdbcType=DECIMAL} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      </foreach> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      where SUPPLIER_ID in  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				      <foreach close=")" collection="list" index="index" item="item" open="(" separator=","> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     #{item.supplierId,jdbcType=DECIMAL} 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -934,22 +958,22 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   </sql> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   <select id="selectSupplierById" resultType="java.util.LinkedHashMap"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        SELECT 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        RS.SUPPLIER_ID AS "supplierId", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        RS.SUPPLIER_DUTY_PARAGRAPH AS "supplierDutyParagraph", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        RS.SUPPLIER_NAME AS "supplierName", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        RS.SUPPLIER_ADDRESS AS "supplierAddress", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        RS.SUPPLIER_REGISTER_DATE AS "supplierRegisterDate", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        RS.SUPPLIER_CONTACTS_NAME AS "supplierContactsName", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        RS.SUPPLIER_CONTACT_NUMBER AS "supplierContactNumber" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        FROM RMS_SUPPLIER RS 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        WHERE RS.SUPPLIER_ID=#{id} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    </select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    <select id="selectByParametersSupplierName" resultType="java.lang.Integer"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      SELECT count(*) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        FROM RMS_SUPPLIER RS 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        WHERE RS.SUPPLIER_NAME = #{supplierName} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        AND RS.DELETED=0 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    </select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    SELECT 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      RS.SUPPLIER_ID AS "supplierId", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      RS.SUPPLIER_DUTY_PARAGRAPH AS "supplierDutyParagraph", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      RS.SUPPLIER_NAME AS "supplierName", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      RS.SUPPLIER_ADDRESS AS "supplierAddress", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      RS.SUPPLIER_REGISTER_DATE AS "supplierRegisterDate", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      RS.SUPPLIER_CONTACTS_NAME AS "supplierContactsName", 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      RS.SUPPLIER_CONTACT_NUMBER AS "supplierContactNumber" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    FROM RMS_SUPPLIER RS 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    WHERE RS.SUPPLIER_ID=#{id} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  </select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+   
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  <select id="selectByParametersSupplierName" resultType="java.lang.Integer"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    SELECT count(*) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    FROM RMS_SUPPLIER RS 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    WHERE RS.SUPPLIER_NAME = #{supplierName} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      AND RS.DELETED=0 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  </select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 </mapper> 
			 |