|
@@ -0,0 +1,585 @@
|
|
|
|
+<?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="SXtszMdzhglStoremanagementMapper" >
|
|
|
|
+ <!-- 通用查询映射结果 -->
|
|
|
|
+
|
|
|
|
+ <select id="selectSXtszMdzhglStoremanagementList" parameterType="pd" resultType="pd">
|
|
|
|
+ select * from s_xtsz_mdzhgl_storemanagement where 1=1
|
|
|
|
+ <if test="id !=null and id !='' ">
|
|
|
|
+ and id = #{id}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="storeName !=null and storeName !='' ">
|
|
|
|
+ and storeName = #{storeName}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="storeShortName !=null and storeShortName !='' ">
|
|
|
|
+ and storeShortName = #{storeShortName}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="storeType !=null and storeType !='' ">
|
|
|
|
+ and storeType = #{storeType}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="administrativeArea !=null and administrativeArea !='' ">
|
|
|
|
+ and administrativeArea = #{administrativeArea}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="administrativeAreaCode !=null and administrativeAreaCode !='' ">
|
|
|
|
+ and administrativeAreaCode = #{administrativeAreaCode}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="qrCode !=null and qrCode !='' ">
|
|
|
|
+ and qrCode = #{qrCode}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="phoneNumber !=null and phoneNumber !='' ">
|
|
|
|
+ and phoneNumber = #{phoneNumber}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="businessHours !=null and businessHours !='' ">
|
|
|
|
+ and businessHours = #{businessHours}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="address !=null and address !='' ">
|
|
|
|
+ and address = #{address}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="longitude !=null and longitude !='' ">
|
|
|
|
+ and longitude = #{longitude}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="latitude !=null and latitude !='' ">
|
|
|
|
+ and latitude = #{latitude}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="storeCode !=null and storeCode !='' ">
|
|
|
|
+ and storeCode = #{storeCode}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="mapUrl !=null and mapUrl !='' ">
|
|
|
|
+ and mapUrl = #{mapUrl}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="area !=null and area !='' ">
|
|
|
|
+ and area = #{area}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="referenceStoreCode !=null and referenceStoreCode !='' ">
|
|
|
|
+ and referenceStoreCode = #{referenceStoreCode}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="storeAttribute !=null and storeAttribute !='' ">
|
|
|
|
+ and storeAttribute = #{storeAttribute}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="internalCode !=null and internalCode !='' ">
|
|
|
|
+ and internalCode = #{internalCode}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="mnemonicCode !=null and mnemonicCode !='' ">
|
|
|
|
+ and mnemonicCode = #{mnemonicCode}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="procurementOrganization !=null and procurementOrganization !='' ">
|
|
|
|
+ and procurementOrganization = #{procurementOrganization}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="salesOrganization !=null and salesOrganization !='' ">
|
|
|
|
+ and salesOrganization = #{salesOrganization}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="distributionChannel !=null and distributionChannel !='' ">
|
|
|
|
+ and distributionChannel = #{distributionChannel}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="department !=null and department !='' ">
|
|
|
|
+ and department = #{department}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="leaseArea !=null and leaseArea !='' ">
|
|
|
|
+ and leaseArea = #{leaseArea}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="externalLeaseArea !=null and externalLeaseArea !='' ">
|
|
|
|
+ and externalLeaseArea = #{externalLeaseArea}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="operatingArea !=null and operatingArea !='' ">
|
|
|
|
+ and operatingArea = #{operatingArea}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="faxNumber !=null and faxNumber !='' ">
|
|
|
|
+ and faxNumber = #{faxNumber}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="contactPerson !=null and contactPerson !='' ">
|
|
|
|
+ and contactPerson = #{contactPerson}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="openingDate !=null and openingDate !='' ">
|
|
|
|
+ and openingDate = #{openingDate}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="transferDate !=null and transferDate !='' ">
|
|
|
|
+ and transferDate = #{transferDate}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="closingDate !=null and closingDate !='' ">
|
|
|
|
+ and closingDate = #{closingDate}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="lastRenovationDate !=null and lastRenovationDate !='' ">
|
|
|
|
+ and lastRenovationDate = #{lastRenovationDate}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="rent !=null and rent !='' ">
|
|
|
|
+ and rent = #{rent}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="storeStatus !=null and storeStatus !='' ">
|
|
|
|
+ and storeStatus = #{storeStatus}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="communityAndResidentialStore !=null and communityAndResidentialStore !='' ">
|
|
|
|
+ and communityAndResidentialStore = #{communityAndResidentialStore}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="staffCount !=null and staffCount !='' ">
|
|
|
|
+ and staffCount = #{staffCount}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="calendar !=null and calendar !='' ">
|
|
|
|
+ and calendar = #{calendar}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="systemUsed !=null and systemUsed !='' ">
|
|
|
|
+ and systemUsed = #{systemUsed}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="detailedAddress !=null and detailedAddress !='' ">
|
|
|
|
+ and detailedAddress = #{detailedAddress}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="district !=null and district !='' ">
|
|
|
|
+ and district = #{district}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="locationBusinessCircleStoreType !=null and locationBusinessCircleStoreType !='' ">
|
|
|
|
+ and locationBusinessCircleStoreType = #{locationBusinessCircleStoreType}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="specialBusinessType !=null and specialBusinessType !='' ">
|
|
|
|
+ and specialBusinessType = #{specialBusinessType}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="businessAreaCategory !=null and businessAreaCategory !='' ">
|
|
|
|
+ and businessAreaCategory = #{businessAreaCategory}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="monthlySalesLevel !=null and monthlySalesLevel !='' ">
|
|
|
|
+ and monthlySalesLevel = #{monthlySalesLevel}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="medicalInsurancePolicyCategory !=null and medicalInsurancePolicyCategory !='' ">
|
|
|
|
+ and medicalInsurancePolicyCategory = #{medicalInsurancePolicyCategory}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="customerAgeLayer !=null and customerAgeLayer !='' ">
|
|
|
|
+ and customerAgeLayer = #{customerAgeLayer}
|
|
|
|
+ </if>
|
|
|
|
+ </select>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <update id="updateSXtszMdzhglStoremanagement" parameterType="pd" >
|
|
|
|
+ update s_xtsz_mdzhgl_storemanagement
|
|
|
|
+ <trim prefix=" SET " suffix="" prefixOverrides="," suffixOverrides=",">
|
|
|
|
+ <if test="storeName !=null and storeName !='' ">
|
|
|
|
+ storeName = #{storeName},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="storeShortName !=null and storeShortName !='' ">
|
|
|
|
+ storeShortName = #{storeShortName},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="storeType !=null and storeType !='' ">
|
|
|
|
+ storeType = #{storeType},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="administrativeArea !=null and administrativeArea !='' ">
|
|
|
|
+ administrativeArea = #{administrativeArea},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="administrativeAreaCode !=null and administrativeAreaCode !='' ">
|
|
|
|
+ administrativeAreaCode = #{administrativeAreaCode},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="qrCode !=null and qrCode !='' ">
|
|
|
|
+ qrCode = #{qrCode},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="phoneNumber !=null and phoneNumber !='' ">
|
|
|
|
+ phoneNumber = #{phoneNumber},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="businessHours !=null and businessHours !='' ">
|
|
|
|
+ businessHours = #{businessHours},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="address !=null and address !='' ">
|
|
|
|
+ address = #{address},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="longitude !=null and longitude !='' ">
|
|
|
|
+ longitude = #{longitude},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="latitude !=null and latitude !='' ">
|
|
|
|
+ latitude = #{latitude},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="storeCode !=null and storeCode !='' ">
|
|
|
|
+ storeCode = #{storeCode},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="mapUrl !=null and mapUrl !='' ">
|
|
|
|
+ mapUrl = #{mapUrl},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="area !=null and area !='' ">
|
|
|
|
+ area = #{area},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="referenceStoreCode !=null and referenceStoreCode !='' ">
|
|
|
|
+ referenceStoreCode = #{referenceStoreCode},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="storeAttribute !=null and storeAttribute !='' ">
|
|
|
|
+ storeAttribute = #{storeAttribute},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="internalCode !=null and internalCode !='' ">
|
|
|
|
+ internalCode = #{internalCode},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="mnemonicCode !=null and mnemonicCode !='' ">
|
|
|
|
+ mnemonicCode = #{mnemonicCode},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="procurementOrganization !=null and procurementOrganization !='' ">
|
|
|
|
+ procurementOrganization = #{procurementOrganization},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="salesOrganization !=null and salesOrganization !='' ">
|
|
|
|
+ salesOrganization = #{salesOrganization},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="distributionChannel !=null and distributionChannel !='' ">
|
|
|
|
+ distributionChannel = #{distributionChannel},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="department !=null and department !='' ">
|
|
|
|
+ department = #{department},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="leaseArea !=null and leaseArea !='' ">
|
|
|
|
+ leaseArea = #{leaseArea},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="externalLeaseArea !=null and externalLeaseArea !='' ">
|
|
|
|
+ externalLeaseArea = #{externalLeaseArea},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="operatingArea !=null and operatingArea !='' ">
|
|
|
|
+ operatingArea = #{operatingArea},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="faxNumber !=null and faxNumber !='' ">
|
|
|
|
+ faxNumber = #{faxNumber},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="contactPerson !=null and contactPerson !='' ">
|
|
|
|
+ contactPerson = #{contactPerson},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="openingDate !=null and openingDate !='' ">
|
|
|
|
+ openingDate = #{openingDate},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="transferDate !=null and transferDate !='' ">
|
|
|
|
+ transferDate = #{transferDate},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="closingDate !=null and closingDate !='' ">
|
|
|
|
+ closingDate = #{closingDate},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="lastRenovationDate !=null and lastRenovationDate !='' ">
|
|
|
|
+ lastRenovationDate = #{lastRenovationDate},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="rent !=null and rent !='' ">
|
|
|
|
+ rent = #{rent},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="storeStatus !=null and storeStatus !='' ">
|
|
|
|
+ storeStatus = #{storeStatus},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="communityAndResidentialStore !=null and communityAndResidentialStore !='' ">
|
|
|
|
+ communityAndResidentialStore = #{communityAndResidentialStore},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="staffCount !=null and staffCount !='' ">
|
|
|
|
+ staffCount = #{staffCount},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="calendar !=null and calendar !='' ">
|
|
|
|
+ calendar = #{calendar},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="systemUsed !=null and systemUsed !='' ">
|
|
|
|
+ systemUsed = #{systemUsed},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="detailedAddress !=null and detailedAddress !='' ">
|
|
|
|
+ detailedAddress = #{detailedAddress},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="district !=null and district !='' ">
|
|
|
|
+ district = #{district},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="locationBusinessCircleStoreType !=null and locationBusinessCircleStoreType !='' ">
|
|
|
|
+ locationBusinessCircleStoreType = #{locationBusinessCircleStoreType},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="specialBusinessType !=null and specialBusinessType !='' ">
|
|
|
|
+ specialBusinessType = #{specialBusinessType},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="businessAreaCategory !=null and businessAreaCategory !='' ">
|
|
|
|
+ businessAreaCategory = #{businessAreaCategory},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="monthlySalesLevel !=null and monthlySalesLevel !='' ">
|
|
|
|
+ monthlySalesLevel = #{monthlySalesLevel},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="medicalInsurancePolicyCategory !=null and medicalInsurancePolicyCategory !='' ">
|
|
|
|
+ medicalInsurancePolicyCategory = #{medicalInsurancePolicyCategory},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="customerAgeLayer !=null and customerAgeLayer !='' ">
|
|
|
|
+ customerAgeLayer = #{customerAgeLayer},
|
|
|
|
+ </if>
|
|
|
|
+ </trim>
|
|
|
|
+ <if test="up != null and up!=''">
|
|
|
|
+ <if test="id != null and id!=''">
|
|
|
|
+ where id=#{id}
|
|
|
|
+ </if>
|
|
|
|
+ </if>
|
|
|
|
+ </update>
|
|
|
|
+
|
|
|
|
+ <delete id="SXtszMdzhglStoremanagementRemove" parameterType="pd">
|
|
|
|
+ <if test="ids != null">
|
|
|
|
+ delete from s_xtsz_mdzhgl_storemanagement where
|
|
|
|
+ <if test="ids != null">
|
|
|
|
+ id in(${ids})
|
|
|
|
+ </if>
|
|
|
|
+ </if>
|
|
|
|
+ </delete>
|
|
|
|
+
|
|
|
|
+ <insert id="addSXtszMdzhglStoremanagement" parameterType="pd" >
|
|
|
|
+
|
|
|
|
+ insert into s_xtsz_mdzhgl_storemanagement
|
|
|
|
+ <trim prefix="(" suffix=")" prefixOverrides="," suffixOverrides=",">
|
|
|
|
+
|
|
|
|
+ <if test="storeName !=null and storeName !='' ">
|
|
|
|
+ storeName,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="storeShortName !=null and storeShortName !='' ">
|
|
|
|
+ storeShortName,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="storeType !=null and storeType !='' ">
|
|
|
|
+ storeType,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="administrativeArea !=null and administrativeArea !='' ">
|
|
|
|
+ administrativeArea,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="administrativeAreaCode !=null and administrativeAreaCode !='' ">
|
|
|
|
+ administrativeAreaCode,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="qrCode !=null and qrCode !='' ">
|
|
|
|
+ qrCode,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="phoneNumber !=null and phoneNumber !='' ">
|
|
|
|
+ phoneNumber,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="businessHours !=null and businessHours !='' ">
|
|
|
|
+ businessHours,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="address !=null and address !='' ">
|
|
|
|
+ address,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="longitude !=null and longitude !='' ">
|
|
|
|
+ longitude,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="latitude !=null and latitude !='' ">
|
|
|
|
+ latitude,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="storeCode !=null and storeCode !='' ">
|
|
|
|
+ storeCode,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="mapUrl !=null and mapUrl !='' ">
|
|
|
|
+ mapUrl,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="area !=null and area !='' ">
|
|
|
|
+ area,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="referenceStoreCode !=null and referenceStoreCode !='' ">
|
|
|
|
+ referenceStoreCode,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="storeAttribute !=null and storeAttribute !='' ">
|
|
|
|
+ storeAttribute,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="internalCode !=null and internalCode !='' ">
|
|
|
|
+ internalCode,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="mnemonicCode !=null and mnemonicCode !='' ">
|
|
|
|
+ mnemonicCode,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="procurementOrganization !=null and procurementOrganization !='' ">
|
|
|
|
+ procurementOrganization,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="salesOrganization !=null and salesOrganization !='' ">
|
|
|
|
+ salesOrganization,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="distributionChannel !=null and distributionChannel !='' ">
|
|
|
|
+ distributionChannel,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="department !=null and department !='' ">
|
|
|
|
+ department,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="leaseArea !=null and leaseArea !='' ">
|
|
|
|
+ leaseArea,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="externalLeaseArea !=null and externalLeaseArea !='' ">
|
|
|
|
+ externalLeaseArea,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="operatingArea !=null and operatingArea !='' ">
|
|
|
|
+ operatingArea,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="faxNumber !=null and faxNumber !='' ">
|
|
|
|
+ faxNumber,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="contactPerson !=null and contactPerson !='' ">
|
|
|
|
+ contactPerson,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="openingDate !=null and openingDate !='' ">
|
|
|
|
+ openingDate,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="transferDate !=null and transferDate !='' ">
|
|
|
|
+ transferDate,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="closingDate !=null and closingDate !='' ">
|
|
|
|
+ closingDate,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="lastRenovationDate !=null and lastRenovationDate !='' ">
|
|
|
|
+ lastRenovationDate,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="rent !=null and rent !='' ">
|
|
|
|
+ rent,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="storeStatus !=null and storeStatus !='' ">
|
|
|
|
+ storeStatus,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="communityAndResidentialStore !=null and communityAndResidentialStore !='' ">
|
|
|
|
+ communityAndResidentialStore,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="staffCount !=null and staffCount !='' ">
|
|
|
|
+ staffCount,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="calendar !=null and calendar !='' ">
|
|
|
|
+ calendar,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="systemUsed !=null and systemUsed !='' ">
|
|
|
|
+ systemUsed,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="detailedAddress !=null and detailedAddress !='' ">
|
|
|
|
+ detailedAddress,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="district !=null and district !='' ">
|
|
|
|
+ district,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="locationBusinessCircleStoreType !=null and locationBusinessCircleStoreType !='' ">
|
|
|
|
+ locationBusinessCircleStoreType,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="specialBusinessType !=null and specialBusinessType !='' ">
|
|
|
|
+ specialBusinessType,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="businessAreaCategory !=null and businessAreaCategory !='' ">
|
|
|
|
+ businessAreaCategory,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="monthlySalesLevel !=null and monthlySalesLevel !='' ">
|
|
|
|
+ monthlySalesLevel,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="medicalInsurancePolicyCategory !=null and medicalInsurancePolicyCategory !='' ">
|
|
|
|
+ medicalInsurancePolicyCategory,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="customerAgeLayer !=null and customerAgeLayer !='' ">
|
|
|
|
+ customerAgeLayer,
|
|
|
|
+ </if>
|
|
|
|
+ </trim>
|
|
|
|
+ <trim prefix=" VALUES (" suffix=")" prefixOverrides="," suffixOverrides=",">
|
|
|
|
+ <if test="storeName !=null and storeName !='' ">
|
|
|
|
+ #{storeName},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="storeShortName !=null and storeShortName !='' ">
|
|
|
|
+ #{storeShortName},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="storeType !=null and storeType !='' ">
|
|
|
|
+ #{storeType},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="administrativeArea !=null and administrativeArea !='' ">
|
|
|
|
+ #{administrativeArea},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="administrativeAreaCode !=null and administrativeAreaCode !='' ">
|
|
|
|
+ #{administrativeAreaCode},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="qrCode !=null and qrCode !='' ">
|
|
|
|
+ #{qrCode},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="phoneNumber !=null and phoneNumber !='' ">
|
|
|
|
+ #{phoneNumber},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="businessHours !=null and businessHours !='' ">
|
|
|
|
+ #{businessHours},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="address !=null and address !='' ">
|
|
|
|
+ #{address},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="longitude !=null and longitude !='' ">
|
|
|
|
+ #{longitude},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="latitude !=null and latitude !='' ">
|
|
|
|
+ #{latitude},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="storeCode !=null and storeCode !='' ">
|
|
|
|
+ #{storeCode},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="mapUrl !=null and mapUrl !='' ">
|
|
|
|
+ #{mapUrl},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="area !=null and area !='' ">
|
|
|
|
+ #{area},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="referenceStoreCode !=null and referenceStoreCode !='' ">
|
|
|
|
+ #{referenceStoreCode},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="storeAttribute !=null and storeAttribute !='' ">
|
|
|
|
+ #{storeAttribute},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="internalCode !=null and internalCode !='' ">
|
|
|
|
+ #{internalCode},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="mnemonicCode !=null and mnemonicCode !='' ">
|
|
|
|
+ #{mnemonicCode},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="procurementOrganization !=null and procurementOrganization !='' ">
|
|
|
|
+ #{procurementOrganization},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="salesOrganization !=null and salesOrganization !='' ">
|
|
|
|
+ #{salesOrganization},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="distributionChannel !=null and distributionChannel !='' ">
|
|
|
|
+ #{distributionChannel},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="department !=null and department !='' ">
|
|
|
|
+ #{department},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="leaseArea !=null and leaseArea !='' ">
|
|
|
|
+ #{leaseArea},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="externalLeaseArea !=null and externalLeaseArea !='' ">
|
|
|
|
+ #{externalLeaseArea},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="operatingArea !=null and operatingArea !='' ">
|
|
|
|
+ #{operatingArea},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="faxNumber !=null and faxNumber !='' ">
|
|
|
|
+ #{faxNumber},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="contactPerson !=null and contactPerson !='' ">
|
|
|
|
+ #{contactPerson},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="openingDate !=null and openingDate !='' ">
|
|
|
|
+ #{openingDate},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="transferDate !=null and transferDate !='' ">
|
|
|
|
+ #{transferDate},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="closingDate !=null and closingDate !='' ">
|
|
|
|
+ #{closingDate},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="lastRenovationDate !=null and lastRenovationDate !='' ">
|
|
|
|
+ #{lastRenovationDate},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="rent !=null and rent !='' ">
|
|
|
|
+ #{rent},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="storeStatus !=null and storeStatus !='' ">
|
|
|
|
+ #{storeStatus},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="communityAndResidentialStore !=null and communityAndResidentialStore !='' ">
|
|
|
|
+ #{communityAndResidentialStore},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="staffCount !=null and staffCount !='' ">
|
|
|
|
+ #{staffCount},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="calendar !=null and calendar !='' ">
|
|
|
|
+ #{calendar},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="systemUsed !=null and systemUsed !='' ">
|
|
|
|
+ #{systemUsed},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="detailedAddress !=null and detailedAddress !='' ">
|
|
|
|
+ #{detailedAddress},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="district !=null and district !='' ">
|
|
|
|
+ #{district},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="locationBusinessCircleStoreType !=null and locationBusinessCircleStoreType !='' ">
|
|
|
|
+ #{locationBusinessCircleStoreType},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="specialBusinessType !=null and specialBusinessType !='' ">
|
|
|
|
+ #{specialBusinessType},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="businessAreaCategory !=null and businessAreaCategory !='' ">
|
|
|
|
+ #{businessAreaCategory},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="monthlySalesLevel !=null and monthlySalesLevel !='' ">
|
|
|
|
+ #{monthlySalesLevel},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="medicalInsurancePolicyCategory !=null and medicalInsurancePolicyCategory !='' ">
|
|
|
|
+ #{medicalInsurancePolicyCategory},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="customerAgeLayer !=null and customerAgeLayer !='' ">
|
|
|
|
+ #{customerAgeLayer},
|
|
|
|
+ </if>
|
|
|
|
+ </trim>
|
|
|
|
+
|
|
|
|
+ </insert>
|
|
|
|
+
|
|
|
|
+</mapper>
|