'123'
This commit is contained in:
parent
a0407bb2e6
commit
a88c8e1cf4
|
@ -15,11 +15,6 @@ import java.util.List;
|
||||||
*/
|
*/
|
||||||
@Mapper
|
@Mapper
|
||||||
public interface JnRegionMapper {
|
public interface JnRegionMapper {
|
||||||
@Select("with temp as(\n" +
|
@Select("select * from c_place a where 1=1 and a.province like '%${regionName}%' or a.city like '%${regionName}%' or a.district like '%${regionName}%' ")
|
||||||
"select pz_place_uid_0,price_0t_5t,price_5t_10t,price_10t_25t,price_25t_100t,price_100t from c_pz_price where date_0=(select max(date_0) from c_pz_price) \n" +
|
|
||||||
") select distinct a.sheng_0 as province,a.shi_0 as city,a.qu_0 as district,a.km_0 as kilometers,\n" +
|
|
||||||
"b.price_0t_5t as price_01,b.price_5t_10t as price_02,b.price_10t_25t as price_03,b.price_25t_100t as price_04,b.price_100t as price_05\n" +
|
|
||||||
"from c_pz_place2019 a left join temp b on a.id_0 = b.pz_place_uid_0 where a.qu_0 not in \n" +
|
|
||||||
"('江阴市','金坛区','溧阳市','宜兴市') and (sheng_0 like '%${regionName}%' or shi_0 like '%${regionName}%' or qu_0 like '%${regionName}%')")
|
|
||||||
List<JnRegionDto> queryRegionListByName(String regionName);
|
List<JnRegionDto> queryRegionListByName(String regionName);
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,7 +11,7 @@ spring:
|
||||||
datasource:
|
datasource:
|
||||||
master:
|
master:
|
||||||
driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
|
driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
|
||||||
url: jdbc:sqlserver://192.168.9.230:1433;databaseName=ERP;Encrypt=false;TrustServerCertificate=true;
|
url: jdbc:sqlserver://192.168.9.99:1433;databaseName=jn_quot;Encrypt=false;TrustServerCertificate=true;
|
||||||
username: sa
|
username: sa
|
||||||
password: Itcenter110-
|
password: Itcenter110-
|
||||||
slave_1:
|
slave_1:
|
||||||
|
|
|
@ -2,4 +2,4 @@ spring:
|
||||||
thymeleaf:
|
thymeleaf:
|
||||||
mode: HTML
|
mode: HTML
|
||||||
profiles:
|
profiles:
|
||||||
active: ZM
|
active: JN
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
const queryRegionListByName = (params) => {
|
const queryRegionListByName = (params) => {
|
||||||
return $axios({
|
return $axios({
|
||||||
url: '/zmquotation/regionList',
|
url: '/jnquotation/regionList',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
params
|
params
|
||||||
})
|
})
|
||||||
|
|
|
@ -591,6 +591,7 @@
|
||||||
}
|
}
|
||||||
console.log(params)
|
console.log(params)
|
||||||
queryRegionListByName(params).then(res => {
|
queryRegionListByName(params).then(res => {
|
||||||
|
console.log('queryRegionListByName')
|
||||||
this.regionTableData = res.data || []
|
this.regionTableData = res.data || []
|
||||||
this.regionCurrentPage = 1;
|
this.regionCurrentPage = 1;
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -11,7 +11,7 @@ spring:
|
||||||
datasource:
|
datasource:
|
||||||
master:
|
master:
|
||||||
driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
|
driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver
|
||||||
url: jdbc:sqlserver://192.168.9.230:1433;databaseName=ERP;Encrypt=false;TrustServerCertificate=true;
|
url: jdbc:sqlserver://192.168.9.99:1433;databaseName=jn_quot;Encrypt=false;TrustServerCertificate=true;
|
||||||
username: sa
|
username: sa
|
||||||
password: Itcenter110-
|
password: Itcenter110-
|
||||||
slave_1:
|
slave_1:
|
||||||
|
|
|
@ -2,4 +2,4 @@ spring:
|
||||||
thymeleaf:
|
thymeleaf:
|
||||||
mode: HTML
|
mode: HTML
|
||||||
profiles:
|
profiles:
|
||||||
active: ZM
|
active: JN
|
||||||
|
|
Binary file not shown.
|
@ -1,6 +1,6 @@
|
||||||
const queryRegionListByName = (params) => {
|
const queryRegionListByName = (params) => {
|
||||||
return $axios({
|
return $axios({
|
||||||
url: '/zmquotation/regionList',
|
url: '/jnquotation/regionList',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
params
|
params
|
||||||
})
|
})
|
||||||
|
|
|
@ -591,6 +591,7 @@
|
||||||
}
|
}
|
||||||
console.log(params)
|
console.log(params)
|
||||||
queryRegionListByName(params).then(res => {
|
queryRegionListByName(params).then(res => {
|
||||||
|
console.log('queryRegionListByName')
|
||||||
this.regionTableData = res.data || []
|
this.regionTableData = res.data || []
|
||||||
this.regionCurrentPage = 1;
|
this.regionCurrentPage = 1;
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
artifactId=JNDemo
|
||||||
|
groupId=com.JN
|
||||||
|
version=1.0-SNAPSHOT
|
Loading…
Reference in New Issue