2023-12-14 13:08:36 +00:00
<?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.xdadan.erp.emis.mapper.EmisSiteMapper" >
<resultMap type= "EmisSite" id= "EmisSiteResult" >
<result property= "id" column= "id" />
<result property= "siteCode" column= "site_code" />
<result property= "siteName" column= "site_name" />
<result property= "siteNameEn" column= "site_name_en" />
<result property= "parentSiteId" column= "parent_site_id" />
<result property= "parentSiteCode" column= "parent_site_code" />
<result property= "parentSiteName" column= "parent_site_name" />
<result property= "defaultCurrency" column= "default_currency" />
<result property= "cutOffTime" column= "cut_off_time" />
<result property= "superiorFinanceCenterCode" column= "superior_finance_center_code" />
<result property= "superiorFinanceCenter" column= "superior_finance_center" />
<result property= "type" column= "type" />
<result property= "defaultDestinationNameCode" column= "default_destination_name_code" />
<result property= "defaultSendPlace" column= "default_send_place" />
<result property= "countryCode" column= "country_code" />
<result property= "province" column= "province" />
<result property= "city" column= "city" />
<result property= "county" column= "county" />
<result property= "town" column= "town" />
<result property= "areaCode" column= "area_code" />
<result property= "areaName" column= "area_name" />
<result property= "rangeName" column= "range_name" />
<result property= "phone" column= "phone" />
<result property= "principal" column= "principal" />
<result property= "manager" column= "manager" />
<result property= "managerPhone" column= "manager_phone" />
<result property= "salePhone" column= "sale_phone" />
<result property= "exigencePhone" column= "exigence_phone" />
<result property= "fax" column= "fax" />
<result property= "siteDesc" column= "site_desc" />
<result property= "dispatchRange" column= "dispatch_range" />
<result property= "notDispatchRange" column= "not_dispatch_range" />
<result property= "publicRemark" column= "public_remark" />
<result property= "privateRemark" column= "private_remark" />
<result property= "orderBy" column= "order_by" />
<result property= "financialAccount" column= "financial_account" />
<result property= "tbSerName" column= "tb_ser_name" />
<result property= "tbSerTel" column= "tb_ser_tel" />
<result property= "tbSerWw" column= "tb_ser_ww" />
<result property= "carStartTime" column= "car_start_time" />
<result property= "carEndTime" column= "car_end_time" />
<result property= "blWeb" column= "bl_web" />
<result property= "joinTime" column= "join_time" />
<result property= "mapsCoordinate" column= "maps_coordinate" />
<result property= "specserviceRange" column= "specservice_range" />
<result property= "qq" column= "qq" />
<result property= "email" column= "email" />
<result property= "serviceQuality" column= "service_quality" />
<result property= "salesQuality" column= "sales_quality" />
<result property= "levels" column= "levels" />
<result property= "warehouseName" column= "warehouse_name" />
<result property= "siteLimite" column= "site_limite" />
<result property= "jyMobile" column= "jy_mobile" />
<result property= "jyPwd" column= "jy_pwd" />
<result property= "blNotInput" column= "bl_not_input" />
<result property= "stopDate" column= "stop_date" />
<result property= "blAllowAgentMoney" column= "bl_allow_agent_money" />
<result property= "blAllowTopayment" column= "bl_allow_topayment" />
<result property= "goodsPaymentLimited" column= "goods_payment_limited" />
<result property= "topaymentLimited" column= "topayment_limited" />
<result property= "blRec" column= "bl_rec" />
<result property= "blDisp" column= "bl_disp" />
<result property= "blCome" column= "bl_come" />
<result property= "blOpenTaobao" column= "bl_open_taobao" />
<result property= "blArbitrationDepartment" column= "bl_arbitration_department" />
<result property= "blAllowAgentSign" column= "bl_allow_agent_sign" />
<result property= "blMessage" column= "bl_message" />
<result property= "blProvide" column= "bl_provide" />
<result property= "blProjectclient" column= "bl_projectclient" />
<result property= "blVipSite" column= "bl_vip_site" />
<result property= "blDispatchZt" column= "bl_dispatch_zt" />
<result property= "blBilltoAccount" column= "bl_billto_account" />
<result property= "accountCode" column= "account_code" />
<result property= "address" column= "address" />
<result property= "dispDeliveryMode" column= "disp_delivery_mode" />
<result property= "transTypeId" column= "trans_type_id" />
<result property= "transTypeName" column= "trans_type_name" />
<result property= "orgId" column= "org_id" />
<result property= "orgName" column= "org_name" />
<result property= "dataFrom" column= "data_from" />
<result property= "siteArea" column= "site_area" />
<result property= "blAllowDispAgentMoney" column= "bl_allow_disp_agent_money" />
<result property= "dispGoodsPaymentLimited" column= "disp_goods_payment_limited" />
<result property= "dispDeliverySite" column= "disp_delivery_site" />
<result property= "dispDeliverySiteCode" column= "disp_delivery_site_code" />
<result property= "vendorName" column= "vendor_name" />
<result property= "creditCode" column= "credit_code" />
<result property= "blCargoService" column= "bl_cargo_service" />
<result property= "blHandlingService" column= "bl_handling_service" />
<result property= "pickupCenterSiteCode" column= "pickup_center_site_code" />
<result property= "pickupCenterSiteName" column= "pickup_center_site_name" />
<result property= "pickupCenterSiteId" column= "pickup_center_site_id" />
<result property= "blDispGood" column= "bl_disp_good" />
<result property= "blPushJd" column= "bl_push_jd" />
<result property= "pushDate" column= "push_date" />
<result property= "reason" column= "reason" />
<result property= "sitePos" column= "site_pos" />
<result property= "distributeCode" column= "distribute_code" />
<result property= "dispDeliverySiteId" column= "disp_delivery_site_id" />
<result property= "blPushSite" column= "bl_push_site" />
<result property= "siteType" column= "site_type" />
<result property= "logoType" column= "logo_type" />
<result property= "sizeCode2" column= "size_code2" />
<result property= "sizeCode3" column= "size_code3" />
<result property= "auditStatus" column= "audit_status" />
<result property= "auditDate" column= "audit_date" />
<result property= "auditMan" column= "audit_man" />
<result property= "auditManCode" column= "audit_man_code" />
<result property= "auditSite" column= "audit_site" />
<result property= "auditSiteCode" column= "audit_site_code" />
<result property= "blClass" column= "bl_class" />
<result property= "blMaterial" column= "bl_material" />
<result property= "soonPieceType" column= "soon_piece_type" />
<result property= "provinceArea" column= "province_area" />
<result property= "secondArea" column= "second_area" />
<result property= "secondAreaCode" column= "second_area_code" />
<result property= "provinceAreaCode" column= "province_area_code" />
<result property= "blRecName" column= "bl_rec_name" />
<result property= "blDispName" column= "bl_disp_name" />
<result property= "blNotInputName" column= "bl_not_input_name" />
<result property= "blDispatchZtName" column= "bl_dispatch_zt_name" />
<result property= "blAllowAgentMoneyName" column= "bl_allow_agent_money_name" />
<result property= "blAllowTopaymentName" column= "bl_allow_topayment_name" />
<result property= "blCargoServiceName" column= "bl_cargo_service_name" />
<result property= "blHandlingServiceName" column= "bl_handling_service_name" />
<result property= "blAllowDispAgentMoneyName" column= "bl_allow_disp_agent_money_name" />
<result property= "blDispGoodName" column= "bl_disp_good_name" />
<result property= "provinceCode" column= "province_code" />
<result property= "cityCode" column= "city_code" />
<result property= "countyCode" column= "county_code" />
<result property= "townCode" column= "town_code" />
<result property= "blNotRecName" column= "bl_not_rec_name" />
<result property= "blNotRec" column= "bl_not_rec" />
<result property= "blNotDispName" column= "bl_not_disp_name" />
<result property= "blNotDisp" column= "bl_not_disp" />
<result property= "blNotCashOutName" column= "bl_not_cash_out_name" />
<result property= "blNotCashOut" column= "bl_not_cash_out" />
<result property= "remark" column= "remark" />
<result property= "tenantId" column= "tenant_id" />
<result property= "delFlag" column= "del_flag" />
<result property= "createBy" column= "create_by" />
<result property= "createTime" column= "create_time" />
<result property= "updateBy" column= "update_by" />
<result property= "updateTime" column= "update_time" />
</resultMap>
<sql id= "selectEmisSiteVo" >
select id, site_code, site_name, site_name_en, parent_site_id, parent_site_code, parent_site_name, default_currency, cut_off_time, superior_finance_center_code, superior_finance_center, type, default_destination_name_code, default_send_place, country_code, province, city, county, town, area_code, area_name, range_name, phone, principal, manager, manager_phone, sale_phone, exigence_phone, fax, site_desc, dispatch_range, not_dispatch_range, public_remark, private_remark, order_by, financial_account, tb_ser_name, tb_ser_tel, tb_ser_ww, car_start_time, car_end_time, bl_web, join_time, maps_coordinate, specservice_range, qq, email, service_quality, sales_quality, levels, warehouse_name, site_limite, jy_mobile, jy_pwd, bl_not_input, stop_date, bl_allow_agent_money, bl_allow_topayment, goods_payment_limited, topayment_limited, bl_rec, bl_disp, bl_come, bl_open_taobao, bl_arbitration_department, bl_allow_agent_sign, bl_message, bl_provide, bl_projectclient, bl_vip_site, bl_dispatch_zt, bl_billto_account, account_code, address, disp_delivery_mode, trans_type_id, trans_type_name, org_id, org_name, data_from, site_area, bl_allow_disp_agent_money, disp_goods_payment_limited, disp_delivery_site, disp_delivery_site_code, vendor_name, credit_code, bl_cargo_service, bl_handling_service, pickup_center_site_code, pickup_center_site_name, pickup_center_site_id, bl_disp_good, bl_push_jd, push_date, reason, site_pos, distribute_code, disp_delivery_site_id, bl_push_site, site_type, logo_type, size_code2, size_code3, audit_status, audit_date, audit_man, audit_man_code, audit_site, audit_site_code, bl_class, bl_material, soon_piece_type, province_area, second_area, second_area_code, province_area_code, bl_rec_name, bl_disp_name, bl_not_input_name, bl_dispatch_zt_name, bl_allow_agent_money_name, bl_allow_topayment_name, bl_cargo_service_name, bl_handling_service_name, bl_allow_disp_agent_money_name, bl_disp_good_name, province_code, city_code, county_code, town_code, bl_not_rec_name, bl_not_rec, bl_not_disp_name, bl_not_disp, bl_not_cash_out_name, bl_not_cash_out, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time from emis_site
</sql>
<select id= "selectEmisSiteList" parameterType= "EmisSite" resultMap= "EmisSiteResult" >
<include refid= "selectEmisSiteVo" />
<where >
<if test= "id != null " > and id = #{id}</if>
2024-04-17 04:06:52 +00:00
<if test= "siteCode != null and siteCode != ''" > and site_code= #{siteCode}</if>
2023-12-14 13:08:36 +00:00
<if test= "siteName != null and siteName != ''" > and site_name like concat('%', #{siteName}, '%')</if>
<if test= "siteNameEn != null and siteNameEn != ''" > and site_name_en like concat('%', #{siteNameEn}, '%')</if>
<if test= "parentSiteId != null and parentSiteId != ''" > and parent_site_id like concat('%', #{parentSiteId}, '%')</if>
<if test= "parentSiteCode != null and parentSiteCode != ''" > and parent_site_code like concat('%', #{parentSiteCode}, '%')</if>
<if test= "parentSiteName != null and parentSiteName != ''" > and parent_site_name like concat('%', #{parentSiteName}, '%')</if>
<if test= "defaultCurrency != null and defaultCurrency != ''" > and default_currency like concat('%', #{defaultCurrency}, '%')</if>
<if test= "cutOffTime != null and cutOffTime != ''" > and cut_off_time like concat('%', #{cutOffTime}, '%')</if>
<if test= "superiorFinanceCenterCode != null and superiorFinanceCenterCode != ''" > and superior_finance_center_code like concat('%', #{superiorFinanceCenterCode}, '%')</if>
<if test= "superiorFinanceCenter != null and superiorFinanceCenter != ''" > and superior_finance_center like concat('%', #{superiorFinanceCenter}, '%')</if>
<if test= "type != null and type != ''" > and type like concat('%', #{type}, '%')</if>
<if test= "defaultDestinationNameCode != null and defaultDestinationNameCode != ''" > and default_destination_name_code like concat('%', #{defaultDestinationNameCode}, '%')</if>
<if test= "defaultSendPlace != null and defaultSendPlace != ''" > and default_send_place like concat('%', #{defaultSendPlace}, '%')</if>
<if test= "countryCode != null and countryCode != ''" > and country_code like concat('%', #{countryCode}, '%')</if>
<if test= "province != null and province != ''" > and province like concat('%', #{province}, '%')</if>
<if test= "city != null and city != ''" > and city like concat('%', #{city}, '%')</if>
<if test= "county != null and county != ''" > and county like concat('%', #{county}, '%')</if>
<if test= "town != null and town != ''" > and town like concat('%', #{town}, '%')</if>
<if test= "areaCode != null and areaCode != ''" > and area_code like concat('%', #{areaCode}, '%')</if>
<if test= "areaName != null and areaName != ''" > and area_name like concat('%', #{areaName}, '%')</if>
<if test= "rangeName != null and rangeName != ''" > and range_name like concat('%', #{rangeName}, '%')</if>
<if test= "phone != null and phone != ''" > and phone like concat('%', #{phone}, '%')</if>
<if test= "principal != null and principal != ''" > and principal like concat('%', #{principal}, '%')</if>
<if test= "manager != null and manager != ''" > and manager like concat('%', #{manager}, '%')</if>
<if test= "managerPhone != null and managerPhone != ''" > and manager_phone like concat('%', #{managerPhone}, '%')</if>
<if test= "salePhone != null and salePhone != ''" > and sale_phone like concat('%', #{salePhone}, '%')</if>
<if test= "exigencePhone != null and exigencePhone != ''" > and exigence_phone like concat('%', #{exigencePhone}, '%')</if>
<if test= "fax != null and fax != ''" > and fax like concat('%', #{fax}, '%')</if>
<if test= "siteDesc != null and siteDesc != ''" > and site_desc like concat('%', #{siteDesc}, '%')</if>
<if test= "dispatchRange != null and dispatchRange != ''" > and dispatch_range like concat('%', #{dispatchRange}, '%')</if>
<if test= "notDispatchRange != null and notDispatchRange != ''" > and not_dispatch_range like concat('%', #{notDispatchRange}, '%')</if>
<if test= "publicRemark != null and publicRemark != ''" > and public_remark like concat('%', #{publicRemark}, '%')</if>
<if test= "privateRemark != null and privateRemark != ''" > and private_remark like concat('%', #{privateRemark}, '%')</if>
<if test= "orderBy != null and orderBy != ''" > and order_by like concat('%', #{orderBy}, '%')</if>
<if test= "financialAccount != null and financialAccount != ''" > and financial_account like concat('%', #{financialAccount}, '%')</if>
<if test= "tbSerName != null and tbSerName != ''" > and tb_ser_name like concat('%', #{tbSerName}, '%')</if>
<if test= "tbSerTel != null and tbSerTel != ''" > and tb_ser_tel like concat('%', #{tbSerTel}, '%')</if>
<if test= "tbSerWw != null and tbSerWw != ''" > and tb_ser_ww like concat('%', #{tbSerWw}, '%')</if>
<if test= "carStartTime != null and carStartTime != ''" > and car_start_time like concat('%', #{carStartTime}, '%')</if>
<if test= "carEndTime != null and carEndTime != ''" > and car_end_time like concat('%', #{carEndTime}, '%')</if>
<if test= "blWeb != null " > and bl_web = #{blWeb}</if>
<if test= "joinTime != null and joinTime != ''" > and join_time like concat('%', #{joinTime}, '%')</if>
<if test= "mapsCoordinate != null and mapsCoordinate != ''" > and maps_coordinate like concat('%', #{mapsCoordinate}, '%')</if>
<if test= "specserviceRange != null and specserviceRange != ''" > and specservice_range like concat('%', #{specserviceRange}, '%')</if>
<if test= "qq != null and qq != ''" > and qq like concat('%', #{qq}, '%')</if>
<if test= "email != null and email != ''" > and email like concat('%', #{email}, '%')</if>
<if test= "serviceQuality != null and serviceQuality != ''" > and service_quality like concat('%', #{serviceQuality}, '%')</if>
<if test= "salesQuality != null and salesQuality != ''" > and sales_quality like concat('%', #{salesQuality}, '%')</if>
<if test= "levels != null and levels != ''" > and levels like concat('%', #{levels}, '%')</if>
<if test= "warehouseName != null and warehouseName != ''" > and warehouse_name like concat('%', #{warehouseName}, '%')</if>
<if test= "siteLimite != null and siteLimite != ''" > and site_limite like concat('%', #{siteLimite}, '%')</if>
<if test= "jyMobile != null and jyMobile != ''" > and jy_mobile like concat('%', #{jyMobile}, '%')</if>
<if test= "jyPwd != null and jyPwd != ''" > and jy_pwd like concat('%', #{jyPwd}, '%')</if>
<if test= "blNotInput != null " > and bl_not_input = #{blNotInput}</if>
<if test= "stopDate != null and stopDate != ''" > and stop_date like concat('%', #{stopDate}, '%')</if>
<if test= "blAllowAgentMoney != null " > and bl_allow_agent_money = #{blAllowAgentMoney}</if>
<if test= "blAllowTopayment != null " > and bl_allow_topayment = #{blAllowTopayment}</if>
<if test= "goodsPaymentLimited != null and goodsPaymentLimited != ''" > and goods_payment_limited like concat('%', #{goodsPaymentLimited}, '%')</if>
<if test= "topaymentLimited != null and topaymentLimited != ''" > and topayment_limited like concat('%', #{topaymentLimited}, '%')</if>
<if test= "blRec != null and blRec != ''" > and bl_rec like concat('%', #{blRec}, '%')</if>
<if test= "blDisp != null and blDisp != ''" > and bl_disp like concat('%', #{blDisp}, '%')</if>
<if test= "blCome != null " > and bl_come = #{blCome}</if>
<if test= "blOpenTaobao != null and blOpenTaobao != ''" > and bl_open_taobao like concat('%', #{blOpenTaobao}, '%')</if>
<if test= "blArbitrationDepartment != null and blArbitrationDepartment != ''" > and bl_arbitration_department like concat('%', #{blArbitrationDepartment}, '%')</if>
<if test= "blAllowAgentSign != null and blAllowAgentSign != ''" > and bl_allow_agent_sign like concat('%', #{blAllowAgentSign}, '%')</if>
<if test= "blMessage != null and blMessage != ''" > and bl_message like concat('%', #{blMessage}, '%')</if>
<if test= "blProvide != null " > and bl_provide = #{blProvide}</if>
<if test= "blProjectclient != null and blProjectclient != ''" > and bl_projectclient like concat('%', #{blProjectclient}, '%')</if>
<if test= "blVipSite != null and blVipSite != ''" > and bl_vip_site like concat('%', #{blVipSite}, '%')</if>
<if test= "blDispatchZt != null " > and bl_dispatch_zt = #{blDispatchZt}</if>
<if test= "blBilltoAccount != null " > and bl_billto_account = #{blBilltoAccount}</if>
<if test= "accountCode != null and accountCode != ''" > and account_code like concat('%', #{accountCode}, '%')</if>
<if test= "address != null and address != ''" > and address like concat('%', #{address}, '%')</if>
<if test= "dispDeliveryMode != null and dispDeliveryMode != ''" > and disp_delivery_mode like concat('%', #{dispDeliveryMode}, '%')</if>
<if test= "transTypeId != null and transTypeId != ''" > and trans_type_id like concat('%', #{transTypeId}, '%')</if>
<if test= "transTypeName != null and transTypeName != ''" > and trans_type_name like concat('%', #{transTypeName}, '%')</if>
<if test= "orgId != null and orgId != ''" > and org_id like concat('%', #{orgId}, '%')</if>
<if test= "orgName != null and orgName != ''" > and org_name like concat('%', #{orgName}, '%')</if>
<if test= "dataFrom != null and dataFrom != ''" > and data_from like concat('%', #{dataFrom}, '%')</if>
<if test= "siteArea != null and siteArea != ''" > and site_area like concat('%', #{siteArea}, '%')</if>
<if test= "blAllowDispAgentMoney != null and blAllowDispAgentMoney != ''" > and bl_allow_disp_agent_money like concat('%', #{blAllowDispAgentMoney}, '%')</if>
<if test= "dispGoodsPaymentLimited != null and dispGoodsPaymentLimited != ''" > and disp_goods_payment_limited like concat('%', #{dispGoodsPaymentLimited}, '%')</if>
<if test= "dispDeliverySite != null and dispDeliverySite != ''" > and disp_delivery_site like concat('%', #{dispDeliverySite}, '%')</if>
<if test= "dispDeliverySiteCode != null and dispDeliverySiteCode != ''" > and disp_delivery_site_code like concat('%', #{dispDeliverySiteCode}, '%')</if>
<if test= "vendorName != null and vendorName != ''" > and vendor_name like concat('%', #{vendorName}, '%')</if>
<if test= "creditCode != null and creditCode != ''" > and credit_code like concat('%', #{creditCode}, '%')</if>
<if test= "blCargoService != null and blCargoService != ''" > and bl_cargo_service like concat('%', #{blCargoService}, '%')</if>
<if test= "blHandlingService != null and blHandlingService != ''" > and bl_handling_service like concat('%', #{blHandlingService}, '%')</if>
<if test= "pickupCenterSiteCode != null and pickupCenterSiteCode != ''" > and pickup_center_site_code like concat('%', #{pickupCenterSiteCode}, '%')</if>
<if test= "pickupCenterSiteName != null and pickupCenterSiteName != ''" > and pickup_center_site_name like concat('%', #{pickupCenterSiteName}, '%')</if>
<if test= "pickupCenterSiteId != null and pickupCenterSiteId != ''" > and pickup_center_site_id like concat('%', #{pickupCenterSiteId}, '%')</if>
<if test= "blDispGood != null and blDispGood != ''" > and bl_disp_good like concat('%', #{blDispGood}, '%')</if>
<if test= "blPushJd != null and blPushJd != ''" > and bl_push_jd like concat('%', #{blPushJd}, '%')</if>
<if test= "pushDate != null and pushDate != ''" > and push_date like concat('%', #{pushDate}, '%')</if>
<if test= "reason != null and reason != ''" > and reason like concat('%', #{reason}, '%')</if>
<if test= "sitePos != null and sitePos != ''" > and site_pos like concat('%', #{sitePos}, '%')</if>
<if test= "distributeCode != null and distributeCode != ''" > and distribute_code like concat('%', #{distributeCode}, '%')</if>
<if test= "dispDeliverySiteId != null and dispDeliverySiteId != ''" > and disp_delivery_site_id like concat('%', #{dispDeliverySiteId}, '%')</if>
<if test= "blPushSite != null " > and bl_push_site = #{blPushSite}</if>
<if test= "siteType != null and siteType != ''" > and site_type like concat('%', #{siteType}, '%')</if>
<if test= "logoType != null and logoType != ''" > and logo_type like concat('%', #{logoType}, '%')</if>
<if test= "sizeCode2 != null and sizeCode2 != ''" > and size_code2 like concat('%', #{sizeCode2}, '%')</if>
<if test= "sizeCode3 != null and sizeCode3 != ''" > and size_code3 like concat('%', #{sizeCode3}, '%')</if>
<if test= "auditStatus != null and auditStatus != ''" > and audit_status like concat('%', #{auditStatus}, '%')</if>
<if test= "auditDate != null and auditDate != ''" > and audit_date like concat('%', #{auditDate}, '%')</if>
<if test= "auditMan != null and auditMan != ''" > and audit_man like concat('%', #{auditMan}, '%')</if>
<if test= "auditManCode != null and auditManCode != ''" > and audit_man_code like concat('%', #{auditManCode}, '%')</if>
<if test= "auditSite != null and auditSite != ''" > and audit_site like concat('%', #{auditSite}, '%')</if>
<if test= "auditSiteCode != null and auditSiteCode != ''" > and audit_site_code like concat('%', #{auditSiteCode}, '%')</if>
<if test= "blClass != null " > and bl_class = #{blClass}</if>
<if test= "blMaterial != null " > and bl_material = #{blMaterial}</if>
<if test= "soonPieceType != null and soonPieceType != ''" > and soon_piece_type like concat('%', #{soonPieceType}, '%')</if>
<if test= "provinceArea != null and provinceArea != ''" > and province_area like concat('%', #{provinceArea}, '%')</if>
<if test= "secondArea != null and secondArea != ''" > and second_area like concat('%', #{secondArea}, '%')</if>
<if test= "secondAreaCode != null and secondAreaCode != ''" > and second_area_code like concat('%', #{secondAreaCode}, '%')</if>
<if test= "provinceAreaCode != null and provinceAreaCode != ''" > and province_area_code like concat('%', #{provinceAreaCode}, '%')</if>
<if test= "blRecName != null " > and bl_rec_name = #{blRecName}</if>
<if test= "blDispName != null " > and bl_disp_name = #{blDispName}</if>
<if test= "blNotInputName != null " > and bl_not_input_name = #{blNotInputName}</if>
<if test= "blDispatchZtName != null " > and bl_dispatch_zt_name = #{blDispatchZtName}</if>
<if test= "blAllowAgentMoneyName != null " > and bl_allow_agent_money_name = #{blAllowAgentMoneyName}</if>
<if test= "blAllowTopaymentName != null " > and bl_allow_topayment_name = #{blAllowTopaymentName}</if>
<if test= "blCargoServiceName != null " > and bl_cargo_service_name = #{blCargoServiceName}</if>
<if test= "blHandlingServiceName != null " > and bl_handling_service_name = #{blHandlingServiceName}</if>
<if test= "blAllowDispAgentMoneyName != null " > and bl_allow_disp_agent_money_name = #{blAllowDispAgentMoneyName}</if>
<if test= "blDispGoodName != null " > and bl_disp_good_name = #{blDispGoodName}</if>
<if test= "provinceCode != null and provinceCode != ''" > and province_code like concat('%', #{provinceCode}, '%')</if>
<if test= "cityCode != null and cityCode != ''" > and city_code like concat('%', #{cityCode}, '%')</if>
<if test= "countyCode != null and countyCode != ''" > and county_code like concat('%', #{countyCode}, '%')</if>
<if test= "townCode != null and townCode != ''" > and town_code like concat('%', #{townCode}, '%')</if>
<if test= "blNotRecName != null and blNotRecName != ''" > and bl_not_rec_name like concat('%', #{blNotRecName}, '%')</if>
<if test= "blNotRec != null and blNotRec != ''" > and bl_not_rec like concat('%', #{blNotRec}, '%')</if>
<if test= "blNotDispName != null and blNotDispName != ''" > and bl_not_disp_name like concat('%', #{blNotDispName}, '%')</if>
<if test= "blNotDisp != null and blNotDisp != ''" > and bl_not_disp like concat('%', #{blNotDisp}, '%')</if>
<if test= "blNotCashOutName != null and blNotCashOutName != ''" > and bl_not_cash_out_name like concat('%', #{blNotCashOutName}, '%')</if>
<if test= "blNotCashOut != null and blNotCashOut != ''" > and bl_not_cash_out like concat('%', #{blNotCashOut}, '%')</if>
<if test= "remark != null and remark != ''" > and remark like concat('%', #{remark}, '%')</if>
<if test= "tenantId != null and tenantId != ''" > and tenant_id like concat('%', #{tenantId}, '%')</if>
<if test= "delFlag != null and delFlag != ''" > and del_flag like concat('%', #{delFlag}, '%')</if>
<if test= "createBy != null and createBy != ''" > and create_by like concat('%', #{createBy}, '%')</if>
<if test= "createTime != null " > and create_time = #{createTime}</if>
<if test= "updateBy != null and updateBy != ''" > and update_by like concat('%', #{updateBy}, '%')</if>
<if test= "updateTime != null " > and update_time = #{updateTime}</if>
</where>
order by create_time desc
</select>
<select id= "selectEmisSiteById" parameterType= "Long" resultMap= "EmisSiteResult" >
select id, site_code, site_name, site_name_en, parent_site_id, parent_site_code, parent_site_name, default_currency, cut_off_time, superior_finance_center_code, superior_finance_center, type, default_destination_name_code, default_send_place, country_code, province, city, county, town, area_code, area_name, range_name, phone, principal, manager, manager_phone, sale_phone, exigence_phone, fax, site_desc, dispatch_range, not_dispatch_range, public_remark, private_remark, order_by, financial_account, tb_ser_name, tb_ser_tel, tb_ser_ww, car_start_time, car_end_time, bl_web, join_time, maps_coordinate, specservice_range, qq, email, service_quality, sales_quality, levels, warehouse_name, site_limite, jy_mobile, jy_pwd, bl_not_input, stop_date, bl_allow_agent_money, bl_allow_topayment, goods_payment_limited, topayment_limited, bl_rec, bl_disp, bl_come, bl_open_taobao, bl_arbitration_department, bl_allow_agent_sign, bl_message, bl_provide, bl_projectclient, bl_vip_site, bl_dispatch_zt, bl_billto_account, account_code, address, disp_delivery_mode, trans_type_id, trans_type_name, org_id, org_name, data_from, site_area, bl_allow_disp_agent_money, disp_goods_payment_limited, disp_delivery_site, disp_delivery_site_code, vendor_name, credit_code, bl_cargo_service, bl_handling_service, pickup_center_site_code, pickup_center_site_name, pickup_center_site_id, bl_disp_good, bl_push_jd, push_date, reason, site_pos, distribute_code, disp_delivery_site_id, bl_push_site, site_type, logo_type, size_code2, size_code3, audit_status, audit_date, audit_man, audit_man_code, audit_site, audit_site_code, bl_class, bl_material, soon_piece_type, province_area, second_area, second_area_code, province_area_code, bl_rec_name, bl_disp_name, bl_not_input_name, bl_dispatch_zt_name, bl_allow_agent_money_name, bl_allow_topayment_name, bl_cargo_service_name, bl_handling_service_name, bl_allow_disp_agent_money_name, bl_disp_good_name, province_code, city_code, county_code, town_code, bl_not_rec_name, bl_not_rec, bl_not_disp_name, bl_not_disp, bl_not_cash_out_name, bl_not_cash_out, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time
from emis_site a
where a.id = #{id}
</select>
<insert id= "insertEmisSite" parameterType= "EmisSite" >
insert into emis_site
<trim prefix= "(" suffix= ")" suffixOverrides= "," >
<if test= "id != null" > id,</if>
<if test= "siteCode != null and siteCode != ''" > site_code,</if>
<if test= "siteName != null and siteName != ''" > site_name,</if>
<if test= "siteNameEn != null and siteNameEn != ''" > site_name_en,</if>
<if test= "parentSiteId != null and parentSiteId != ''" > parent_site_id,</if>
<if test= "parentSiteCode != null and parentSiteCode != ''" > parent_site_code,</if>
<if test= "parentSiteName != null and parentSiteName != ''" > parent_site_name,</if>
<if test= "defaultCurrency != null and defaultCurrency != ''" > default_currency,</if>
<if test= "cutOffTime != null and cutOffTime != ''" > cut_off_time,</if>
<if test= "superiorFinanceCenterCode != null and superiorFinanceCenterCode != ''" > superior_finance_center_code,</if>
<if test= "superiorFinanceCenter != null and superiorFinanceCenter != ''" > superior_finance_center,</if>
<if test= "type != null and type != ''" > type,</if>
<if test= "defaultDestinationNameCode != null and defaultDestinationNameCode != ''" > default_destination_name_code,</if>
<if test= "defaultSendPlace != null and defaultSendPlace != ''" > default_send_place,</if>
<if test= "countryCode != null and countryCode != ''" > country_code,</if>
<if test= "province != null and province != ''" > province,</if>
<if test= "city != null and city != ''" > city,</if>
<if test= "county != null and county != ''" > county,</if>
<if test= "town != null and town != ''" > town,</if>
<if test= "areaCode != null and areaCode != ''" > area_code,</if>
<if test= "areaName != null and areaName != ''" > area_name,</if>
<if test= "rangeName != null and rangeName != ''" > range_name,</if>
<if test= "phone != null and phone != ''" > phone,</if>
<if test= "principal != null and principal != ''" > principal,</if>
<if test= "manager != null and manager != ''" > manager,</if>
<if test= "managerPhone != null and managerPhone != ''" > manager_phone,</if>
<if test= "salePhone != null and salePhone != ''" > sale_phone,</if>
<if test= "exigencePhone != null and exigencePhone != ''" > exigence_phone,</if>
<if test= "fax != null and fax != ''" > fax,</if>
<if test= "siteDesc != null and siteDesc != ''" > site_desc,</if>
<if test= "dispatchRange != null and dispatchRange != ''" > dispatch_range,</if>
<if test= "notDispatchRange != null and notDispatchRange != ''" > not_dispatch_range,</if>
<if test= "publicRemark != null and publicRemark != ''" > public_remark,</if>
<if test= "privateRemark != null and privateRemark != ''" > private_remark,</if>
<if test= "orderBy != null and orderBy != ''" > order_by,</if>
<if test= "financialAccount != null and financialAccount != ''" > financial_account,</if>
<if test= "tbSerName != null and tbSerName != ''" > tb_ser_name,</if>
<if test= "tbSerTel != null and tbSerTel != ''" > tb_ser_tel,</if>
<if test= "tbSerWw != null and tbSerWw != ''" > tb_ser_ww,</if>
<if test= "carStartTime != null and carStartTime != ''" > car_start_time,</if>
<if test= "carEndTime != null and carEndTime != ''" > car_end_time,</if>
<if test= "blWeb != null" > bl_web,</if>
<if test= "joinTime != null and joinTime != ''" > join_time,</if>
<if test= "mapsCoordinate != null and mapsCoordinate != ''" > maps_coordinate,</if>
<if test= "specserviceRange != null and specserviceRange != ''" > specservice_range,</if>
<if test= "qq != null and qq != ''" > qq,</if>
<if test= "email != null and email != ''" > email,</if>
<if test= "serviceQuality != null and serviceQuality != ''" > service_quality,</if>
<if test= "salesQuality != null and salesQuality != ''" > sales_quality,</if>
<if test= "levels != null and levels != ''" > levels,</if>
<if test= "warehouseName != null and warehouseName != ''" > warehouse_name,</if>
<if test= "siteLimite != null and siteLimite != ''" > site_limite,</if>
<if test= "jyMobile != null and jyMobile != ''" > jy_mobile,</if>
<if test= "jyPwd != null and jyPwd != ''" > jy_pwd,</if>
<if test= "blNotInput != null" > bl_not_input,</if>
<if test= "stopDate != null and stopDate != ''" > stop_date,</if>
<if test= "blAllowAgentMoney != null" > bl_allow_agent_money,</if>
<if test= "blAllowTopayment != null" > bl_allow_topayment,</if>
<if test= "goodsPaymentLimited != null and goodsPaymentLimited != ''" > goods_payment_limited,</if>
<if test= "topaymentLimited != null and topaymentLimited != ''" > topayment_limited,</if>
<if test= "blRec != null and blRec != ''" > bl_rec,</if>
<if test= "blDisp != null and blDisp != ''" > bl_disp,</if>
<if test= "blCome != null" > bl_come,</if>
<if test= "blOpenTaobao != null and blOpenTaobao != ''" > bl_open_taobao,</if>
<if test= "blArbitrationDepartment != null and blArbitrationDepartment != ''" > bl_arbitration_department,</if>
<if test= "blAllowAgentSign != null and blAllowAgentSign != ''" > bl_allow_agent_sign,</if>
<if test= "blMessage != null and blMessage != ''" > bl_message,</if>
<if test= "blProvide != null" > bl_provide,</if>
<if test= "blProjectclient != null and blProjectclient != ''" > bl_projectclient,</if>
<if test= "blVipSite != null and blVipSite != ''" > bl_vip_site,</if>
<if test= "blDispatchZt != null" > bl_dispatch_zt,</if>
<if test= "blBilltoAccount != null" > bl_billto_account,</if>
<if test= "accountCode != null and accountCode != ''" > account_code,</if>
<if test= "address != null and address != ''" > address,</if>
<if test= "dispDeliveryMode != null and dispDeliveryMode != ''" > disp_delivery_mode,</if>
<if test= "transTypeId != null and transTypeId != ''" > trans_type_id,</if>
<if test= "transTypeName != null and transTypeName != ''" > trans_type_name,</if>
<if test= "orgId != null and orgId != ''" > org_id,</if>
<if test= "orgName != null and orgName != ''" > org_name,</if>
<if test= "dataFrom != null and dataFrom != ''" > data_from,</if>
<if test= "siteArea != null and siteArea != ''" > site_area,</if>
<if test= "blAllowDispAgentMoney != null and blAllowDispAgentMoney != ''" > bl_allow_disp_agent_money,</if>
<if test= "dispGoodsPaymentLimited != null and dispGoodsPaymentLimited != ''" > disp_goods_payment_limited,</if>
<if test= "dispDeliverySite != null and dispDeliverySite != ''" > disp_delivery_site,</if>
<if test= "dispDeliverySiteCode != null and dispDeliverySiteCode != ''" > disp_delivery_site_code,</if>
<if test= "vendorName != null and vendorName != ''" > vendor_name,</if>
<if test= "creditCode != null and creditCode != ''" > credit_code,</if>
<if test= "blCargoService != null and blCargoService != ''" > bl_cargo_service,</if>
<if test= "blHandlingService != null and blHandlingService != ''" > bl_handling_service,</if>
<if test= "pickupCenterSiteCode != null and pickupCenterSiteCode != ''" > pickup_center_site_code,</if>
<if test= "pickupCenterSiteName != null and pickupCenterSiteName != ''" > pickup_center_site_name,</if>
<if test= "pickupCenterSiteId != null and pickupCenterSiteId != ''" > pickup_center_site_id,</if>
<if test= "blDispGood != null and blDispGood != ''" > bl_disp_good,</if>
<if test= "blPushJd != null and blPushJd != ''" > bl_push_jd,</if>
<if test= "pushDate != null and pushDate != ''" > push_date,</if>
<if test= "reason != null and reason != ''" > reason,</if>
<if test= "sitePos != null and sitePos != ''" > site_pos,</if>
<if test= "distributeCode != null and distributeCode != ''" > distribute_code,</if>
<if test= "dispDeliverySiteId != null and dispDeliverySiteId != ''" > disp_delivery_site_id,</if>
<if test= "blPushSite != null" > bl_push_site,</if>
<if test= "siteType != null and siteType != ''" > site_type,</if>
<if test= "logoType != null and logoType != ''" > logo_type,</if>
<if test= "sizeCode2 != null and sizeCode2 != ''" > size_code2,</if>
<if test= "sizeCode3 != null and sizeCode3 != ''" > size_code3,</if>
<if test= "auditStatus != null and auditStatus != ''" > audit_status,</if>
<if test= "auditDate != null and auditDate != ''" > audit_date,</if>
<if test= "auditMan != null and auditMan != ''" > audit_man,</if>
<if test= "auditManCode != null and auditManCode != ''" > audit_man_code,</if>
<if test= "auditSite != null and auditSite != ''" > audit_site,</if>
<if test= "auditSiteCode != null and auditSiteCode != ''" > audit_site_code,</if>
<if test= "blClass != null" > bl_class,</if>
<if test= "blMaterial != null" > bl_material,</if>
<if test= "soonPieceType != null and soonPieceType != ''" > soon_piece_type,</if>
<if test= "provinceArea != null and provinceArea != ''" > province_area,</if>
<if test= "secondArea != null and secondArea != ''" > second_area,</if>
<if test= "secondAreaCode != null and secondAreaCode != ''" > second_area_code,</if>
<if test= "provinceAreaCode != null and provinceAreaCode != ''" > province_area_code,</if>
<if test= "blRecName != null" > bl_rec_name,</if>
<if test= "blDispName != null" > bl_disp_name,</if>
<if test= "blNotInputName != null" > bl_not_input_name,</if>
<if test= "blDispatchZtName != null" > bl_dispatch_zt_name,</if>
<if test= "blAllowAgentMoneyName != null" > bl_allow_agent_money_name,</if>
<if test= "blAllowTopaymentName != null" > bl_allow_topayment_name,</if>
<if test= "blCargoServiceName != null" > bl_cargo_service_name,</if>
<if test= "blHandlingServiceName != null" > bl_handling_service_name,</if>
<if test= "blAllowDispAgentMoneyName != null" > bl_allow_disp_agent_money_name,</if>
<if test= "blDispGoodName != null" > bl_disp_good_name,</if>
<if test= "provinceCode != null and provinceCode != ''" > province_code,</if>
<if test= "cityCode != null and cityCode != ''" > city_code,</if>
<if test= "countyCode != null and countyCode != ''" > county_code,</if>
<if test= "townCode != null and townCode != ''" > town_code,</if>
<if test= "blNotRecName != null and blNotRecName != ''" > bl_not_rec_name,</if>
<if test= "blNotRec != null and blNotRec != ''" > bl_not_rec,</if>
<if test= "blNotDispName != null and blNotDispName != ''" > bl_not_disp_name,</if>
<if test= "blNotDisp != null and blNotDisp != ''" > bl_not_disp,</if>
<if test= "blNotCashOutName != null and blNotCashOutName != ''" > bl_not_cash_out_name,</if>
<if test= "blNotCashOut != null and blNotCashOut != ''" > bl_not_cash_out,</if>
<if test= "remark != null and remark != ''" > remark,</if>
<if test= "tenantId != null and tenantId != ''" > tenant_id,</if>
<if test= "delFlag != null and delFlag != ''" > del_flag,</if>
<if test= "createBy != null and createBy != ''" > create_by,</if>
<if test= "createTime != null" > create_time,</if>
<if test= "updateBy != null and updateBy != ''" > update_by,</if>
<if test= "updateTime != null" > update_time,</if>
</trim>
<trim prefix= "values (" suffix= ")" suffixOverrides= "," >
<if test= "id != null" > #{id},</if>
<if test= "siteCode != null and siteCode != ''" > #{siteCode},</if>
<if test= "siteName != null and siteName != ''" > #{siteName},</if>
<if test= "siteNameEn != null and siteNameEn != ''" > #{siteNameEn},</if>
<if test= "parentSiteId != null and parentSiteId != ''" > #{parentSiteId},</if>
<if test= "parentSiteCode != null and parentSiteCode != ''" > #{parentSiteCode},</if>
<if test= "parentSiteName != null and parentSiteName != ''" > #{parentSiteName},</if>
<if test= "defaultCurrency != null and defaultCurrency != ''" > #{defaultCurrency},</if>
<if test= "cutOffTime != null and cutOffTime != ''" > #{cutOffTime},</if>
<if test= "superiorFinanceCenterCode != null and superiorFinanceCenterCode != ''" > #{superiorFinanceCenterCode},</if>
<if test= "superiorFinanceCenter != null and superiorFinanceCenter != ''" > #{superiorFinanceCenter},</if>
<if test= "type != null and type != ''" > #{type},</if>
<if test= "defaultDestinationNameCode != null and defaultDestinationNameCode != ''" > #{defaultDestinationNameCode},</if>
<if test= "defaultSendPlace != null and defaultSendPlace != ''" > #{defaultSendPlace},</if>
<if test= "countryCode != null and countryCode != ''" > #{countryCode},</if>
<if test= "province != null and province != ''" > #{province},</if>
<if test= "city != null and city != ''" > #{city},</if>
<if test= "county != null and county != ''" > #{county},</if>
<if test= "town != null and town != ''" > #{town},</if>
<if test= "areaCode != null and areaCode != ''" > #{areaCode},</if>
<if test= "areaName != null and areaName != ''" > #{areaName},</if>
<if test= "rangeName != null and rangeName != ''" > #{rangeName},</if>
<if test= "phone != null and phone != ''" > #{phone},</if>
<if test= "principal != null and principal != ''" > #{principal},</if>
<if test= "manager != null and manager != ''" > #{manager},</if>
<if test= "managerPhone != null and managerPhone != ''" > #{managerPhone},</if>
<if test= "salePhone != null and salePhone != ''" > #{salePhone},</if>
<if test= "exigencePhone != null and exigencePhone != ''" > #{exigencePhone},</if>
<if test= "fax != null and fax != ''" > #{fax},</if>
<if test= "siteDesc != null and siteDesc != ''" > #{siteDesc},</if>
<if test= "dispatchRange != null and dispatchRange != ''" > #{dispatchRange},</if>
<if test= "notDispatchRange != null and notDispatchRange != ''" > #{notDispatchRange},</if>
<if test= "publicRemark != null and publicRemark != ''" > #{publicRemark},</if>
<if test= "privateRemark != null and privateRemark != ''" > #{privateRemark},</if>
<if test= "orderBy != null and orderBy != ''" > #{orderBy},</if>
<if test= "financialAccount != null and financialAccount != ''" > #{financialAccount},</if>
<if test= "tbSerName != null and tbSerName != ''" > #{tbSerName},</if>
<if test= "tbSerTel != null and tbSerTel != ''" > #{tbSerTel},</if>
<if test= "tbSerWw != null and tbSerWw != ''" > #{tbSerWw},</if>
<if test= "carStartTime != null and carStartTime != ''" > #{carStartTime},</if>
<if test= "carEndTime != null and carEndTime != ''" > #{carEndTime},</if>
<if test= "blWeb != null" > #{blWeb},</if>
<if test= "joinTime != null and joinTime != ''" > #{joinTime},</if>
<if test= "mapsCoordinate != null and mapsCoordinate != ''" > #{mapsCoordinate},</if>
<if test= "specserviceRange != null and specserviceRange != ''" > #{specserviceRange},</if>
<if test= "qq != null and qq != ''" > #{qq},</if>
<if test= "email != null and email != ''" > #{email},</if>
<if test= "serviceQuality != null and serviceQuality != ''" > #{serviceQuality},</if>
<if test= "salesQuality != null and salesQuality != ''" > #{salesQuality},</if>
<if test= "levels != null and levels != ''" > #{levels},</if>
<if test= "warehouseName != null and warehouseName != ''" > #{warehouseName},</if>
<if test= "siteLimite != null and siteLimite != ''" > #{siteLimite},</if>
<if test= "jyMobile != null and jyMobile != ''" > #{jyMobile},</if>
<if test= "jyPwd != null and jyPwd != ''" > #{jyPwd},</if>
<if test= "blNotInput != null" > #{blNotInput},</if>
<if test= "stopDate != null and stopDate != ''" > #{stopDate},</if>
<if test= "blAllowAgentMoney != null" > #{blAllowAgentMoney},</if>
<if test= "blAllowTopayment != null" > #{blAllowTopayment},</if>
<if test= "goodsPaymentLimited != null and goodsPaymentLimited != ''" > #{goodsPaymentLimited},</if>
<if test= "topaymentLimited != null and topaymentLimited != ''" > #{topaymentLimited},</if>
<if test= "blRec != null and blRec != ''" > #{blRec},</if>
<if test= "blDisp != null and blDisp != ''" > #{blDisp},</if>
<if test= "blCome != null" > #{blCome},</if>
<if test= "blOpenTaobao != null and blOpenTaobao != ''" > #{blOpenTaobao},</if>
<if test= "blArbitrationDepartment != null and blArbitrationDepartment != ''" > #{blArbitrationDepartment},</if>
<if test= "blAllowAgentSign != null and blAllowAgentSign != ''" > #{blAllowAgentSign},</if>
<if test= "blMessage != null and blMessage != ''" > #{blMessage},</if>
<if test= "blProvide != null" > #{blProvide},</if>
<if test= "blProjectclient != null and blProjectclient != ''" > #{blProjectclient},</if>
<if test= "blVipSite != null and blVipSite != ''" > #{blVipSite},</if>
<if test= "blDispatchZt != null" > #{blDispatchZt},</if>
<if test= "blBilltoAccount != null" > #{blBilltoAccount},</if>
<if test= "accountCode != null and accountCode != ''" > #{accountCode},</if>
<if test= "address != null and address != ''" > #{address},</if>
<if test= "dispDeliveryMode != null and dispDeliveryMode != ''" > #{dispDeliveryMode},</if>
<if test= "transTypeId != null and transTypeId != ''" > #{transTypeId},</if>
<if test= "transTypeName != null and transTypeName != ''" > #{transTypeName},</if>
<if test= "orgId != null and orgId != ''" > #{orgId},</if>
<if test= "orgName != null and orgName != ''" > #{orgName},</if>
<if test= "dataFrom != null and dataFrom != ''" > #{dataFrom},</if>
<if test= "siteArea != null and siteArea != ''" > #{siteArea},</if>
<if test= "blAllowDispAgentMoney != null and blAllowDispAgentMoney != ''" > #{blAllowDispAgentMoney},</if>
<if test= "dispGoodsPaymentLimited != null and dispGoodsPaymentLimited != ''" > #{dispGoodsPaymentLimited},</if>
<if test= "dispDeliverySite != null and dispDeliverySite != ''" > #{dispDeliverySite},</if>
<if test= "dispDeliverySiteCode != null and dispDeliverySiteCode != ''" > #{dispDeliverySiteCode},</if>
<if test= "vendorName != null and vendorName != ''" > #{vendorName},</if>
<if test= "creditCode != null and creditCode != ''" > #{creditCode},</if>
<if test= "blCargoService != null and blCargoService != ''" > #{blCargoService},</if>
<if test= "blHandlingService != null and blHandlingService != ''" > #{blHandlingService},</if>
<if test= "pickupCenterSiteCode != null and pickupCenterSiteCode != ''" > #{pickupCenterSiteCode},</if>
<if test= "pickupCenterSiteName != null and pickupCenterSiteName != ''" > #{pickupCenterSiteName},</if>
<if test= "pickupCenterSiteId != null and pickupCenterSiteId != ''" > #{pickupCenterSiteId},</if>
<if test= "blDispGood != null and blDispGood != ''" > #{blDispGood},</if>
<if test= "blPushJd != null and blPushJd != ''" > #{blPushJd},</if>
<if test= "pushDate != null and pushDate != ''" > #{pushDate},</if>
<if test= "reason != null and reason != ''" > #{reason},</if>
<if test= "sitePos != null and sitePos != ''" > #{sitePos},</if>
<if test= "distributeCode != null and distributeCode != ''" > #{distributeCode},</if>
<if test= "dispDeliverySiteId != null and dispDeliverySiteId != ''" > #{dispDeliverySiteId},</if>
<if test= "blPushSite != null" > #{blPushSite},</if>
<if test= "siteType != null and siteType != ''" > #{siteType},</if>
<if test= "logoType != null and logoType != ''" > #{logoType},</if>
<if test= "sizeCode2 != null and sizeCode2 != ''" > #{sizeCode2},</if>
<if test= "sizeCode3 != null and sizeCode3 != ''" > #{sizeCode3},</if>
<if test= "auditStatus != null and auditStatus != ''" > #{auditStatus},</if>
<if test= "auditDate != null and auditDate != ''" > #{auditDate},</if>
<if test= "auditMan != null and auditMan != ''" > #{auditMan},</if>
<if test= "auditManCode != null and auditManCode != ''" > #{auditManCode},</if>
<if test= "auditSite != null and auditSite != ''" > #{auditSite},</if>
<if test= "auditSiteCode != null and auditSiteCode != ''" > #{auditSiteCode},</if>
<if test= "blClass != null" > #{blClass},</if>
<if test= "blMaterial != null" > #{blMaterial},</if>
<if test= "soonPieceType != null and soonPieceType != ''" > #{soonPieceType},</if>
<if test= "provinceArea != null and provinceArea != ''" > #{provinceArea},</if>
<if test= "secondArea != null and secondArea != ''" > #{secondArea},</if>
<if test= "secondAreaCode != null and secondAreaCode != ''" > #{secondAreaCode},</if>
<if test= "provinceAreaCode != null and provinceAreaCode != ''" > #{provinceAreaCode},</if>
<if test= "blRecName != null" > #{blRecName},</if>
<if test= "blDispName != null" > #{blDispName},</if>
<if test= "blNotInputName != null" > #{blNotInputName},</if>
<if test= "blDispatchZtName != null" > #{blDispatchZtName},</if>
<if test= "blAllowAgentMoneyName != null" > #{blAllowAgentMoneyName},</if>
<if test= "blAllowTopaymentName != null" > #{blAllowTopaymentName},</if>
<if test= "blCargoServiceName != null" > #{blCargoServiceName},</if>
<if test= "blHandlingServiceName != null" > #{blHandlingServiceName},</if>
<if test= "blAllowDispAgentMoneyName != null" > #{blAllowDispAgentMoneyName},</if>
<if test= "blDispGoodName != null" > #{blDispGoodName},</if>
<if test= "provinceCode != null and provinceCode != ''" > #{provinceCode},</if>
<if test= "cityCode != null and cityCode != ''" > #{cityCode},</if>
<if test= "countyCode != null and countyCode != ''" > #{countyCode},</if>
<if test= "townCode != null and townCode != ''" > #{townCode},</if>
<if test= "blNotRecName != null and blNotRecName != ''" > #{blNotRecName},</if>
<if test= "blNotRec != null and blNotRec != ''" > #{blNotRec},</if>
<if test= "blNotDispName != null and blNotDispName != ''" > #{blNotDispName},</if>
<if test= "blNotDisp != null and blNotDisp != ''" > #{blNotDisp},</if>
<if test= "blNotCashOutName != null and blNotCashOutName != ''" > #{blNotCashOutName},</if>
<if test= "blNotCashOut != null and blNotCashOut != ''" > #{blNotCashOut},</if>
<if test= "remark != null and remark != ''" > #{remark},</if>
<if test= "tenantId != null and tenantId != ''" > #{tenantId},</if>
<if test= "delFlag != null and delFlag != ''" > #{delFlag},</if>
<if test= "createBy != null and createBy != ''" > #{createBy},</if>
<if test= "createTime != null" > #{createTime},</if>
<if test= "updateBy != null and updateBy != ''" > #{updateBy},</if>
<if test= "updateTime != null" > #{updateTime},</if>
</trim>
</insert>
<update id= "updateEmisSite" parameterType= "EmisSite" >
update emis_site
<trim prefix= "SET" suffixOverrides= "," >
<if test= "siteCode != null and siteCode != ''" > site_code = #{siteCode},</if>
<if test= "siteName != null and siteName != ''" > site_name = #{siteName},</if>
<if test= "siteNameEn != null and siteNameEn != ''" > site_name_en = #{siteNameEn},</if>
<if test= "parentSiteId != null and parentSiteId != ''" > parent_site_id = #{parentSiteId},</if>
<if test= "parentSiteCode != null and parentSiteCode != ''" > parent_site_code = #{parentSiteCode},</if>
<if test= "parentSiteName != null and parentSiteName != ''" > parent_site_name = #{parentSiteName},</if>
<if test= "defaultCurrency != null and defaultCurrency != ''" > default_currency = #{defaultCurrency},</if>
<if test= "cutOffTime != null and cutOffTime != ''" > cut_off_time = #{cutOffTime},</if>
<if test= "superiorFinanceCenterCode != null and superiorFinanceCenterCode != ''" > superior_finance_center_code = #{superiorFinanceCenterCode},</if>
<if test= "superiorFinanceCenter != null and superiorFinanceCenter != ''" > superior_finance_center = #{superiorFinanceCenter},</if>
<if test= "type != null and type != ''" > type = #{type},</if>
<if test= "defaultDestinationNameCode != null and defaultDestinationNameCode != ''" > default_destination_name_code = #{defaultDestinationNameCode},</if>
<if test= "defaultSendPlace != null and defaultSendPlace != ''" > default_send_place = #{defaultSendPlace},</if>
<if test= "countryCode != null and countryCode != ''" > country_code = #{countryCode},</if>
<if test= "province != null and province != ''" > province = #{province},</if>
<if test= "city != null and city != ''" > city = #{city},</if>
<if test= "county != null and county != ''" > county = #{county},</if>
<if test= "town != null and town != ''" > town = #{town},</if>
<if test= "areaCode != null and areaCode != ''" > area_code = #{areaCode},</if>
<if test= "areaName != null and areaName != ''" > area_name = #{areaName},</if>
<if test= "rangeName != null and rangeName != ''" > range_name = #{rangeName},</if>
<if test= "phone != null and phone != ''" > phone = #{phone},</if>
<if test= "principal != null and principal != ''" > principal = #{principal},</if>
<if test= "manager != null and manager != ''" > manager = #{manager},</if>
<if test= "managerPhone != null and managerPhone != ''" > manager_phone = #{managerPhone},</if>
<if test= "salePhone != null and salePhone != ''" > sale_phone = #{salePhone},</if>
<if test= "exigencePhone != null and exigencePhone != ''" > exigence_phone = #{exigencePhone},</if>
<if test= "fax != null and fax != ''" > fax = #{fax},</if>
<if test= "siteDesc != null and siteDesc != ''" > site_desc = #{siteDesc},</if>
<if test= "dispatchRange != null and dispatchRange != ''" > dispatch_range = #{dispatchRange},</if>
<if test= "notDispatchRange != null and notDispatchRange != ''" > not_dispatch_range = #{notDispatchRange},</if>
<if test= "publicRemark != null and publicRemark != ''" > public_remark = #{publicRemark},</if>
<if test= "privateRemark != null and privateRemark != ''" > private_remark = #{privateRemark},</if>
<if test= "orderBy != null and orderBy != ''" > order_by = #{orderBy},</if>
<if test= "financialAccount != null and financialAccount != ''" > financial_account = #{financialAccount},</if>
<if test= "tbSerName != null and tbSerName != ''" > tb_ser_name = #{tbSerName},</if>
<if test= "tbSerTel != null and tbSerTel != ''" > tb_ser_tel = #{tbSerTel},</if>
<if test= "tbSerWw != null and tbSerWw != ''" > tb_ser_ww = #{tbSerWw},</if>
<if test= "carStartTime != null and carStartTime != ''" > car_start_time = #{carStartTime},</if>
<if test= "carEndTime != null and carEndTime != ''" > car_end_time = #{carEndTime},</if>
<if test= "blWeb != null" > bl_web = #{blWeb},</if>
<if test= "joinTime != null and joinTime != ''" > join_time = #{joinTime},</if>
<if test= "mapsCoordinate != null and mapsCoordinate != ''" > maps_coordinate = #{mapsCoordinate},</if>
<if test= "specserviceRange != null and specserviceRange != ''" > specservice_range = #{specserviceRange},</if>
<if test= "qq != null and qq != ''" > qq = #{qq},</if>
<if test= "email != null and email != ''" > email = #{email},</if>
<if test= "serviceQuality != null and serviceQuality != ''" > service_quality = #{serviceQuality},</if>
<if test= "salesQuality != null and salesQuality != ''" > sales_quality = #{salesQuality},</if>
<if test= "levels != null and levels != ''" > levels = #{levels},</if>
<if test= "warehouseName != null and warehouseName != ''" > warehouse_name = #{warehouseName},</if>
<if test= "siteLimite != null and siteLimite != ''" > site_limite = #{siteLimite},</if>
<if test= "jyMobile != null and jyMobile != ''" > jy_mobile = #{jyMobile},</if>
<if test= "jyPwd != null and jyPwd != ''" > jy_pwd = #{jyPwd},</if>
<if test= "blNotInput != null" > bl_not_input = #{blNotInput},</if>
<if test= "stopDate != null and stopDate != ''" > stop_date = #{stopDate},</if>
<if test= "blAllowAgentMoney != null" > bl_allow_agent_money = #{blAllowAgentMoney},</if>
<if test= "blAllowTopayment != null" > bl_allow_topayment = #{blAllowTopayment},</if>
<if test= "goodsPaymentLimited != null and goodsPaymentLimited != ''" > goods_payment_limited = #{goodsPaymentLimited},</if>
<if test= "topaymentLimited != null and topaymentLimited != ''" > topayment_limited = #{topaymentLimited},</if>
<if test= "blRec != null and blRec != ''" > bl_rec = #{blRec},</if>
<if test= "blDisp != null and blDisp != ''" > bl_disp = #{blDisp},</if>
<if test= "blCome != null" > bl_come = #{blCome},</if>
<if test= "blOpenTaobao != null and blOpenTaobao != ''" > bl_open_taobao = #{blOpenTaobao},</if>
<if test= "blArbitrationDepartment != null and blArbitrationDepartment != ''" > bl_arbitration_department = #{blArbitrationDepartment},</if>
<if test= "blAllowAgentSign != null and blAllowAgentSign != ''" > bl_allow_agent_sign = #{blAllowAgentSign},</if>
<if test= "blMessage != null and blMessage != ''" > bl_message = #{blMessage},</if>
<if test= "blProvide != null" > bl_provide = #{blProvide},</if>
<if test= "blProjectclient != null and blProjectclient != ''" > bl_projectclient = #{blProjectclient},</if>
<if test= "blVipSite != null and blVipSite != ''" > bl_vip_site = #{blVipSite},</if>
<if test= "blDispatchZt != null" > bl_dispatch_zt = #{blDispatchZt},</if>
<if test= "blBilltoAccount != null" > bl_billto_account = #{blBilltoAccount},</if>
<if test= "accountCode != null and accountCode != ''" > account_code = #{accountCode},</if>
<if test= "address != null and address != ''" > address = #{address},</if>
<if test= "dispDeliveryMode != null and dispDeliveryMode != ''" > disp_delivery_mode = #{dispDeliveryMode},</if>
<if test= "transTypeId != null and transTypeId != ''" > trans_type_id = #{transTypeId},</if>
<if test= "transTypeName != null and transTypeName != ''" > trans_type_name = #{transTypeName},</if>
<if test= "orgId != null and orgId != ''" > org_id = #{orgId},</if>
<if test= "orgName != null and orgName != ''" > org_name = #{orgName},</if>
<if test= "dataFrom != null and dataFrom != ''" > data_from = #{dataFrom},</if>
<if test= "siteArea != null and siteArea != ''" > site_area = #{siteArea},</if>
<if test= "blAllowDispAgentMoney != null and blAllowDispAgentMoney != ''" > bl_allow_disp_agent_money = #{blAllowDispAgentMoney},</if>
<if test= "dispGoodsPaymentLimited != null and dispGoodsPaymentLimited != ''" > disp_goods_payment_limited = #{dispGoodsPaymentLimited},</if>
<if test= "dispDeliverySite != null and dispDeliverySite != ''" > disp_delivery_site = #{dispDeliverySite},</if>
<if test= "dispDeliverySiteCode != null and dispDeliverySiteCode != ''" > disp_delivery_site_code = #{dispDeliverySiteCode},</if>
<if test= "vendorName != null and vendorName != ''" > vendor_name = #{vendorName},</if>
<if test= "creditCode != null and creditCode != ''" > credit_code = #{creditCode},</if>
<if test= "blCargoService != null and blCargoService != ''" > bl_cargo_service = #{blCargoService},</if>
<if test= "blHandlingService != null and blHandlingService != ''" > bl_handling_service = #{blHandlingService},</if>
<if test= "pickupCenterSiteCode != null and pickupCenterSiteCode != ''" > pickup_center_site_code = #{pickupCenterSiteCode},</if>
<if test= "pickupCenterSiteName != null and pickupCenterSiteName != ''" > pickup_center_site_name = #{pickupCenterSiteName},</if>
<if test= "pickupCenterSiteId != null and pickupCenterSiteId != ''" > pickup_center_site_id = #{pickupCenterSiteId},</if>
<if test= "blDispGood != null and blDispGood != ''" > bl_disp_good = #{blDispGood},</if>
<if test= "blPushJd != null and blPushJd != ''" > bl_push_jd = #{blPushJd},</if>
<if test= "pushDate != null and pushDate != ''" > push_date = #{pushDate},</if>
<if test= "reason != null and reason != ''" > reason = #{reason},</if>
<if test= "sitePos != null and sitePos != ''" > site_pos = #{sitePos},</if>
<if test= "distributeCode != null and distributeCode != ''" > distribute_code = #{distributeCode},</if>
<if test= "dispDeliverySiteId != null and dispDeliverySiteId != ''" > disp_delivery_site_id = #{dispDeliverySiteId},</if>
<if test= "blPushSite != null" > bl_push_site = #{blPushSite},</if>
<if test= "siteType != null and siteType != ''" > site_type = #{siteType},</if>
<if test= "logoType != null and logoType != ''" > logo_type = #{logoType},</if>
<if test= "sizeCode2 != null and sizeCode2 != ''" > size_code2 = #{sizeCode2},</if>
<if test= "sizeCode3 != null and sizeCode3 != ''" > size_code3 = #{sizeCode3},</if>
<if test= "auditStatus != null and auditStatus != ''" > audit_status = #{auditStatus},</if>
<if test= "auditDate != null and auditDate != ''" > audit_date = #{auditDate},</if>
<if test= "auditMan != null and auditMan != ''" > audit_man = #{auditMan},</if>
<if test= "auditManCode != null and auditManCode != ''" > audit_man_code = #{auditManCode},</if>
<if test= "auditSite != null and auditSite != ''" > audit_site = #{auditSite},</if>
<if test= "auditSiteCode != null and auditSiteCode != ''" > audit_site_code = #{auditSiteCode},</if>
<if test= "blClass != null" > bl_class = #{blClass},</if>
<if test= "blMaterial != null" > bl_material = #{blMaterial},</if>
<if test= "soonPieceType != null and soonPieceType != ''" > soon_piece_type = #{soonPieceType},</if>
<if test= "provinceArea != null and provinceArea != ''" > province_area = #{provinceArea},</if>
<if test= "secondArea != null and secondArea != ''" > second_area = #{secondArea},</if>
<if test= "secondAreaCode != null and secondAreaCode != ''" > second_area_code = #{secondAreaCode},</if>
<if test= "provinceAreaCode != null and provinceAreaCode != ''" > province_area_code = #{provinceAreaCode},</if>
<if test= "blRecName != null" > bl_rec_name = #{blRecName},</if>
<if test= "blDispName != null" > bl_disp_name = #{blDispName},</if>
<if test= "blNotInputName != null" > bl_not_input_name = #{blNotInputName},</if>
<if test= "blDispatchZtName != null" > bl_dispatch_zt_name = #{blDispatchZtName},</if>
<if test= "blAllowAgentMoneyName != null" > bl_allow_agent_money_name = #{blAllowAgentMoneyName},</if>
<if test= "blAllowTopaymentName != null" > bl_allow_topayment_name = #{blAllowTopaymentName},</if>
<if test= "blCargoServiceName != null" > bl_cargo_service_name = #{blCargoServiceName},</if>
<if test= "blHandlingServiceName != null" > bl_handling_service_name = #{blHandlingServiceName},</if>
<if test= "blAllowDispAgentMoneyName != null" > bl_allow_disp_agent_money_name = #{blAllowDispAgentMoneyName},</if>
<if test= "blDispGoodName != null" > bl_disp_good_name = #{blDispGoodName},</if>
<if test= "provinceCode != null and provinceCode != ''" > province_code = #{provinceCode},</if>
<if test= "cityCode != null and cityCode != ''" > city_code = #{cityCode},</if>
<if test= "countyCode != null and countyCode != ''" > county_code = #{countyCode},</if>
<if test= "townCode != null and townCode != ''" > town_code = #{townCode},</if>
<if test= "blNotRecName != null and blNotRecName != ''" > bl_not_rec_name = #{blNotRecName},</if>
<if test= "blNotRec != null and blNotRec != ''" > bl_not_rec = #{blNotRec},</if>
<if test= "blNotDispName != null and blNotDispName != ''" > bl_not_disp_name = #{blNotDispName},</if>
<if test= "blNotDisp != null and blNotDisp != ''" > bl_not_disp = #{blNotDisp},</if>
<if test= "blNotCashOutName != null and blNotCashOutName != ''" > bl_not_cash_out_name = #{blNotCashOutName},</if>
<if test= "blNotCashOut != null and blNotCashOut != ''" > bl_not_cash_out = #{blNotCashOut},</if>
<if test= "remark != null and remark != ''" > remark = #{remark},</if>
<if test= "tenantId != null and tenantId != ''" > tenant_id = #{tenantId},</if>
<if test= "delFlag != null and delFlag != ''" > del_flag = #{delFlag},</if>
<if test= "createBy != null and createBy != ''" > create_by = #{createBy},</if>
<if test= "createTime != null" > create_time = #{createTime},</if>
<if test= "updateBy != null and updateBy != ''" > update_by = #{updateBy},</if>
<if test= "updateTime != null" > update_time = #{updateTime},</if>
</trim>
where id = #{id}
</update>
<delete id= "deleteEmisSiteById" parameterType= "Long" >
delete from emis_site where id = #{id}
</delete>
<delete id= "deleteEmisSiteByIds" parameterType= "String" >
delete from emis_site where id in
<foreach item= "id" collection= "array" open= "(" separator= "," close= ")" >
#{id}
</foreach>
</delete>
</mapper>