Bladeren bron

Merge branch 'master' of https://git.steerinfo.com/DAL-DAZHOU2/DAL-DAZHOU-JOIN-API

luobang 2 jaren geleden
bovenliggende
commit
1ce35cf11c

+ 1 - 1
pom.xml

@@ -194,7 +194,7 @@
                     <!--包名-->
                     <targetPackage>com.steerinfo.dil</targetPackage>
                     <tables>
-                        <table>AMS_PURCHASE_ORDER</table>
+                        <table>RMS_MATERIAL</table>
                     </tables>
                 </configuration>
                 <executions>

+ 2 - 0
src/main/java/com/steerinfo/dil/mapper/AmsSaleMaterialMapper.java

@@ -16,4 +16,6 @@ public interface AmsSaleMaterialMapper extends IBaseMapper<AmsSaleMaterial, BigD
 
     // 通过物资编码查询物资id
     BigDecimal getMaterialId(String materialCode);
+    // 得到物资出现次数
+    Integer getMaterialCount(BigDecimal materialId);
 }

+ 2 - 0
src/main/java/com/steerinfo/dil/mapper/AmsSaleOrderCarrierMapper.java

@@ -17,4 +17,6 @@ public interface AmsSaleOrderCarrierMapper extends IBaseMapper<AmsSaleOrderCarri
     AmsSaleOrderCarrier getAmsSaleOrderCarrier(BigDecimal saleOrderId);
     // 通过收货客户名称匹配承运商
     BigDecimal findCarrierByConsignee(String receiveUnitName);
+    // 得到物资编码
+    String getMaterialName(String materialCode);
 }

+ 50 - 5
src/main/java/com/steerinfo/dil/model/RmsMaterial.java

