729 lines
64 KiB
XML
729 lines
64 KiB
XML
<?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="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" />
|
|
<result property="siteType" column="site_type" />
|
|
<result property="scopeType" column="scope_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="siteLevels" column="site_levels" />
|
|
<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="orderNum" column="order_num" />
|
|
<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" />
|
|
<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="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" />
|
|
<result property="status" column="status" />
|
|
<result property="incrementService" column="increment_service" />
|
|
<result property="blWarehouseIn" column="bl_warehouse_in" />
|
|
<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" />
|
|
<result property="createSite" column="create_site" />
|
|
<result property="updateSite" column="update_site" />
|
|
|
|
<association property="countryName" column="country_code" select="selectCountryNameByCode"/>
|
|
<association property="provinceName" column="province" select="selectRegionNameByCode"/>
|
|
<association property="cityName" column="city" select="selectRegionNameByCode"/>
|
|
<association property="countyName" column="county" select="selectRegionNameByCode"/>
|
|
<association property="townName" column="town" select="selectRegionNameByCode"/>
|
|
<association property="parentSiteName" column="parent_site_code" select="selectSiteNameByCode"/>
|
|
<association property="superiorFinanceCenterName" column="superior_finance_center_code" select="selectSiteNameByCode"/>
|
|
<association property="logoTypeName" column="logo_type" select="selectBrandNameByCode"/>
|
|
|
|
</resultMap>
|
|
|
|
<sql id="selectEmisSiteVo">
|
|
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
|
|
</sql>
|
|
|
|
<select id="selectCountryNameByCode" parameterType="String" resultType="string">
|
|
select a.name from emis_country a where a.code = #{code} limit 1
|
|
</select>
|
|
|
|
|
|
<select id="selectRegionNameByCode" parameterType="String" resultType="string">
|
|
select a.region_name from emis_region a where a.region_code = #{code} limit 1
|
|
</select>
|
|
|
|
<select id="selectSiteNameByCode" parameterType="String" resultType="string">
|
|
select a.site_name from emis_site a where a.site_code = #{code} limit 1
|
|
</select>
|
|
|
|
<select id="selectBrandNameByCode" parameterType="String" resultType="string">
|
|
select a.name from emis_brand a where a.code = #{code} limit 1
|
|
</select>
|
|
|
|
|
|
<select id="selectEmisSiteList" parameterType="EmisSite" resultMap="EmisSiteResult">
|
|
<include refid="selectEmisSiteVo"/>
|
|
<where>
|
|
<if test="id != null "> and id = #{id}</if>
|
|
<if test="siteCode != null and siteCode != ''"> and site_code = #{siteCode}</if>
|
|
<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>
|
|
<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>
|
|
<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 = #{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>
|
|
<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="siteLevels != null and siteLevels != ''"> and site_levels like concat('%', #{siteLevels}, '%')</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="orderNum != null "> and order_num = #{orderNum}</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 blWeb != ''"> and bl_web like concat('%', #{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 blNotInput != ''"> and bl_not_input like concat('%', #{blNotInput}, '%')</if>
|
|
<if test="stopDate != null and stopDate != ''"> and stop_date like concat('%', #{stopDate}, '%')</if>
|
|
<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>
|
|
<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 blCome != ''"> and bl_come like concat('%', #{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 blProvide != ''"> and bl_provide like concat('%', #{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 blDispatchZt != ''"> and bl_dispatch_zt like concat('%', #{blDispatchZt}, '%')</if>
|
|
<if test="blBilltoAccount != null and blBilltoAccount != ''"> and bl_billto_account like concat('%', #{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="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 push_date = #{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="blPushSite != null and blPushSite != ''"> and bl_push_site like concat('%', #{blPushSite}, '%')</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 audit_date = #{auditDate}</if>
|
|
<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>
|
|
<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>
|
|
<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="blDispGoodName != null and blDispGoodName != ''"> and bl_disp_good_name like concat('%', #{blDispGoodName}, '%')</if>
|
|
<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>
|
|
<if test="status != null and status != ''"> and status like concat('%', #{status}, '%')</if>
|
|
<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>
|
|
<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>
|
|
<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>
|
|
|
|
|
|
|
|
<if test="parentSiteCode != null and parentSiteCode != ''">
|
|
<choose>
|
|
<!-- 子网点 -->
|
|
<when test="params.blIncludeChildSite != null and params.blIncludeChildSite == 1">
|
|
AND site_code in (
|
|
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)
|
|
)
|
|
</when>
|
|
<otherwise>
|
|
AND parent_site_code=#{parentSiteCode}
|
|
</otherwise>
|
|
</choose>
|
|
</if>
|
|
</where>
|
|
order by order_num desc
|
|
</select>
|
|
|
|
<!-- <if test="parentSiteCode != null and parentSiteCode != ''"> and parent_site_code = #{parentSiteCode}</if>-->
|
|
|
|
<select id="selectEmisSiteById" parameterType="Long" 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
|
|
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="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>
|
|
<if test="siteType != null and siteType != ''">site_type,</if>
|
|
<if test="scopeType != null and scopeType != ''">scope_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="siteLevels != null and siteLevels != ''">site_levels,</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="orderNum != null">order_num,</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 and blWeb != ''">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 and blNotInput != ''">bl_not_input,</if>
|
|
<if test="stopDate != null and stopDate != ''">stop_date,</if>
|
|
<if test="blAllowAgentMoney != null and blAllowAgentMoney != ''">bl_allow_agent_money,</if>
|
|
<if test="blAllowTopayment != null and blAllowTopayment != ''">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 and blCome != ''">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 and blProvide != ''">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 and blDispatchZt != ''">bl_dispatch_zt,</if>
|
|
<if test="blBilltoAccount != null and blBilltoAccount != ''">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="blDispGood != null and blDispGood != ''">bl_disp_good,</if>
|
|
<if test="blPushJd != null and blPushJd != ''">bl_push_jd,</if>
|
|
<if test="pushDate != null">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="blPushSite != null and blPushSite != ''">bl_push_site,</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">audit_date,</if>
|
|
<if test="auditManCode != null and auditManCode != ''">audit_man_code,</if>
|
|
<if test="auditSiteCode != null and auditSiteCode != ''">audit_site_code,</if>
|
|
<if test="blClass != null and blClass != ''">bl_class,</if>
|
|
<if test="blMaterial != null and blMaterial != ''">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="blDispGoodName != null and blDispGoodName != ''">bl_disp_good_name,</if>
|
|
<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>
|
|
<if test="status != null and status != ''">status,</if>
|
|
<if test="incrementService != null and incrementService != ''">increment_service,</if>
|
|
<if test="blWarehouseIn != null and blWarehouseIn != ''">bl_warehouse_in,</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>
|
|
<if test="createSite != null and createSite != ''">create_site,</if>
|
|
<if test="updateSite != null and updateSite != ''">update_site,</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="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>
|
|
<if test="siteType != null and siteType != ''">#{siteType},</if>
|
|
<if test="scopeType != null and scopeType != ''">#{scopeType},</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="siteLevels != null and siteLevels != ''">#{siteLevels},</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="orderNum != null">#{orderNum},</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 and blWeb != ''">#{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 and blNotInput != ''">#{blNotInput},</if>
|
|
<if test="stopDate != null and stopDate != ''">#{stopDate},</if>
|
|
<if test="blAllowAgentMoney != null and blAllowAgentMoney != ''">#{blAllowAgentMoney},</if>
|
|
<if test="blAllowTopayment != null and blAllowTopayment != ''">#{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 and blCome != ''">#{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 and blProvide != ''">#{blProvide},</if>
|
|
<if test="blProjectclient != null and blProjectclient != ''">#{blProjectclient},</if>
|
|
<if test="blVipSite != null and blVipSite != ''">#{blVipSite},</if>
|
|
<if test="blDispatchZt != null and blDispatchZt != ''">#{blDispatchZt},</if>
|
|
<if test="blBilltoAccount != null and blBilltoAccount != ''">#{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="blDispGood != null and blDispGood != ''">#{blDispGood},</if>
|
|
<if test="blPushJd != null and blPushJd != ''">#{blPushJd},</if>
|
|
<if test="pushDate != null">#{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="blPushSite != null and blPushSite != ''">#{blPushSite},</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">#{auditDate},</if>
|
|
<if test="auditManCode != null and auditManCode != ''">#{auditManCode},</if>
|
|
<if test="auditSiteCode != null and auditSiteCode != ''">#{auditSiteCode},</if>
|
|
<if test="blClass != null and blClass != ''">#{blClass},</if>
|
|
<if test="blMaterial != null and blMaterial != ''">#{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="blDispGoodName != null and blDispGoodName != ''">#{blDispGoodName},</if>
|
|
<if test="blNotRec != null and blNotRec != ''">#{blNotRec},</if>
|
|
<if test="blNotDisp != null and blNotDisp != ''">#{blNotDisp},</if>
|
|
<if test="blNotCashOut != null and blNotCashOut != ''">#{blNotCashOut},</if>
|
|
<if test="status != null and status != ''">#{status},</if>
|
|
<if test="incrementService != null and incrementService != ''">#{incrementService},</if>
|
|
<if test="blWarehouseIn != null and blWarehouseIn != ''">#{blWarehouseIn},</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>
|
|
<if test="createSite != null and createSite != ''">#{createSite},</if>
|
|
<if test="updateSite != null and updateSite != ''">#{updateSite},</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="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>
|
|
<if test="siteType != null and siteType != ''">site_type = #{siteType},</if>
|
|
<if test="scopeType != null and scopeType != ''">scope_type = #{scopeType},</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="siteLevels != null and siteLevels != ''">site_levels = #{siteLevels},</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="orderNum != null">order_num = #{orderNum},</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 and blWeb != ''">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 and blNotInput != ''">bl_not_input = #{blNotInput},</if>
|
|
<if test="stopDate != null and stopDate != ''">stop_date = #{stopDate},</if>
|
|
<if test="blAllowAgentMoney != null and blAllowAgentMoney != ''">bl_allow_agent_money = #{blAllowAgentMoney},</if>
|
|
<if test="blAllowTopayment != null and blAllowTopayment != ''">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 and blCome != ''">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 and blProvide != ''">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 and blDispatchZt != ''">bl_dispatch_zt = #{blDispatchZt},</if>
|
|
<if test="blBilltoAccount != null and blBilltoAccount != ''">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="blDispGood != null and blDispGood != ''">bl_disp_good = #{blDispGood},</if>
|
|
<if test="blPushJd != null and blPushJd != ''">bl_push_jd = #{blPushJd},</if>
|
|
<if test="pushDate != null">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="blPushSite != null and blPushSite != ''">bl_push_site = #{blPushSite},</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">audit_date = #{auditDate},</if>
|
|
<if test="auditManCode != null and auditManCode != ''">audit_man_code = #{auditManCode},</if>
|
|
<if test="auditSiteCode != null and auditSiteCode != ''">audit_site_code = #{auditSiteCode},</if>
|
|
<if test="blClass != null and blClass != ''">bl_class = #{blClass},</if>
|
|
<if test="blMaterial != null and blMaterial != ''">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="blDispGoodName != null and blDispGoodName != ''">bl_disp_good_name = #{blDispGoodName},</if>
|
|
<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>
|
|
<if test="status != null and status != ''">status = #{status},</if>
|
|
<if test="incrementService != null and incrementService != ''">increment_service = #{incrementService},</if>
|
|
<if test="blWarehouseIn != null and blWarehouseIn != ''">bl_warehouse_in = #{blWarehouseIn},</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>
|
|
<if test="createSite != null and createSite != ''">create_site = #{createSite},</if>
|
|
<if test="updateSite != null and updateSite != ''">update_site = #{updateSite},</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> |