Your Name 3 years ago
parent
commit
4338675c2f

+ 1
- 1
src/main/resources/application-prod.yml View File

6
   datasource:
6
   datasource:
7
     username: marketing
7
     username: marketing
8
     password: u@cSFJ5*kS9hGP7a
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
     driver-class-name: com.mysql.cj.jdbc.Driver
10
     driver-class-name: com.mysql.cj.jdbc.Driver
11
     initial-size: 10 # 初始化连接数
11
     initial-size: 10 # 初始化连接数
12
     max-active: 20 # 最大连接数
12
     max-active: 20 # 最大连接数

+ 2
- 2
src/main/resources/mapper/TaBuildingMapper.xml View File

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