2023-12-14 13:08:36 +00:00
<?xml version="1.0" encoding="UTF-8" ?>
< !DOCTYPE mapper
2024-04-17 04:47:44 +00:00
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
2023-12-14 13:08:36 +00:00
<mapper namespace= "com.xdadan.erp.emis.mapper.EmisSiteMapper" >
2024-04-17 04:47:44 +00:00
2024-06-02 02:57:46 +00:00
<resultMap type= "EmisSite" id= "EmisSiteResult" extends= "com.xdadan.erp.emis.mapper.EmisBaseMapper.EmisBaseResult" >
2023-12-14 13:08:36 +00:00
<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= "parentSiteCode" column= "parent_site_code" />
<result property= "defaultCurrency" column= "default_currency" />
<result property= "cutOffTime" column= "cut_off_time" />
<result property= "superiorFinanceCenterCode" column= "superior_finance_center_code" />
2024-04-17 04:47:44 +00:00
<result property= "siteType" column= "site_type" />
2024-04-18 08:16:03 +00:00
<result property= "scopeType" column= "scope_type" />
2023-12-14 13:08:36 +00:00
<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" />
2024-04-18 22:54:32 +00:00
<result property= "siteLevels" column= "site_levels" />
2023-12-14 13:08:36 +00:00
<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" />
2024-04-17 04:47:44 +00:00
<result property= "orderNum" column= "order_num" />
2023-12-14 13:08:36 +00:00
<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= "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= "blPushSite" column= "bl_push_site" />
2024-04-18 22:54:32 +00:00
<result property= "logoType" column= "logo_type" />
2023-12-14 13:08:36 +00:00
<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= "auditManCode" column= "audit_man_code" />
<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= "blDispGoodName" column= "bl_disp_good_name" />
<result property= "blNotRec" column= "bl_not_rec" />
<result property= "blNotDisp" column= "bl_not_disp" />
<result property= "blNotCashOut" column= "bl_not_cash_out" />
2024-04-18 08:16:03 +00:00
<result property= "status" column= "status" />
2024-04-18 22:54:32 +00:00
<result property= "incrementService" column= "increment_service" />
<result property= "blWarehouseIn" column= "bl_warehouse_in" />
2024-06-02 02:57:46 +00:00
2024-04-18 09:54:33 +00:00
2024-06-02 01:10:24 +00:00
<association property= "countryName" column= "country_code" select= "com.xdadan.erp.emis.mapper.EmisBaseMapper.selectCountryNameByCode" />
<association property= "provinceName" column= "province" select= "com.xdadan.erp.emis.mapper.EmisBaseMapper.selectRegionNameByCode" />
<association property= "cityName" column= "city" select= "com.xdadan.erp.emis.mapper.EmisBaseMapper.selectRegionNameByCode" />
<association property= "countyName" column= "county" select= "com.xdadan.erp.emis.mapper.EmisBaseMapper.selectRegionNameByCode" />
<association property= "townName" column= "town" select= "com.xdadan.erp.emis.mapper.EmisBaseMapper.selectRegionNameByCode" />
<association property= "parentSiteName" column= "parent_site_code" select= "com.xdadan.erp.emis.mapper.EmisBaseMapper.selectSiteNameByCode" />
<association property= "superiorFinanceCenterName" column= "superior_finance_center_code" select= "com.xdadan.erp.emis.mapper.EmisBaseMapper.selectSiteNameByCode" />
<association property= "logoTypeName" column= "logo_type" select= "com.xdadan.erp.emis.mapper.EmisBaseMapper.selectBrandNameByCode" />
2024-04-18 09:54:33 +00:00
2023-12-14 13:08:36 +00:00
</resultMap>
<sql id= "selectEmisSiteVo" >
2024-04-19 03:32:44 +00:00
select id, site_code, site_name, site_name_en, parent_site_code, default_currency, cut_off_time, superior_finance_center_code, site_type, scope_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_levels, site_desc, dispatch_range, not_dispatch_range, public_remark, private_remark, order_num, 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, bl_disp_good, bl_push_jd, push_date, reason, site_pos, distribute_code, bl_push_site, logo_type, size_code2, size_code3, audit_status, audit_date, audit_man_code, audit_site_code, bl_class, bl_material, soon_piece_type, province_area, second_area, second_area_code, province_area_code, bl_disp_good_name, bl_not_rec, bl_not_disp, bl_not_cash_out, status, increment_service, bl_warehouse_in, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time, create_site, update_site from emis_site
2023-12-14 13:08:36 +00:00
</sql>
2024-04-18 22:54:32 +00:00
2023-12-14 13:08:36 +00:00
<select id= "selectEmisSiteList" parameterType= "EmisSite" resultMap= "EmisSiteResult" >
<include refid= "selectEmisSiteVo" />
2024-04-17 04:47:44 +00:00
<where >
2023-12-14 13:08:36 +00:00
<if test= "id != null " > and id = #{id}</if>
2025-03-06 10:55:12 +00:00
<if test= "siteCode != null and siteCode != ''" > and FIND_IN_SET(`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= "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>
2024-04-18 22:54:32 +00:00
<if test= "superiorFinanceCenterCode != null and superiorFinanceCenterCode != ''" > and superior_finance_center_code = #{superiorFinanceCenterCode}</if>
<if test= "siteType != null and siteType != ''" > and site_type = #{siteType}</if>
<if test= "scopeType != null and scopeType != ''" > and scope_type = #{scopeType}</if>
2023-12-14 13:08:36 +00:00
<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>
2024-04-18 22:54:32 +00:00
<if test= "countryCode != null and countryCode != ''" > and country_code = #{countryCode}</if>
<if test= "province != null and province != ''" > and province = #{province}</if>
<if test= "city != null and city != ''" > and city = #{city}</if>
<if test= "county != null and county != ''" > and county = #{county}</if>
<if test= "town != null and town != ''" > and town = #{town}</if>
2023-12-14 13:08:36 +00:00
<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>
2024-04-18 22:54:32 +00:00
<if test= "siteLevels != null and siteLevels != ''" > and site_levels like concat('%', #{siteLevels}, '%')</if>
2023-12-14 13:08:36 +00:00
<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>
2024-04-17 04:47:44 +00:00
<if test= "orderNum != null " > and order_num = #{orderNum}</if>
2023-12-14 13:08:36 +00:00
<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>
2024-04-18 22:54:32 +00:00
<if test= "blWeb != null and blWeb != ''" > and bl_web like concat('%', #{blWeb}, '%')</if>
2023-12-14 13:08:36 +00:00
<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>
2024-04-18 22:54:32 +00:00
<if test= "blNotInput != null and blNotInput != ''" > and bl_not_input like concat('%', #{blNotInput}, '%')</if>
2023-12-14 13:08:36 +00:00
<if test= "stopDate != null and stopDate != ''" > and stop_date like concat('%', #{stopDate}, '%')</if>
2024-04-18 22:54:32 +00:00
<if test= "blAllowAgentMoney != null and blAllowAgentMoney != ''" > and bl_allow_agent_money like concat('%', #{blAllowAgentMoney}, '%')</if>
<if test= "blAllowTopayment != null and blAllowTopayment != ''" > and bl_allow_topayment like concat('%', #{blAllowTopayment}, '%')</if>
2023-12-14 13:08:36 +00:00
<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>
2024-04-18 22:54:32 +00:00
<if test= "blCome != null and blCome != ''" > and bl_come like concat('%', #{blCome}, '%')</if>
2023-12-14 13:08:36 +00:00
<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>
2024-04-18 22:54:32 +00:00
<if test= "blProvide != null and blProvide != ''" > and bl_provide like concat('%', #{blProvide}, '%')</if>
2023-12-14 13:08:36 +00:00
<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>
2024-04-18 22:54:32 +00:00
<if test= "blDispatchZt != null and blDispatchZt != ''" > and bl_dispatch_zt like concat('%', #{blDispatchZt}, '%')</if>
<if test= "blBilltoAccount != null and blBilltoAccount != ''" > and bl_billto_account like concat('%', #{blBilltoAccount}, '%')</if>
2023-12-14 13:08:36 +00:00
<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= "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>
2024-04-18 22:54:32 +00:00
<if test= "pushDate != null " > and push_date = #{pushDate}</if>
2023-12-14 13:08:36 +00:00
<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>
2024-04-18 22:54:32 +00:00
<if test= "blPushSite != null and blPushSite != ''" > and bl_push_site like concat('%', #{blPushSite}, '%')</if>
2024-05-11 11:32:06 +00:00
<if test= "logoType != null and logoType != ''" > and logo_type=#{logoType}</if>
2023-12-14 13:08:36 +00:00
<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>
2024-04-18 22:54:32 +00:00
<if test= "auditDate != null " > and audit_date = #{auditDate}</if>
2023-12-14 13:08:36 +00:00
<if test= "auditManCode != null and auditManCode != ''" > and audit_man_code like concat('%', #{auditManCode}, '%')</if>
<if test= "auditSiteCode != null and auditSiteCode != ''" > and audit_site_code like concat('%', #{auditSiteCode}, '%')</if>
2024-04-18 22:54:32 +00:00
<if test= "blClass != null and blClass != ''" > and bl_class like concat('%', #{blClass}, '%')</if>
<if test= "blMaterial != null and blMaterial != ''" > and bl_material like concat('%', #{blMaterial}, '%')</if>
2023-12-14 13:08:36 +00:00
<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>
2024-04-18 22:54:32 +00:00
<if test= "blDispGoodName != null and blDispGoodName != ''" > and bl_disp_good_name like concat('%', #{blDispGoodName}, '%')</if>
2023-12-14 13:08:36 +00:00
<if test= "blNotRec != null and blNotRec != ''" > and bl_not_rec like concat('%', #{blNotRec}, '%')</if>
<if test= "blNotDisp != null and blNotDisp != ''" > and bl_not_disp like concat('%', #{blNotDisp}, '%')</if>
<if test= "blNotCashOut != null and blNotCashOut != ''" > and bl_not_cash_out like concat('%', #{blNotCashOut}, '%')</if>
2024-04-18 08:16:03 +00:00
<if test= "status != null and status != ''" > and status like concat('%', #{status}, '%')</if>
2024-04-18 22:54:32 +00:00
<if test= "incrementService != null and incrementService != ''" > and increment_service like concat('%', #{incrementService}, '%')</if>
<if test= "blWarehouseIn != null and blWarehouseIn != ''" > and bl_warehouse_in like concat('%', #{blWarehouseIn}, '%')</if>
2023-12-14 13:08:36 +00:00
<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>
2024-04-17 04:47:44 +00:00
<if test= "createSite != null and createSite != ''" > and create_site like concat('%', #{createSite}, '%')</if>
<if test= "updateSite != null and updateSite != ''" > and update_site like concat('%', #{updateSite}, '%')</if>
2024-04-22 16:33:05 +00:00
<if test= "parentSiteCode != null and parentSiteCode != ''" >
<choose >
<!-- 子网点 -->
2024-06-14 02:48:12 +00:00
<when test= "params.blIncludeChildSite != null and params.blIncludeChildSite == '1'" >
2024-04-22 16:35:55 +00:00
AND site_code in (
2024-04-22 16:33:05 +00:00
SELECT t1.site_code FROM (
SELECT * FROM emis_site WHERE parent_site_code IS NOT NULL ) t1,( SELECT @pid :=
#{parentSiteCode} ) pd
WHERE FIND_IN_SET( parent_site_code, @pid ) > 0 AND @pid := concat(@pid,',',site_code)
2024-05-12 22:57:34 +00:00
UNION
SELECT #{parentSiteCode} FROM dual
2024-04-22 16:33:05 +00:00
)
</when>
<otherwise >
2024-04-22 16:35:55 +00:00
AND parent_site_code=#{parentSiteCode}
2024-04-22 16:33:05 +00:00
</otherwise>
</choose>
</if>
2024-05-01 16:18:28 +00:00
<if test= "searchValue != null and searchValue != ''" >
AND ( site_code like concat(#{searchValue}, '%') or site_name like concat(#{searchValue}, '%') )
</if>
2023-12-14 13:08:36 +00:00
</where>
2025-03-06 10:55:12 +00:00
<if test= "params.siteCodeSortList != null and params.siteCodeSortList.size >0 " >
ORDER BY FIELD
<foreach collection= "params.siteCodeSortList" item= "item" open= "(site_code," separator= "," close= ")" >
#{item}
</foreach>
</if>
<if test= "params.siteCodeSortList == null " >
ORDER BY order_num desc
</if>
2023-12-14 13:08:36 +00:00
</select>
2024-04-17 04:47:44 +00:00
2025-04-28 01:40:50 +00:00
<select id= "selectSeaWaySiteList" parameterType= "EmisSite" resultMap= "EmisSiteResult" >
<include refid= "selectEmisSiteVo" />
<where >
del_flag='0'
<if test= "status != null and status != ''" > and status like concat('%', #{status}, '%')</if>
2025-04-29 01:14:46 +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>
2025-04-28 01:40:50 +00:00
<if test= "siteCode != null and siteCode != ''" > and site_code=#{siteCode}</if>
<if test= "transTypeId != null and transTypeId != ''" > and trans_type_id like concat('%', #{transTypeId}, '%')</if>
</where>
ORDER BY id desc
</select>
2024-04-22 16:33:05 +00:00
<!-- <if test="parentSiteCode != null and parentSiteCode != ''"> and parent_site_code = #{parentSiteCode}</if> -->
2024-07-27 00:28:55 +00:00
<select id= "selectEmisSiteListAsWarehouse" parameterType= "EmisSite" resultType= "map" >
select
site_code as code,
site_name as name,
principal as contact,
manager_phone as tel,
address as address
2023-12-14 13:08:36 +00:00
from emis_site a
2025-01-03 01:24:00 +00:00
where a.del_flag='0' and bl_warehouse_in='1'
2024-07-29 05:07:50 +00:00
<if test= "searchValue != null and searchValue != ''" >
and site_name like concat('%', #{searchValue}, '%')
</if>
2024-08-31 09:32:35 +00:00
<if test= "params.transTypeId != null and params.transTypeId != ''" >
and FIND_IN_SET(`trans_type_id`,#{params.transTypeId})
2024-07-29 05:07:50 +00:00
</if>
2024-12-13 00:09:37 +00:00
order by order_num desc
2024-07-27 00:28:55 +00:00
2023-12-14 13:08:36 +00:00
</select>
2024-04-17 04:47:44 +00:00
2024-07-29 02:47:48 +00:00
<select id= "selectEmisSiteById" parameterType= "Long" resultMap= "EmisSiteResult" >
2024-07-29 01:46:52 +00:00
select id, site_code, site_name, site_name_en, parent_site_code, default_currency, cut_off_time, superior_finance_center_code, site_type, scope_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_levels, site_desc, dispatch_range, not_dispatch_range, public_remark, private_remark, order_num, 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, bl_disp_good, bl_push_jd, push_date, reason, site_pos, distribute_code, bl_push_site, logo_type, size_code2, size_code3, audit_status, audit_date, audit_man_code, audit_site_code, bl_class, bl_material, soon_piece_type, province_area, second_area, second_area_code, province_area_code, bl_disp_good_name, bl_not_rec, bl_not_disp, bl_not_cash_out, status, increment_service, bl_warehouse_in, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time, create_site, update_site
from emis_site a
where a.id = #{id} and a.del_flag='0'
</select>
2024-07-27 00:28:55 +00:00
2024-07-01 14:57:01 +00:00
<select id= "getEmisSiteByCode" parameterType= "String" resultMap= "EmisSiteResult" >
select id, site_code, site_name, site_name_en, parent_site_code, default_currency, cut_off_time, superior_finance_center_code, site_type, scope_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_levels, site_desc, dispatch_range, not_dispatch_range, public_remark, private_remark, order_num, 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, bl_disp_good, bl_push_jd, push_date, reason, site_pos, distribute_code, bl_push_site, logo_type, size_code2, size_code3, audit_status, audit_date, audit_man_code, audit_site_code, bl_class, bl_material, soon_piece_type, province_area, second_area, second_area_code, province_area_code, bl_disp_good_name, bl_not_rec, bl_not_disp, bl_not_cash_out, status, increment_service, bl_warehouse_in, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time, create_site, update_site
from emis_site a
2025-03-16 09:48:22 +00:00
where a.del_flag='0' and a.site_code = #{siteCode} limit 1
2024-07-01 14:57:01 +00:00
</select>
2025-01-02 16:20:28 +00:00
<select id= "getEmisSiteByName" parameterType= "String" resultMap= "EmisSiteResult" >
select id, site_code, site_name, site_name_en, parent_site_code, default_currency, cut_off_time, superior_finance_center_code, site_type, scope_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_levels, site_desc, dispatch_range, not_dispatch_range, public_remark, private_remark, order_num, 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, bl_disp_good, bl_push_jd, push_date, reason, site_pos, distribute_code, bl_push_site, logo_type, size_code2, size_code3, audit_status, audit_date, audit_man_code, audit_site_code, bl_class, bl_material, soon_piece_type, province_area, second_area, second_area_code, province_area_code, bl_disp_good_name, bl_not_rec, bl_not_disp, bl_not_cash_out, status, increment_service, bl_warehouse_in, remark, tenant_id, del_flag, create_by, create_time, update_by, update_time, create_site, update_site
from emis_site a
2025-03-16 09:48:22 +00:00
where a.del_flag='0' and a.site_name = #{siteName} limit 1
2025-01-02 16:20:28 +00:00
</select>
2023-12-14 13:08:36 +00:00
<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= "parentSiteCode != null and parentSiteCode != ''" > parent_site_code,</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>
2024-04-17 04:47:44 +00:00
<if test= "siteType != null and siteType != ''" > site_type,</if>
2024-04-18 08:16:03 +00:00
<if test= "scopeType != null and scopeType != ''" > scope_type,</if>
2023-12-14 13:08:36 +00:00
<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>
2024-04-18 22:54:32 +00:00
<if test= "siteLevels != null and siteLevels != ''" > site_levels,</if>
2023-12-14 13:08:36 +00:00
<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>
2024-04-17 04:47:44 +00:00
<if test= "orderNum != null" > order_num,</if>
2023-12-14 13:08:36 +00:00
<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>
2024-04-17 04:47:44 +00:00
<if test= "blWeb != null and blWeb != ''" > bl_web,</if>
2023-12-14 13:08:36 +00:00
<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>
2024-04-17 04:47:44 +00:00
<if test= "blNotInput != null and blNotInput != ''" > bl_not_input,</if>
2023-12-14 13:08:36 +00:00
<if test= "stopDate != null and stopDate != ''" > stop_date,</if>
2024-04-17 04:47:44 +00:00
<if test= "blAllowAgentMoney != null and blAllowAgentMoney != ''" > bl_allow_agent_money,</if>
<if test= "blAllowTopayment != null and blAllowTopayment != ''" > bl_allow_topayment,</if>
2023-12-14 13:08:36 +00:00
<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>
2024-04-17 04:47:44 +00:00
<if test= "blCome != null and blCome != ''" > bl_come,</if>
2023-12-14 13:08:36 +00:00
<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>
2024-04-17 04:47:44 +00:00
<if test= "blProvide != null and blProvide != ''" > bl_provide,</if>
2023-12-14 13:08:36 +00:00
<if test= "blProjectclient != null and blProjectclient != ''" > bl_projectclient,</if>
<if test= "blVipSite != null and blVipSite != ''" > bl_vip_site,</if>
2024-04-17 04:47:44 +00:00
<if test= "blDispatchZt != null and blDispatchZt != ''" > bl_dispatch_zt,</if>
<if test= "blBilltoAccount != null and blBilltoAccount != ''" > bl_billto_account,</if>
2023-12-14 13:08:36 +00:00
<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= "blDispGood != null and blDispGood != ''" > bl_disp_good,</if>
<if test= "blPushJd != null and blPushJd != ''" > bl_push_jd,</if>
2024-04-17 04:47:44 +00:00
<if test= "pushDate != null" > push_date,</if>
2023-12-14 13:08:36 +00:00
<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>
2024-04-17 04:47:44 +00:00
<if test= "blPushSite != null and blPushSite != ''" > bl_push_site,</if>
2023-12-14 13:08:36 +00:00
<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>
2024-04-17 04:47:44 +00:00
<if test= "auditDate != null" > audit_date,</if>
2023-12-14 13:08:36 +00:00
<if test= "auditManCode != null and auditManCode != ''" > audit_man_code,</if>
<if test= "auditSiteCode != null and auditSiteCode != ''" > audit_site_code,</if>
2024-04-17 04:47:44 +00:00
<if test= "blClass != null and blClass != ''" > bl_class,</if>
<if test= "blMaterial != null and blMaterial != ''" > bl_material,</if>
2023-12-14 13:08:36 +00:00
<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>
2024-04-17 04:47:44 +00:00
<if test= "blDispGoodName != null and blDispGoodName != ''" > bl_disp_good_name,</if>
2023-12-14 13:08:36 +00:00
<if test= "blNotRec != null and blNotRec != ''" > bl_not_rec,</if>
<if test= "blNotDisp != null and blNotDisp != ''" > bl_not_disp,</if>
<if test= "blNotCashOut != null and blNotCashOut != ''" > bl_not_cash_out,</if>
2024-04-18 08:16:03 +00:00
<if test= "status != null and status != ''" > status,</if>
2024-04-18 22:54:32 +00:00
<if test= "incrementService != null and incrementService != ''" > increment_service,</if>
<if test= "blWarehouseIn != null and blWarehouseIn != ''" > bl_warehouse_in,</if>
2023-12-14 13:08:36 +00:00
<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>
2024-04-17 04:47:44 +00:00
<if test= "createSite != null and createSite != ''" > create_site,</if>
<if test= "updateSite != null and updateSite != ''" > update_site,</if>
</trim>
2023-12-14 13:08:36 +00:00
<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= "parentSiteCode != null and parentSiteCode != ''" > #{parentSiteCode},</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>
2024-04-17 04:47:44 +00:00
<if test= "siteType != null and siteType != ''" > #{siteType},</if>
2024-04-18 08:16:03 +00:00
<if test= "scopeType != null and scopeType != ''" > #{scopeType},</if>
2023-12-14 13:08:36 +00:00
<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>
2024-04-18 22:54:32 +00:00
<if test= "siteLevels != null and siteLevels != ''" > #{siteLevels},</if>
2023-12-14 13:08:36 +00:00
<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>
2024-04-17 04:47:44 +00:00
<if test= "orderNum != null" > #{orderNum},</if>
2023-12-14 13:08:36 +00:00
<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>
2024-04-17 04:47:44 +00:00
<if test= "blWeb != null and blWeb != ''" > #{blWeb},</if>
2023-12-14 13:08:36 +00:00
<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>
2024-04-17 04:47:44 +00:00
<if test= "blNotInput != null and blNotInput != ''" > #{blNotInput},</if>
2023-12-14 13:08:36 +00:00
<if test= "stopDate != null and stopDate != ''" > #{stopDate},</if>
2024-04-17 04:47:44 +00:00
<if test= "blAllowAgentMoney != null and blAllowAgentMoney != ''" > #{blAllowAgentMoney},</if>
<if test= "blAllowTopayment != null and blAllowTopayment != ''" > #{blAllowTopayment},</if>
2023-12-14 13:08:36 +00:00
<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>
2024-04-17 04:47:44 +00:00
<if test= "blCome != null and blCome != ''" > #{blCome},</if>
2023-12-14 13:08:36 +00:00
<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>
2024-04-17 04:47:44 +00:00
<if test= "blProvide != null and blProvide != ''" > #{blProvide},</if>
2023-12-14 13:08:36 +00:00
<if test= "blProjectclient != null and blProjectclient != ''" > #{blProjectclient},</if>
<if test= "blVipSite != null and blVipSite != ''" > #{blVipSite},</if>
2024-04-17 04:47:44 +00:00
<if test= "blDispatchZt != null and blDispatchZt != ''" > #{blDispatchZt},</if>
<if test= "blBilltoAccount != null and blBilltoAccount != ''" > #{blBilltoAccount},</if>
2023-12-14 13:08:36 +00:00
<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= "blDispGood != null and blDispGood != ''" > #{blDispGood},</if>
<if test= "blPushJd != null and blPushJd != ''" > #{blPushJd},</if>
2024-04-17 04:47:44 +00:00
<if test= "pushDate != null" > #{pushDate},</if>
2023-12-14 13:08:36 +00:00
<if test= "reason != null and reason != ''" > #{reason},</if>
<if test= "sitePos != null and sitePos != ''" > #{sitePos},</if>
<if test= "distributeCode != null and distributeCode != ''" > #{distributeCode},</if>
2024-04-17 04:47:44 +00:00
<if test= "blPushSite != null and blPushSite != ''" > #{blPushSite},</if>
2023-12-14 13:08:36 +00:00
<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>
2024-04-17 04:47:44 +00:00
<if test= "auditDate != null" > #{auditDate},</if>
2023-12-14 13:08:36 +00:00
<if test= "auditManCode != null and auditManCode != ''" > #{auditManCode},</if>
<if test= "auditSiteCode != null and auditSiteCode != ''" > #{auditSiteCode},</if>
2024-04-17 04:47:44 +00:00
<if test= "blClass != null and blClass != ''" > #{blClass},</if>
<if test= "blMaterial != null and blMaterial != ''" > #{blMaterial},</if>
2023-12-14 13:08:36 +00:00
<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>
2024-04-17 04:47:44 +00:00
<if test= "blDispGoodName != null and blDispGoodName != ''" > #{blDispGoodName},</if>
2023-12-14 13:08:36 +00:00
<if test= "blNotRec != null and blNotRec != ''" > #{blNotRec},</if>
<if test= "blNotDisp != null and blNotDisp != ''" > #{blNotDisp},</if>
<if test= "blNotCashOut != null and blNotCashOut != ''" > #{blNotCashOut},</if>
2024-04-18 08:16:03 +00:00
<if test= "status != null and status != ''" > #{status},</if>
2024-04-18 22:54:32 +00:00
<if test= "incrementService != null and incrementService != ''" > #{incrementService},</if>
<if test= "blWarehouseIn != null and blWarehouseIn != ''" > #{blWarehouseIn},</if>
2023-12-14 13:08:36 +00:00
<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>
2024-04-17 04:47:44 +00:00
<if test= "createSite != null and createSite != ''" > #{createSite},</if>
<if test= "updateSite != null and updateSite != ''" > #{updateSite},</if>
</trim>
2023-12-14 13:08:36 +00:00
</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= "parentSiteCode != null and parentSiteCode != ''" > parent_site_code = #{parentSiteCode},</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>
2024-04-17 04:47:44 +00:00
<if test= "siteType != null and siteType != ''" > site_type = #{siteType},</if>
2024-04-18 08:16:03 +00:00
<if test= "scopeType != null and scopeType != ''" > scope_type = #{scopeType},</if>
2023-12-14 13:08:36 +00:00
<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>
2024-04-18 22:54:32 +00:00
<if test= "siteLevels != null and siteLevels != ''" > site_levels = #{siteLevels},</if>
2023-12-14 13:08:36 +00:00
<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>
2024-04-17 04:47:44 +00:00
<if test= "orderNum != null" > order_num = #{orderNum},</if>
2023-12-14 13:08:36 +00:00
<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>
2024-04-17 04:47:44 +00:00
<if test= "blWeb != null and blWeb != ''" > bl_web = #{blWeb},</if>
2023-12-14 13:08:36 +00:00
<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>
2024-04-17 04:47:44 +00:00
<if test= "blNotInput != null and blNotInput != ''" > bl_not_input = #{blNotInput},</if>
2023-12-14 13:08:36 +00:00
<if test= "stopDate != null and stopDate != ''" > stop_date = #{stopDate},</if>
2024-04-17 04:47:44 +00:00
<if test= "blAllowAgentMoney != null and blAllowAgentMoney != ''" > bl_allow_agent_money = #{blAllowAgentMoney},</if>
<if test= "blAllowTopayment != null and blAllowTopayment != ''" > bl_allow_topayment = #{blAllowTopayment},</if>
2023-12-14 13:08:36 +00:00
<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>
2024-04-17 04:47:44 +00:00
<if test= "blCome != null and blCome != ''" > bl_come = #{blCome},</if>
2023-12-14 13:08:36 +00:00
<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>
2024-04-17 04:47:44 +00:00
<if test= "blProvide != null and blProvide != ''" > bl_provide = #{blProvide},</if>
2023-12-14 13:08:36 +00:00
<if test= "blProjectclient != null and blProjectclient != ''" > bl_projectclient = #{blProjectclient},</if>
<if test= "blVipSite != null and blVipSite != ''" > bl_vip_site = #{blVipSite},</if>
2024-04-17 04:47:44 +00:00
<if test= "blDispatchZt != null and blDispatchZt != ''" > bl_dispatch_zt = #{blDispatchZt},</if>
<if test= "blBilltoAccount != null and blBilltoAccount != ''" > bl_billto_account = #{blBilltoAccount},</if>
2023-12-14 13:08:36 +00:00
<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= "blDispGood != null and blDispGood != ''" > bl_disp_good = #{blDispGood},</if>
<if test= "blPushJd != null and blPushJd != ''" > bl_push_jd = #{blPushJd},</if>
2024-04-17 04:47:44 +00:00
<if test= "pushDate != null" > push_date = #{pushDate},</if>
2023-12-14 13:08:36 +00:00
<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>
2024-04-17 04:47:44 +00:00
<if test= "blPushSite != null and blPushSite != ''" > bl_push_site = #{blPushSite},</if>
2023-12-14 13:08:36 +00:00
<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>
2024-04-17 04:47:44 +00:00
<if test= "auditDate != null" > audit_date = #{auditDate},</if>
2023-12-14 13:08:36 +00:00
<if test= "auditManCode != null and auditManCode != ''" > audit_man_code = #{auditManCode},</if>
<if test= "auditSiteCode != null and auditSiteCode != ''" > audit_site_code = #{auditSiteCode},</if>
2024-04-17 04:47:44 +00:00
<if test= "blClass != null and blClass != ''" > bl_class = #{blClass},</if>
<if test= "blMaterial != null and blMaterial != ''" > bl_material = #{blMaterial},</if>
2023-12-14 13:08:36 +00:00
<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>
2024-04-17 04:47:44 +00:00
<if test= "blDispGoodName != null and blDispGoodName != ''" > bl_disp_good_name = #{blDispGoodName},</if>
2023-12-14 13:08:36 +00:00
<if test= "blNotRec != null and blNotRec != ''" > bl_not_rec = #{blNotRec},</if>
<if test= "blNotDisp != null and blNotDisp != ''" > bl_not_disp = #{blNotDisp},</if>
<if test= "blNotCashOut != null and blNotCashOut != ''" > bl_not_cash_out = #{blNotCashOut},</if>
2024-04-18 08:16:03 +00:00
<if test= "status != null and status != ''" > status = #{status},</if>
2024-04-18 22:54:32 +00:00
<if test= "incrementService != null and incrementService != ''" > increment_service = #{incrementService},</if>
<if test= "blWarehouseIn != null and blWarehouseIn != ''" > bl_warehouse_in = #{blWarehouseIn},</if>
2023-12-14 13:08:36 +00:00
<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>
2024-04-17 04:47:44 +00:00
<if test= "createSite != null and createSite != ''" > create_site = #{createSite},</if>
<if test= "updateSite != null and updateSite != ''" > update_site = #{updateSite},</if>
2023-12-14 13:08:36 +00:00
</trim>
where id = #{id}
</update>
<delete id= "deleteEmisSiteById" parameterType= "Long" >
delete from emis_site where id = #{id}
</delete>
<delete id= "deleteEmisSiteByIds" parameterType= "String" >
2024-04-17 04:47:44 +00:00
delete from emis_site where id in
2023-12-14 13:08:36 +00:00
<foreach item= "id" collection= "array" open= "(" separator= "," close= ")" >
#{id}
</foreach>
</delete>
2025-06-25 02:20:43 +00:00
<select id= "selectSiteByConditions" parameterType= "EmisSite" resultMap= "EmisSiteResult" >
select DISTINCT r.next_site_code as site_code, s.site_name, s.site_name_en, s.parent_site_code,province, size_code2,
size_code3
from emis_trans_plan_rule r
left join emis_site s on r.next_site_code = s.site_code and s.del_flag='0'
<where >
r.del_flag = '0'
<if test= "params.startSiteCode != null and params.startSiteCode != ''" > and r.start_site_code =
#{params.startSiteCode}
</if>
2025-06-25 03:01:23 +00:00
<if test= "siteCode != null and siteCode != ''" > and r.next_site_code = #{siteCode}</if>
<if test= "siteName != null and siteName != ''" > and s.site_name LIKE CONCAT('%', #{siteName}, '%')</if>
2025-06-25 02:20:43 +00:00
</where>
order by r.id desc
</select>
2023-12-14 13:08:36 +00:00
</mapper>