ソースを参照

修改承运商

txf 3 年 前
コミット
1757bf99b7

+ 1 - 27
src/main/java/com/steerinfo/dil/controller/RmsCarrierController.java

@@ -78,7 +78,6 @@ public class RmsCarrierController extends BaseRESTfulController {
         if (mapValue == null) {
             mapValue = new HashMap<>();
         }
-
         //框计算
         if (con != null) {
             if (!"undefined".equals(con)) {
@@ -109,33 +108,9 @@ public class RmsCarrierController extends BaseRESTfulController {
         if (listTotal == null) {
             listTotal = rmsCarrierService.getCarrierList(mapValue);
         }
-        System.out.println(listTotal);
         PageHelper.startPage(pageNum, pageSize);
         //分页查询数据
         List<Map<String, Object>> columnList = rmsCarrierService.getCarrierList(mapValue);
-        //        将中标区域id转换为先对应的地方
-        for (Map<String, Object> map : columnList) {
-            BigDecimal carrierBidAreaId = (BigDecimal) map.get("carrierBidAreaId");
-            if (carrierBidAreaId != null) {
-                //        根据id获取中标区域然后进行拼接
-                Map<String, Object> map1 = rmsBidAreaService.getBidAreaById(carrierBidAreaId);
-                String carrierBidArea = "";
-                if (map1.get("bidAreaProvince") != null) {
-                    carrierBidArea = carrierBidArea + (String) map1.get("bidAreaProvince");
-                }
-                if (map1.get("bidAreaCity") != null) {
-                    carrierBidArea = carrierBidArea + (String) map1.get("bidAreaCity");
-                }
-                if (map1.get("bidAreaCount") != null) {
-                    carrierBidArea = carrierBidArea + (String) map1.get("bidAreaCount");
-                }
-                if (map1.get("bidAreaCountry") != null) {
-                    carrierBidArea = carrierBidArea + (String) map1.get("bidAreaCountry");
-                }
-                map.put("carrierBidArea", carrierBidArea);
-            }
-        }
-
         PageListAdd data = columnDataUtil.tableColumnData(apiId, listTotal, columnList);
         System.out.println(data);
         return success(data);
@@ -149,11 +124,10 @@ public class RmsCarrierController extends BaseRESTfulController {
      */
     @ApiOperation(value = "创建", notes = "根据RmsCarrier对象创建")
     @ApiImplicitParam(name = "rmsCarrier", value = "详细实体rmsCarrier", required = true, dataType = "RmsCarrier")
-    //@RequiresPermissions("rmscarrier:create")
     @PostMapping(value = "/insertCarrier")
     public RESTfulResult insertCarrier(@RequestBody(required = false) Map<String, Object> mapValue) throws ParseException {
         int result = rmsCarrierService.insertCarrier(mapValue);
-        if (result <= 0) {
+        if (result == 0) {
             return failed();
         }
         return success(result);

+ 3 - 1
src/main/java/com/steerinfo/dil/mapper/RmsCarrierMapper.java

@@ -21,7 +21,9 @@ public interface RmsCarrierMapper extends IBaseMapper<RmsCarrier, BigDecimal> {
     @Select("SELECT seq__RMS_CARRIER.nextval FROM dual")
     BigDecimal getCarrierId();
 
-    int selectParameterCarrierName(String carrierName);
+    //通过承运商名称查承运商主键
+    Integer selectParameterCarrierName(String carrierName);
+
 //    获得当前表中的最大id
     BigDecimal getMaxCarrierId();
 

+ 18 - 3
src/main/java/com/steerinfo/dil/model/RmsCarrier.java

@@ -220,23 +220,29 @@ public class RmsCarrier implements IBasePO<BigDecimal> {
     private String easCarrierId;
 
     /**
-     * 营业执照(CARRIER_BUSINESS_ABLELICENSE,VARCHAR,50)
+     * 营业执照(CARRIER_BUSINESS_ABLELICENSE,VARCHAR,90)
      */
     @ApiModelProperty(value="营业执照",required=false)
     private String carrierBusinessAblelicense;
 
     /**
-     * 经营许可证(照片)(CARRIER_BUSINESS_LICENSE,VARCHAR,50)
+     * 经营许可证(照片)(CARRIER_BUSINESS_LICENSE,VARCHAR,90)
      */
     @ApiModelProperty(value="经营许可证(照片)",required=false)
     private String carrierBusinessLicense;
 
     /**
-     * 运输证(照片)(CARRIER_TRANSPORT_CERTIFICATE,VARCHAR,50)
+     * 运输证(照片)(CARRIER_TRANSPORT_CERTIFICATE,VARCHAR,90)
      */
     @ApiModelProperty(value="运输证(照片)",required=false)
     private String carrierTransportCertificate;
 
+    /**
+     * SSO主键(CARRIER_SSO_ID,VARCHAR,40)
+     */
+    @ApiModelProperty(value="SSO主键",required=false)
+    private String carrierSsoId;
+
     private static final long serialVersionUID = 1L;
 
     @Override
@@ -553,6 +559,14 @@ public class RmsCarrier implements IBasePO<BigDecimal> {
         this.carrierTransportCertificate = carrierTransportCertificate == null ? null : carrierTransportCertificate.trim();
     }
 
+    public String getCarrierSsoId() {
+        return carrierSsoId;
+    }
+
+    public void setCarrierSsoId(String carrierSsoId) {
+        this.carrierSsoId = carrierSsoId == null ? null : carrierSsoId.trim();
+    }
+
     @Override
     public String toString() {
         StringBuilder sb = new StringBuilder();
@@ -597,6 +611,7 @@ public class RmsCarrier implements IBasePO<BigDecimal> {
         sb.append(", carrierBusinessAblelicense=").append(carrierBusinessAblelicense);
         sb.append(", carrierBusinessLicense=").append(carrierBusinessLicense);
         sb.append(", carrierTransportCertificate=").append(carrierTransportCertificate);
+        sb.append(", carrierSsoId=").append(carrierSsoId);
         sb.append(", serialVersionUID=").append(serialVersionUID);
         sb.append("]");
         return sb.toString();

+ 47 - 57
src/main/java/com/steerinfo/dil/service/impl/RmsCarrierServiceImpl.java

@@ -3,7 +3,9 @@ package com.steerinfo.dil.service.impl;
 import com.steerinfo.dil.mapper.RmsBidAreaMapper;
 import com.steerinfo.dil.mapper.RmsCarrierMapper;
 import com.steerinfo.dil.model.RmsCarrier;
+import com.steerinfo.dil.model.RmsShipper;
 import com.steerinfo.dil.service.IRmsCarrierService;
+import com.steerinfo.dil.util.DataChange;
 import com.steerinfo.framework.utils.misc.IdGenerator;
 import com.steerinfo.framework.utils.upload.UploadUtils;
 import org.springframework.beans.factory.annotation.Autowired;
@@ -123,68 +125,56 @@ public class RmsCarrierServiceImpl implements IRmsCarrierService {
     /**
      * 添加承运商信息
      *
-     * @param mapValue
+     * @param map
      * @return
      */
     @Override
-    public int insertCarrier(Map<String, Object> mapValue) throws ParseException {
-//        获取用户名以及默认密码
-//        String username = (String) mapValue.get("username");
-//        String password = "123456";
-
-
-        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
+    public int insertCarrier(Map<String, Object> map){
+        //承运商数据
+        Map<String, Object> formMap = (Map<String, Object>) map.get("from");
+        //获取承运商名称查看是否已存在数据库中
+        String carrierName = (String) formMap.get("carrierName");
+        Integer size = rmsCarrierMapper.selectParameterCarrierName(carrierName);
+        if(size != null){
+            return 0;
+        }
         RmsCarrier rmsCarrier = new RmsCarrier();
-        Map<String, Object> map1 = (Map<String, Object>) mapValue.get("RmsCarrier");
-        Map<String, Object> registerDate = (Map<String, Object>) mapValue.get("registerDate");
-        String carrierName=(String) map1.get("carrierName");
-        Date date = new Date(0);
-        int i = 0;
-        Integer transportType = (Integer) map1.get("carrierTransportType");
-        int size = rmsCarrierMapper.selectParameterCarrierName(carrierName);
-        String registerDates = (String) registerDate.get("registerDate");
-        Date registerDate2 = simpleDateFormat.parse(registerDates);
-        if (size == 0) {
-            if (transportType != null) {
-                if (transportType.equals(1)) {
-                    rmsCarrier.setCarrierTransportType("危化品");
-                }
-                if (transportType.equals(2)) {
-                    rmsCarrier.setCarrierTransportType("其他");
-                }
-                rmsCarrier.setInsertTime(new Date());
-                rmsCarrier.setInsertUsername("admin");
-                rmsCarrier.setDeleted(new BigDecimal(0));
-                rmsCarrier.setCarrierId(rmsCarrierMapper.getCarrierId());
-
-                rmsCarrier.setRegisterDate(registerDate2);
-                if (registerDate.get("registerDate").equals(date)) {
-                    rmsCarrier.setRegisterDate(null);
-                }
-                rmsCarrier.setCarrierName((String) map1.get("carrierName"));
-                rmsCarrier.setCarrierAbbreviation((String) map1.get("carrierAbbreviation"));
-                rmsCarrier.setCarrierAddress((String) map1.get("carrierAddress"));
-                rmsCarrier.setRegisterNo((String) map1.get("registerNo"));
-                Integer carrierBidAreaId = (Integer) map1.get("carrierBidAreaId");
-                rmsCarrier.setCarrierBidAreaId(new BigDecimal(carrierBidAreaId));
-                rmsCarrier.setCarrierLegalRepresentative((String) map1.get("carrierLegalRepresentative"));
-                rmsCarrier.setRegisterCapital((String) map1.get("registerCapital"));
-                rmsCarrier.setBusinessScope((String) map1.get("businessScope"));
-                rmsCarrier.setAnnualDate((String) map1.get("annualDate"));
-                rmsCarrier.setCompanyStatusDesc((String) map1.get("companyStatusDesc"));
-                rmsCarrier.setCompanyTypeDesc((String) map1.get("companyTypeDesc"));
-                rmsCarrier.setOperationPeriod((String) map1.get("operationPeriod"));
-                rmsCarrier.setRegisterOrganization((String) map1.get("registerOrganization"));
-                rmsCarrier.setRegisterAptitudes((String) map1.get("registerAptitudes"));
-                rmsCarrier.setContactsName((String) map1.get("contactsName"));
-                rmsCarrier.setCarrierContactNumber((String) map1.get("carrierContactNumber"));
-                rmsCarrier.setCarrierType((String) map1.get("carrierType"));
-                i += rmsCarrierMapper.insertSelective(rmsCarrier);
-            } else {
-                i = -1;
-            }
+        rmsCarrier.setId(rmsCarrierMapper.getCarrierId());
+        rmsCarrier.setCarrierName(carrierName);
+        rmsCarrier.setCarrierType((String) formMap.get("carrierType"));
+        BigDecimal carrierTransportType = DataChange.dataToBigDecimal(formMap.get("carrierTransportType"));
+        rmsCarrier.setCarrierTransportType(carrierTransportType.intValue() == 1 ? "危化品" : "其他"); //运输类别
+        //承运商公司注册日期
+        if(formMap.get("registerDate") != null) {
+            rmsCarrier.setRegisterDate(new Date((long) formMap.get("registerDate")));
         }
-        return i;
+        rmsCarrier.setCarrierAddress((String) formMap.get("carrierAddress")); //公司地址
+        rmsCarrier.setCarrierAbbreviation((String) formMap.get("carrierAbbreviation"));//别名
+        rmsCarrier.setRegisterNo((String) formMap.get("registerNo")); //注册编号
+        rmsCarrier.setCarrierBidAreaId(DataChange.dataToBigDecimal(formMap.get("carrierBidAreaId"))); //所属区域
+        rmsCarrier.setCarrierLegalRepresentative((String) formMap.get("carrierLegalRepresentative")); //
+        rmsCarrier.setRegisterCapital((String) formMap.get("registerCapital"));
+        rmsCarrier.setBusinessScope((String) formMap.get("businessScope"));
+        rmsCarrier.setAnnualDate((String) formMap.get("annualDate"));
+        rmsCarrier.setCompanyStatusDesc((String) formMap.get("companyStatusDesc"));
+        rmsCarrier.setCompanyTypeDesc((String) formMap.get("companyTypeDesc"));
+        rmsCarrier.setOperationPeriod((String) formMap.get("operationPeriod"));
+        rmsCarrier.setRegisterOrganization((String) formMap.get("registerOrganization"));
+        rmsCarrier.setRegisterAptitudes((String) formMap.get("registerAptitudes"));
+        rmsCarrier.setContactsName((String) formMap.get("contactsName"));
+        //添加SSO主键
+        String userId =(String) map.get("userId");
+        rmsCarrier.setCarrierSsoId(userId);
+        //添加三张图片路径
+        Map<String,Object> photosUrlMap =(Map<String, Object>) map.get("imageUrls");
+        rmsCarrier.setCarrierTransportCertificate((String) photosUrlMap.get("imageUrl1"));//运输证
+        rmsCarrier.setCarrierBusinessLicense((String) photosUrlMap.get("imageUrl2"));//经营许可证
+        rmsCarrier.setCarrierBusinessAblelicense((String) photosUrlMap.get("imageUrl3"));//营业执照
+        //常规字段
+        rmsCarrier.setInsertTime(new Date());
+        rmsCarrier.setInsertUsername("admin");
+        rmsCarrier.setDeleted(new BigDecimal(0));
+        return rmsCarrierMapper.insertSelective(rmsCarrier);
      }
 
         /**

+ 5 - 14
src/main/java/com/steerinfo/dil/util/DataChange.java

@@ -43,22 +43,13 @@ public class DataChange {
     public static BigDecimal
     dataToBigDecimal(Object data){
         if (data != null){
-            if(data instanceof String){
-                String data1 = (String) data;
-                if(data1.length() == 0)
-                    return new BigDecimal(0);
-                return new BigDecimal(data1);
-            }
-            if(data instanceof Integer){
-                Integer data2 = (Integer) data;
-                return new BigDecimal(data2);
-            }
-            if(data instanceof Double){
-                Double data3 = (Double) data;
-                return new BigDecimal(data3);
-            }
             if(data instanceof BigDecimal){
                 return (BigDecimal) data;
+            }else {
+                String s = String.valueOf(data);
+                if(!"".equals(s)){
+                    return new BigDecimal(s);
+                }
             }
         }
         return new BigDecimal(0);

+ 1 - 1
src/main/resources/bootstrap.yml

@@ -61,4 +61,4 @@ mybatis:
     call-setters-on-nulls: true
 
 server:
-  port: 8070
+  port: 8060

+ 420 - 389
src/main/resources/com/steerinfo/dil/mapper/RmsCarrierMapper.xml

@@ -40,6 +40,7 @@
     <result column="CARRIER_BUSINESS_ABLELICENSE" jdbcType="VARCHAR" property="carrierBusinessAblelicense" />
     <result column="CARRIER_BUSINESS_LICENSE" jdbcType="VARCHAR" property="carrierBusinessLicense" />
     <result column="CARRIER_TRANSPORT_CERTIFICATE" jdbcType="VARCHAR" property="carrierTransportCertificate" />
+    <result column="CARRIER_SSO_ID" jdbcType="VARCHAR" property="carrierSsoId" />
   </resultMap>
   <sql id="columns">
     CARRIER_ID, CARRIER_TRANSPORT_TYPE, CARRIER_NAME, CARRIER_ABBREVIATION, CARRIER_ADDRESS, 
@@ -49,7 +50,8 @@
     COMPANY_STATUS_DESC, COMPANY_TYPE_DESC, OPERATION_PERIOD, REGISTER_DATE, REGISTER_ORGANIZATION, 
     REGISTER_APTITUDES, CREDENTIAL_DESC, CONTACTS_NAME, INSERT_USERNAME, INSERT_TIME, 
     UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK, DELETED, CARRIER_TYPE, EAS_CARRIER_ID, 
-    CARRIER_BUSINESS_ABLELICENSE, CARRIER_BUSINESS_LICENSE, CARRIER_TRANSPORT_CERTIFICATE
+    CARRIER_BUSINESS_ABLELICENSE, CARRIER_BUSINESS_LICENSE, CARRIER_TRANSPORT_CERTIFICATE, 
+    CARRIER_SSO_ID
   </sql>
   <sql id="columns_alias">
     t.CARRIER_ID, t.CARRIER_TRANSPORT_TYPE, t.CARRIER_NAME, t.CARRIER_ABBREVIATION, t.CARRIER_ADDRESS, 
@@ -60,7 +62,7 @@
     t.REGISTER_ORGANIZATION, t.REGISTER_APTITUDES, t.CREDENTIAL_DESC, t.CONTACTS_NAME, 
     t.INSERT_USERNAME, t.INSERT_TIME, t.UPDATE_USERNAME, t.UPDATE_TIME, t.INSERT_UPDATE_REMARK, 
     t.DELETED, t.CARRIER_TYPE, t.EAS_CARRIER_ID, t.CARRIER_BUSINESS_ABLELICENSE, t.CARRIER_BUSINESS_LICENSE, 
-    t.CARRIER_TRANSPORT_CERTIFICATE
+    t.CARRIER_TRANSPORT_CERTIFICATE, t.CARRIER_SSO_ID
   </sql>
   <sql id="select">
     SELECT <include refid="columns" /> FROM RMS_CARRIER
@@ -69,7 +71,7 @@
     SELECT <include refid="columns_alias" /> FROM RMS_CARRIER t
   </sql>
   <sql id="where">
-    <where> 
+    <where>
       <if test="carrierId != null">
         and CARRIER_ID = #{carrierId}
       </if>
@@ -184,10 +186,13 @@
       <if test="carrierTransportCertificate != null and carrierTransportCertificate != ''">
         and CARRIER_TRANSPORT_CERTIFICATE = #{carrierTransportCertificate}
       </if>
+      <if test="carrierSsoId != null and carrierSsoId != ''">
+        and CARRIER_SSO_ID = #{carrierSsoId}
+      </if>
     </where>
   </sql>
   <sql id="whereLike">
-    <where> 
+    <where>
       <if test="carrierId != null">
         and CARRIER_ID = #{carrierId}
       </if>
@@ -302,158 +307,164 @@
       <if test="carrierTransportCertificate != null and carrierTransportCertificate != ''">
         and CARRIER_TRANSPORT_CERTIFICATE LIKE '%${carrierTransportCertificate}%'
       </if>
+      <if test="carrierSsoId != null and carrierSsoId != ''">
+        and CARRIER_SSO_ID LIKE '%${carrierSsoId}%'
+      </if>
     </where>
   </sql>
-  <delete id="deleteByPrimaryKey" parameterType="java.math.BigDecimal">
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Short">
     delete from RMS_CARRIER
     where CARRIER_ID = #{carrierId,jdbcType=DECIMAL}
   </delete>
   <delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
     delete from RMS_CARRIER
-    where 1!=1 
-      <if test="carrierTransportType != null and carrierTransportType != ''">
-        or CARRIER_TRANSPORT_TYPE = #{carrierTransportType}
-      </if>
-      <if test="carrierName != null and carrierName != ''">
-        or CARRIER_NAME = #{carrierName}
-      </if>
-      <if test="carrierAbbreviation != null and carrierAbbreviation != ''">
-        or CARRIER_ABBREVIATION = #{carrierAbbreviation}
-      </if>
-      <if test="carrierAddress != null and carrierAddress != ''">
-        or CARRIER_ADDRESS = #{carrierAddress}
-      </if>
-      <if test="carrierBidAreaId != null">
-        or CARRIER_BID_AREA_ID = #{carrierBidAreaId}
-      </if>
-      <if test="carrierBidTime != null">
-        or TO_CHAR(CARRIER_BID_TIME,'yyyy-MM-dd') = '#{carrierBidTime}'
-      </if>
-      <if test="carrierLegalRepresentative != null and carrierLegalRepresentative != ''">
-        or CARRIER_LEGAL_REPRESENTATIVE = #{carrierLegalRepresentative}
-      </if>
-      <if test="registerNo != null and registerNo != ''">
-        or REGISTER_NO = #{registerNo}
-      </if>
-      <if test="carrierAgent != null and carrierAgent != ''">
-        or CARRIER_AGENT = #{carrierAgent}
-      </if>
-      <if test="carrierContactNumber != null and carrierContactNumber != ''">
-        or CARRIER_CONTACT_NUMBER = #{carrierContactNumber}
-      </if>
-      <if test="carrierFax != null and carrierFax != ''">
-        or CARRIER_FAX = #{carrierFax}
-      </if>
-      <if test="carrierAccount != null and carrierAccount != ''">
-        or CARRIER_ACCOUNT = #{carrierAccount}
-      </if>
-      <if test="carrierAccountBlank != null and carrierAccountBlank != ''">
-        or CARRIER_ACCOUNT_BLANK = #{carrierAccountBlank}
-      </if>
-      <if test="carrierDutyParagraph != null and carrierDutyParagraph != ''">
-        or CARRIER_DUTY_PARAGRAPH = #{carrierDutyParagraph}
-      </if>
-      <if test="carrierPostalCode != null and carrierPostalCode != ''">
-        or CARRIER_POSTAL_CODE = #{carrierPostalCode}
-      </if>
-      <if test="registerCapital != null and registerCapital != ''">
-        or REGISTER_CAPITAL = #{registerCapital}
-      </if>
-      <if test="businessScope != null and businessScope != ''">
-        or BUSINESS_SCOPE = #{businessScope}
-      </if>
-      <if test="annualDate != null and annualDate != ''">
-        or ANNUAL_DATE = #{annualDate}
-      </if>
-      <if test="companyStatusDesc != null and companyStatusDesc != ''">
-        or COMPANY_STATUS_DESC = #{companyStatusDesc}
-      </if>
-      <if test="companyTypeDesc != null and companyTypeDesc != ''">
-        or COMPANY_TYPE_DESC = #{companyTypeDesc}
-      </if>
-      <if test="operationPeriod != null and operationPeriod != ''">
-        or OPERATION_PERIOD = #{operationPeriod}
-      </if>
-      <if test="registerDate != null">
-        or TO_CHAR(REGISTER_DATE,'yyyy-MM-dd') = '#{registerDate}'
-      </if>
-      <if test="registerOrganization != null and registerOrganization != ''">
-        or REGISTER_ORGANIZATION = #{registerOrganization}
-      </if>
-      <if test="registerAptitudes != null and registerAptitudes != ''">
-        or REGISTER_APTITUDES = #{registerAptitudes}
-      </if>
-      <if test="credentialDesc != null and credentialDesc != ''">
-        or CREDENTIAL_DESC = #{credentialDesc}
-      </if>
-      <if test="contactsName != null and contactsName != ''">
-        or CONTACTS_NAME = #{contactsName}
-      </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="deleted != null">
-        or DELETED = #{deleted}
-      </if>
-      <if test="carrierType != null and carrierType != ''">
-        or CARRIER_TYPE = #{carrierType}
-      </if>
-      <if test="easCarrierId != null and easCarrierId != ''">
-        or EAS_CARRIER_ID = #{easCarrierId}
-      </if>
-      <if test="carrierBusinessAblelicense != null and carrierBusinessAblelicense != ''">
-        or CARRIER_BUSINESS_ABLELICENSE = #{carrierBusinessAblelicense}
-      </if>
-      <if test="carrierBusinessLicense != null and carrierBusinessLicense != ''">
-        or CARRIER_BUSINESS_LICENSE = #{carrierBusinessLicense}
-      </if>
-      <if test="carrierTransportCertificate != null and carrierTransportCertificate != ''">
-        or CARRIER_TRANSPORT_CERTIFICATE = #{carrierTransportCertificate}
-      </if>
+    where 1!=1
+    <if test="carrierTransportType != null and carrierTransportType != ''">
+      or CARRIER_TRANSPORT_TYPE = #{carrierTransportType}
+    </if>
+    <if test="carrierName != null and carrierName != ''">
+      or CARRIER_NAME = #{carrierName}
+    </if>
+    <if test="carrierAbbreviation != null and carrierAbbreviation != ''">
+      or CARRIER_ABBREVIATION = #{carrierAbbreviation}
+    </if>
+    <if test="carrierAddress != null and carrierAddress != ''">
+      or CARRIER_ADDRESS = #{carrierAddress}
+    </if>
+    <if test="carrierBidAreaId != null">
+      or CARRIER_BID_AREA_ID = #{carrierBidAreaId}
+    </if>
+    <if test="carrierBidTime != null">
+      or TO_CHAR(CARRIER_BID_TIME,'yyyy-MM-dd') = '#{carrierBidTime}'
+    </if>
+    <if test="carrierLegalRepresentative != null and carrierLegalRepresentative != ''">
+      or CARRIER_LEGAL_REPRESENTATIVE = #{carrierLegalRepresentative}
+    </if>
+    <if test="registerNo != null and registerNo != ''">
+      or REGISTER_NO = #{registerNo}
+    </if>
+    <if test="carrierAgent != null and carrierAgent != ''">
+      or CARRIER_AGENT = #{carrierAgent}
+    </if>
+    <if test="carrierContactNumber != null and carrierContactNumber != ''">
+      or CARRIER_CONTACT_NUMBER = #{carrierContactNumber}
+    </if>
+    <if test="carrierFax != null and carrierFax != ''">
+      or CARRIER_FAX = #{carrierFax}
+    </if>
+    <if test="carrierAccount != null and carrierAccount != ''">
+      or CARRIER_ACCOUNT = #{carrierAccount}
+    </if>
+    <if test="carrierAccountBlank != null and carrierAccountBlank != ''">
+      or CARRIER_ACCOUNT_BLANK = #{carrierAccountBlank}
+    </if>
+    <if test="carrierDutyParagraph != null and carrierDutyParagraph != ''">
+      or CARRIER_DUTY_PARAGRAPH = #{carrierDutyParagraph}
+    </if>
+    <if test="carrierPostalCode != null and carrierPostalCode != ''">
+      or CARRIER_POSTAL_CODE = #{carrierPostalCode}
+    </if>
+    <if test="registerCapital != null and registerCapital != ''">
+      or REGISTER_CAPITAL = #{registerCapital}
+    </if>
+    <if test="businessScope != null and businessScope != ''">
+      or BUSINESS_SCOPE = #{businessScope}
+    </if>
+    <if test="annualDate != null and annualDate != ''">
+      or ANNUAL_DATE = #{annualDate}
+    </if>
+    <if test="companyStatusDesc != null and companyStatusDesc != ''">
+      or COMPANY_STATUS_DESC = #{companyStatusDesc}
+    </if>
+    <if test="companyTypeDesc != null and companyTypeDesc != ''">
+      or COMPANY_TYPE_DESC = #{companyTypeDesc}
+    </if>
+    <if test="operationPeriod != null and operationPeriod != ''">
+      or OPERATION_PERIOD = #{operationPeriod}
+    </if>
+    <if test="registerDate != null">
+      or TO_CHAR(REGISTER_DATE,'yyyy-MM-dd') = '#{registerDate}'
+    </if>
+    <if test="registerOrganization != null and registerOrganization != ''">
+      or REGISTER_ORGANIZATION = #{registerOrganization}
+    </if>
+    <if test="registerAptitudes != null and registerAptitudes != ''">
+      or REGISTER_APTITUDES = #{registerAptitudes}
+    </if>
+    <if test="credentialDesc != null and credentialDesc != ''">
+      or CREDENTIAL_DESC = #{credentialDesc}
+    </if>
+    <if test="contactsName != null and contactsName != ''">
+      or CONTACTS_NAME = #{contactsName}
+    </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="deleted != null">
+      or DELETED = #{deleted}
+    </if>
+    <if test="carrierType != null and carrierType != ''">
+      or CARRIER_TYPE = #{carrierType}
+    </if>
+    <if test="easCarrierId != null and easCarrierId != ''">
+      or EAS_CARRIER_ID = #{easCarrierId}
+    </if>
+    <if test="carrierBusinessAblelicense != null and carrierBusinessAblelicense != ''">
+      or CARRIER_BUSINESS_ABLELICENSE = #{carrierBusinessAblelicense}
+    </if>
+    <if test="carrierBusinessLicense != null and carrierBusinessLicense != ''">
+      or CARRIER_BUSINESS_LICENSE = #{carrierBusinessLicense}
+    </if>
+    <if test="carrierTransportCertificate != null and carrierTransportCertificate != ''">
+      or CARRIER_TRANSPORT_CERTIFICATE = #{carrierTransportCertificate}
+    </if>
+    <if test="carrierSsoId != null and carrierSsoId != ''">
+      or CARRIER_SSO_ID = #{carrierSsoId}
+    </if>
   </delete>
   <insert id="insert" parameterType="com.steerinfo.dil.model.RmsCarrier">
-    insert into RMS_CARRIER (CARRIER_ID, CARRIER_TRANSPORT_TYPE, 
-      CARRIER_NAME, CARRIER_ABBREVIATION, CARRIER_ADDRESS, 
-      CARRIER_BID_AREA_ID, CARRIER_BID_TIME, CARRIER_LEGAL_REPRESENTATIVE, 
-      REGISTER_NO, CARRIER_AGENT, CARRIER_CONTACT_NUMBER, 
-      CARRIER_FAX, CARRIER_ACCOUNT, CARRIER_ACCOUNT_BLANK, 
-      CARRIER_DUTY_PARAGRAPH, CARRIER_POSTAL_CODE, 
-      REGISTER_CAPITAL, BUSINESS_SCOPE, ANNUAL_DATE, 
-      COMPANY_STATUS_DESC, COMPANY_TYPE_DESC, OPERATION_PERIOD, 
-      REGISTER_DATE, REGISTER_ORGANIZATION, REGISTER_APTITUDES, 
-      CREDENTIAL_DESC, CONTACTS_NAME, INSERT_USERNAME, 
-      INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME, 
-      INSERT_UPDATE_REMARK, DELETED, CARRIER_TYPE, 
-      EAS_CARRIER_ID, CARRIER_BUSINESS_ABLELICENSE, 
-      CARRIER_BUSINESS_LICENSE, CARRIER_TRANSPORT_CERTIFICATE
-      )
-    values (#{carrierId,jdbcType=DECIMAL}, #{carrierTransportType,jdbcType=VARCHAR}, 
-      #{carrierName,jdbcType=VARCHAR}, #{carrierAbbreviation,jdbcType=VARCHAR}, #{carrierAddress,jdbcType=VARCHAR}, 
-      #{carrierBidAreaId,jdbcType=DECIMAL}, #{carrierBidTime,jdbcType=TIMESTAMP}, #{carrierLegalRepresentative,jdbcType=VARCHAR}, 
-      #{registerNo,jdbcType=VARCHAR}, #{carrierAgent,jdbcType=VARCHAR}, #{carrierContactNumber,jdbcType=VARCHAR}, 
-      #{carrierFax,jdbcType=VARCHAR}, #{carrierAccount,jdbcType=VARCHAR}, #{carrierAccountBlank,jdbcType=VARCHAR}, 
-      #{carrierDutyParagraph,jdbcType=VARCHAR}, #{carrierPostalCode,jdbcType=VARCHAR}, 
-      #{registerCapital,jdbcType=VARCHAR}, #{businessScope,jdbcType=VARCHAR}, #{annualDate,jdbcType=VARCHAR}, 
-      #{companyStatusDesc,jdbcType=VARCHAR}, #{companyTypeDesc,jdbcType=VARCHAR}, #{operationPeriod,jdbcType=VARCHAR}, 
-      #{registerDate,jdbcType=TIMESTAMP}, #{registerOrganization,jdbcType=VARCHAR}, #{registerAptitudes,jdbcType=VARCHAR}, 
-      #{credentialDesc,jdbcType=VARCHAR}, #{contactsName,jdbcType=VARCHAR}, #{insertUsername,jdbcType=VARCHAR}, 
-      #{insertTime,jdbcType=TIMESTAMP}, #{updateUsername,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, 
-      #{insertUpdateRemark,jdbcType=VARCHAR}, #{deleted,jdbcType=DECIMAL}, #{carrierType,jdbcType=VARCHAR}, 
-      #{easCarrierId,jdbcType=VARCHAR}, #{carrierBusinessAblelicense,jdbcType=VARCHAR}, 
-      #{carrierBusinessLicense,jdbcType=VARCHAR}, #{carrierTransportCertificate,jdbcType=VARCHAR}
-      )
+    insert into RMS_CARRIER (CARRIER_ID, CARRIER_TRANSPORT_TYPE,
+                             CARRIER_NAME, CARRIER_ABBREVIATION, CARRIER_ADDRESS,
+                             CARRIER_BID_AREA_ID, CARRIER_BID_TIME, CARRIER_LEGAL_REPRESENTATIVE,
+                             REGISTER_NO, CARRIER_AGENT, CARRIER_CONTACT_NUMBER,
+                             CARRIER_FAX, CARRIER_ACCOUNT, CARRIER_ACCOUNT_BLANK,
+                             CARRIER_DUTY_PARAGRAPH, CARRIER_POSTAL_CODE,
+                             REGISTER_CAPITAL, BUSINESS_SCOPE, ANNUAL_DATE,
+                             COMPANY_STATUS_DESC, COMPANY_TYPE_DESC, OPERATION_PERIOD,
+                             REGISTER_DATE, REGISTER_ORGANIZATION, REGISTER_APTITUDES,
+                             CREDENTIAL_DESC, CONTACTS_NAME, INSERT_USERNAME,
+                             INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME,
+                             INSERT_UPDATE_REMARK, DELETED, CARRIER_TYPE,
+                             EAS_CARRIER_ID, CARRIER_BUSINESS_ABLELICENSE,
+                             CARRIER_BUSINESS_LICENSE, CARRIER_TRANSPORT_CERTIFICATE,
+                             CARRIER_SSO_ID)
+    values (#{carrierId,jdbcType=DECIMAL}, #{carrierTransportType,jdbcType=VARCHAR},
+            #{carrierName,jdbcType=VARCHAR}, #{carrierAbbreviation,jdbcType=VARCHAR}, #{carrierAddress,jdbcType=VARCHAR},
+            #{carrierBidAreaId,jdbcType=DECIMAL}, #{carrierBidTime,jdbcType=TIMESTAMP}, #{carrierLegalRepresentative,jdbcType=VARCHAR},
+            #{registerNo,jdbcType=VARCHAR}, #{carrierAgent,jdbcType=VARCHAR}, #{carrierContactNumber,jdbcType=VARCHAR},
+            #{carrierFax,jdbcType=VARCHAR}, #{carrierAccount,jdbcType=VARCHAR}, #{carrierAccountBlank,jdbcType=VARCHAR},
+            #{carrierDutyParagraph,jdbcType=VARCHAR}, #{carrierPostalCode,jdbcType=VARCHAR},
+            #{registerCapital,jdbcType=VARCHAR}, #{businessScope,jdbcType=VARCHAR}, #{annualDate,jdbcType=VARCHAR},
+            #{companyStatusDesc,jdbcType=VARCHAR}, #{companyTypeDesc,jdbcType=VARCHAR}, #{operationPeriod,jdbcType=VARCHAR},
+            #{registerDate,jdbcType=TIMESTAMP}, #{registerOrganization,jdbcType=VARCHAR}, #{registerAptitudes,jdbcType=VARCHAR},
+            #{credentialDesc,jdbcType=VARCHAR}, #{contactsName,jdbcType=VARCHAR}, #{insertUsername,jdbcType=VARCHAR},
+            #{insertTime,jdbcType=TIMESTAMP}, #{updateUsername,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
+            #{insertUpdateRemark,jdbcType=VARCHAR}, #{deleted,jdbcType=DECIMAL}, #{carrierType,jdbcType=VARCHAR},
+            #{easCarrierId,jdbcType=VARCHAR}, #{carrierBusinessAblelicense,jdbcType=VARCHAR},
+            #{carrierBusinessLicense,jdbcType=VARCHAR}, #{carrierTransportCertificate,jdbcType=VARCHAR},
+            #{carrierSsoId,jdbcType=VARCHAR})
   </insert>
   <insert id="insertSelective" parameterType="com.steerinfo.dil.model.RmsCarrier">
     insert into RMS_CARRIER
@@ -572,6 +583,9 @@
       <if test="carrierTransportCertificate != null">
         CARRIER_TRANSPORT_CERTIFICATE,
       </if>
+      <if test="carrierSsoId != null">
+        CARRIER_SSO_ID,
+      </if>
     </trim>
     <trim prefix="values (" suffix=")" suffixOverrides=",">
       <if test="carrierId != null">
@@ -688,47 +702,51 @@
       <if test="carrierTransportCertificate != null">
         #{carrierTransportCertificate,jdbcType=VARCHAR},
       </if>
+      <if test="carrierSsoId != null">
+        #{carrierSsoId,jdbcType=VARCHAR},
+      </if>
     </trim>
   </insert>
   <update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.RmsCarrier">
     update RMS_CARRIER
     set CARRIER_TRANSPORT_TYPE = #{carrierTransportType,jdbcType=VARCHAR},
-      CARRIER_NAME = #{carrierName,jdbcType=VARCHAR},
-      CARRIER_ABBREVIATION = #{carrierAbbreviation,jdbcType=VARCHAR},
-      CARRIER_ADDRESS = #{carrierAddress,jdbcType=VARCHAR},
-      CARRIER_BID_AREA_ID = #{carrierBidAreaId,jdbcType=DECIMAL},
-      CARRIER_BID_TIME = #{carrierBidTime,jdbcType=TIMESTAMP},
-      CARRIER_LEGAL_REPRESENTATIVE = #{carrierLegalRepresentative,jdbcType=VARCHAR},
-      REGISTER_NO = #{registerNo,jdbcType=VARCHAR},
-      CARRIER_AGENT = #{carrierAgent,jdbcType=VARCHAR},
-      CARRIER_CONTACT_NUMBER = #{carrierContactNumber,jdbcType=VARCHAR},
-      CARRIER_FAX = #{carrierFax,jdbcType=VARCHAR},
-      CARRIER_ACCOUNT = #{carrierAccount,jdbcType=VARCHAR},
-      CARRIER_ACCOUNT_BLANK = #{carrierAccountBlank,jdbcType=VARCHAR},
-      CARRIER_DUTY_PARAGRAPH = #{carrierDutyParagraph,jdbcType=VARCHAR},
-      CARRIER_POSTAL_CODE = #{carrierPostalCode,jdbcType=VARCHAR},
-      REGISTER_CAPITAL = #{registerCapital,jdbcType=VARCHAR},
-      BUSINESS_SCOPE = #{businessScope,jdbcType=VARCHAR},
-      ANNUAL_DATE = #{annualDate,jdbcType=VARCHAR},
-      COMPANY_STATUS_DESC = #{companyStatusDesc,jdbcType=VARCHAR},
-      COMPANY_TYPE_DESC = #{companyTypeDesc,jdbcType=VARCHAR},
-      OPERATION_PERIOD = #{operationPeriod,jdbcType=VARCHAR},
-      REGISTER_DATE = #{registerDate,jdbcType=TIMESTAMP},
-      REGISTER_ORGANIZATION = #{registerOrganization,jdbcType=VARCHAR},
-      REGISTER_APTITUDES = #{registerAptitudes,jdbcType=VARCHAR},
-      CREDENTIAL_DESC = #{credentialDesc,jdbcType=VARCHAR},
-      CONTACTS_NAME = #{contactsName,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},
-      DELETED = #{deleted,jdbcType=DECIMAL},
-      CARRIER_TYPE = #{carrierType,jdbcType=VARCHAR},
-      EAS_CARRIER_ID = #{easCarrierId,jdbcType=VARCHAR},
-      CARRIER_BUSINESS_ABLELICENSE = #{carrierBusinessAblelicense,jdbcType=VARCHAR},
-      CARRIER_BUSINESS_LICENSE = #{carrierBusinessLicense,jdbcType=VARCHAR},
-      CARRIER_TRANSPORT_CERTIFICATE = #{carrierTransportCertificate,jdbcType=VARCHAR}
+        CARRIER_NAME = #{carrierName,jdbcType=VARCHAR},
+        CARRIER_ABBREVIATION = #{carrierAbbreviation,jdbcType=VARCHAR},
+        CARRIER_ADDRESS = #{carrierAddress,jdbcType=VARCHAR},
+        CARRIER_BID_AREA_ID = #{carrierBidAreaId,jdbcType=DECIMAL},
+        CARRIER_BID_TIME = #{carrierBidTime,jdbcType=TIMESTAMP},
+        CARRIER_LEGAL_REPRESENTATIVE = #{carrierLegalRepresentative,jdbcType=VARCHAR},
+        REGISTER_NO = #{registerNo,jdbcType=VARCHAR},
+        CARRIER_AGENT = #{carrierAgent,jdbcType=VARCHAR},
+        CARRIER_CONTACT_NUMBER = #{carrierContactNumber,jdbcType=VARCHAR},
+        CARRIER_FAX = #{carrierFax,jdbcType=VARCHAR},
+        CARRIER_ACCOUNT = #{carrierAccount,jdbcType=VARCHAR},
+        CARRIER_ACCOUNT_BLANK = #{carrierAccountBlank,jdbcType=VARCHAR},
+        CARRIER_DUTY_PARAGRAPH = #{carrierDutyParagraph,jdbcType=VARCHAR},
+        CARRIER_POSTAL_CODE = #{carrierPostalCode,jdbcType=VARCHAR},
+        REGISTER_CAPITAL = #{registerCapital,jdbcType=VARCHAR},
+        BUSINESS_SCOPE = #{businessScope,jdbcType=VARCHAR},
+        ANNUAL_DATE = #{annualDate,jdbcType=VARCHAR},
+        COMPANY_STATUS_DESC = #{companyStatusDesc,jdbcType=VARCHAR},
+        COMPANY_TYPE_DESC = #{companyTypeDesc,jdbcType=VARCHAR},
+        OPERATION_PERIOD = #{operationPeriod,jdbcType=VARCHAR},
+        REGISTER_DATE = #{registerDate,jdbcType=TIMESTAMP},
+        REGISTER_ORGANIZATION = #{registerOrganization,jdbcType=VARCHAR},
+        REGISTER_APTITUDES = #{registerAptitudes,jdbcType=VARCHAR},
+        CREDENTIAL_DESC = #{credentialDesc,jdbcType=VARCHAR},
+        CONTACTS_NAME = #{contactsName,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},
+        DELETED = #{deleted,jdbcType=DECIMAL},
+        CARRIER_TYPE = #{carrierType,jdbcType=VARCHAR},
+        EAS_CARRIER_ID = #{easCarrierId,jdbcType=VARCHAR},
+        CARRIER_BUSINESS_ABLELICENSE = #{carrierBusinessAblelicense,jdbcType=VARCHAR},
+        CARRIER_BUSINESS_LICENSE = #{carrierBusinessLicense,jdbcType=VARCHAR},
+        CARRIER_TRANSPORT_CERTIFICATE = #{carrierTransportCertificate,jdbcType=VARCHAR},
+        CARRIER_SSO_ID = #{carrierSsoId,jdbcType=VARCHAR}
     where CARRIER_ID = #{carrierId,jdbcType=DECIMAL}
   </update>
   <update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.RmsCarrier">
@@ -845,10 +863,13 @@
       <if test="carrierTransportCertificate != null">
         CARRIER_TRANSPORT_CERTIFICATE = #{carrierTransportCertificate,jdbcType=VARCHAR},
       </if>
+      <if test="carrierSsoId != null">
+        CARRIER_SSO_ID = #{carrierSsoId,jdbcType=VARCHAR},
+      </if>
     </set>
     where CARRIER_ID = #{carrierId,jdbcType=DECIMAL}
   </update>
-  <select id="selectByPrimaryKey" parameterType="java.math.BigDecimal" resultMap="BaseResultMap">
+  <select id="selectByPrimaryKey" parameterType="java.lang.Short" resultMap="BaseResultMap">
     <include refid="select" />
     where CARRIER_ID = #{carrierId,jdbcType=DECIMAL}
   </select>
@@ -861,212 +882,218 @@
     <include refid="whereLike" />
   </select>
   <insert id="batchInsert" parameterType="java.util.List">
-    insert into RMS_CARRIER 
-      (CARRIER_ID, 
-      CARRIER_TRANSPORT_TYPE, CARRIER_NAME, 
-      CARRIER_ABBREVIATION, CARRIER_ADDRESS, 
-      CARRIER_BID_AREA_ID, CARRIER_BID_TIME, 
-      CARRIER_LEGAL_REPRESENTATIVE, REGISTER_NO, 
-      CARRIER_AGENT, CARRIER_CONTACT_NUMBER, 
-      CARRIER_FAX, CARRIER_ACCOUNT, CARRIER_ACCOUNT_BLANK, 
-      CARRIER_DUTY_PARAGRAPH, CARRIER_POSTAL_CODE, 
-      REGISTER_CAPITAL, BUSINESS_SCOPE, 
-      ANNUAL_DATE, COMPANY_STATUS_DESC, 
-      COMPANY_TYPE_DESC, OPERATION_PERIOD, 
-      REGISTER_DATE, REGISTER_ORGANIZATION, 
-      REGISTER_APTITUDES, CREDENTIAL_DESC, 
-      CONTACTS_NAME, INSERT_USERNAME, 
-      INSERT_TIME, UPDATE_USERNAME, 
-      UPDATE_TIME, INSERT_UPDATE_REMARK, 
-      DELETED, CARRIER_TYPE, EAS_CARRIER_ID, 
-      CARRIER_BUSINESS_ABLELICENSE, CARRIER_BUSINESS_LICENSE, 
-      CARRIER_TRANSPORT_CERTIFICATE)
-    ( <foreach collection="list" item="item" separator="union all"> 
-   select  
-      #{item.carrierId,jdbcType=DECIMAL}, 
-      #{item.carrierTransportType,jdbcType=VARCHAR}, #{item.carrierName,jdbcType=VARCHAR}, 
-      #{item.carrierAbbreviation,jdbcType=VARCHAR}, #{item.carrierAddress,jdbcType=VARCHAR}, 
-      #{item.carrierBidAreaId,jdbcType=DECIMAL}, #{item.carrierBidTime,jdbcType=TIMESTAMP}, 
-      #{item.carrierLegalRepresentative,jdbcType=VARCHAR}, #{item.registerNo,jdbcType=VARCHAR}, 
-      #{item.carrierAgent,jdbcType=VARCHAR}, #{item.carrierContactNumber,jdbcType=VARCHAR}, 
-      #{item.carrierFax,jdbcType=VARCHAR}, #{item.carrierAccount,jdbcType=VARCHAR}, #{item.carrierAccountBlank,jdbcType=VARCHAR}, 
-      #{item.carrierDutyParagraph,jdbcType=VARCHAR}, #{item.carrierPostalCode,jdbcType=VARCHAR}, 
-      #{item.registerCapital,jdbcType=VARCHAR}, #{item.businessScope,jdbcType=VARCHAR}, 
-      #{item.annualDate,jdbcType=VARCHAR}, #{item.companyStatusDesc,jdbcType=VARCHAR}, 
-      #{item.companyTypeDesc,jdbcType=VARCHAR}, #{item.operationPeriod,jdbcType=VARCHAR}, 
-      #{item.registerDate,jdbcType=TIMESTAMP}, #{item.registerOrganization,jdbcType=VARCHAR}, 
-      #{item.registerAptitudes,jdbcType=VARCHAR}, #{item.credentialDesc,jdbcType=VARCHAR}, 
-      #{item.contactsName,jdbcType=VARCHAR}, #{item.insertUsername,jdbcType=VARCHAR}, 
-      #{item.insertTime,jdbcType=TIMESTAMP}, #{item.updateUsername,jdbcType=VARCHAR}, 
-      #{item.updateTime,jdbcType=TIMESTAMP}, #{item.insertUpdateRemark,jdbcType=VARCHAR}, 
-      #{item.deleted,jdbcType=DECIMAL}, #{item.carrierType,jdbcType=VARCHAR}, #{item.easCarrierId,jdbcType=VARCHAR}, 
-      #{item.carrierBusinessAblelicense,jdbcType=VARCHAR}, #{item.carrierBusinessLicense,jdbcType=VARCHAR}, 
-      #{item.carrierTransportCertificate,jdbcType=VARCHAR} from dual  
-   </foreach> )
+    insert into RMS_CARRIER
+    (CARRIER_ID,
+    CARRIER_TRANSPORT_TYPE, CARRIER_NAME,
+    CARRIER_ABBREVIATION, CARRIER_ADDRESS,
+    CARRIER_BID_AREA_ID, CARRIER_BID_TIME,
+    CARRIER_LEGAL_REPRESENTATIVE, REGISTER_NO,
+    CARRIER_AGENT, CARRIER_CONTACT_NUMBER,
+    CARRIER_FAX, CARRIER_ACCOUNT, CARRIER_ACCOUNT_BLANK,
+    CARRIER_DUTY_PARAGRAPH, CARRIER_POSTAL_CODE,
+    REGISTER_CAPITAL, BUSINESS_SCOPE,
+    ANNUAL_DATE, COMPANY_STATUS_DESC,
+    COMPANY_TYPE_DESC, OPERATION_PERIOD,
+    REGISTER_DATE, REGISTER_ORGANIZATION,
+    REGISTER_APTITUDES, CREDENTIAL_DESC,
+    CONTACTS_NAME, INSERT_USERNAME,
+    INSERT_TIME, UPDATE_USERNAME,
+    UPDATE_TIME, INSERT_UPDATE_REMARK,
+    DELETED, CARRIER_TYPE, EAS_CARRIER_ID,
+    CARRIER_BUSINESS_ABLELICENSE, CARRIER_BUSINESS_LICENSE,
+    CARRIER_TRANSPORT_CERTIFICATE, CARRIER_SSO_ID
+    )
+    ( <foreach collection="list" item="item" separator="union all">
+    select
+    #{item.carrierId,jdbcType=DECIMAL},
+    #{item.carrierTransportType,jdbcType=VARCHAR}, #{item.carrierName,jdbcType=VARCHAR},
+    #{item.carrierAbbreviation,jdbcType=VARCHAR}, #{item.carrierAddress,jdbcType=VARCHAR},
+    #{item.carrierBidAreaId,jdbcType=DECIMAL}, #{item.carrierBidTime,jdbcType=TIMESTAMP},
+    #{item.carrierLegalRepresentative,jdbcType=VARCHAR}, #{item.registerNo,jdbcType=VARCHAR},
+    #{item.carrierAgent,jdbcType=VARCHAR}, #{item.carrierContactNumber,jdbcType=VARCHAR},
+    #{item.carrierFax,jdbcType=VARCHAR}, #{item.carrierAccount,jdbcType=VARCHAR}, #{item.carrierAccountBlank,jdbcType=VARCHAR},
+    #{item.carrierDutyParagraph,jdbcType=VARCHAR}, #{item.carrierPostalCode,jdbcType=VARCHAR},
+    #{item.registerCapital,jdbcType=VARCHAR}, #{item.businessScope,jdbcType=VARCHAR},
+    #{item.annualDate,jdbcType=VARCHAR}, #{item.companyStatusDesc,jdbcType=VARCHAR},
+    #{item.companyTypeDesc,jdbcType=VARCHAR}, #{item.operationPeriod,jdbcType=VARCHAR},
+    #{item.registerDate,jdbcType=TIMESTAMP}, #{item.registerOrganization,jdbcType=VARCHAR},
+    #{item.registerAptitudes,jdbcType=VARCHAR}, #{item.credentialDesc,jdbcType=VARCHAR},
+    #{item.contactsName,jdbcType=VARCHAR}, #{item.insertUsername,jdbcType=VARCHAR},
+    #{item.insertTime,jdbcType=TIMESTAMP}, #{item.updateUsername,jdbcType=VARCHAR},
+    #{item.updateTime,jdbcType=TIMESTAMP}, #{item.insertUpdateRemark,jdbcType=VARCHAR},
+    #{item.deleted,jdbcType=DECIMAL}, #{item.carrierType,jdbcType=VARCHAR}, #{item.easCarrierId,jdbcType=VARCHAR},
+    #{item.carrierBusinessAblelicense,jdbcType=VARCHAR}, #{item.carrierBusinessLicense,jdbcType=VARCHAR},
+    #{item.carrierTransportCertificate,jdbcType=VARCHAR}, #{item.carrierSsoId,jdbcType=VARCHAR}
+    from dual
+  </foreach> )
   </insert>
   <update id="batchUpdate" parameterType="java.util.List">
-     update RMS_CARRIER
-     set
-       CARRIER_ID=
-       <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
-          when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierId,jdbcType=DECIMAL}
-       </foreach>
-       ,CARRIER_TRANSPORT_TYPE=
-       <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
-          when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierTransportType,jdbcType=VARCHAR}
-       </foreach>
-       ,CARRIER_NAME=
-       <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
-          when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierName,jdbcType=VARCHAR}
-       </foreach>
-       ,CARRIER_ABBREVIATION=
-       <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
-          when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierAbbreviation,jdbcType=VARCHAR}
-       </foreach>
-       ,CARRIER_ADDRESS=
-       <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
-          when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierAddress,jdbcType=VARCHAR}
-       </foreach>
-       ,CARRIER_BID_AREA_ID=
-       <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
-          when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierBidAreaId,jdbcType=DECIMAL}
-       </foreach>
-       ,CARRIER_BID_TIME=
-       <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
-          when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierBidTime,jdbcType=TIMESTAMP}
-       </foreach>
-       ,CARRIER_LEGAL_REPRESENTATIVE=
-       <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
-          when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierLegalRepresentative,jdbcType=VARCHAR}
-       </foreach>
-       ,REGISTER_NO=
-       <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
-          when #{item.carrierId,jdbcType=DECIMAL} then #{item.registerNo,jdbcType=VARCHAR}
-       </foreach>
-       ,CARRIER_AGENT=
-       <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
-          when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierAgent,jdbcType=VARCHAR}
-       </foreach>
-       ,CARRIER_CONTACT_NUMBER=
-       <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
-          when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierContactNumber,jdbcType=VARCHAR}
-       </foreach>
-       ,CARRIER_FAX=
-       <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
-          when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierFax,jdbcType=VARCHAR}
-       </foreach>
-       ,CARRIER_ACCOUNT=
-       <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
-          when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierAccount,jdbcType=VARCHAR}
-       </foreach>
-       ,CARRIER_ACCOUNT_BLANK=
-       <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
-          when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierAccountBlank,jdbcType=VARCHAR}
-       </foreach>
-       ,CARRIER_DUTY_PARAGRAPH=
-       <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
-          when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierDutyParagraph,jdbcType=VARCHAR}
-       </foreach>
-       ,CARRIER_POSTAL_CODE=
-       <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
-          when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierPostalCode,jdbcType=VARCHAR}
-       </foreach>
-       ,REGISTER_CAPITAL=
-       <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
-          when #{item.carrierId,jdbcType=DECIMAL} then #{item.registerCapital,jdbcType=VARCHAR}
-       </foreach>
-       ,BUSINESS_SCOPE=
-       <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
-          when #{item.carrierId,jdbcType=DECIMAL} then #{item.businessScope,jdbcType=VARCHAR}
-       </foreach>
-       ,ANNUAL_DATE=
-       <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
-          when #{item.carrierId,jdbcType=DECIMAL} then #{item.annualDate,jdbcType=VARCHAR}
-       </foreach>
-       ,COMPANY_STATUS_DESC=
-       <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
-          when #{item.carrierId,jdbcType=DECIMAL} then #{item.companyStatusDesc,jdbcType=VARCHAR}
-       </foreach>
-       ,COMPANY_TYPE_DESC=
-       <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
-          when #{item.carrierId,jdbcType=DECIMAL} then #{item.companyTypeDesc,jdbcType=VARCHAR}
-       </foreach>
-       ,OPERATION_PERIOD=
-       <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
-          when #{item.carrierId,jdbcType=DECIMAL} then #{item.operationPeriod,jdbcType=VARCHAR}
-       </foreach>
-       ,REGISTER_DATE=
-       <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
-          when #{item.carrierId,jdbcType=DECIMAL} then #{item.registerDate,jdbcType=TIMESTAMP}
-       </foreach>
-       ,REGISTER_ORGANIZATION=
-       <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
-          when #{item.carrierId,jdbcType=DECIMAL} then #{item.registerOrganization,jdbcType=VARCHAR}
-       </foreach>
-       ,REGISTER_APTITUDES=
-       <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
-          when #{item.carrierId,jdbcType=DECIMAL} then #{item.registerAptitudes,jdbcType=VARCHAR}
-       </foreach>
-       ,CREDENTIAL_DESC=
-       <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
-          when #{item.carrierId,jdbcType=DECIMAL} then #{item.credentialDesc,jdbcType=VARCHAR}
-       </foreach>
-       ,CONTACTS_NAME=
-       <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
-          when #{item.carrierId,jdbcType=DECIMAL} then #{item.contactsName,jdbcType=VARCHAR}
-       </foreach>
-       ,INSERT_USERNAME=
-       <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
-          when #{item.carrierId,jdbcType=DECIMAL} then #{item.insertUsername,jdbcType=VARCHAR}
-       </foreach>
-       ,INSERT_TIME=
-       <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
-          when #{item.carrierId,jdbcType=DECIMAL} then #{item.insertTime,jdbcType=TIMESTAMP}
-       </foreach>
-       ,UPDATE_USERNAME=
-       <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
-          when #{item.carrierId,jdbcType=DECIMAL} then #{item.updateUsername,jdbcType=VARCHAR}
-       </foreach>
-       ,UPDATE_TIME=
-       <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
-          when #{item.carrierId,jdbcType=DECIMAL} then #{item.updateTime,jdbcType=TIMESTAMP}
-       </foreach>
-       ,INSERT_UPDATE_REMARK=
-       <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
-          when #{item.carrierId,jdbcType=DECIMAL} then #{item.insertUpdateRemark,jdbcType=VARCHAR}
-       </foreach>
-       ,DELETED=
-       <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
-          when #{item.carrierId,jdbcType=DECIMAL} then #{item.deleted,jdbcType=DECIMAL}
-       </foreach>
-       ,CARRIER_TYPE=
-       <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
-          when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierType,jdbcType=VARCHAR}
-       </foreach>
-       ,EAS_CARRIER_ID=
-       <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
-          when #{item.carrierId,jdbcType=DECIMAL} then #{item.easCarrierId,jdbcType=VARCHAR}
-       </foreach>
-       ,CARRIER_BUSINESS_ABLELICENSE=
-       <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
-          when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierBusinessAblelicense,jdbcType=VARCHAR}
-       </foreach>
-       ,CARRIER_BUSINESS_LICENSE=
-       <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
-          when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierBusinessLicense,jdbcType=VARCHAR}
-       </foreach>
-       ,CARRIER_TRANSPORT_CERTIFICATE=
-       <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
-          when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierTransportCertificate,jdbcType=VARCHAR}
-       </foreach>
-     where CARRIER_ID in 
-     <foreach close=")" collection="list" index="index" item="item" open="(" separator=",">
-    #{item.carrierId,jdbcType=DECIMAL}
-     </foreach> 
+    update RMS_CARRIER
+    set
+    CARRIER_ID=
+    <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
+      when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierId,jdbcType=DECIMAL}
+    </foreach>
+    ,CARRIER_TRANSPORT_TYPE=
+    <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
+      when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierTransportType,jdbcType=VARCHAR}
+    </foreach>
+    ,CARRIER_NAME=
+    <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
+      when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierName,jdbcType=VARCHAR}
+    </foreach>
+    ,CARRIER_ABBREVIATION=
+    <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
+      when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierAbbreviation,jdbcType=VARCHAR}
+    </foreach>
+    ,CARRIER_ADDRESS=
+    <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
+      when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierAddress,jdbcType=VARCHAR}
+    </foreach>
+    ,CARRIER_BID_AREA_ID=
+    <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
+      when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierBidAreaId,jdbcType=DECIMAL}
+    </foreach>
+    ,CARRIER_BID_TIME=
+    <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
+      when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierBidTime,jdbcType=TIMESTAMP}
+    </foreach>
+    ,CARRIER_LEGAL_REPRESENTATIVE=
+    <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
+      when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierLegalRepresentative,jdbcType=VARCHAR}
+    </foreach>
+    ,REGISTER_NO=
+    <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
+      when #{item.carrierId,jdbcType=DECIMAL} then #{item.registerNo,jdbcType=VARCHAR}
+    </foreach>
+    ,CARRIER_AGENT=
+    <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
+      when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierAgent,jdbcType=VARCHAR}
+    </foreach>
+    ,CARRIER_CONTACT_NUMBER=
+    <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
+      when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierContactNumber,jdbcType=VARCHAR}
+    </foreach>
+    ,CARRIER_FAX=
+    <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
+      when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierFax,jdbcType=VARCHAR}
+    </foreach>
+    ,CARRIER_ACCOUNT=
+    <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
+      when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierAccount,jdbcType=VARCHAR}
+    </foreach>
+    ,CARRIER_ACCOUNT_BLANK=
+    <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
+      when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierAccountBlank,jdbcType=VARCHAR}
+    </foreach>
+    ,CARRIER_DUTY_PARAGRAPH=
+    <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
+      when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierDutyParagraph,jdbcType=VARCHAR}
+    </foreach>
+    ,CARRIER_POSTAL_CODE=
+    <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
+      when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierPostalCode,jdbcType=VARCHAR}
+    </foreach>
+    ,REGISTER_CAPITAL=
+    <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
+      when #{item.carrierId,jdbcType=DECIMAL} then #{item.registerCapital,jdbcType=VARCHAR}
+    </foreach>
+    ,BUSINESS_SCOPE=
+    <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
+      when #{item.carrierId,jdbcType=DECIMAL} then #{item.businessScope,jdbcType=VARCHAR}
+    </foreach>
+    ,ANNUAL_DATE=
+    <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
+      when #{item.carrierId,jdbcType=DECIMAL} then #{item.annualDate,jdbcType=VARCHAR}
+    </foreach>
+    ,COMPANY_STATUS_DESC=
+    <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
+      when #{item.carrierId,jdbcType=DECIMAL} then #{item.companyStatusDesc,jdbcType=VARCHAR}
+    </foreach>
+    ,COMPANY_TYPE_DESC=
+    <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
+      when #{item.carrierId,jdbcType=DECIMAL} then #{item.companyTypeDesc,jdbcType=VARCHAR}
+    </foreach>
+    ,OPERATION_PERIOD=
+    <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
+      when #{item.carrierId,jdbcType=DECIMAL} then #{item.operationPeriod,jdbcType=VARCHAR}
+    </foreach>
+    ,REGISTER_DATE=
+    <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
+      when #{item.carrierId,jdbcType=DECIMAL} then #{item.registerDate,jdbcType=TIMESTAMP}
+    </foreach>
+    ,REGISTER_ORGANIZATION=
+    <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
+      when #{item.carrierId,jdbcType=DECIMAL} then #{item.registerOrganization,jdbcType=VARCHAR}
+    </foreach>
+    ,REGISTER_APTITUDES=
+    <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
+      when #{item.carrierId,jdbcType=DECIMAL} then #{item.registerAptitudes,jdbcType=VARCHAR}
+    </foreach>
+    ,CREDENTIAL_DESC=
+    <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
+      when #{item.carrierId,jdbcType=DECIMAL} then #{item.credentialDesc,jdbcType=VARCHAR}
+    </foreach>
+    ,CONTACTS_NAME=
+    <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
+      when #{item.carrierId,jdbcType=DECIMAL} then #{item.contactsName,jdbcType=VARCHAR}
+    </foreach>
+    ,INSERT_USERNAME=
+    <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
+      when #{item.carrierId,jdbcType=DECIMAL} then #{item.insertUsername,jdbcType=VARCHAR}
+    </foreach>
+    ,INSERT_TIME=
+    <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
+      when #{item.carrierId,jdbcType=DECIMAL} then #{item.insertTime,jdbcType=TIMESTAMP}
+    </foreach>
+    ,UPDATE_USERNAME=
+    <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
+      when #{item.carrierId,jdbcType=DECIMAL} then #{item.updateUsername,jdbcType=VARCHAR}
+    </foreach>
+    ,UPDATE_TIME=
+    <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
+      when #{item.carrierId,jdbcType=DECIMAL} then #{item.updateTime,jdbcType=TIMESTAMP}
+    </foreach>
+    ,INSERT_UPDATE_REMARK=
+    <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
+      when #{item.carrierId,jdbcType=DECIMAL} then #{item.insertUpdateRemark,jdbcType=VARCHAR}
+    </foreach>
+    ,DELETED=
+    <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
+      when #{item.carrierId,jdbcType=DECIMAL} then #{item.deleted,jdbcType=DECIMAL}
+    </foreach>
+    ,CARRIER_TYPE=
+    <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
+      when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierType,jdbcType=VARCHAR}
+    </foreach>
+    ,EAS_CARRIER_ID=
+    <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
+      when #{item.carrierId,jdbcType=DECIMAL} then #{item.easCarrierId,jdbcType=VARCHAR}
+    </foreach>
+    ,CARRIER_BUSINESS_ABLELICENSE=
+    <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
+      when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierBusinessAblelicense,jdbcType=VARCHAR}
+    </foreach>
+    ,CARRIER_BUSINESS_LICENSE=
+    <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
+      when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierBusinessLicense,jdbcType=VARCHAR}
+    </foreach>
+    ,CARRIER_TRANSPORT_CERTIFICATE=
+    <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
+      when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierTransportCertificate,jdbcType=VARCHAR}
+    </foreach>
+    ,CARRIER_SSO_ID=
+    <foreach close="end" collection="list" index="index" item="item" open="case CARRIER_ID" separator=" ">
+      when #{item.carrierId,jdbcType=DECIMAL} then #{item.carrierSsoId,jdbcType=VARCHAR}
+    </foreach>
+    where CARRIER_ID in
+    <foreach close=")" collection="list" index="index" item="item" open="(" separator=",">
+      #{item.carrierId,jdbcType=DECIMAL}
+    </foreach>
   </update>
   <delete id="batchDelete" parameterType="java.util.List">
     delete from RMS_CARRIER
-    where CARRIER_ID in 
+    where CARRIER_ID in
     <foreach close=")" collection="list" item="id" open="(" separator=",">
       #{id}
     </foreach>
@@ -1100,10 +1127,14 @@
     RC.REGISTER_APTITUDES AS "registerAptitudes",
     RC.CARRIER_TRANSPORT_TYPE AS "carrierTransportType",
     RC.CONTACTS_NAME AS "contactsName",
-    RC.CARRIER_CONTACT_NUMBER AS "carrierContactNumber"
+    RC.CARRIER_CONTACT_NUMBER AS "carrierContactNumber",
+    CONCAT(CONCAT(CONCAT(RBA.BID_AREA_PROVINCE,RBA.BID_AREA_CITY),RBA.BID_AREA_COUNTY),RBA.BID_AREA_COUNTRY)  "carrierBidArea"
     FROM RMS_CARRIER RC
+    left join RMS_BID_AREA RBA
+        on RBA.BID_AREA_ID = RC.CARRIER_BID_AREA_ID
     WHERE RC.DELETED != 1
     ORDER BY RC.INSERT_TIME DESC
+
     )
     <where>
       <if test="carrierName!= null">
@@ -1279,9 +1310,9 @@
     where  RC.CARRIER_ID=#{id}
   </select>
 
-  <!--  通过传入的值判断当前表是否存在相同的数量-->
-  <select id="selectParameterCarrierName" resultType="java.lang.Integer">
-    SELECT COUNT(*)
+  <!--  通过承运商名称查承运商主键-->
+  <select id="selectParameterCarrierName" parameterType="string" resultType="java.lang.Integer">
+    SELECT RC.CARRIER_ID
     FROM RMS_CARRIER RC
     WHERE RC.CARRIER_NAME = #{carrierName}
       AND RC.DELETED =0