Your Name 3 jaren geleden
bovenliggende
commit
4338675c2f
2 gewijzigde bestanden met toevoegingen van 3 en 3 verwijderingen
  1. 1
    1
      src/main/resources/application-prod.yml
  2. 2
    2
      src/main/resources/mapper/TaBuildingMapper.xml

+ 1
- 1
src/main/resources/application-prod.yml Bestand weergeven

@@ -6,7 +6,7 @@ spring:
6 6
   datasource:
7 7
     username: marketing
8 8
     password: u@cSFJ5*kS9hGP7a
9
-    url: jdbc:mysql://210.13.107.60:3306/marketing-cloud?useUnicode=true&serverTimezone=Asia/Shanghai&characterEncoding=utf8&allowMultiQueries=true&autoReconnect=true&zeroDateTimeBehavior=convertToNull
9
+    url: jdbc:mysql://localhost:3306/marketing-cloud?useUnicode=true&serverTimezone=Asia/Shanghai&characterEncoding=utf8&allowMultiQueries=true&autoReconnect=true&zeroDateTimeBehavior=convertToNull
10 10
     driver-class-name: com.mysql.cj.jdbc.Driver
11 11
     initial-size: 10 # 初始化连接数
12 12
     max-active: 20 # 最大连接数

+ 2
- 2
src/main/resources/mapper/TaBuildingMapper.xml Bestand weergeven

@@ -151,7 +151,7 @@
151 151
                         <foreach collection="priceList" item="priceArr" open="(" close=")" separator=" OR ">
152 152
                             (
153 153
                                 <if test='priceArr[0] != null and priceArr[0] != ""'>
154
-                                    <![CDATA[ start_price >= ${priceArr[0]}  ]]>
154
+                                    <![CDATA[ start_price > ${priceArr[0]}  ]]>
155 155
                                 </if>
156 156
                                 <if test='priceArr.length > 1 and priceArr[0] != null and priceArr[0] != ""'>
157 157
                                     AND
@@ -162,7 +162,7 @@
162 162
                             )  or
163 163
                             (
164 164
                             <if test='priceArr[0] != null and priceArr[0] != ""'>
165
-                                <![CDATA[ end_price >= ${priceArr[0]}  ]]>
165
+                                <![CDATA[ end_price > ${priceArr[0]}  ]]>
166 166
                             </if>
167 167
                             <if test='priceArr.length > 1 and priceArr[0] != null and priceArr[0] != ""'>
168 168
                                 AND