@@ -10,19 +10,19 @@ import java.util.Date;
 @ApiModel(value="物资")
 public class RmsMaterial implements IBasePO<BigDecimal> {
     /**
-     * 主键ID(MATERIAL_ID,DECIMAL,38)
+     * 主键ID(MATERIAL_ID,DECIMAL,0)
      */
     @ApiModelProperty(value="主键ID",required=true)
     private BigDecimal materialId;
 
     /**
-     * 物资类型ID(MATERIAL_TYPE_ID,DECIMAL,38)
+     * 物资类型ID(MATERIAL_TYPE_ID,DECIMAL,0)
      */
     @ApiModelProperty(value="物资类型ID",required=false)
     private BigDecimal materialTypeId;
 
     /**
-     * 计量单位ID(UNIT_OF_MEASURE_ID,DECIMAL,38)
+     * 计量单位ID(UNIT_OF_MEASURE_ID,DECIMAL,0)
      */
     @ApiModelProperty(value="计量单位ID",required=false)
     private BigDecimal unitOfMeasureId;
@@ -40,13 +40,13 @@ public class RmsMaterial implements IBasePO<BigDecimal> {
     private String materialName;
 
     /**
-     * 规格(MATERIAL_SPECIFICATION,VARCHAR,100)
+     * 规格(MATERIAL_SPECIFICATION,VARCHAR,500)
      */
     @ApiModelProperty(value="规格",required=false)
     private String materialSpecification;
 
     /**
-     * 型号(MATERIAL_MODEL,VARCHAR,100)
+     * 型号(MATERIAL_MODEL,VARCHAR,500)
      */
     @ApiModelProperty(value="型号",required=false)
     private String materialModel;
@@ -99,6 +99,24 @@ public class RmsMaterial implements IBasePO<BigDecimal> {
     @ApiModelProperty(value="逻辑删除",required=false)
     private BigDecimal deleted;
 
+    /**
+     * 物资理重(MATERIAL_THEORETICAL_WEIGHT,DECIMAL,0)
+     */
+    @ApiModelProperty(value="物资理重",required=false)
+    private BigDecimal materialTheoreticalWeight;
+
+    /**
+     * 装卸货优先次序(MATERIAL_ORDER,DECIMAL,0)
+     */
+    @ApiModelProperty(value="装卸货优先次序",required=false)
+    private BigDecimal materialOrder;
+
+    /**
+     * 钢材订单中出现次数(MATERIAL_COUNT,DECIMAL,0)
+     */
+    @ApiModelProperty(value="钢材订单中出现次数",required=false)
+    private BigDecimal materialCount;
+
     private static final long serialVersionUID = 1L;
 
     @Override
@@ -231,6 +249,30 @@ public class RmsMaterial implements IBasePO<BigDecimal> {
         this.deleted = deleted;
     }
 
+    public BigDecimal getMaterialTheoreticalWeight() {
+        return materialTheoreticalWeight;
+    }
+
+    public void setMaterialTheoreticalWeight(BigDecimal materialTheoreticalWeight) {
+        this.materialTheoreticalWeight = materialTheoreticalWeight;
+    }
+
+    public BigDecimal getMaterialOrder() {
+        return materialOrder;
+    }
+
+    public void setMaterialOrder(BigDecimal materialOrder) {
+        this.materialOrder = materialOrder;
+    }
+
+    public BigDecimal getMaterialCount() {
+        return materialCount;
+    }
+
+    public void setMaterialCount(BigDecimal materialCount) {
+        this.materialCount = materialCount;
+    }
+
     @Override
     public String toString() {
         StringBuilder sb = new StringBuilder();
@@ -252,6 +294,9 @@ public class RmsMaterial implements IBasePO<BigDecimal> {
         sb.append(", insertUpdateRemark=").append(insertUpdateRemark);
         sb.append(", easMaterialId=").append(easMaterialId);
         sb.append(", deleted=").append(deleted);
+        sb.append(", materialTheoreticalWeight=").append(materialTheoreticalWeight);
+        sb.append(", materialOrder=").append(materialOrder);
+        sb.append(", materialCount=").append(materialCount);
         sb.append(", serialVersionUID=").append(serialVersionUID);
         sb.append("]");
         return sb.toString();

+ 33 - 3
src/main/java/com/steerinfo/dil/model/RmsSupplier.java

@@ -10,7 +10,7 @@ import java.util.Date;
 @ApiModel(value="供应商")
 public class RmsSupplier implements IBasePO<BigDecimal> {
     /**
-     * 主键id(SUPPLIER_ID,DECIMAL,38)
+     * 主键id(SUPPLIER_ID,DECIMAL,0)
      */
     @ApiModelProperty(value="主键id",required=true)
     private BigDecimal supplierId;
@@ -28,7 +28,7 @@ public class RmsSupplier implements IBasePO<BigDecimal> {
     private String supplierAbbreviation;
 
     /**
-     * 地址(SUPPLIER_ADDRESS,VARCHAR,64)
+     * 地址(SUPPLIER_ADDRESS,VARCHAR,200)
      */
     @ApiModelProperty(value="地址",required=false)
     private String supplierAddress;
@@ -136,7 +136,7 @@ public class RmsSupplier implements IBasePO<BigDecimal> {
     private String supplierCredential;
 
     /**
-     * 联系人(SUPPLIER_CONTACTS_NAME,VARCHAR,8)
+     * 联系人(SUPPLIER_CONTACTS_NAME,VARCHAR,20)
      */
     @ApiModelProperty(value="联系人",required=false)
     private String supplierContactsName;
@@ -183,6 +183,18 @@ public class RmsSupplier implements IBasePO<BigDecimal> {
     @ApiModelProperty(value="逻辑删除",required=false)
     private BigDecimal deleted;
 
+    /**
+     * 供应商父节点ID(SUPPLIER_FAR_ID,DECIMAL,0)
+     */
+    @ApiModelProperty(value="供应商父节点ID",required=false)
+    private BigDecimal supplierFarId;
+
+    /**
+     * 供应商屏蔽信息(SUPPLIER_SCREEN_INFO,VARCHAR,200)
+     */
+    @ApiModelProperty(value="供应商屏蔽信息",required=false)
+    private String supplierScreenInfo;
+
     /**
      * 经营许可证(照片)(SUPPLIER_BUSINESS_LICENSE,BLOB,4000)
      */
@@ -439,6 +451,22 @@ public class RmsSupplier implements IBasePO<BigDecimal> {
         this.deleted = deleted;
     }
 
+    public BigDecimal getSupplierFarId() {
+        return supplierFarId;
+    }
+
+    public void setSupplierFarId(BigDecimal supplierFarId) {
+        this.supplierFarId = supplierFarId;
+    }
+
+    public String getSupplierScreenInfo() {
+        return supplierScreenInfo;
+    }
+
+    public void setSupplierScreenInfo(String supplierScreenInfo) {
+        this.supplierScreenInfo = supplierScreenInfo == null ? null : supplierScreenInfo.trim();
+    }
+
     public byte[] getSupplierBusinessLicense() {
         return supplierBusinessLicense;
     }
@@ -490,6 +518,8 @@ public class RmsSupplier implements IBasePO<BigDecimal> {
         sb.append(", insertUpdateRemark=").append(insertUpdateRemark);
         sb.append(", easSupplierId=").append(easSupplierId);
         sb.append(", deleted=").append(deleted);
+        sb.append(", supplierFarId=").append(supplierFarId);
+        sb.append(", supplierScreenInfo=").append(supplierScreenInfo);
         sb.append(", supplierBusinessLicense=").append(supplierBusinessLicense);
         sb.append(", supplierBusinessAblelicense=").append(supplierBusinessAblelicense);
         sb.append(", serialVersionUID=").append(serialVersionUID);

+ 22 - 11
src/main/java/com/steerinfo/dil/service/impl/AmsSaleOrderServiceImpl.java

@@ -4,10 +4,9 @@ import com.steerinfo.dil.mapper.*;
 import com.steerinfo.dil.model.*;
 import com.steerinfo.dil.service.IAmsSaleOrderService;
 import com.steerinfo.dil.util.DataChange;
+import com.steerinfo.dil.util.MyException;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
-import org.springframework.transaction.annotation.Isolation;
-import org.springframework.transaction.annotation.Propagation;
 import org.springframework.transaction.annotation.Transactional;
 
 import java.math.BigDecimal;
@@ -46,6 +45,8 @@ public class AmsSaleOrderServiceImpl implements IAmsSaleOrderService {
     AmsSaleOrderCarrierMapper amsSaleOrderCarrierMapper;
     @Autowired
     OmstruckOrderMapper omstruckOrderMapper;
+    @Autowired
+    RmsMaterialMapper rmsMaterialMapper;
 
     /**
      * 查询销售订单
@@ -53,7 +54,7 @@ public class AmsSaleOrderServiceImpl implements IAmsSaleOrderService {
      * @return
      */
     @Override
-    @Transactional
+    @Transactional(rollbackFor = Exception.class)
     public Map<String, Object> getSaleOrder(BigDecimal saleOrderId) {
         List<Map<String,Object>> entries = amsSaleOrderMapper.getMaterialMessages(saleOrderId);
         Map<String,Object> head = amsSaleOrderMapper.getSaleOrderMessage(saleOrderId);
@@ -144,13 +145,13 @@ public class AmsSaleOrderServiceImpl implements IAmsSaleOrderService {
         if (closeStatus.equals("0")) {
             AmsSaleOrder amsSaleOrder = amsSaleOrders.get(0);
             amsSaleOrder.setDeleted(new BigDecimal(1));
-            result = amsSaleOrderMapper.updateByPrimaryKeySelective(amsSaleOrder);
+            result += amsSaleOrderMapper.updateByPrimaryKeySelective(amsSaleOrder);
         }
         if (orderStatus.equals("4") && closeStatus.equals("1")){
             AmsSaleOrder amsSaleOrder = amsSaleOrders.get(0);
             amsSaleOrder.setSaleOrderStatus(new BigDecimal(4));
             amsSaleOrder.setDeleted(new BigDecimal(0));
-            result = amsSaleOrderMapper.updateByPrimaryKeySelective(amsSaleOrder);
+            result += amsSaleOrderMapper.updateByPrimaryKeySelective(amsSaleOrder);
         }
         if (orderStatus.equals("2") && closeStatus.equals("1")){
             // 得到账户余额
@@ -243,10 +244,14 @@ public class AmsSaleOrderServiceImpl implements IAmsSaleOrderService {
                     Object warehouseName = materialMap.get("warehouseName");
                     // 物资理重
                     Object meterWeight = materialMap.get("meterWeight");
+                    // 得到物资编码
+                    String materialCode = (String) materialMap.get("materialCode");
                     if (warehouseName != null) {
                         amsSaleMaterial.setSaleWarehouse(warehouseName.toString());
+                        //得到物资名称
+                        String materialName = amsSaleOrderCarrierMapper.getMaterialName(materialCode);
                         // 如果是副产品仓库,则给自提订单自动匹配承运商
-                        if (warehouseName.equals("副产品库") && "是".equals(amsSaleOrder.getSaleOrderIsselfMention())) {
+                        if (warehouseName.equals("副产品库") && "是".equals(amsSaleOrder.getSaleOrderIsselfMention()) || "钒渣".equals(materialName) && "是".equals(amsSaleOrder.getSaleOrderIsselfMention()) ) {
                             AmsSaleOrderCarrier amsSaleOrderCarrier = amsSaleOrderCarrierMapper.getAmsSaleOrderCarrier(saleOrderId);
                             BigDecimal carrierId = amsSaleOrderCarrierMapper.findCarrierByConsignee(receiveUnitName);
                             if (amsSaleOrderCarrier == null) {
@@ -259,17 +264,23 @@ public class AmsSaleOrderServiceImpl implements IAmsSaleOrderService {
                                 amsSaleOrderCarrier.setInsertTime(new Date());
                                 amsSaleOrderCarrier.setInsertUsername("自动匹配");
                                 amsSaleOrderCarrier.setInsertUpdateRemark("自提订单自动匹配");
-                                amsSaleOrderCarrierMapper.insertSelective(amsSaleOrderCarrier);
+                                result += amsSaleOrderCarrierMapper.insertSelective(amsSaleOrderCarrier);
                             }
                             else {
                                 amsSaleOrderCarrier.setCarrierId(carrierId);
-                                amsSaleOrderCarrierMapper.updateByPrimaryKeySelective(amsSaleOrderCarrier);
+                                result += amsSaleOrderCarrierMapper.updateByPrimaryKeySelective(amsSaleOrderCarrier);
                             }
                         }
                     }
-                    // 得到物资编码
-                    String materialCode = (String) materialMap.get("materialCode");
                     BigDecimal materialId = amsSaleMaterialMapper.getMaterialId(materialCode);
+                    Integer materialCount = amsSaleMaterialMapper.getMaterialCount(materialId);
+                    RmsMaterial rmsMaterial = new RmsMaterial();
+                    rmsMaterial.setMaterialId(materialId);
+                    if (materialCount == null) {
+                        materialCount = new Integer(0);
+                    }
+                    rmsMaterial.setMaterialCount(new BigDecimal(materialCount + 1));
+                    rmsMaterialMapper.updateByPrimaryKeySelective(rmsMaterial);
                     // 得到金蝶分录主键
                     String easPrimaryId = (String) materialMap.get("easPrimaryId");
                     // 得到物资重量
@@ -305,7 +316,7 @@ public class AmsSaleOrderServiceImpl implements IAmsSaleOrderService {
                 amsSaleOrder.setReceiveId(receiveId);
                 // 如果是财务审批后,将不可作业的运输订单改为已接收状态
                 if (orderStatus.equals("4")) {
-                    amsSaleOrderMapper.updateTruckOrderStatus(amsSaleOrder.getSaleOrderId());
+                    result += amsSaleOrderMapper.updateTruckOrderStatus(amsSaleOrder.getSaleOrderId());
                 }
                 if (isSelfMention != null) {
                     if (isSelfMention.equals("CARRY")) {

+ 5 - 0
src/main/java/com/steerinfo/dil/service/impl/RmsSupplierServiceImpl.java

@@ -58,6 +58,8 @@ public class RmsSupplierServiceImpl implements IRmsSupplierService {
         String supplierContactNumber = (String) mapVal.get("supplierContactNumber");
         // 得到数据数据状态
         Integer dataStatus = (Integer) mapVal.get("dataStatus");
+        // 得到供应商屏蔽信息
+        Object supplierScreenInfo =  mapVal.get("supplierScreenInfo");
 //        // 判断是供应商还是承运商
 //        String dataType = (String) mapVal.get("dataType");
         // 判断是否EASId已存在
@@ -75,6 +77,9 @@ public class RmsSupplierServiceImpl implements IRmsSupplierService {
         rmsSupplier.setSupplierAbbreviation(supplierAbbreviation);
         rmsSupplier.setSupplierDutyParagraph(supplierDutyParagraph);
         rmsSupplier.setSupplierAddress(supplierAddress);
+        if (supplierScreenInfo != null) {
+            rmsSupplier.setSupplierScreenInfo(supplierScreenInfo.toString());
+        }
         rmsSupplier.setSupplierContactsName(supplierContactsName);
         rmsSupplier.setSupplierContactNumber(supplierContactNumber);
         rmsSupplier.setInsertTime(new Date());

+ 26 - 0
src/main/java/com/steerinfo/dil/util/MyException.java

@@ -0,0 +1,26 @@
+package com.steerinfo.dil.util;
+
+
+import org.springframework.stereotype.Component;
+
+/**
+ * @Description:
+ * @Author:HuJianGuo
+ * @GreateTime:2022/6/13 15:04
+ * @Version:V2.0
+ */
+public class MyException extends Exception {
+    // 定义异常信息
+    public String message;
+
+    // 构造方法
+    public MyException(String message) {
+        super(message);
+        this.message = message;
+    }
+
+//    // 获取异常信息
+//    public String getMessage() {
+//        return message;
+//    }
+}

+ 5 - 5
src/main/resources/application-dev.yml

@@ -1,8 +1,8 @@
 spring:
   datasource:
-    url: jdbc:oracle:thin:@172.16.33.163:1521:ilsdbpri
-    password: root123
-    username: dagang
+    url: jdbc:oracle:thin:@172.16.33.165:1521:ilsdbstd
+    password: Dil123789
+    username: dil
     driver-class-name: oracle.jdbc.OracleDriver
   application:
     name: dal-dazhou-join-api
@@ -13,8 +13,8 @@ openfeign:
   imFeign:
     url: ${IMFEIGN_URL:172.16.33.166:8055}
   TmsTruckFeign:
-    url: ${TMSTRUCKFEIGN_URL:localhost:8008}
+    url: ${TMSTRUCKFEIGN_URL:172.16.33.166:8008}
   BmsTruckFeign:
-    url: ${BMSTRUCKFEIGN_URL:localhost:8009}
+    url: ${BMSTRUCKFEIGN_URL:172.16.33.166:8009}
 server:
   port: 8006

+ 6 - 0
src/main/resources/com/steerinfo/dil/mapper/AmsSaleMaterialMapper.xml

@@ -503,4 +503,10 @@
         AND RM.DELETED = 0
     </select>
 
+    <select id="getMaterialCount" parameterType="DECIMAL" resultType="java.lang.Integer">
+        SELECT RM.MATERIAL_COUNT AS "materialCount"
+        FROM RMS_MATERIAL RM
+        WHERE RM.MATERIAL_ID = #{materialId}
+    </select>
+
 </mapper>

+ 6 - 0
src/main/resources/com/steerinfo/dil/mapper/AmsSaleOrderCarrierMapper.xml

@@ -327,4 +327,10 @@
     FROM RMS_CARRIER RC
     WHERE RC.CARRIER_NAME = #{receiveUnitName}
   </select>
+
+  <select id="getMaterialName" parameterType="java.lang.String" resultType="java.lang.String">
+    SELECT RM.MATERIAL_NAME AS "materialName"
+    FROM RMS_MATERIAL RM
+    WHERE RM.MATERIAL_CODE = #{materialCode}
+  </select>
 </mapper>

+ 143 - 73
src/main/resources/com/steerinfo/dil/mapper/RmsMaterialMapper.xml

@@ -2,42 +2,42 @@
 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
 <mapper namespace="com.steerinfo.dil.mapper.RmsMaterialMapper">
     <resultMap id="BaseResultMap" type="com.steerinfo.dil.model.RmsMaterial">
-        <id column="MATERIAL_ID" jdbcType="DECIMAL" property="materialId"/>
-        <result column="MATERIAL_TYPE_ID" jdbcType="DECIMAL" property="materialTypeId"/>
-        <result column="UNIT_OF_MEASURE_ID" jdbcType="DECIMAL" property="unitOfMeasureId"/>
-        <result column="MATERIAL_CODE" jdbcType="VARCHAR" property="materialCode"/>
-        <result column="MATERIAL_NAME" jdbcType="VARCHAR" property="materialName"/>
-        <result column="MATERIAL_SPECIFICATION" jdbcType="VARCHAR" property="materialSpecification"/>
-        <result column="MATERIAL_MODEL" jdbcType="VARCHAR" property="materialModel"/>
-        <result column="MATERIAL_LENGTH" jdbcType="DECIMAL" property="materialLength"/>
-        <result column="INSERT_USERNAME" jdbcType="VARCHAR" property="insertUsername"/>
-        <result column="INSERT_TIME" jdbcType="TIMESTAMP" property="insertTime"/>
-        <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_MATERIAL_ID" jdbcType="VARCHAR" property="easMaterialId"/>
-        <result column="DELETED" jdbcType="DECIMAL" property="deleted"/>
+        <id column="MATERIAL_ID" jdbcType="DECIMAL" property="materialId" />
+        <result column="MATERIAL_TYPE_ID" jdbcType="DECIMAL" property="materialTypeId" />
+        <result column="UNIT_OF_MEASURE_ID" jdbcType="DECIMAL" property="unitOfMeasureId" />
+        <result column="MATERIAL_CODE" jdbcType="VARCHAR" property="materialCode" />
+        <result column="MATERIAL_NAME" jdbcType="VARCHAR" property="materialName" />
+        <result column="MATERIAL_SPECIFICATION" jdbcType="VARCHAR" property="materialSpecification" />
+        <result column="MATERIAL_MODEL" jdbcType="VARCHAR" property="materialModel" />
+        <result column="MATERIAL_LENGTH" jdbcType="DECIMAL" property="materialLength" />
+        <result column="INSERT_USERNAME" jdbcType="VARCHAR" property="insertUsername" />
+        <result column="INSERT_TIME" jdbcType="TIMESTAMP" property="insertTime" />
+        <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_MATERIAL_ID" jdbcType="VARCHAR" property="easMaterialId" />
+        <result column="DELETED" jdbcType="DECIMAL" property="deleted" />
+        <result column="MATERIAL_THEORETICAL_WEIGHT" jdbcType="DECIMAL" property="materialTheoreticalWeight" />
+        <result column="MATERIAL_ORDER" jdbcType="DECIMAL" property="materialOrder" />
+        <result column="MATERIAL_COUNT" jdbcType="DECIMAL" property="materialCount" />
     </resultMap>
     <sql id="columns">
         MATERIAL_ID, MATERIAL_TYPE_ID, UNIT_OF_MEASURE_ID, MATERIAL_CODE, MATERIAL_NAME,
     MATERIAL_SPECIFICATION, MATERIAL_MODEL, MATERIAL_LENGTH, INSERT_USERNAME, INSERT_TIME,
-    UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK, EAS_MATERIAL_ID, DELETED
+    UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK, EAS_MATERIAL_ID, DELETED, MATERIAL_THEORETICAL_WEIGHT,
+    MATERIAL_ORDER, MATERIAL_COUNT
     </sql>
     <sql id="columns_alias">
         t.MATERIAL_ID, t.MATERIAL_TYPE_ID, t.UNIT_OF_MEASURE_ID, t.MATERIAL_CODE, t.MATERIAL_NAME,
     t.MATERIAL_SPECIFICATION, t.MATERIAL_MODEL, t.MATERIAL_LENGTH, t.INSERT_USERNAME,
     t.INSERT_TIME, t.UPDATE_USERNAME, t.UPDATE_TIME, t.INSERT_UPDATE_REMARK, t.EAS_MATERIAL_ID,
-    t.DELETED
+    t.DELETED, t.MATERIAL_THEORETICAL_WEIGHT, t.MATERIAL_ORDER, t.MATERIAL_COUNT
     </sql>
     <sql id="select">
-        SELECT
-        <include refid="columns"/>
-        FROM RMS_MATERIAL
+        SELECT <include refid="columns" /> FROM RMS_MATERIAL
     </sql>
     <sql id="select_alias">
-        SELECT
-        <include refid="columns_alias"/>
-        FROM RMS_MATERIAL t
+        SELECT <include refid="columns_alias" /> FROM RMS_MATERIAL t
     </sql>
     <sql id="where">
         <where>
@@ -86,6 +86,15 @@
             <if test="deleted != null">
                 and DELETED = #{deleted}
             </if>
+            <if test="materialTheoreticalWeight != null">
+                and MATERIAL_THEORETICAL_WEIGHT = #{materialTheoreticalWeight}
+            </if>
+            <if test="materialOrder != null">
+                and MATERIAL_ORDER = #{materialOrder}
+            </if>
+            <if test="materialCount != null">
+                and MATERIAL_COUNT = #{materialCount}
+            </if>
         </where>
     </sql>
     <sql id="whereLike">
@@ -135,11 +144,19 @@
             <if test="deleted != null">
                 and DELETED = #{deleted}
             </if>
+            <if test="materialTheoreticalWeight != null">
+                and MATERIAL_THEORETICAL_WEIGHT = #{materialTheoreticalWeight}
+            </if>
+            <if test="materialOrder != null">
+                and MATERIAL_ORDER = #{materialOrder}
+            </if>
+            <if test="materialCount != null">
+                and MATERIAL_COUNT = #{materialCount}
+            </if>
         </where>
     </sql>
-    <delete id="deleteByPrimaryKey" parameterType="java.math.BigDecimal">
-        delete
-        from RMS_MATERIAL
+    <delete id="deleteByPrimaryKey" parameterType="DECIMAL">
+        delete from RMS_MATERIAL
         where MATERIAL_ID = #{materialId,jdbcType=DECIMAL}
     </delete>
     <delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
@@ -187,20 +204,31 @@
         <if test="deleted != null">
             or DELETED = #{deleted}
         </if>
+        <if test="materialTheoreticalWeight != null">
+            or MATERIAL_THEORETICAL_WEIGHT = #{materialTheoreticalWeight}
+        </if>
+        <if test="materialOrder != null">
+            or MATERIAL_ORDER = #{materialOrder}
+        </if>
+        <if test="materialCount != null">
+            or MATERIAL_COUNT = #{materialCount}
+        </if>
     </delete>
     <insert id="insert" parameterType="com.steerinfo.dil.model.RmsMaterial">
         insert into RMS_MATERIAL (MATERIAL_ID, MATERIAL_TYPE_ID, UNIT_OF_MEASURE_ID,
                                   MATERIAL_CODE, MATERIAL_NAME, MATERIAL_SPECIFICATION,
                                   MATERIAL_MODEL, MATERIAL_LENGTH, INSERT_USERNAME,
                                   INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME,
-                                  INSERT_UPDATE_REMARK, EAS_MATERIAL_ID, DELETED)
+                                  INSERT_UPDATE_REMARK, EAS_MATERIAL_ID, DELETED,
+                                  MATERIAL_THEORETICAL_WEIGHT, MATERIAL_ORDER,
+                                  MATERIAL_COUNT)
         values (#{materialId,jdbcType=DECIMAL}, #{materialTypeId,jdbcType=DECIMAL}, #{unitOfMeasureId,jdbcType=DECIMAL},
-                #{materialCode,jdbcType=VARCHAR}, #{materialName,jdbcType=VARCHAR},
-                #{materialSpecification,jdbcType=VARCHAR},
-                #{materialModel,jdbcType=VARCHAR}, #{materialLength,jdbcType=DECIMAL},
-                #{insertUsername,jdbcType=VARCHAR},
+                #{materialCode,jdbcType=VARCHAR}, #{materialName,jdbcType=VARCHAR}, #{materialSpecification,jdbcType=VARCHAR},
+                #{materialModel,jdbcType=VARCHAR}, #{materialLength,jdbcType=DECIMAL}, #{insertUsername,jdbcType=VARCHAR},
                 #{insertTime,jdbcType=TIMESTAMP}, #{updateUsername,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
-                #{insertUpdateRemark,jdbcType=VARCHAR}, #{easMaterialId,jdbcType=VARCHAR}, #{deleted,jdbcType=DECIMAL})
+                #{insertUpdateRemark,jdbcType=VARCHAR}, #{easMaterialId,jdbcType=VARCHAR}, #{deleted,jdbcType=DECIMAL},
+                #{materialTheoreticalWeight,jdbcType=DECIMAL}, #{materialOrder,jdbcType=DECIMAL},
+                #{materialCount,jdbcType=DECIMAL})
     </insert>
     <insert id="insertSelective" parameterType="com.steerinfo.dil.model.RmsMaterial">
         insert into RMS_MATERIAL
@@ -250,6 +278,15 @@
             <if test="deleted != null">
                 DELETED,
             </if>
+            <if test="materialTheoreticalWeight != null">
+                MATERIAL_THEORETICAL_WEIGHT,
+            </if>
+            <if test="materialOrder != null">
+                MATERIAL_ORDER,
+            </if>
+            <if test="materialCount != null">
+                MATERIAL_COUNT,
+            </if>
         </trim>
         <trim prefix="values (" suffix=")" suffixOverrides=",">
             <if test="materialId != null">
@@ -297,24 +334,36 @@
             <if test="deleted != null">
                 #{deleted,jdbcType=DECIMAL},
             </if>
+            <if test="materialTheoreticalWeight != null">
+                #{materialTheoreticalWeight,jdbcType=DECIMAL},
+            </if>
+            <if test="materialOrder != null">
+                #{materialOrder,jdbcType=DECIMAL},
+            </if>
+            <if test="materialCount != null">
+                #{materialCount,jdbcType=DECIMAL},
+            </if>
         </trim>
     </insert>
     <update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.RmsMaterial">
         update RMS_MATERIAL
-        set MATERIAL_TYPE_ID       = #{materialTypeId,jdbcType=DECIMAL},
-            UNIT_OF_MEASURE_ID     = #{unitOfMeasureId,jdbcType=DECIMAL},
-            MATERIAL_CODE          = #{materialCode,jdbcType=VARCHAR},
-            MATERIAL_NAME          = #{materialName,jdbcType=VARCHAR},
+        set MATERIAL_TYPE_ID = #{materialTypeId,jdbcType=DECIMAL},
+            UNIT_OF_MEASURE_ID = #{unitOfMeasureId,jdbcType=DECIMAL},
+            MATERIAL_CODE = #{materialCode,jdbcType=VARCHAR},
+            MATERIAL_NAME = #{materialName,jdbcType=VARCHAR},
             MATERIAL_SPECIFICATION = #{materialSpecification,jdbcType=VARCHAR},
-            MATERIAL_MODEL         = #{materialModel,jdbcType=VARCHAR},
-            MATERIAL_LENGTH        = #{materialLength,jdbcType=DECIMAL},
-            INSERT_USERNAME        = #{insertUsername,jdbcType=VARCHAR},
-            INSERT_TIME            = #{insertTime,jdbcType=TIMESTAMP},
-            UPDATE_USERNAME        = #{updateUsername,jdbcType=VARCHAR},
-            UPDATE_TIME            = #{updateTime,jdbcType=TIMESTAMP},
-            INSERT_UPDATE_REMARK   = #{insertUpdateRemark,jdbcType=VARCHAR},
-            EAS_MATERIAL_ID        = #{easMaterialId,jdbcType=VARCHAR},
-            DELETED                = #{deleted,jdbcType=DECIMAL}
+            MATERIAL_MODEL = #{materialModel,jdbcType=VARCHAR},
+            MATERIAL_LENGTH = #{materialLength,jdbcType=DECIMAL},
+            INSERT_USERNAME = #{insertUsername,jdbcType=VARCHAR},
+            INSERT_TIME = #{insertTime,jdbcType=TIMESTAMP},
+            UPDATE_USERNAME = #{updateUsername,jdbcType=VARCHAR},
+            UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
+            INSERT_UPDATE_REMARK = #{insertUpdateRemark,jdbcType=VARCHAR},
+            EAS_MATERIAL_ID = #{easMaterialId,jdbcType=VARCHAR},
+            DELETED = #{deleted,jdbcType=DECIMAL},
+            MATERIAL_THEORETICAL_WEIGHT = #{materialTheoreticalWeight,jdbcType=DECIMAL},
+            MATERIAL_ORDER = #{materialOrder,jdbcType=DECIMAL},
+            MATERIAL_COUNT = #{materialCount,jdbcType=DECIMAL}
         where MATERIAL_ID = #{materialId,jdbcType=DECIMAL}
     </update>
     <update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.RmsMaterial">
@@ -362,20 +411,29 @@
             <if test="deleted != null">
                 DELETED = #{deleted,jdbcType=DECIMAL},
             </if>
+            <if test="materialTheoreticalWeight != null">
+                MATERIAL_THEORETICAL_WEIGHT = #{materialTheoreticalWeight,jdbcType=DECIMAL},
+            </if>
+            <if test="materialOrder != null">
+                MATERIAL_ORDER = #{materialOrder,jdbcType=DECIMAL},
+            </if>
+            <if test="materialCount != null">
+                MATERIAL_COUNT = #{materialCount,jdbcType=DECIMAL},
+            </if>
         </set>
         where MATERIAL_ID = #{materialId,jdbcType=DECIMAL}
     </update>
-    <select id="selectByPrimaryKey" parameterType="java.math.BigDecimal" resultMap="BaseResultMap">
-        <include refid="select"/>
+    <select id="selectByPrimaryKey" parameterType="DECIMAL" resultMap="BaseResultMap">
+        <include refid="select" />
         where MATERIAL_ID = #{materialId,jdbcType=DECIMAL}
     </select>
     <select id="selectByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
-        <include refid="select"/>
-        <include refid="where"/>
+        <include refid="select" />
+        <include refid="where" />
     </select>
     <select id="selectLikeByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
-        <include refid="select"/>
-        <include refid="whereLike"/>
+        <include refid="select" />
+        <include refid="whereLike" />
     </select>
     <insert id="batchInsert" parameterType="java.util.List">
         insert into RMS_MATERIAL
@@ -386,99 +444,111 @@
         INSERT_USERNAME, INSERT_TIME,
         UPDATE_USERNAME, UPDATE_TIME,
         INSERT_UPDATE_REMARK, EAS_MATERIAL_ID,
-        DELETED)
+        DELETED, MATERIAL_THEORETICAL_WEIGHT,
+        MATERIAL_ORDER, MATERIAL_COUNT)
         ( <foreach collection="list" item="item" separator="union all">
         select
         #{item.materialId,jdbcType=DECIMAL},
         #{item.materialTypeId,jdbcType=DECIMAL}, #{item.unitOfMeasureId,jdbcType=DECIMAL},
-        #{item.materialCode,jdbcType=VARCHAR}, #{item.materialName,jdbcType=VARCHAR},
-        #{item.materialSpecification,jdbcType=VARCHAR},
+        #{item.materialCode,jdbcType=VARCHAR}, #{item.materialName,jdbcType=VARCHAR}, #{item.materialSpecification,jdbcType=VARCHAR},
         #{item.materialModel,jdbcType=VARCHAR}, #{item.materialLength,jdbcType=DECIMAL},
         #{item.insertUsername,jdbcType=VARCHAR}, #{item.insertTime,jdbcType=TIMESTAMP},
         #{item.updateUsername,jdbcType=VARCHAR}, #{item.updateTime,jdbcType=TIMESTAMP},
         #{item.insertUpdateRemark,jdbcType=VARCHAR}, #{item.easMaterialId,jdbcType=VARCHAR},
-        #{item.deleted,jdbcType=DECIMAL} from dual
+        #{item.deleted,jdbcType=DECIMAL}, #{item.materialTheoreticalWeight,jdbcType=DECIMAL},
+        #{item.materialOrder,jdbcType=DECIMAL}, #{item.materialCount,jdbcType=DECIMAL} from dual
     </foreach> )
     </insert>
     <update id="batchUpdate" parameterType="java.util.List">
         update RMS_MATERIAL
         set
         MATERIAL_ID=
-        <foreach collection="list" item="item" index="index" separator=" " open="case MATERIAL_ID" close="end">
+        <foreach close="end" collection="list" index="index" item="item" open="case MATERIAL_ID" separator=" ">
             when #{item.materialId,jdbcType=DECIMAL} then #{item.materialId,jdbcType=DECIMAL}
         </foreach>
         ,MATERIAL_TYPE_ID=
-        <foreach collection="list" item="item" index="index" separator=" " open="case MATERIAL_ID" close="end">
+        <foreach close="end" collection="list" index="index" item="item" open="case MATERIAL_ID" separator=" ">
             when #{item.materialId,jdbcType=DECIMAL} then #{item.materialTypeId,jdbcType=DECIMAL}
         </foreach>
         ,UNIT_OF_MEASURE_ID=
-        <foreach collection="list" item="item" index="index" separator=" " open="case MATERIAL_ID" close="end">
+        <foreach close="end" collection="list" index="index" item="item" open="case MATERIAL_ID" separator=" ">
             when #{item.materialId,jdbcType=DECIMAL} then #{item.unitOfMeasureId,jdbcType=DECIMAL}
         </foreach>
         ,MATERIAL_CODE=
-        <foreach collection="list" item="item" index="index" separator=" " open="case MATERIAL_ID" close="end">
+        <foreach close="end" collection="list" index="index" item="item" open="case MATERIAL_ID" separator=" ">
             when #{item.materialId,jdbcType=DECIMAL} then #{item.materialCode,jdbcType=VARCHAR}
         </foreach>
         ,MATERIAL_NAME=
-        <foreach collection="list" item="item" index="index" separator=" " open="case MATERIAL_ID" close="end">
+        <foreach close="end" collection="list" index="index" item="item" open="case MATERIAL_ID" separator=" ">
             when #{item.materialId,jdbcType=DECIMAL} then #{item.materialName,jdbcType=VARCHAR}
         </foreach>
         ,MATERIAL_SPECIFICATION=
-        <foreach collection="list" item="item" index="index" separator=" " open="case MATERIAL_ID" close="end">
+        <foreach close="end" collection="list" index="index" item="item" open="case MATERIAL_ID" separator=" ">
             when #{item.materialId,jdbcType=DECIMAL} then #{item.materialSpecification,jdbcType=VARCHAR}
         </foreach>
         ,MATERIAL_MODEL=
-        <foreach collection="list" item="item" index="index" separator=" " open="case MATERIAL_ID" close="end">
+        <foreach close="end" collection="list" index="index" item="item" open="case MATERIAL_ID" separator=" ">
             when #{item.materialId,jdbcType=DECIMAL} then #{item.materialModel,jdbcType=VARCHAR}
         </foreach>
         ,MATERIAL_LENGTH=
-        <foreach collection="list" item="item" index="index" separator=" " open="case MATERIAL_ID" close="end">
+        <foreach close="end" collection="list" index="index" item="item" open="case MATERIAL_ID" separator=" ">
             when #{item.materialId,jdbcType=DECIMAL} then #{item.materialLength,jdbcType=DECIMAL}
         </foreach>
         ,INSERT_USERNAME=
-        <foreach collection="list" item="item" index="index" separator=" " open="case MATERIAL_ID" close="end">
+        <foreach close="end" collection="list" index="index" item="item" open="case MATERIAL_ID" separator=" ">
             when #{item.materialId,jdbcType=DECIMAL} then #{item.insertUsername,jdbcType=VARCHAR}
         </foreach>
         ,INSERT_TIME=
-        <foreach collection="list" item="item" index="index" separator=" " open="case MATERIAL_ID" close="end">
+        <foreach close="end" collection="list" index="index" item="item" open="case MATERIAL_ID" separator=" ">
             when #{item.materialId,jdbcType=DECIMAL} then #{item.insertTime,jdbcType=TIMESTAMP}
         </foreach>
         ,UPDATE_USERNAME=
-        <foreach collection="list" item="item" index="index" separator=" " open="case MATERIAL_ID" close="end">
+        <foreach close="end" collection="list" index="index" item="item" open="case MATERIAL_ID" separator=" ">
             when #{item.materialId,jdbcType=DECIMAL} then #{item.updateUsername,jdbcType=VARCHAR}
         </foreach>
         ,UPDATE_TIME=
-        <foreach collection="list" item="item" index="index" separator=" " open="case MATERIAL_ID" close="end">
+        <foreach close="end" collection="list" index="index" item="item" open="case MATERIAL_ID" separator=" ">
             when #{item.materialId,jdbcType=DECIMAL} then #{item.updateTime,jdbcType=TIMESTAMP}
         </foreach>
         ,INSERT_UPDATE_REMARK=
-        <foreach collection="list" item="item" index="index" separator=" " open="case MATERIAL_ID" close="end">
+        <foreach close="end" collection="list" index="index" item="item" open="case MATERIAL_ID" separator=" ">
             when #{item.materialId,jdbcType=DECIMAL} then #{item.insertUpdateRemark,jdbcType=VARCHAR}
         </foreach>
         ,EAS_MATERIAL_ID=
-        <foreach collection="list" item="item" index="index" separator=" " open="case MATERIAL_ID" close="end">
+        <foreach close="end" collection="list" index="index" item="item" open="case MATERIAL_ID" separator=" ">
             when #{item.materialId,jdbcType=DECIMAL} then #{item.easMaterialId,jdbcType=VARCHAR}
         </foreach>
         ,DELETED=
-        <foreach collection="list" item="item" index="index" separator=" " open="case MATERIAL_ID" close="end">
+        <foreach close="end" collection="list" index="index" item="item" open="case MATERIAL_ID" separator=" ">
             when #{item.materialId,jdbcType=DECIMAL} then #{item.deleted,jdbcType=DECIMAL}
         </foreach>
+        ,MATERIAL_THEORETICAL_WEIGHT=
+        <foreach close="end" collection="list" index="index" item="item" open="case MATERIAL_ID" separator=" ">
+            when #{item.materialId,jdbcType=DECIMAL} then #{item.materialTheoreticalWeight,jdbcType=DECIMAL}
+        </foreach>
+        ,MATERIAL_ORDER=
+        <foreach close="end" collection="list" index="index" item="item" open="case MATERIAL_ID" separator=" ">
+            when #{item.materialId,jdbcType=DECIMAL} then #{item.materialOrder,jdbcType=DECIMAL}
+        </foreach>
+        ,MATERIAL_COUNT=
+        <foreach close="end" collection="list" index="index" item="item" open="case MATERIAL_ID" separator=" ">
+            when #{item.materialId,jdbcType=DECIMAL} then #{item.materialCount,jdbcType=DECIMAL}
+        </foreach>
         where MATERIAL_ID in
-        <foreach collection="list" index="index" item="item" separator="," open="(" close=")">
+        <foreach close=")" collection="list" index="index" item="item" open="(" separator=",">
             #{item.materialId,jdbcType=DECIMAL}
         </foreach>
     </update>
     <delete id="batchDelete" parameterType="java.util.List">
         delete from RMS_MATERIAL
         where MATERIAL_ID in
-        <foreach collection="list" item="id" open="(" close=")" separator=",">
+        <foreach close=")" collection="list" item="id" open="(" separator=",">
             #{id}
         </foreach>
     </delete>
     <!-- 友情提示!!!-->
     <!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
 
-
     <!-- 展示物资信息 -->
     <select id="getMaterialList" parameterType="java.util.Map" resultType="java.util.Map">
         SELECT *

+ 998 - 947
src/main/resources/com/steerinfo/dil/mapper/RmsSupplierMapper.xml

@@ -1,951 +1,1002 @@
 <?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.steerinfo.dil.mapper.RmsSupplierMapper">
-    <resultMap id="BaseResultMap" type="com.steerinfo.dil.model.RmsSupplier">
-        <id column="SUPPLIER_ID" jdbcType="DECIMAL" property="supplierId" />
-        <result column="SUPPLIER_NAME" jdbcType="VARCHAR" property="supplierName" />
-        <result column="SUPPLIER_ABBREVIATION" jdbcType="VARCHAR" property="supplierAbbreviation" />
-        <result column="SUPPLIER_ADDRESS" jdbcType="VARCHAR" property="supplierAddress" />
-        <result column="SUPPLIER_LEGAL_REPRESENTATIVE" jdbcType="VARCHAR" property="supplierLegalRepresentative" />
-        <result column="SUPPLIER_REGISTER_NO" jdbcType="VARCHAR" property="supplierRegisterNo" />
-        <result column="SUPPLIER_AGENT" jdbcType="VARCHAR" property="supplierAgent" />
-        <result column="SUPPLIER_CONTACT_NUMBER" jdbcType="VARCHAR" property="supplierContactNumber" />
-        <result column="SUPPLIER_FAX" jdbcType="VARCHAR" property="supplierFax" />
-        <result column="SUPPLIER_ACCOUNT" jdbcType="VARCHAR" property="supplierAccount" />
-        <result column="SUPPLIER_ACCOUNT_BLANK" jdbcType="VARCHAR" property="supplierAccountBlank" />
-        <result column="SUPPLIER_DUTY_PARAGRAPH" jdbcType="VARCHAR" property="supplierDutyParagraph" />
-        <result column="SUPPLIER_POSTAL_CODE" jdbcType="VARCHAR" property="supplierPostalCode" />
-        <result column="SUPPLIER_REGISTER_CAPITAL" jdbcType="VARCHAR" property="supplierRegisterCapital" />
-        <result column="SUPPLIERBUSINESS_SCOPE" jdbcType="VARCHAR" property="supplierbusinessScope" />
-        <result column="SUPPLIER_COMPANY_STATUS" jdbcType="VARCHAR" property="supplierCompanyStatus" />
-        <result column="SUPPLIER_OPERATION_PERIOD" jdbcType="VARCHAR" property="supplierOperationPeriod" />
-        <result column="SUPPLIER_REGISTER_DATE" jdbcType="TIMESTAMP" property="supplierRegisterDate" />
-        <result column="SUPPLIER_REGISTER_ORGANIZATION" jdbcType="VARCHAR" property="supplierRegisterOrganization" />
-        <result column="SUPPLIER_REGISTER_APTITUDES" jdbcType="VARCHAR" property="supplierRegisterAptitudes" />
-        <result column="SUPPLIER_CREDENTIAL" jdbcType="VARCHAR" property="supplierCredential" />
-        <result column="SUPPLIER_CONTACTS_NAME" jdbcType="VARCHAR" property="supplierContactsName" />
-        <result column="INSERT_USERNAME" jdbcType="VARCHAR" property="insertUsername" />
-        <result column="INSERT_TIME" jdbcType="TIMESTAMP" property="insertTime" />
-        <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" />
-    </resultMap>
-    <sql id="columns">
-        SUPPLIER_ID, SUPPLIER_NAME, SUPPLIER_ABBREVIATION, SUPPLIER_ADDRESS, SUPPLIER_LEGAL_REPRESENTATIVE,
-    SUPPLIER_REGISTER_NO, SUPPLIER_AGENT, SUPPLIER_CONTACT_NUMBER, SUPPLIER_FAX, SUPPLIER_ACCOUNT,
-    SUPPLIER_ACCOUNT_BLANK, SUPPLIER_DUTY_PARAGRAPH, SUPPLIER_POSTAL_CODE, SUPPLIER_REGISTER_CAPITAL,
-    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, 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,
-    t.SUPPLIER_REGISTER_NO, t.SUPPLIER_AGENT, t.SUPPLIER_CONTACT_NUMBER, t.SUPPLIER_FAX,
-    t.SUPPLIER_ACCOUNT, t.SUPPLIER_ACCOUNT_BLANK, t.SUPPLIER_DUTY_PARAGRAPH, t.SUPPLIER_POSTAL_CODE,
-    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.EAS_SUPPLIER_ID,
-    t.DELETED, t.SUPPLIER_BUSINESS_LICENSE, t.SUPPLIER_BUSINESS_ABLELICENSE
-    </sql>
-    <sql id="select">
-        SELECT <include refid="columns"/> FROM RMS_SUPPLIER
-    </sql>
-    <sql id="select_alias">
-        SELECT <include refid="columns_alias"/> FROM RMS_SUPPLIER t
-    </sql>
-    <sql id="where">
-        <where>
-            <if test="supplierId != null">
-                and SUPPLIER_ID = #{supplierId}
-            </if>
-            <if test="supplierName != null and supplierName != ''">
-                and SUPPLIER_NAME = #{supplierName}
-            </if>
-            <if test="supplierAbbreviation != null and supplierAbbreviation != ''">
-                and SUPPLIER_ABBREVIATION = #{supplierAbbreviation}
-            </if>
-            <if test="supplierAddress != null and supplierAddress != ''">
-                and SUPPLIER_ADDRESS = #{supplierAddress}
-            </if>
-            <if test="supplierLegalRepresentative != null and supplierLegalRepresentative != ''">
-                and SUPPLIER_LEGAL_REPRESENTATIVE = #{supplierLegalRepresentative}
-            </if>
-            <if test="supplierRegisterNo != null and supplierRegisterNo != ''">
-                and SUPPLIER_REGISTER_NO = #{supplierRegisterNo}
-            </if>
-            <if test="supplierAgent != null and supplierAgent != ''">
-                and SUPPLIER_AGENT = #{supplierAgent}
-            </if>
-            <if test="supplierContactNumber != null and supplierContactNumber != ''">
-                and SUPPLIER_CONTACT_NUMBER = #{supplierContactNumber}
-            </if>
-            <if test="supplierFax != null and supplierFax != ''">
-                and SUPPLIER_FAX = #{supplierFax}
-            </if>
-            <if test="supplierAccount != null and supplierAccount != ''">
-                and SUPPLIER_ACCOUNT = #{supplierAccount}
-            </if>
-            <if test="supplierAccountBlank != null and supplierAccountBlank != ''">
-                and SUPPLIER_ACCOUNT_BLANK = #{supplierAccountBlank}
-            </if>
-            <if test="supplierDutyParagraph != null and supplierDutyParagraph != ''">
-                and SUPPLIER_DUTY_PARAGRAPH = #{supplierDutyParagraph}
-            </if>
-            <if test="supplierPostalCode != null and supplierPostalCode != ''">
-                and SUPPLIER_POSTAL_CODE = #{supplierPostalCode}
-            </if>
-            <if test="supplierRegisterCapital != null and supplierRegisterCapital != ''">
-                and SUPPLIER_REGISTER_CAPITAL = #{supplierRegisterCapital}
-            </if>
-            <if test="supplierbusinessScope != null and supplierbusinessScope != ''">
-                and SUPPLIERBUSINESS_SCOPE = #{supplierbusinessScope}
-            </if>
-            <if test="supplierCompanyStatus != null and supplierCompanyStatus != ''">
-                and SUPPLIER_COMPANY_STATUS = #{supplierCompanyStatus}
-            </if>
-            <if test="supplierOperationPeriod != null and supplierOperationPeriod != ''">
-                and SUPPLIER_OPERATION_PERIOD = #{supplierOperationPeriod}
-            </if>
-            <if test="supplierRegisterDate != null">
-                and TO_CHAR(SUPPLIER_REGISTER_DATE,'yyyy-MM-dd') = #{supplierRegisterDate}
-            </if>
-            <if test="supplierRegisterOrganization != null and supplierRegisterOrganization != ''">
-                and SUPPLIER_REGISTER_ORGANIZATION = #{supplierRegisterOrganization}
-            </if>
-            <if test="supplierRegisterAptitudes != null and supplierRegisterAptitudes != ''">
-                and SUPPLIER_REGISTER_APTITUDES = #{supplierRegisterAptitudes}
-            </if>
-            <if test="supplierCredential != null and supplierCredential != ''">
-                and SUPPLIER_CREDENTIAL = #{supplierCredential}
-            </if>
-            <if test="supplierContactsName != null and supplierContactsName != ''">
-                and SUPPLIER_CONTACTS_NAME = #{supplierContactsName}
-            </if>
-            <if test="insertUsername != null and insertUsername != ''">
-                and INSERT_USERNAME = #{insertUsername}
-            </if>
-            <if test="insertTime != null">
-                and TO_CHAR(INSERT_TIME,'yyyy-MM-dd') = #{insertTime}
-            </if>
-            <if test="updateUsername != null and updateUsername != ''">
-                and UPDATE_USERNAME = #{updateUsername}
-            </if>
-            <if test="updateTime != null">
-                and TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = #{updateTime}
-            </if>
-            <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>
-        </where>
-    </sql>
-    <sql id="whereLike">
-        <where>
-            <if test="supplierId != null">
-                and SUPPLIER_ID = #{supplierId}
-            </if>
-            <if test="supplierName != null and supplierName != ''">
-                and SUPPLIER_NAME LIKE '%${supplierName}%'
-            </if>
-            <if test="supplierAbbreviation != null and supplierAbbreviation != ''">
-                and SUPPLIER_ABBREVIATION LIKE '%${supplierAbbreviation}%'
-            </if>
-            <if test="supplierAddress != null and supplierAddress != ''">
-                and SUPPLIER_ADDRESS LIKE '%${supplierAddress}%'
-            </if>
-            <if test="supplierLegalRepresentative != null and supplierLegalRepresentative != ''">
-                and SUPPLIER_LEGAL_REPRESENTATIVE LIKE '%${supplierLegalRepresentative}%'
-            </if>
-            <if test="supplierRegisterNo != null and supplierRegisterNo != ''">
-                and SUPPLIER_REGISTER_NO LIKE '%${supplierRegisterNo}%'
-            </if>
-            <if test="supplierAgent != null and supplierAgent != ''">
-                and SUPPLIER_AGENT LIKE '%${supplierAgent}%'
-            </if>
-            <if test="supplierContactNumber != null and supplierContactNumber != ''">
-                and SUPPLIER_CONTACT_NUMBER LIKE '%${supplierContactNumber}%'
-            </if>
-            <if test="supplierFax != null and supplierFax != ''">
-                and SUPPLIER_FAX LIKE '%${supplierFax}%'
-            </if>
-            <if test="supplierAccount != null and supplierAccount != ''">
-                and SUPPLIER_ACCOUNT LIKE '%${supplierAccount}%'
-            </if>
-            <if test="supplierAccountBlank != null and supplierAccountBlank != ''">
-                and SUPPLIER_ACCOUNT_BLANK LIKE '%${supplierAccountBlank}%'
-            </if>
-            <if test="supplierDutyParagraph != null and supplierDutyParagraph != ''">
-                and SUPPLIER_DUTY_PARAGRAPH LIKE '%${supplierDutyParagraph}%'
-            </if>
-            <if test="supplierPostalCode != null and supplierPostalCode != ''">
-                and SUPPLIER_POSTAL_CODE LIKE '%${supplierPostalCode}%'
-            </if>
-            <if test="supplierRegisterCapital != null and supplierRegisterCapital != ''">
-                and SUPPLIER_REGISTER_CAPITAL LIKE '%${supplierRegisterCapital}%'
-            </if>
-            <if test="supplierbusinessScope != null and supplierbusinessScope != ''">
-                and SUPPLIERBUSINESS_SCOPE LIKE '%${supplierbusinessScope}%'
-            </if>
-            <if test="supplierCompanyStatus != null and supplierCompanyStatus != ''">
-                and SUPPLIER_COMPANY_STATUS LIKE '%${supplierCompanyStatus}%'
-            </if>
-            <if test="supplierOperationPeriod != null and supplierOperationPeriod != ''">
-                and SUPPLIER_OPERATION_PERIOD LIKE '%${supplierOperationPeriod}%'
-            </if>
-            <if test="supplierRegisterDate != null">
-                and TO_CHAR(SUPPLIER_REGISTER_DATE,'yyyy-MM-dd') = #{supplierRegisterDate}
-            </if>
-            <if test="supplierRegisterOrganization != null and supplierRegisterOrganization != ''">
-                and SUPPLIER_REGISTER_ORGANIZATION LIKE '%${supplierRegisterOrganization}%'
-            </if>
-            <if test="supplierRegisterAptitudes != null and supplierRegisterAptitudes != ''">
-                and SUPPLIER_REGISTER_APTITUDES LIKE '%${supplierRegisterAptitudes}%'
-            </if>
-            <if test="supplierCredential != null and supplierCredential != ''">
-                and SUPPLIER_CREDENTIAL LIKE '%${supplierCredential}%'
-            </if>
-            <if test="supplierContactsName != null and supplierContactsName != ''">
-                and SUPPLIER_CONTACTS_NAME LIKE '%${supplierContactsName}%'
-            </if>
-            <if test="insertUsername != null and insertUsername != ''">
-                and INSERT_USERNAME LIKE '%${insertUsername}%'
-            </if>
-            <if test="insertTime != null">
-                and TO_CHAR(INSERT_TIME,'yyyy-MM-dd') = #{insertTime}
-            </if>
-            <if test="updateUsername != null and updateUsername != ''">
-                and UPDATE_USERNAME LIKE '%${updateUsername}%'
-            </if>
-            <if test="updateTime != null">
-                and TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = #{updateTime}
-            </if>
-            <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>
-        </where>
-    </sql>
-    <delete id="deleteByPrimaryKey" parameterType="java.math.BigDecimal">
-        delete from RMS_SUPPLIER
-        where SUPPLIER_ID = #{supplierId,jdbcType=DECIMAL}
-    </delete>
-    <delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
-        delete from RMS_SUPPLIER
-        where 1!=1
-        <if test="supplierName != null and supplierName != ''">
-            or SUPPLIER_NAME = #{supplierName}
-        </if>
-        <if test="supplierAbbreviation != null and supplierAbbreviation != ''">
-            or SUPPLIER_ABBREVIATION = #{supplierAbbreviation}
-        </if>
-        <if test="supplierAddress != null and supplierAddress != ''">
-            or SUPPLIER_ADDRESS = #{supplierAddress}
-        </if>
-        <if test="supplierLegalRepresentative != null and supplierLegalRepresentative != ''">
-            or SUPPLIER_LEGAL_REPRESENTATIVE = #{supplierLegalRepresentative}
-        </if>
-        <if test="supplierRegisterNo != null and supplierRegisterNo != ''">
-            or SUPPLIER_REGISTER_NO = #{supplierRegisterNo}
-        </if>
-        <if test="supplierAgent != null and supplierAgent != ''">
-            or SUPPLIER_AGENT = #{supplierAgent}
-        </if>
-        <if test="supplierContactNumber != null and supplierContactNumber != ''">
-            or SUPPLIER_CONTACT_NUMBER = #{supplierContactNumber}
-        </if>
-        <if test="supplierFax != null and supplierFax != ''">
-            or SUPPLIER_FAX = #{supplierFax}
-        </if>
-        <if test="supplierAccount != null and supplierAccount != ''">
-            or SUPPLIER_ACCOUNT = #{supplierAccount}
-        </if>
-        <if test="supplierAccountBlank != null and supplierAccountBlank != ''">
-            or SUPPLIER_ACCOUNT_BLANK = #{supplierAccountBlank}
-        </if>
-        <if test="supplierDutyParagraph != null and supplierDutyParagraph != ''">
-            or SUPPLIER_DUTY_PARAGRAPH = #{supplierDutyParagraph}
-        </if>
-        <if test="supplierPostalCode != null and supplierPostalCode != ''">
-            or SUPPLIER_POSTAL_CODE = #{supplierPostalCode}
-        </if>
-        <if test="supplierRegisterCapital != null and supplierRegisterCapital != ''">
-            or SUPPLIER_REGISTER_CAPITAL = #{supplierRegisterCapital}
-        </if>
-        <if test="supplierbusinessScope != null and supplierbusinessScope != ''">
-            or SUPPLIERBUSINESS_SCOPE = #{supplierbusinessScope}
-        </if>
-        <if test="supplierCompanyStatus != null and supplierCompanyStatus != ''">
-            or SUPPLIER_COMPANY_STATUS = #{supplierCompanyStatus}
-        </if>
-        <if test="supplierOperationPeriod != null and supplierOperationPeriod != ''">
-            or SUPPLIER_OPERATION_PERIOD = #{supplierOperationPeriod}
-        </if>
-        <if test="supplierRegisterDate != null">
-            or TO_CHAR(SUPPLIER_REGISTER_DATE,'yyyy-MM-dd') = '#{supplierRegisterDate}'
-        </if>
-        <if test="supplierRegisterOrganization != null and supplierRegisterOrganization != ''">
-            or SUPPLIER_REGISTER_ORGANIZATION = #{supplierRegisterOrganization}
-        </if>
-        <if test="supplierRegisterAptitudes != null and supplierRegisterAptitudes != ''">
-            or SUPPLIER_REGISTER_APTITUDES = #{supplierRegisterAptitudes}
-        </if>
-        <if test="supplierCredential != null and supplierCredential != ''">
-            or SUPPLIER_CREDENTIAL = #{supplierCredential}
-        </if>
-        <if test="supplierContactsName != null and supplierContactsName != ''">
-            or SUPPLIER_CONTACTS_NAME = #{supplierContactsName}
-        </if>
-        <if test="insertUsername != null and insertUsername != ''">
-            or INSERT_USERNAME = #{insertUsername}
-        </if>
-        <if test="insertTime != null">
-            or TO_CHAR(INSERT_TIME,'yyyy-MM-dd') = '#{insertTime}'
-        </if>
-        <if test="updateUsername != null and updateUsername != ''">
-            or UPDATE_USERNAME = #{updateUsername}
-        </if>
-        <if test="updateTime != null">
-            or TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = '#{updateTime}'
-        </if>
-        <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>
-    </delete>
-    <insert id="insert" parameterType="com.steerinfo.dil.model.RmsSupplier">
-        insert into RMS_SUPPLIER (SUPPLIER_ID, SUPPLIER_NAME, SUPPLIER_ABBREVIATION,
-                                  SUPPLIER_ADDRESS, SUPPLIER_LEGAL_REPRESENTATIVE,
-                                  SUPPLIER_REGISTER_NO, SUPPLIER_AGENT, SUPPLIER_CONTACT_NUMBER,
-                                  SUPPLIER_FAX, SUPPLIER_ACCOUNT, SUPPLIER_ACCOUNT_BLANK,
-                                  SUPPLIER_DUTY_PARAGRAPH, SUPPLIER_POSTAL_CODE,
-                                  SUPPLIER_REGISTER_CAPITAL, 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,
-                                  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},
-                #{supplierFax,jdbcType=VARCHAR}, #{supplierAccount,jdbcType=VARCHAR}, #{supplierAccountBlank,jdbcType=VARCHAR},
-                #{supplierDutyParagraph,jdbcType=VARCHAR}, #{supplierPostalCode,jdbcType=VARCHAR},
-                #{supplierRegisterCapital,jdbcType=VARCHAR}, #{supplierbusinessScope,jdbcType=VARCHAR},
-                #{supplierCompanyStatus,jdbcType=VARCHAR}, #{supplierOperationPeriod,jdbcType=VARCHAR},
-                #{supplierRegisterDate,jdbcType=TIMESTAMP}, #{supplierRegisterOrganization,jdbcType=VARCHAR},
-                #{supplierRegisterAptitudes,jdbcType=VARCHAR}, #{supplierCredential,jdbcType=VARCHAR},
-                #{supplierContactsName,jdbcType=VARCHAR}, #{insertUsername,jdbcType=VARCHAR}, #{insertTime,jdbcType=TIMESTAMP},
-                #{updateUsername,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{insertUpdateRemark,jdbcType=VARCHAR},
-                #{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
-        <trim prefix="(" suffix=")" suffixOverrides=",">
-            <if test="supplierId != null">
-                SUPPLIER_ID,
-            </if>
-            <if test="supplierName != null">
-                SUPPLIER_NAME,
-            </if>
-            <if test="supplierAbbreviation != null">
-                SUPPLIER_ABBREVIATION,
-            </if>
-            <if test="supplierAddress != null">
-                SUPPLIER_ADDRESS,
-            </if>
-            <if test="supplierLegalRepresentative != null">
-                SUPPLIER_LEGAL_REPRESENTATIVE,
-            </if>
-            <if test="supplierRegisterNo != null">
-                SUPPLIER_REGISTER_NO,
-            </if>
-            <if test="supplierAgent != null">
-                SUPPLIER_AGENT,
-            </if>
-            <if test="supplierContactNumber != null">
-                SUPPLIER_CONTACT_NUMBER,
-            </if>
-            <if test="supplierFax != null">
-                SUPPLIER_FAX,
-            </if>
-            <if test="supplierAccount != null">
-                SUPPLIER_ACCOUNT,
-            </if>
-            <if test="supplierAccountBlank != null">
-                SUPPLIER_ACCOUNT_BLANK,
-            </if>
-            <if test="supplierDutyParagraph != null">
-                SUPPLIER_DUTY_PARAGRAPH,
-            </if>
-            <if test="supplierPostalCode != null">
-                SUPPLIER_POSTAL_CODE,
-            </if>
-            <if test="supplierRegisterCapital != null">
-                SUPPLIER_REGISTER_CAPITAL,
-            </if>
-            <if test="supplierbusinessScope != null">
-                SUPPLIERBUSINESS_SCOPE,
-            </if>
-            <if test="supplierCompanyStatus != null">
-                SUPPLIER_COMPANY_STATUS,
-            </if>
-            <if test="supplierOperationPeriod != null">
-                SUPPLIER_OPERATION_PERIOD,
-            </if>
-            <if test="supplierRegisterDate != null">
-                SUPPLIER_REGISTER_DATE,
-            </if>
-            <if test="supplierRegisterOrganization != null">
-                SUPPLIER_REGISTER_ORGANIZATION,
-            </if>
-            <if test="supplierRegisterAptitudes != null">
-                SUPPLIER_REGISTER_APTITUDES,
-            </if>
-            <if test="supplierCredential != null">
-                SUPPLIER_CREDENTIAL,
-            </if>
-            <if test="supplierContactsName != null">
-                SUPPLIER_CONTACTS_NAME,
-            </if>
-            <if test="insertUsername != null">
-                INSERT_USERNAME,
-            </if>
-            <if test="insertTime != null">
-                INSERT_TIME,
-            </if>
-            <if test="updateUsername != null">
-                UPDATE_USERNAME,
-            </if>
-            <if test="updateTime != null">
-                UPDATE_TIME,
-            </if>
-            <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>
-        </trim>
-        <trim prefix="values (" suffix=")" suffixOverrides=",">
-            <if test="supplierId != null">
-                #{supplierId,jdbcType=DECIMAL},
-            </if>
-            <if test="supplierName != null">
-                #{supplierName,jdbcType=VARCHAR},
-            </if>
-            <if test="supplierAbbreviation != null">
-                #{supplierAbbreviation,jdbcType=VARCHAR},
-            </if>
-            <if test="supplierAddress != null">
-                #{supplierAddress,jdbcType=VARCHAR},
-            </if>
-            <if test="supplierLegalRepresentative != null">
-                #{supplierLegalRepresentative,jdbcType=VARCHAR},
-            </if>
-            <if test="supplierRegisterNo != null">
-                #{supplierRegisterNo,jdbcType=VARCHAR},
-            </if>
-            <if test="supplierAgent != null">
-                #{supplierAgent,jdbcType=VARCHAR},
-            </if>
-            <if test="supplierContactNumber != null">
-                #{supplierContactNumber,jdbcType=VARCHAR},
-            </if>
-            <if test="supplierFax != null">
-                #{supplierFax,jdbcType=VARCHAR},
-            </if>
-            <if test="supplierAccount != null">
-                #{supplierAccount,jdbcType=VARCHAR},
-            </if>
-            <if test="supplierAccountBlank != null">
-                #{supplierAccountBlank,jdbcType=VARCHAR},
-            </if>
-            <if test="supplierDutyParagraph != null">
-                #{supplierDutyParagraph,jdbcType=VARCHAR},
-            </if>
-            <if test="supplierPostalCode != null">
-                #{supplierPostalCode,jdbcType=VARCHAR},
-            </if>
-            <if test="supplierRegisterCapital != null">
-                #{supplierRegisterCapital,jdbcType=VARCHAR},
-            </if>
-            <if test="supplierbusinessScope != null">
-                #{supplierbusinessScope,jdbcType=VARCHAR},
-            </if>
-            <if test="supplierCompanyStatus != null">
-                #{supplierCompanyStatus,jdbcType=VARCHAR},
-            </if>
-            <if test="supplierOperationPeriod != null">
-                #{supplierOperationPeriod,jdbcType=VARCHAR},
-            </if>
-            <if test="supplierRegisterDate != null">
-                #{supplierRegisterDate,jdbcType=TIMESTAMP},
-            </if>
-            <if test="supplierRegisterOrganization != null">
-                #{supplierRegisterOrganization,jdbcType=VARCHAR},
-            </if>
-            <if test="supplierRegisterAptitudes != null">
-                #{supplierRegisterAptitudes,jdbcType=VARCHAR},
-            </if>
-            <if test="supplierCredential != null">
-                #{supplierCredential,jdbcType=VARCHAR},
-            </if>
-            <if test="supplierContactsName != null">
-                #{supplierContactsName,jdbcType=VARCHAR},
-            </if>
-            <if test="insertUsername != null">
-                #{insertUsername,jdbcType=VARCHAR},
-            </if>
-            <if test="insertTime != null">
-                #{insertTime,jdbcType=TIMESTAMP},
-            </if>
-            <if test="updateUsername != null">
-                #{updateUsername,jdbcType=VARCHAR},
-            </if>
-            <if test="updateTime != null">
-                #{updateTime,jdbcType=TIMESTAMP},
-            </if>
-            <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>
-        </trim>
-    </insert>
-    <update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.RmsSupplier">
-        update RMS_SUPPLIER
-        set SUPPLIER_NAME = #{supplierName,jdbcType=VARCHAR},
-            SUPPLIER_ABBREVIATION = #{supplierAbbreviation,jdbcType=VARCHAR},
-            SUPPLIER_ADDRESS = #{supplierAddress,jdbcType=VARCHAR},
-            SUPPLIER_LEGAL_REPRESENTATIVE = #{supplierLegalRepresentative,jdbcType=VARCHAR},
-            SUPPLIER_REGISTER_NO = #{supplierRegisterNo,jdbcType=VARCHAR},
-            SUPPLIER_AGENT = #{supplierAgent,jdbcType=VARCHAR},
-            SUPPLIER_CONTACT_NUMBER = #{supplierContactNumber,jdbcType=VARCHAR},
-            SUPPLIER_FAX = #{supplierFax,jdbcType=VARCHAR},
-            SUPPLIER_ACCOUNT = #{supplierAccount,jdbcType=VARCHAR},
-            SUPPLIER_ACCOUNT_BLANK = #{supplierAccountBlank,jdbcType=VARCHAR},
-            SUPPLIER_DUTY_PARAGRAPH = #{supplierDutyParagraph,jdbcType=VARCHAR},
-            SUPPLIER_POSTAL_CODE = #{supplierPostalCode,jdbcType=VARCHAR},
-            SUPPLIER_REGISTER_CAPITAL = #{supplierRegisterCapital,jdbcType=VARCHAR},
-            SUPPLIERBUSINESS_SCOPE = #{supplierbusinessScope,jdbcType=VARCHAR},
-            SUPPLIER_COMPANY_STATUS = #{supplierCompanyStatus,jdbcType=VARCHAR},
-            SUPPLIER_OPERATION_PERIOD = #{supplierOperationPeriod,jdbcType=VARCHAR},
-            SUPPLIER_REGISTER_DATE = #{supplierRegisterDate,jdbcType=TIMESTAMP},
-            SUPPLIER_REGISTER_ORGANIZATION = #{supplierRegisterOrganization,jdbcType=VARCHAR},
-            SUPPLIER_REGISTER_APTITUDES = #{supplierRegisterAptitudes,jdbcType=VARCHAR},
-            SUPPLIER_CREDENTIAL = #{supplierCredential,jdbcType=VARCHAR},
-            SUPPLIER_CONTACTS_NAME = #{supplierContactsName,jdbcType=VARCHAR},
-            INSERT_USERNAME = #{insertUsername,jdbcType=VARCHAR},
-            INSERT_TIME = #{insertTime,jdbcType=TIMESTAMP},
-            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}
-        where SUPPLIER_ID = #{supplierId,jdbcType=DECIMAL}
-    </update>
-    <update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.RmsSupplier">
-        update RMS_SUPPLIER
-        <set>
-            <if test="supplierName != null">
-                SUPPLIER_NAME = #{supplierName,jdbcType=VARCHAR},
-            </if>
-            <if test="supplierAbbreviation != null">
-                SUPPLIER_ABBREVIATION = #{supplierAbbreviation,jdbcType=VARCHAR},
-            </if>
-            <if test="supplierAddress != null">
-                SUPPLIER_ADDRESS = #{supplierAddress,jdbcType=VARCHAR},
-            </if>
-            <if test="supplierLegalRepresentative != null">
-                SUPPLIER_LEGAL_REPRESENTATIVE = #{supplierLegalRepresentative,jdbcType=VARCHAR},
-            </if>
-            <if test="supplierRegisterNo != null">
-                SUPPLIER_REGISTER_NO = #{supplierRegisterNo,jdbcType=VARCHAR},
-            </if>
-            <if test="supplierAgent != null">
-                SUPPLIER_AGENT = #{supplierAgent,jdbcType=VARCHAR},
-            </if>
-            <if test="supplierContactNumber != null">
-                SUPPLIER_CONTACT_NUMBER = #{supplierContactNumber,jdbcType=VARCHAR},
-            </if>
-            <if test="supplierFax != null">
-                SUPPLIER_FAX = #{supplierFax,jdbcType=VARCHAR},
-            </if>
-            <if test="supplierAccount != null">
-                SUPPLIER_ACCOUNT = #{supplierAccount,jdbcType=VARCHAR},
-            </if>
-            <if test="supplierAccountBlank != null">
-                SUPPLIER_ACCOUNT_BLANK = #{supplierAccountBlank,jdbcType=VARCHAR},
-            </if>
-            <if test="supplierDutyParagraph != null">
-                SUPPLIER_DUTY_PARAGRAPH = #{supplierDutyParagraph,jdbcType=VARCHAR},
-            </if>
-            <if test="supplierPostalCode != null">
-                SUPPLIER_POSTAL_CODE = #{supplierPostalCode,jdbcType=VARCHAR},
-            </if>
-            <if test="supplierRegisterCapital != null">
-                SUPPLIER_REGISTER_CAPITAL = #{supplierRegisterCapital,jdbcType=VARCHAR},
-            </if>
-            <if test="supplierbusinessScope != null">
-                SUPPLIERBUSINESS_SCOPE = #{supplierbusinessScope,jdbcType=VARCHAR},
-            </if>
-            <if test="supplierCompanyStatus != null">
-                SUPPLIER_COMPANY_STATUS = #{supplierCompanyStatus,jdbcType=VARCHAR},
-            </if>
-            <if test="supplierOperationPeriod != null">
-                SUPPLIER_OPERATION_PERIOD = #{supplierOperationPeriod,jdbcType=VARCHAR},
-            </if>
-            <if test="supplierRegisterDate != null">
-                SUPPLIER_REGISTER_DATE = #{supplierRegisterDate,jdbcType=TIMESTAMP},
-            </if>
-            <if test="supplierRegisterOrganization != null">
-                SUPPLIER_REGISTER_ORGANIZATION = #{supplierRegisterOrganization,jdbcType=VARCHAR},
-            </if>
-            <if test="supplierRegisterAptitudes != null">
-                SUPPLIER_REGISTER_APTITUDES = #{supplierRegisterAptitudes,jdbcType=VARCHAR},
-            </if>
-            <if test="supplierCredential != null">
-                SUPPLIER_CREDENTIAL = #{supplierCredential,jdbcType=VARCHAR},
-            </if>
-            <if test="supplierContactsName != null">
-                SUPPLIER_CONTACTS_NAME = #{supplierContactsName,jdbcType=VARCHAR},
-            </if>
-            <if test="insertUsername != null">
-                INSERT_USERNAME = #{insertUsername,jdbcType=VARCHAR},
-            </if>
-            <if test="insertTime != null">
-                INSERT_TIME = #{insertTime,jdbcType=TIMESTAMP},
-            </if>
-            <if test="updateUsername != null">
-                UPDATE_USERNAME = #{updateUsername,jdbcType=VARCHAR},
-            </if>
-            <if test="updateTime != null">
-                UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
-            </if>
-            <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>
-        </set>
-        where SUPPLIER_ID = #{supplierId,jdbcType=DECIMAL}
-    </update>
-    <select id="selectByPrimaryKey" parameterType="java.math.BigDecimal" resultMap="BaseResultMap">
-        <include refid="select"/>
-        where SUPPLIER_ID = #{supplierId,jdbcType=DECIMAL}
-    </select>
-    <select id="selectByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
-        <include refid="select"/>
-        <include refid="where"/>
-    </select>
-    <select id="selectLikeByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
-        <include refid="select"/>
-        <include refid="whereLike"/>
-    </select>
-    <insert id="batchInsert" parameterType="java.util.List">
-        insert into RMS_SUPPLIER
-        (SUPPLIER_ID,
-        SUPPLIER_NAME, SUPPLIER_ABBREVIATION,
-        SUPPLIER_ADDRESS, SUPPLIER_LEGAL_REPRESENTATIVE,
-        SUPPLIER_REGISTER_NO, SUPPLIER_AGENT,
-        SUPPLIER_CONTACT_NUMBER, SUPPLIER_FAX,
-        SUPPLIER_ACCOUNT, SUPPLIER_ACCOUNT_BLANK,
-        SUPPLIER_DUTY_PARAGRAPH, SUPPLIER_POSTAL_CODE,
-        SUPPLIER_REGISTER_CAPITAL, 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,
-        EAS_SUPPLIER_ID, DELETED, SUPPLIER_BUSINESS_LICENSE,
-        SUPPLIER_BUSINESS_ABLELICENSE)
-        ( <foreach collection="list" item="item" separator="union all">
-        select
-        #{item.supplierId,jdbcType=DECIMAL},
-        #{item.supplierName,jdbcType=VARCHAR}, #{item.supplierAbbreviation,jdbcType=VARCHAR},
-        #{item.supplierAddress,jdbcType=VARCHAR}, #{item.supplierLegalRepresentative,jdbcType=VARCHAR},
-        #{item.supplierRegisterNo,jdbcType=VARCHAR}, #{item.supplierAgent,jdbcType=VARCHAR},
-        #{item.supplierContactNumber,jdbcType=VARCHAR}, #{item.supplierFax,jdbcType=VARCHAR},
-        #{item.supplierAccount,jdbcType=VARCHAR}, #{item.supplierAccountBlank,jdbcType=VARCHAR},
-        #{item.supplierDutyParagraph,jdbcType=VARCHAR}, #{item.supplierPostalCode,jdbcType=VARCHAR},
-        #{item.supplierRegisterCapital,jdbcType=VARCHAR}, #{item.supplierbusinessScope,jdbcType=VARCHAR},
-        #{item.supplierCompanyStatus,jdbcType=VARCHAR}, #{item.supplierOperationPeriod,jdbcType=VARCHAR},
-        #{item.supplierRegisterDate,jdbcType=TIMESTAMP}, #{item.supplierRegisterOrganization,jdbcType=VARCHAR},
-        #{item.supplierRegisterAptitudes,jdbcType=VARCHAR}, #{item.supplierCredential,jdbcType=VARCHAR},
-        #{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.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">
-        update RMS_SUPPLIER
-        set
-        SUPPLIER_ID=
-        <foreach collection="list" item="item" index="index" separator=" " open="case SUPPLIER_ID" close="end">
-            when #{item.supplierId,jdbcType=DECIMAL} then #{item.supplierId,jdbcType=DECIMAL}
-        </foreach>
-        ,SUPPLIER_NAME=
-        <foreach collection="list" item="item" index="index" separator=" " open="case SUPPLIER_ID" close="end">
-            when #{item.supplierId,jdbcType=DECIMAL} then #{item.supplierName,jdbcType=VARCHAR}
-        </foreach>
-        ,SUPPLIER_ABBREVIATION=
-        <foreach collection="list" item="item" index="index" separator=" " open="case SUPPLIER_ID" close="end">
-            when #{item.supplierId,jdbcType=DECIMAL} then #{item.supplierAbbreviation,jdbcType=VARCHAR}
-        </foreach>
-        ,SUPPLIER_ADDRESS=
-        <foreach collection="list" item="item" index="index" separator=" " open="case SUPPLIER_ID" close="end">
-            when #{item.supplierId,jdbcType=DECIMAL} then #{item.supplierAddress,jdbcType=VARCHAR}
-        </foreach>
-        ,SUPPLIER_LEGAL_REPRESENTATIVE=
-        <foreach collection="list" item="item" index="index" separator=" " open="case SUPPLIER_ID" close="end">
-            when #{item.supplierId,jdbcType=DECIMAL} then #{item.supplierLegalRepresentative,jdbcType=VARCHAR}
-        </foreach>
-        ,SUPPLIER_REGISTER_NO=
-        <foreach collection="list" item="item" index="index" separator=" " open="case SUPPLIER_ID" close="end">
-            when #{item.supplierId,jdbcType=DECIMAL} then #{item.supplierRegisterNo,jdbcType=VARCHAR}
-        </foreach>
-        ,SUPPLIER_AGENT=
-        <foreach collection="list" item="item" index="index" separator=" " open="case SUPPLIER_ID" close="end">
-            when #{item.supplierId,jdbcType=DECIMAL} then #{item.supplierAgent,jdbcType=VARCHAR}
-        </foreach>
-        ,SUPPLIER_CONTACT_NUMBER=
-        <foreach collection="list" item="item" index="index" separator=" " open="case SUPPLIER_ID" close="end">
-            when #{item.supplierId,jdbcType=DECIMAL} then #{item.supplierContactNumber,jdbcType=VARCHAR}
-        </foreach>
-        ,SUPPLIER_FAX=
-        <foreach collection="list" item="item" index="index" separator=" " open="case SUPPLIER_ID" close="end">
-            when #{item.supplierId,jdbcType=DECIMAL} then #{item.supplierFax,jdbcType=VARCHAR}
-        </foreach>
-        ,SUPPLIER_ACCOUNT=
-        <foreach collection="list" item="item" index="index" separator=" " open="case SUPPLIER_ID" close="end">
-            when #{item.supplierId,jdbcType=DECIMAL} then #{item.supplierAccount,jdbcType=VARCHAR}
-        </foreach>
-        ,SUPPLIER_ACCOUNT_BLANK=
-        <foreach collection="list" item="item" index="index" separator=" " open="case SUPPLIER_ID" close="end">
-            when #{item.supplierId,jdbcType=DECIMAL} then #{item.supplierAccountBlank,jdbcType=VARCHAR}
-        </foreach>
-        ,SUPPLIER_DUTY_PARAGRAPH=
-        <foreach collection="list" item="item" index="index" separator=" " open="case SUPPLIER_ID" close="end">
-            when #{item.supplierId,jdbcType=DECIMAL} then #{item.supplierDutyParagraph,jdbcType=VARCHAR}
-        </foreach>
-        ,SUPPLIER_POSTAL_CODE=
-        <foreach collection="list" item="item" index="index" separator=" " open="case SUPPLIER_ID" close="end">
-            when #{item.supplierId,jdbcType=DECIMAL} then #{item.supplierPostalCode,jdbcType=VARCHAR}
-        </foreach>
-        ,SUPPLIER_REGISTER_CAPITAL=
-        <foreach collection="list" item="item" index="index" separator=" " open="case SUPPLIER_ID" close="end">
-            when #{item.supplierId,jdbcType=DECIMAL} then #{item.supplierRegisterCapital,jdbcType=VARCHAR}
-        </foreach>
-        ,SUPPLIERBUSINESS_SCOPE=
-        <foreach collection="list" item="item" index="index" separator=" " open="case SUPPLIER_ID" close="end">
-            when #{item.supplierId,jdbcType=DECIMAL} then #{item.supplierbusinessScope,jdbcType=VARCHAR}
-        </foreach>
-        ,SUPPLIER_COMPANY_STATUS=
-        <foreach collection="list" item="item" index="index" separator=" " open="case SUPPLIER_ID" close="end">
-            when #{item.supplierId,jdbcType=DECIMAL} then #{item.supplierCompanyStatus,jdbcType=VARCHAR}
-        </foreach>
-        ,SUPPLIER_OPERATION_PERIOD=
-        <foreach collection="list" item="item" index="index" separator=" " open="case SUPPLIER_ID" close="end">
-            when #{item.supplierId,jdbcType=DECIMAL} then #{item.supplierOperationPeriod,jdbcType=VARCHAR}
-        </foreach>
-        ,SUPPLIER_REGISTER_DATE=
-        <foreach collection="list" item="item" index="index" separator=" " open="case SUPPLIER_ID" close="end">
-            when #{item.supplierId,jdbcType=DECIMAL} then #{item.supplierRegisterDate,jdbcType=TIMESTAMP}
-        </foreach>
-        ,SUPPLIER_REGISTER_ORGANIZATION=
-        <foreach collection="list" item="item" index="index" separator=" " open="case SUPPLIER_ID" close="end">
-            when #{item.supplierId,jdbcType=DECIMAL} then #{item.supplierRegisterOrganization,jdbcType=VARCHAR}
-        </foreach>
-        ,SUPPLIER_REGISTER_APTITUDES=
-        <foreach collection="list" item="item" index="index" separator=" " open="case SUPPLIER_ID" close="end">
-            when #{item.supplierId,jdbcType=DECIMAL} then #{item.supplierRegisterAptitudes,jdbcType=VARCHAR}
-        </foreach>
-        ,SUPPLIER_CREDENTIAL=
-        <foreach collection="list" item="item" index="index" separator=" " open="case SUPPLIER_ID" close="end">
-            when #{item.supplierId,jdbcType=DECIMAL} then #{item.supplierCredential,jdbcType=VARCHAR}
-        </foreach>
-        ,SUPPLIER_CONTACTS_NAME=
-        <foreach collection="list" item="item" index="index" separator=" " open="case SUPPLIER_ID" close="end">
-            when #{item.supplierId,jdbcType=DECIMAL} then #{item.supplierContactsName,jdbcType=VARCHAR}
-        </foreach>
-        ,INSERT_USERNAME=
-        <foreach collection="list" item="item" index="index" separator=" " open="case SUPPLIER_ID" close="end">
-            when #{item.supplierId,jdbcType=DECIMAL} then #{item.insertUsername,jdbcType=VARCHAR}
-        </foreach>
-        ,INSERT_TIME=
-        <foreach collection="list" item="item" index="index" separator=" " open="case SUPPLIER_ID" close="end">
-            when #{item.supplierId,jdbcType=DECIMAL} then #{item.insertTime,jdbcType=TIMESTAMP}
-        </foreach>
-        ,UPDATE_USERNAME=
-        <foreach collection="list" item="item" index="index" separator=" " open="case SUPPLIER_ID" close="end">
-            when #{item.supplierId,jdbcType=DECIMAL} then #{item.updateUsername,jdbcType=VARCHAR}
-        </foreach>
-        ,UPDATE_TIME=
-        <foreach collection="list" item="item" index="index" separator=" " open="case SUPPLIER_ID" close="end">
-            when #{item.supplierId,jdbcType=DECIMAL} then #{item.updateTime,jdbcType=TIMESTAMP}
-        </foreach>
-        ,INSERT_UPDATE_REMARK=
-        <foreach collection="list" item="item" index="index" separator=" " open="case SUPPLIER_ID" close="end">
-            when #{item.supplierId,jdbcType=DECIMAL} then #{item.insertUpdateRemark,jdbcType=VARCHAR}
-        </foreach>
-        ,EAS_SUPPLIER_ID=
-        <foreach collection="list" item="item" index="index" separator=" " open="case SUPPLIER_ID" close="end">
-            when #{item.supplierId,jdbcType=DECIMAL} then #{item.easSupplierId,jdbcType=VARCHAR}
-        </foreach>
-        ,DELETED=
-        <foreach collection="list" item="item" index="index" separator=" " open="case SUPPLIER_ID" close="end">
-            when #{item.supplierId,jdbcType=DECIMAL} then #{item.deleted,jdbcType=DECIMAL}
-        </foreach>
-        ,SUPPLIER_BUSINESS_LICENSE=
-        <foreach collection="list" item="item" index="index" separator=" " open="case SUPPLIER_ID" close="end">
-            when #{item.supplierId,jdbcType=DECIMAL} then #{item.supplierBusinessLicense,jdbcType=BLOB}
-        </foreach>
-        ,SUPPLIER_BUSINESS_ABLELICENSE=
-        <foreach collection="list" item="item" index="index" separator=" " open="case SUPPLIER_ID" close="end">
-            when #{item.supplierId,jdbcType=DECIMAL} then #{item.supplierBusinessAblelicense,jdbcType=BLOB}
-        </foreach>
-        where SUPPLIER_ID in
-        <foreach collection="list" index="index" item="item" separator="," open="(" close=")">
-            #{item.supplierId,jdbcType=DECIMAL}
-        </foreach>
-    </update>
-    <delete id="batchDelete" parameterType="java.util.List">
-        delete from RMS_SUPPLIER
-        where SUPPLIER_ID in
-        <foreach collection="list" item="id" open="(" close=")" separator=",">
-            #{id}
-        </foreach>
-    </delete>
-    <!-- 友情提示!!!-->
-    <!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
-
-
-    <!-- 查询供应商列表 -->
-    <select id="getSupplierList" parameterType="java.util.Map" resultType="java.util.Map">
-        SELECT *
-        FROM (
-        SELECT 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.DELETED != 0
-        )
-        <where>
-            <if test="supplierDutyParagraph!= null">
-                and
-                <foreach collection="supplierDutyParagraph" item="item" open="(" separator="," close=")">
-                    "supplierDutyParagraph" in #{item}
-                </foreach>
-            </if>
-            <if test="supplierName!= null">
-                and
-                <foreach collection="supplierName" item="item" open="(" separator="," close=")">
-                    "supplierName" in #{item}
-                </foreach>
-            </if>
-            <if test="supplierAddress!= null">
-                and
-                <foreach collection="supplierAddress" item="item" open="(" separator="," close=")">
-                    "supplierAddress" in #{item}
-                </foreach>
-            </if>
-            <if test="supplierRegisterDate!= null">
-                and
-                <foreach collection="supplierRegisterDate" item="item" open="(" separator="," close=")">
-                    "supplierRegisterDate" in to_date('${item}','yyyy-mm-dd hh24:mi:ss')
-                </foreach>
-            </if>
-            <if test="supplierContactsName!= null">
-                and
-                <foreach collection="supplierContactsName" item="item" open="(" separator="," close=")">
-                    "supplierContactsName" in #{item}
-                </foreach>
-            </if>
-            <if test="supplierContactNumber!= null">
-                and
-                <foreach collection="supplierContactNumber" item="item" open="(" separator="," close=")">
-                    "supplierContactNumber" in #{item}
-                </foreach>
-            </if>
-        </where>
-    </select>
-
+  <resultMap id="BaseResultMap" type="com.steerinfo.dil.model.RmsSupplier">
+    <id column="SUPPLIER_ID" jdbcType="DECIMAL" property="supplierId" />
+    <result column="SUPPLIER_NAME" jdbcType="VARCHAR" property="supplierName" />
+    <result column="SUPPLIER_ABBREVIATION" jdbcType="VARCHAR" property="supplierAbbreviation" />
+    <result column="SUPPLIER_ADDRESS" jdbcType="VARCHAR" property="supplierAddress" />
+    <result column="SUPPLIER_LEGAL_REPRESENTATIVE" jdbcType="VARCHAR" property="supplierLegalRepresentative" />
+    <result column="SUPPLIER_REGISTER_NO" jdbcType="VARCHAR" property="supplierRegisterNo" />
+    <result column="SUPPLIER_AGENT" jdbcType="VARCHAR" property="supplierAgent" />
+    <result column="SUPPLIER_CONTACT_NUMBER" jdbcType="VARCHAR" property="supplierContactNumber" />
+    <result column="SUPPLIER_FAX" jdbcType="VARCHAR" property="supplierFax" />
+    <result column="SUPPLIER_ACCOUNT" jdbcType="VARCHAR" property="supplierAccount" />
+    <result column="SUPPLIER_ACCOUNT_BLANK" jdbcType="VARCHAR" property="supplierAccountBlank" />
+    <result column="SUPPLIER_DUTY_PARAGRAPH" jdbcType="VARCHAR" property="supplierDutyParagraph" />
+    <result column="SUPPLIER_POSTAL_CODE" jdbcType="VARCHAR" property="supplierPostalCode" />
+    <result column="SUPPLIER_REGISTER_CAPITAL" jdbcType="VARCHAR" property="supplierRegisterCapital" />
+    <result column="SUPPLIERBUSINESS_SCOPE" jdbcType="VARCHAR" property="supplierbusinessScope" />
+    <result column="SUPPLIER_COMPANY_STATUS" jdbcType="VARCHAR" property="supplierCompanyStatus" />
+    <result column="SUPPLIER_OPERATION_PERIOD" jdbcType="VARCHAR" property="supplierOperationPeriod" />
+    <result column="SUPPLIER_REGISTER_DATE" jdbcType="TIMESTAMP" property="supplierRegisterDate" />
+    <result column="SUPPLIER_REGISTER_ORGANIZATION" jdbcType="VARCHAR" property="supplierRegisterOrganization" />
+    <result column="SUPPLIER_REGISTER_APTITUDES" jdbcType="VARCHAR" property="supplierRegisterAptitudes" />
+    <result column="SUPPLIER_CREDENTIAL" jdbcType="VARCHAR" property="supplierCredential" />
+    <result column="SUPPLIER_CONTACTS_NAME" jdbcType="VARCHAR" property="supplierContactsName" />
+    <result column="INSERT_USERNAME" jdbcType="VARCHAR" property="insertUsername" />
+    <result column="INSERT_TIME" jdbcType="TIMESTAMP" property="insertTime" />
+    <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_FAR_ID" jdbcType="DECIMAL" property="supplierFarId" />
+    <result column="SUPPLIER_SCREEN_INFO" jdbcType="VARCHAR" property="supplierScreenInfo" />
+    <result column="SUPPLIER_BUSINESS_LICENSE" jdbcType="BLOB" property="supplierBusinessLicense" />
+    <result column="SUPPLIER_BUSINESS_ABLELICENSE" jdbcType="BLOB" property="supplierBusinessAblelicense" />
+  </resultMap>
+  <sql id="columns">
+    SUPPLIER_ID, SUPPLIER_NAME, SUPPLIER_ABBREVIATION, SUPPLIER_ADDRESS, SUPPLIER_LEGAL_REPRESENTATIVE, 
+    SUPPLIER_REGISTER_NO, SUPPLIER_AGENT, SUPPLIER_CONTACT_NUMBER, SUPPLIER_FAX, SUPPLIER_ACCOUNT, 
+    SUPPLIER_ACCOUNT_BLANK, SUPPLIER_DUTY_PARAGRAPH, SUPPLIER_POSTAL_CODE, SUPPLIER_REGISTER_CAPITAL, 
+    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, EAS_SUPPLIER_ID, DELETED, SUPPLIER_FAR_ID, SUPPLIER_SCREEN_INFO, 
+    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, 
+    t.SUPPLIER_REGISTER_NO, t.SUPPLIER_AGENT, t.SUPPLIER_CONTACT_NUMBER, t.SUPPLIER_FAX, 
+    t.SUPPLIER_ACCOUNT, t.SUPPLIER_ACCOUNT_BLANK, t.SUPPLIER_DUTY_PARAGRAPH, t.SUPPLIER_POSTAL_CODE, 
+    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.EAS_SUPPLIER_ID, 
+    t.DELETED, t.SUPPLIER_FAR_ID, t.SUPPLIER_SCREEN_INFO, t.SUPPLIER_BUSINESS_LICENSE, 
+    t.SUPPLIER_BUSINESS_ABLELICENSE
+  </sql>
+  <sql id="select">
+    SELECT <include refid="columns" /> FROM RMS_SUPPLIER
+  </sql>
+  <sql id="select_alias">
+    SELECT <include refid="columns_alias" /> FROM RMS_SUPPLIER t
+  </sql>
+  <sql id="where">
+    <where> 
+      <if test="supplierId != null">
+        and SUPPLIER_ID = #{supplierId}
+      </if>
+      <if test="supplierName != null and supplierName != ''">
+        and SUPPLIER_NAME = #{supplierName}
+      </if>
+      <if test="supplierAbbreviation != null and supplierAbbreviation != ''">
+        and SUPPLIER_ABBREVIATION = #{supplierAbbreviation}
+      </if>
+      <if test="supplierAddress != null and supplierAddress != ''">
+        and SUPPLIER_ADDRESS = #{supplierAddress}
+      </if>
+      <if test="supplierLegalRepresentative != null and supplierLegalRepresentative != ''">
+        and SUPPLIER_LEGAL_REPRESENTATIVE = #{supplierLegalRepresentative}
+      </if>
+      <if test="supplierRegisterNo != null and supplierRegisterNo != ''">
+        and SUPPLIER_REGISTER_NO = #{supplierRegisterNo}
+      </if>
+      <if test="supplierAgent != null and supplierAgent != ''">
+        and SUPPLIER_AGENT = #{supplierAgent}
+      </if>
+      <if test="supplierContactNumber != null and supplierContactNumber != ''">
+        and SUPPLIER_CONTACT_NUMBER = #{supplierContactNumber}
+      </if>
+      <if test="supplierFax != null and supplierFax != ''">
+        and SUPPLIER_FAX = #{supplierFax}
+      </if>
+      <if test="supplierAccount != null and supplierAccount != ''">
+        and SUPPLIER_ACCOUNT = #{supplierAccount}
+      </if>
+      <if test="supplierAccountBlank != null and supplierAccountBlank != ''">
+        and SUPPLIER_ACCOUNT_BLANK = #{supplierAccountBlank}
+      </if>
+      <if test="supplierDutyParagraph != null and supplierDutyParagraph != ''">
+        and SUPPLIER_DUTY_PARAGRAPH = #{supplierDutyParagraph}
+      </if>
+      <if test="supplierPostalCode != null and supplierPostalCode != ''">
+        and SUPPLIER_POSTAL_CODE = #{supplierPostalCode}
+      </if>
+      <if test="supplierRegisterCapital != null and supplierRegisterCapital != ''">
+        and SUPPLIER_REGISTER_CAPITAL = #{supplierRegisterCapital}
+      </if>
+      <if test="supplierbusinessScope != null and supplierbusinessScope != ''">
+        and SUPPLIERBUSINESS_SCOPE = #{supplierbusinessScope}
+      </if>
+      <if test="supplierCompanyStatus != null and supplierCompanyStatus != ''">
+        and SUPPLIER_COMPANY_STATUS = #{supplierCompanyStatus}
+      </if>
+      <if test="supplierOperationPeriod != null and supplierOperationPeriod != ''">
+        and SUPPLIER_OPERATION_PERIOD = #{supplierOperationPeriod}
+      </if>
+      <if test="supplierRegisterDate != null">
+        and TO_CHAR(SUPPLIER_REGISTER_DATE,'yyyy-MM-dd') = #{supplierRegisterDate}
+      </if>
+      <if test="supplierRegisterOrganization != null and supplierRegisterOrganization != ''">
+        and SUPPLIER_REGISTER_ORGANIZATION = #{supplierRegisterOrganization}
+      </if>
+      <if test="supplierRegisterAptitudes != null and supplierRegisterAptitudes != ''">
+        and SUPPLIER_REGISTER_APTITUDES = #{supplierRegisterAptitudes}
+      </if>
+      <if test="supplierCredential != null and supplierCredential != ''">
+        and SUPPLIER_CREDENTIAL = #{supplierCredential}
+      </if>
+      <if test="supplierContactsName != null and supplierContactsName != ''">
+        and SUPPLIER_CONTACTS_NAME = #{supplierContactsName}
+      </if>
+      <if test="insertUsername != null and insertUsername != ''">
+        and INSERT_USERNAME = #{insertUsername}
+      </if>
+      <if test="insertTime != null">
+        and TO_CHAR(INSERT_TIME,'yyyy-MM-dd') = #{insertTime}
+      </if>
+      <if test="updateUsername != null and updateUsername != ''">
+        and UPDATE_USERNAME = #{updateUsername}
+      </if>
+      <if test="updateTime != null">
+        and TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = #{updateTime}
+      </if>
+      <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="supplierFarId != null">
+        and SUPPLIER_FAR_ID = #{supplierFarId}
+      </if>
+      <if test="supplierScreenInfo != null and supplierScreenInfo != ''">
+        and SUPPLIER_SCREEN_INFO = #{supplierScreenInfo}
+      </if>
+      <if test="supplierBusinessLicense != null">
+        and SUPPLIER_BUSINESS_LICENSE = #{supplierBusinessLicense}
+      </if>
+      <if test="supplierBusinessAblelicense != null">
+        and SUPPLIER_BUSINESS_ABLELICENSE = #{supplierBusinessAblelicense}
+      </if>
+    </where>
+  </sql>
+  <sql id="whereLike">
+    <where> 
+      <if test="supplierId != null">
+        and SUPPLIER_ID = #{supplierId}
+      </if>
+      <if test="supplierName != null and supplierName != ''">
+        and SUPPLIER_NAME LIKE '%${supplierName}%'
+      </if>
+      <if test="supplierAbbreviation != null and supplierAbbreviation != ''">
+        and SUPPLIER_ABBREVIATION LIKE '%${supplierAbbreviation}%'
+      </if>
+      <if test="supplierAddress != null and supplierAddress != ''">
+        and SUPPLIER_ADDRESS LIKE '%${supplierAddress}%'
+      </if>
+      <if test="supplierLegalRepresentative != null and supplierLegalRepresentative != ''">
+        and SUPPLIER_LEGAL_REPRESENTATIVE LIKE '%${supplierLegalRepresentative}%'
+      </if>
+      <if test="supplierRegisterNo != null and supplierRegisterNo != ''">
+        and SUPPLIER_REGISTER_NO LIKE '%${supplierRegisterNo}%'
+      </if>
+      <if test="supplierAgent != null and supplierAgent != ''">
+        and SUPPLIER_AGENT LIKE '%${supplierAgent}%'
+      </if>
+      <if test="supplierContactNumber != null and supplierContactNumber != ''">
+        and SUPPLIER_CONTACT_NUMBER LIKE '%${supplierContactNumber}%'
+      </if>
+      <if test="supplierFax != null and supplierFax != ''">
+        and SUPPLIER_FAX LIKE '%${supplierFax}%'
+      </if>
+      <if test="supplierAccount != null and supplierAccount != ''">
+        and SUPPLIER_ACCOUNT LIKE '%${supplierAccount}%'
+      </if>
+      <if test="supplierAccountBlank != null and supplierAccountBlank != ''">
+        and SUPPLIER_ACCOUNT_BLANK LIKE '%${supplierAccountBlank}%'
+      </if>
+      <if test="supplierDutyParagraph != null and supplierDutyParagraph != ''">
+        and SUPPLIER_DUTY_PARAGRAPH LIKE '%${supplierDutyParagraph}%'
+      </if>
+      <if test="supplierPostalCode != null and supplierPostalCode != ''">
+        and SUPPLIER_POSTAL_CODE LIKE '%${supplierPostalCode}%'
+      </if>
+      <if test="supplierRegisterCapital != null and supplierRegisterCapital != ''">
+        and SUPPLIER_REGISTER_CAPITAL LIKE '%${supplierRegisterCapital}%'
+      </if>
+      <if test="supplierbusinessScope != null and supplierbusinessScope != ''">
+        and SUPPLIERBUSINESS_SCOPE LIKE '%${supplierbusinessScope}%'
+      </if>
+      <if test="supplierCompanyStatus != null and supplierCompanyStatus != ''">
+        and SUPPLIER_COMPANY_STATUS LIKE '%${supplierCompanyStatus}%'
+      </if>
+      <if test="supplierOperationPeriod != null and supplierOperationPeriod != ''">
+        and SUPPLIER_OPERATION_PERIOD LIKE '%${supplierOperationPeriod}%'
+      </if>
+      <if test="supplierRegisterDate != null">
+        and TO_CHAR(SUPPLIER_REGISTER_DATE,'yyyy-MM-dd') = #{supplierRegisterDate}
+      </if>
+      <if test="supplierRegisterOrganization != null and supplierRegisterOrganization != ''">
+        and SUPPLIER_REGISTER_ORGANIZATION LIKE '%${supplierRegisterOrganization}%'
+      </if>
+      <if test="supplierRegisterAptitudes != null and supplierRegisterAptitudes != ''">
+        and SUPPLIER_REGISTER_APTITUDES LIKE '%${supplierRegisterAptitudes}%'
+      </if>
+      <if test="supplierCredential != null and supplierCredential != ''">
+        and SUPPLIER_CREDENTIAL LIKE '%${supplierCredential}%'
+      </if>
+      <if test="supplierContactsName != null and supplierContactsName != ''">
+        and SUPPLIER_CONTACTS_NAME LIKE '%${supplierContactsName}%'
+      </if>
+      <if test="insertUsername != null and insertUsername != ''">
+        and INSERT_USERNAME LIKE '%${insertUsername}%'
+      </if>
+      <if test="insertTime != null">
+        and TO_CHAR(INSERT_TIME,'yyyy-MM-dd') = #{insertTime}
+      </if>
+      <if test="updateUsername != null and updateUsername != ''">
+        and UPDATE_USERNAME LIKE '%${updateUsername}%'
+      </if>
+      <if test="updateTime != null">
+        and TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = #{updateTime}
+      </if>
+      <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="supplierFarId != null">
+        and SUPPLIER_FAR_ID = #{supplierFarId}
+      </if>
+      <if test="supplierScreenInfo != null and supplierScreenInfo != ''">
+        and SUPPLIER_SCREEN_INFO LIKE '%${supplierScreenInfo}%'
+      </if>
+      <if test="supplierBusinessLicense != null">
+        and SUPPLIER_BUSINESS_LICENSE = #{supplierBusinessLicense}
+      </if>
+      <if test="supplierBusinessAblelicense != null">
+        and SUPPLIER_BUSINESS_ABLELICENSE = #{supplierBusinessAblelicense}
+      </if>
+    </where>
+  </sql>
+  <delete id="deleteByPrimaryKey" parameterType="Decimal">
+    delete from RMS_SUPPLIER
+    where SUPPLIER_ID = #{supplierId,jdbcType=DECIMAL}
+  </delete>
+  <delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
+    delete from RMS_SUPPLIER
+    where 1!=1 
+      <if test="supplierName != null and supplierName != ''">
+        or SUPPLIER_NAME = #{supplierName}
+      </if>
+      <if test="supplierAbbreviation != null and supplierAbbreviation != ''">
+        or SUPPLIER_ABBREVIATION = #{supplierAbbreviation}
+      </if>
+      <if test="supplierAddress != null and supplierAddress != ''">
+        or SUPPLIER_ADDRESS = #{supplierAddress}
+      </if>
+      <if test="supplierLegalRepresentative != null and supplierLegalRepresentative != ''">
+        or SUPPLIER_LEGAL_REPRESENTATIVE = #{supplierLegalRepresentative}
+      </if>
+      <if test="supplierRegisterNo != null and supplierRegisterNo != ''">
+        or SUPPLIER_REGISTER_NO = #{supplierRegisterNo}
+      </if>
+      <if test="supplierAgent != null and supplierAgent != ''">
+        or SUPPLIER_AGENT = #{supplierAgent}
+      </if>
+      <if test="supplierContactNumber != null and supplierContactNumber != ''">
+        or SUPPLIER_CONTACT_NUMBER = #{supplierContactNumber}
+      </if>
+      <if test="supplierFax != null and supplierFax != ''">
+        or SUPPLIER_FAX = #{supplierFax}
+      </if>
+      <if test="supplierAccount != null and supplierAccount != ''">
+        or SUPPLIER_ACCOUNT = #{supplierAccount}
+      </if>
+      <if test="supplierAccountBlank != null and supplierAccountBlank != ''">
+        or SUPPLIER_ACCOUNT_BLANK = #{supplierAccountBlank}
+      </if>
+      <if test="supplierDutyParagraph != null and supplierDutyParagraph != ''">
+        or SUPPLIER_DUTY_PARAGRAPH = #{supplierDutyParagraph}
+      </if>
+      <if test="supplierPostalCode != null and supplierPostalCode != ''">
+        or SUPPLIER_POSTAL_CODE = #{supplierPostalCode}
+      </if>
+      <if test="supplierRegisterCapital != null and supplierRegisterCapital != ''">
+        or SUPPLIER_REGISTER_CAPITAL = #{supplierRegisterCapital}
+      </if>
+      <if test="supplierbusinessScope != null and supplierbusinessScope != ''">
+        or SUPPLIERBUSINESS_SCOPE = #{supplierbusinessScope}
+      </if>
+      <if test="supplierCompanyStatus != null and supplierCompanyStatus != ''">
+        or SUPPLIER_COMPANY_STATUS = #{supplierCompanyStatus}
+      </if>
+      <if test="supplierOperationPeriod != null and supplierOperationPeriod != ''">
+        or SUPPLIER_OPERATION_PERIOD = #{supplierOperationPeriod}
+      </if>
+      <if test="supplierRegisterDate != null">
+        or TO_CHAR(SUPPLIER_REGISTER_DATE,'yyyy-MM-dd') = '#{supplierRegisterDate}'
+      </if>
+      <if test="supplierRegisterOrganization != null and supplierRegisterOrganization != ''">
+        or SUPPLIER_REGISTER_ORGANIZATION = #{supplierRegisterOrganization}
+      </if>
+      <if test="supplierRegisterAptitudes != null and supplierRegisterAptitudes != ''">
+        or SUPPLIER_REGISTER_APTITUDES = #{supplierRegisterAptitudes}
+      </if>
+      <if test="supplierCredential != null and supplierCredential != ''">
+        or SUPPLIER_CREDENTIAL = #{supplierCredential}
+      </if>
+      <if test="supplierContactsName != null and supplierContactsName != ''">
+        or SUPPLIER_CONTACTS_NAME = #{supplierContactsName}
+      </if>
+      <if test="insertUsername != null and insertUsername != ''">
+        or INSERT_USERNAME = #{insertUsername}
+      </if>
+      <if test="insertTime != null">
+        or TO_CHAR(INSERT_TIME,'yyyy-MM-dd') = '#{insertTime}'
+      </if>
+      <if test="updateUsername != null and updateUsername != ''">
+        or UPDATE_USERNAME = #{updateUsername}
+      </if>
+      <if test="updateTime != null">
+        or TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = '#{updateTime}'
+      </if>
+      <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="supplierFarId != null">
+        or SUPPLIER_FAR_ID = #{supplierFarId}
+      </if>
+      <if test="supplierScreenInfo != null and supplierScreenInfo != ''">
+        or SUPPLIER_SCREEN_INFO = #{supplierScreenInfo}
+      </if>
+      <if test="supplierBusinessLicense != null">
+        or SUPPLIER_BUSINESS_LICENSE = #{supplierBusinessLicense}
+      </if>
+      <if test="supplierBusinessAblelicense != null">
+        or SUPPLIER_BUSINESS_ABLELICENSE = #{supplierBusinessAblelicense}
+      </if>
+  </delete>
+  <insert id="insert" parameterType="com.steerinfo.dil.model.RmsSupplier">
+    insert into RMS_SUPPLIER (SUPPLIER_ID, SUPPLIER_NAME, SUPPLIER_ABBREVIATION, 
+      SUPPLIER_ADDRESS, SUPPLIER_LEGAL_REPRESENTATIVE, 
+      SUPPLIER_REGISTER_NO, SUPPLIER_AGENT, SUPPLIER_CONTACT_NUMBER, 
+      SUPPLIER_FAX, SUPPLIER_ACCOUNT, SUPPLIER_ACCOUNT_BLANK, 
+      SUPPLIER_DUTY_PARAGRAPH, SUPPLIER_POSTAL_CODE, 
+      SUPPLIER_REGISTER_CAPITAL, 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, 
+      EAS_SUPPLIER_ID, DELETED, SUPPLIER_FAR_ID, 
+      SUPPLIER_SCREEN_INFO, 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}, 
+      #{supplierFax,jdbcType=VARCHAR}, #{supplierAccount,jdbcType=VARCHAR}, #{supplierAccountBlank,jdbcType=VARCHAR}, 
+      #{supplierDutyParagraph,jdbcType=VARCHAR}, #{supplierPostalCode,jdbcType=VARCHAR}, 
+      #{supplierRegisterCapital,jdbcType=VARCHAR}, #{supplierbusinessScope,jdbcType=VARCHAR}, 
+      #{supplierCompanyStatus,jdbcType=VARCHAR}, #{supplierOperationPeriod,jdbcType=VARCHAR}, 
+      #{supplierRegisterDate,jdbcType=TIMESTAMP}, #{supplierRegisterOrganization,jdbcType=VARCHAR}, 
+      #{supplierRegisterAptitudes,jdbcType=VARCHAR}, #{supplierCredential,jdbcType=VARCHAR}, 
+      #{supplierContactsName,jdbcType=VARCHAR}, #{insertUsername,jdbcType=VARCHAR}, #{insertTime,jdbcType=TIMESTAMP}, 
+      #{updateUsername,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{insertUpdateRemark,jdbcType=VARCHAR}, 
+      #{easSupplierId,jdbcType=VARCHAR}, #{deleted,jdbcType=DECIMAL}, #{supplierFarId,jdbcType=DECIMAL}, 
+      #{supplierScreenInfo,jdbcType=VARCHAR}, #{supplierBusinessLicense,jdbcType=BLOB}, 
+      #{supplierBusinessAblelicense,jdbcType=BLOB})
+  </insert>
+  <insert id="insertSelective" parameterType="com.steerinfo.dil.model.RmsSupplier">
+    insert into RMS_SUPPLIER
+    <trim prefix="(" suffix=")" suffixOverrides=",">
+      <if test="supplierId != null">
+        SUPPLIER_ID,
+      </if>
+      <if test="supplierName != null">
+        SUPPLIER_NAME,
+      </if>
+      <if test="supplierAbbreviation != null">
+        SUPPLIER_ABBREVIATION,
+      </if>
+      <if test="supplierAddress != null">
+        SUPPLIER_ADDRESS,
+      </if>
+      <if test="supplierLegalRepresentative != null">
+        SUPPLIER_LEGAL_REPRESENTATIVE,
+      </if>
+      <if test="supplierRegisterNo != null">
+        SUPPLIER_REGISTER_NO,
+      </if>
+      <if test="supplierAgent != null">
+        SUPPLIER_AGENT,
+      </if>
+      <if test="supplierContactNumber != null">
+        SUPPLIER_CONTACT_NUMBER,
+      </if>
+      <if test="supplierFax != null">
+        SUPPLIER_FAX,
+      </if>
+      <if test="supplierAccount != null">
+        SUPPLIER_ACCOUNT,
+      </if>
+      <if test="supplierAccountBlank != null">
+        SUPPLIER_ACCOUNT_BLANK,
+      </if>
+      <if test="supplierDutyParagraph != null">
+        SUPPLIER_DUTY_PARAGRAPH,
+      </if>
+      <if test="supplierPostalCode != null">
+        SUPPLIER_POSTAL_CODE,
+      </if>
+      <if test="supplierRegisterCapital != null">
+        SUPPLIER_REGISTER_CAPITAL,
+      </if>
+      <if test="supplierbusinessScope != null">
+        SUPPLIERBUSINESS_SCOPE,
+      </if>
+      <if test="supplierCompanyStatus != null">
+        SUPPLIER_COMPANY_STATUS,
+      </if>
+      <if test="supplierOperationPeriod != null">
+        SUPPLIER_OPERATION_PERIOD,
+      </if>
+      <if test="supplierRegisterDate != null">
+        SUPPLIER_REGISTER_DATE,
+      </if>
+      <if test="supplierRegisterOrganization != null">
+        SUPPLIER_REGISTER_ORGANIZATION,
+      </if>
+      <if test="supplierRegisterAptitudes != null">
+        SUPPLIER_REGISTER_APTITUDES,
+      </if>
+      <if test="supplierCredential != null">
+        SUPPLIER_CREDENTIAL,
+      </if>
+      <if test="supplierContactsName != null">
+        SUPPLIER_CONTACTS_NAME,
+      </if>
+      <if test="insertUsername != null">
+        INSERT_USERNAME,
+      </if>
+      <if test="insertTime != null">
+        INSERT_TIME,
+      </if>
+      <if test="updateUsername != null">
+        UPDATE_USERNAME,
+      </if>
+      <if test="updateTime != null">
+        UPDATE_TIME,
+      </if>
+      <if test="insertUpdateRemark != null">
+        INSERT_UPDATE_REMARK,
+      </if>
+      <if test="easSupplierId != null">
+        EAS_SUPPLIER_ID,
+      </if>
+      <if test="deleted != null">
+        DELETED,
+      </if>
+      <if test="supplierFarId != null">
+        SUPPLIER_FAR_ID,
+      </if>
+      <if test="supplierScreenInfo != null">
+        SUPPLIER_SCREEN_INFO,
+      </if>
+      <if test="supplierBusinessLicense != null">
+        SUPPLIER_BUSINESS_LICENSE,
+      </if>
+      <if test="supplierBusinessAblelicense != null">
+        SUPPLIER_BUSINESS_ABLELICENSE,
+      </if>
+    </trim>
+    <trim prefix="values (" suffix=")" suffixOverrides=",">
+      <if test="supplierId != null">
+        #{supplierId,jdbcType=DECIMAL},
+      </if>
+      <if test="supplierName != null">
+        #{supplierName,jdbcType=VARCHAR},
+      </if>
+      <if test="supplierAbbreviation != null">
+        #{supplierAbbreviation,jdbcType=VARCHAR},
+      </if>
+      <if test="supplierAddress != null">
+        #{supplierAddress,jdbcType=VARCHAR},
+      </if>
+      <if test="supplierLegalRepresentative != null">
+        #{supplierLegalRepresentative,jdbcType=VARCHAR},
+      </if>
+      <if test="supplierRegisterNo != null">
+        #{supplierRegisterNo,jdbcType=VARCHAR},
+      </if>
+      <if test="supplierAgent != null">
+        #{supplierAgent,jdbcType=VARCHAR},
+      </if>
+      <if test="supplierContactNumber != null">
+        #{supplierContactNumber,jdbcType=VARCHAR},
+      </if>
+      <if test="supplierFax != null">
+        #{supplierFax,jdbcType=VARCHAR},
+      </if>
+      <if test="supplierAccount != null">
+        #{supplierAccount,jdbcType=VARCHAR},
+      </if>
+      <if test="supplierAccountBlank != null">
+        #{supplierAccountBlank,jdbcType=VARCHAR},
+      </if>
+      <if test="supplierDutyParagraph != null">
+        #{supplierDutyParagraph,jdbcType=VARCHAR},
+      </if>
+      <if test="supplierPostalCode != null">
+        #{supplierPostalCode,jdbcType=VARCHAR},
+      </if>
+      <if test="supplierRegisterCapital != null">
+        #{supplierRegisterCapital,jdbcType=VARCHAR},
+      </if>
+      <if test="supplierbusinessScope != null">
+        #{supplierbusinessScope,jdbcType=VARCHAR},
+      </if>
+      <if test="supplierCompanyStatus != null">
+        #{supplierCompanyStatus,jdbcType=VARCHAR},
+      </if>
+      <if test="supplierOperationPeriod != null">
+        #{supplierOperationPeriod,jdbcType=VARCHAR},
+      </if>
+      <if test="supplierRegisterDate != null">
+        #{supplierRegisterDate,jdbcType=TIMESTAMP},
+      </if>
+      <if test="supplierRegisterOrganization != null">
+        #{supplierRegisterOrganization,jdbcType=VARCHAR},
+      </if>
+      <if test="supplierRegisterAptitudes != null">
+        #{supplierRegisterAptitudes,jdbcType=VARCHAR},
+      </if>
+      <if test="supplierCredential != null">
+        #{supplierCredential,jdbcType=VARCHAR},
+      </if>
+      <if test="supplierContactsName != null">
+        #{supplierContactsName,jdbcType=VARCHAR},
+      </if>
+      <if test="insertUsername != null">
+        #{insertUsername,jdbcType=VARCHAR},
+      </if>
+      <if test="insertTime != null">
+        #{insertTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="updateUsername != null">
+        #{updateUsername,jdbcType=VARCHAR},
+      </if>
+      <if test="updateTime != null">
+        #{updateTime,jdbcType=TIMESTAMP},
+      </if>
+      <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="supplierFarId != null">
+        #{supplierFarId,jdbcType=DECIMAL},
+      </if>
+      <if test="supplierScreenInfo != null">
+        #{supplierScreenInfo,jdbcType=VARCHAR},
+      </if>
+      <if test="supplierBusinessLicense != null">
+        #{supplierBusinessLicense,jdbcType=BLOB},
+      </if>
+      <if test="supplierBusinessAblelicense != null">
+        #{supplierBusinessAblelicense,jdbcType=BLOB},
+      </if>
+    </trim>
+  </insert>
+  <update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.RmsSupplier">
+    update RMS_SUPPLIER
+    set SUPPLIER_NAME = #{supplierName,jdbcType=VARCHAR},
+      SUPPLIER_ABBREVIATION = #{supplierAbbreviation,jdbcType=VARCHAR},
+      SUPPLIER_ADDRESS = #{supplierAddress,jdbcType=VARCHAR},
+      SUPPLIER_LEGAL_REPRESENTATIVE = #{supplierLegalRepresentative,jdbcType=VARCHAR},
+      SUPPLIER_REGISTER_NO = #{supplierRegisterNo,jdbcType=VARCHAR},
+      SUPPLIER_AGENT = #{supplierAgent,jdbcType=VARCHAR},
+      SUPPLIER_CONTACT_NUMBER = #{supplierContactNumber,jdbcType=VARCHAR},
+      SUPPLIER_FAX = #{supplierFax,jdbcType=VARCHAR},
+      SUPPLIER_ACCOUNT = #{supplierAccount,jdbcType=VARCHAR},
+      SUPPLIER_ACCOUNT_BLANK = #{supplierAccountBlank,jdbcType=VARCHAR},
+      SUPPLIER_DUTY_PARAGRAPH = #{supplierDutyParagraph,jdbcType=VARCHAR},
+      SUPPLIER_POSTAL_CODE = #{supplierPostalCode,jdbcType=VARCHAR},
+      SUPPLIER_REGISTER_CAPITAL = #{supplierRegisterCapital,jdbcType=VARCHAR},
+      SUPPLIERBUSINESS_SCOPE = #{supplierbusinessScope,jdbcType=VARCHAR},
+      SUPPLIER_COMPANY_STATUS = #{supplierCompanyStatus,jdbcType=VARCHAR},
+      SUPPLIER_OPERATION_PERIOD = #{supplierOperationPeriod,jdbcType=VARCHAR},
+      SUPPLIER_REGISTER_DATE = #{supplierRegisterDate,jdbcType=TIMESTAMP},
+      SUPPLIER_REGISTER_ORGANIZATION = #{supplierRegisterOrganization,jdbcType=VARCHAR},
+      SUPPLIER_REGISTER_APTITUDES = #{supplierRegisterAptitudes,jdbcType=VARCHAR},
+      SUPPLIER_CREDENTIAL = #{supplierCredential,jdbcType=VARCHAR},
+      SUPPLIER_CONTACTS_NAME = #{supplierContactsName,jdbcType=VARCHAR},
+      INSERT_USERNAME = #{insertUsername,jdbcType=VARCHAR},
+      INSERT_TIME = #{insertTime,jdbcType=TIMESTAMP},
+      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_FAR_ID = #{supplierFarId,jdbcType=DECIMAL},
+      SUPPLIER_SCREEN_INFO = #{supplierScreenInfo,jdbcType=VARCHAR},
+      SUPPLIER_BUSINESS_LICENSE = #{supplierBusinessLicense,jdbcType=BLOB},
+      SUPPLIER_BUSINESS_ABLELICENSE = #{supplierBusinessAblelicense,jdbcType=BLOB}
+    where SUPPLIER_ID = #{supplierId,jdbcType=DECIMAL}
+  </update>
+  <update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.RmsSupplier">
+    update RMS_SUPPLIER
+    <set>
+      <if test="supplierName != null">
+        SUPPLIER_NAME = #{supplierName,jdbcType=VARCHAR},
+      </if>
+      <if test="supplierAbbreviation != null">
+        SUPPLIER_ABBREVIATION = #{supplierAbbreviation,jdbcType=VARCHAR},
+      </if>
+      <if test="supplierAddress != null">
+        SUPPLIER_ADDRESS = #{supplierAddress,jdbcType=VARCHAR},
+      </if>
+      <if test="supplierLegalRepresentative != null">
+        SUPPLIER_LEGAL_REPRESENTATIVE = #{supplierLegalRepresentative,jdbcType=VARCHAR},
+      </if>
+      <if test="supplierRegisterNo != null">
+        SUPPLIER_REGISTER_NO = #{supplierRegisterNo,jdbcType=VARCHAR},
+      </if>
+      <if test="supplierAgent != null">
+        SUPPLIER_AGENT = #{supplierAgent,jdbcType=VARCHAR},
+      </if>
+      <if test="supplierContactNumber != null">
+        SUPPLIER_CONTACT_NUMBER = #{supplierContactNumber,jdbcType=VARCHAR},
+      </if>
+      <if test="supplierFax != null">
+        SUPPLIER_FAX = #{supplierFax,jdbcType=VARCHAR},
+      </if>
+      <if test="supplierAccount != null">
+        SUPPLIER_ACCOUNT = #{supplierAccount,jdbcType=VARCHAR},
+      </if>
+      <if test="supplierAccountBlank != null">
+        SUPPLIER_ACCOUNT_BLANK = #{supplierAccountBlank,jdbcType=VARCHAR},
+      </if>
+      <if test="supplierDutyParagraph != null">
+        SUPPLIER_DUTY_PARAGRAPH = #{supplierDutyParagraph,jdbcType=VARCHAR},
+      </if>
+      <if test="supplierPostalCode != null">
+        SUPPLIER_POSTAL_CODE = #{supplierPostalCode,jdbcType=VARCHAR},
+      </if>
+      <if test="supplierRegisterCapital != null">
+        SUPPLIER_REGISTER_CAPITAL = #{supplierRegisterCapital,jdbcType=VARCHAR},
+      </if>
+      <if test="supplierbusinessScope != null">
+        SUPPLIERBUSINESS_SCOPE = #{supplierbusinessScope,jdbcType=VARCHAR},
+      </if>
+      <if test="supplierCompanyStatus != null">
+        SUPPLIER_COMPANY_STATUS = #{supplierCompanyStatus,jdbcType=VARCHAR},
+      </if>
+      <if test="supplierOperationPeriod != null">
+        SUPPLIER_OPERATION_PERIOD = #{supplierOperationPeriod,jdbcType=VARCHAR},
+      </if>
+      <if test="supplierRegisterDate != null">
+        SUPPLIER_REGISTER_DATE = #{supplierRegisterDate,jdbcType=TIMESTAMP},
+      </if>
+      <if test="supplierRegisterOrganization != null">
+        SUPPLIER_REGISTER_ORGANIZATION = #{supplierRegisterOrganization,jdbcType=VARCHAR},
+      </if>
+      <if test="supplierRegisterAptitudes != null">
+        SUPPLIER_REGISTER_APTITUDES = #{supplierRegisterAptitudes,jdbcType=VARCHAR},
+      </if>
+      <if test="supplierCredential != null">
+        SUPPLIER_CREDENTIAL = #{supplierCredential,jdbcType=VARCHAR},
+      </if>
+      <if test="supplierContactsName != null">
+        SUPPLIER_CONTACTS_NAME = #{supplierContactsName,jdbcType=VARCHAR},
+      </if>
+      <if test="insertUsername != null">
+        INSERT_USERNAME = #{insertUsername,jdbcType=VARCHAR},
+      </if>
+      <if test="insertTime != null">
+        INSERT_TIME = #{insertTime,jdbcType=TIMESTAMP},
+      </if>
+      <if test="updateUsername != null">
+        UPDATE_USERNAME = #{updateUsername,jdbcType=VARCHAR},
+      </if>
+      <if test="updateTime != null">
+        UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
+      </if>
+      <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="supplierFarId != null">
+        SUPPLIER_FAR_ID = #{supplierFarId,jdbcType=DECIMAL},
+      </if>
+      <if test="supplierScreenInfo != null">
+        SUPPLIER_SCREEN_INFO = #{supplierScreenInfo,jdbcType=VARCHAR},
+      </if>
+      <if test="supplierBusinessLicense != null">
+        SUPPLIER_BUSINESS_LICENSE = #{supplierBusinessLicense,jdbcType=BLOB},
+      </if>
+      <if test="supplierBusinessAblelicense != null">
+        SUPPLIER_BUSINESS_ABLELICENSE = #{supplierBusinessAblelicense,jdbcType=BLOB},
+      </if>
+    </set>
+    where SUPPLIER_ID = #{supplierId,jdbcType=DECIMAL}
+  </update>
+  <select id="selectByPrimaryKey" parameterType="Decimal" resultMap="BaseResultMap">
+    <include refid="select" />
+    where SUPPLIER_ID = #{supplierId,jdbcType=DECIMAL}
+  </select>
+  <select id="selectByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
+    <include refid="select" />
+    <include refid="where" />
+  </select>
+  <select id="selectLikeByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
+    <include refid="select" />
+    <include refid="whereLike" />
+  </select>
+  <insert id="batchInsert" parameterType="java.util.List">
+    insert into RMS_SUPPLIER 
+      (SUPPLIER_ID, 
+      SUPPLIER_NAME, SUPPLIER_ABBREVIATION, 
+      SUPPLIER_ADDRESS, SUPPLIER_LEGAL_REPRESENTATIVE, 
+      SUPPLIER_REGISTER_NO, SUPPLIER_AGENT, 
+      SUPPLIER_CONTACT_NUMBER, SUPPLIER_FAX, 
+      SUPPLIER_ACCOUNT, SUPPLIER_ACCOUNT_BLANK, 
+      SUPPLIER_DUTY_PARAGRAPH, SUPPLIER_POSTAL_CODE, 
+      SUPPLIER_REGISTER_CAPITAL, 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, 
+      EAS_SUPPLIER_ID, DELETED, SUPPLIER_FAR_ID, 
+      SUPPLIER_SCREEN_INFO, SUPPLIER_BUSINESS_LICENSE, 
+      SUPPLIER_BUSINESS_ABLELICENSE)
+    ( <foreach collection="list" item="item" separator="union all"> 
+   select  
+      #{item.supplierId,jdbcType=DECIMAL}, 
+      #{item.supplierName,jdbcType=VARCHAR}, #{item.supplierAbbreviation,jdbcType=VARCHAR}, 
+      #{item.supplierAddress,jdbcType=VARCHAR}, #{item.supplierLegalRepresentative,jdbcType=VARCHAR}, 
+      #{item.supplierRegisterNo,jdbcType=VARCHAR}, #{item.supplierAgent,jdbcType=VARCHAR}, 
+      #{item.supplierContactNumber,jdbcType=VARCHAR}, #{item.supplierFax,jdbcType=VARCHAR}, 
+      #{item.supplierAccount,jdbcType=VARCHAR}, #{item.supplierAccountBlank,jdbcType=VARCHAR}, 
+      #{item.supplierDutyParagraph,jdbcType=VARCHAR}, #{item.supplierPostalCode,jdbcType=VARCHAR}, 
+      #{item.supplierRegisterCapital,jdbcType=VARCHAR}, #{item.supplierbusinessScope,jdbcType=VARCHAR}, 
+      #{item.supplierCompanyStatus,jdbcType=VARCHAR}, #{item.supplierOperationPeriod,jdbcType=VARCHAR}, 
+      #{item.supplierRegisterDate,jdbcType=TIMESTAMP}, #{item.supplierRegisterOrganization,jdbcType=VARCHAR}, 
+      #{item.supplierRegisterAptitudes,jdbcType=VARCHAR}, #{item.supplierCredential,jdbcType=VARCHAR}, 
+      #{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.easSupplierId,jdbcType=VARCHAR}, #{item.deleted,jdbcType=DECIMAL}, #{item.supplierFarId,jdbcType=DECIMAL}, 
+      #{item.supplierScreenInfo,jdbcType=VARCHAR}, #{item.supplierBusinessLicense,jdbcType=BLOB}, 
+      #{item.supplierBusinessAblelicense,jdbcType=BLOB} from dual  
+   </foreach> )
+  </insert>
+  <update id="batchUpdate" parameterType="java.util.List">
+     update RMS_SUPPLIER
+     set
+       SUPPLIER_ID=
+       <foreach close="end" collection="list" index="index" item="item" open="case SUPPLIER_ID" separator=" ">
+          when #{item.supplierId,jdbcType=DECIMAL} then #{item.supplierId,jdbcType=DECIMAL}
+       </foreach>
+       ,SUPPLIER_NAME=
+       <foreach close="end" collection="list" index="index" item="item" open="case SUPPLIER_ID" separator=" ">
+          when #{item.supplierId,jdbcType=DECIMAL} then #{item.supplierName,jdbcType=VARCHAR}
+       </foreach>
+       ,SUPPLIER_ABBREVIATION=
+       <foreach close="end" collection="list" index="index" item="item" open="case SUPPLIER_ID" separator=" ">
+          when #{item.supplierId,jdbcType=DECIMAL} then #{item.supplierAbbreviation,jdbcType=VARCHAR}
+       </foreach>
+       ,SUPPLIER_ADDRESS=
+       <foreach close="end" collection="list" index="index" item="item" open="case SUPPLIER_ID" separator=" ">
+          when #{item.supplierId,jdbcType=DECIMAL} then #{item.supplierAddress,jdbcType=VARCHAR}
+       </foreach>
+       ,SUPPLIER_LEGAL_REPRESENTATIVE=
+       <foreach close="end" collection="list" index="index" item="item" open="case SUPPLIER_ID" separator=" ">
+          when #{item.supplierId,jdbcType=DECIMAL} then #{item.supplierLegalRepresentative,jdbcType=VARCHAR}
+       </foreach>
+       ,SUPPLIER_REGISTER_NO=
+       <foreach close="end" collection="list" index="index" item="item" open="case SUPPLIER_ID" separator=" ">
+          when #{item.supplierId,jdbcType=DECIMAL} then #{item.supplierRegisterNo,jdbcType=VARCHAR}
+       </foreach>
+       ,SUPPLIER_AGENT=
+       <foreach close="end" collection="list" index="index" item="item" open="case SUPPLIER_ID" separator=" ">
+          when #{item.supplierId,jdbcType=DECIMAL} then #{item.supplierAgent,jdbcType=VARCHAR}
+       </foreach>
+       ,SUPPLIER_CONTACT_NUMBER=
+       <foreach close="end" collection="list" index="index" item="item" open="case SUPPLIER_ID" separator=" ">
+          when #{item.supplierId,jdbcType=DECIMAL} then #{item.supplierContactNumber,jdbcType=VARCHAR}
+       </foreach>
+       ,SUPPLIER_FAX=
+       <foreach close="end" collection="list" index="index" item="item" open="case SUPPLIER_ID" separator=" ">
+          when #{item.supplierId,jdbcType=DECIMAL} then #{item.supplierFax,jdbcType=VARCHAR}
+       </foreach>
+       ,SUPPLIER_ACCOUNT=
+       <foreach close="end" collection="list" index="index" item="item" open="case SUPPLIER_ID" separator=" ">
+          when #{item.supplierId,jdbcType=DECIMAL} then #{item.supplierAccount,jdbcType=VARCHAR}
+       </foreach>
+       ,SUPPLIER_ACCOUNT_BLANK=
+       <foreach close="end" collection="list" index="index" item="item" open="case SUPPLIER_ID" separator=" ">
+          when #{item.supplierId,jdbcType=DECIMAL} then #{item.supplierAccountBlank,jdbcType=VARCHAR}
+       </foreach>
+       ,SUPPLIER_DUTY_PARAGRAPH=
+       <foreach close="end" collection="list" index="index" item="item" open="case SUPPLIER_ID" separator=" ">
+          when #{item.supplierId,jdbcType=DECIMAL} then #{item.supplierDutyParagraph,jdbcType=VARCHAR}
+       </foreach>
+       ,SUPPLIER_POSTAL_CODE=
+       <foreach close="end" collection="list" index="index" item="item" open="case SUPPLIER_ID" separator=" ">
+          when #{item.supplierId,jdbcType=DECIMAL} then #{item.supplierPostalCode,jdbcType=VARCHAR}
+       </foreach>
+       ,SUPPLIER_REGISTER_CAPITAL=
+       <foreach close="end" collection="list" index="index" item="item" open="case SUPPLIER_ID" separator=" ">
+          when #{item.supplierId,jdbcType=DECIMAL} then #{item.supplierRegisterCapital,jdbcType=VARCHAR}
+       </foreach>
+       ,SUPPLIERBUSINESS_SCOPE=
+       <foreach close="end" collection="list" index="index" item="item" open="case SUPPLIER_ID" separator=" ">
+          when #{item.supplierId,jdbcType=DECIMAL} then #{item.supplierbusinessScope,jdbcType=VARCHAR}
+       </foreach>
+       ,SUPPLIER_COMPANY_STATUS=
+       <foreach close="end" collection="list" index="index" item="item" open="case SUPPLIER_ID" separator=" ">
+          when #{item.supplierId,jdbcType=DECIMAL} then #{item.supplierCompanyStatus,jdbcType=VARCHAR}
+       </foreach>
+       ,SUPPLIER_OPERATION_PERIOD=
+       <foreach close="end" collection="list" index="index" item="item" open="case SUPPLIER_ID" separator=" ">
+          when #{item.supplierId,jdbcType=DECIMAL} then #{item.supplierOperationPeriod,jdbcType=VARCHAR}
+       </foreach>
+       ,SUPPLIER_REGISTER_DATE=
+       <foreach close="end" collection="list" index="index" item="item" open="case SUPPLIER_ID" separator=" ">
+          when #{item.supplierId,jdbcType=DECIMAL} then #{item.supplierRegisterDate,jdbcType=TIMESTAMP}
+       </foreach>
+       ,SUPPLIER_REGISTER_ORGANIZATION=
+       <foreach close="end" collection="list" index="index" item="item" open="case SUPPLIER_ID" separator=" ">
+          when #{item.supplierId,jdbcType=DECIMAL} then #{item.supplierRegisterOrganization,jdbcType=VARCHAR}
+       </foreach>
+       ,SUPPLIER_REGISTER_APTITUDES=
+       <foreach close="end" collection="list" index="index" item="item" open="case SUPPLIER_ID" separator=" ">
+          when #{item.supplierId,jdbcType=DECIMAL} then #{item.supplierRegisterAptitudes,jdbcType=VARCHAR}
+       </foreach>
+       ,SUPPLIER_CREDENTIAL=
+       <foreach close="end" collection="list" index="index" item="item" open="case SUPPLIER_ID" separator=" ">
+          when #{item.supplierId,jdbcType=DECIMAL} then #{item.supplierCredential,jdbcType=VARCHAR}
+       </foreach>
+       ,SUPPLIER_CONTACTS_NAME=
+       <foreach close="end" collection="list" index="index" item="item" open="case SUPPLIER_ID" separator=" ">
+          when #{item.supplierId,jdbcType=DECIMAL} then #{item.supplierContactsName,jdbcType=VARCHAR}
+       </foreach>
+       ,INSERT_USERNAME=
+       <foreach close="end" collection="list" index="index" item="item" open="case SUPPLIER_ID" separator=" ">
+          when #{item.supplierId,jdbcType=DECIMAL} then #{item.insertUsername,jdbcType=VARCHAR}
+       </foreach>
+       ,INSERT_TIME=
+       <foreach close="end" collection="list" index="index" item="item" open="case SUPPLIER_ID" separator=" ">
+          when #{item.supplierId,jdbcType=DECIMAL} then #{item.insertTime,jdbcType=TIMESTAMP}
+       </foreach>
+       ,UPDATE_USERNAME=
+       <foreach close="end" collection="list" index="index" item="item" open="case SUPPLIER_ID" separator=" ">
+          when #{item.supplierId,jdbcType=DECIMAL} then #{item.updateUsername,jdbcType=VARCHAR}
+       </foreach>
+       ,UPDATE_TIME=
+       <foreach close="end" collection="list" index="index" item="item" open="case SUPPLIER_ID" separator=" ">
+          when #{item.supplierId,jdbcType=DECIMAL} then #{item.updateTime,jdbcType=TIMESTAMP}
+       </foreach>
+       ,INSERT_UPDATE_REMARK=
+       <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_FAR_ID=
+       <foreach close="end" collection="list" index="index" item="item" open="case SUPPLIER_ID" separator=" ">
+          when #{item.supplierId,jdbcType=DECIMAL} then #{item.supplierFarId,jdbcType=DECIMAL}
+       </foreach>
+       ,SUPPLIER_SCREEN_INFO=
+       <foreach close="end" collection="list" index="index" item="item" open="case SUPPLIER_ID" separator=" ">
+          when #{item.supplierId,jdbcType=DECIMAL} then #{item.supplierScreenInfo,jdbcType=VARCHAR}
+       </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}
+       </foreach>
+       ,SUPPLIER_BUSINESS_ABLELICENSE=
+       <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>
+     where SUPPLIER_ID in 
+     <foreach close=")" collection="list" index="index" item="item" open="(" separator=",">
+    #{item.supplierId,jdbcType=DECIMAL}
+     </foreach> 
+  </update>
+  <delete id="batchDelete" parameterType="java.util.List">
+    delete from RMS_SUPPLIER
+    where SUPPLIER_ID in 
+    <foreach close=")" collection="list" item="id" open="(" separator=",">
+      #{id}
+    </foreach>
+  </delete>
+  <!-- 友情提示!!!-->
+  <!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
+  <!-- 查询供应商列表 -->
+  <select id="getSupplierList" parameterType="java.util.Map" resultType="java.util.Map">
+    SELECT *
+    FROM (
+    SELECT 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.DELETED != 0
+    )
+    <where>
+      <if test="supplierDutyParagraph!= null">
+        and
+        <foreach collection="supplierDutyParagraph" item="item" open="(" separator="," close=")">
+          "supplierDutyParagraph" in #{item}
+        </foreach>
+      </if>
+      <if test="supplierName!= null">
+        and
+        <foreach collection="supplierName" item="item" open="(" separator="," close=")">
+          "supplierName" in #{item}
+        </foreach>
+      </if>
+      <if test="supplierAddress!= null">
+        and
+        <foreach collection="supplierAddress" item="item" open="(" separator="," close=")">
+          "supplierAddress" in #{item}
+        </foreach>
+      </if>
+      <if test="supplierRegisterDate!= null">
+        and
+        <foreach collection="supplierRegisterDate" item="item" open="(" separator="," close=")">
+          "supplierRegisterDate" in to_date('${item}','yyyy-mm-dd hh24:mi:ss')
+        </foreach>
+      </if>
+      <if test="supplierContactsName!= null">
+        and
+        <foreach collection="supplierContactsName" item="item" open="(" separator="," close=")">
+          "supplierContactsName" in #{item}
+        </foreach>
+      </if>
+      <if test="supplierContactNumber!= null">
+        and
+        <foreach collection="supplierContactNumber" item="item" open="(" separator="," close=")">
+          "supplierContactNumber" in #{item}
+        </foreach>
+      </if>
+    </where>
+  </select>
 </mapper>