This commit is contained in:
xd 2024-02-26 13:41:57 +08:00
parent a0407bb2e6
commit a88c8e1cf4
14 changed files with 14 additions and 14 deletions

View File

@ -15,11 +15,6 @@ import java.util.List;
*/
@Mapper
public interface JnRegionMapper {
@Select("with temp as(\n" +
"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}%')")
@Select("select * from c_place a where 1=1 and a.province like '%${regionName}%' or a.city like '%${regionName}%' or a.district like '%${regionName}%' ")
List<JnRegionDto> queryRegionListByName(String regionName);
}

View File

@ -11,7 +11,7 @@ spring:
datasource:
master:
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
password: Itcenter110-
slave_1:

View File

@ -2,4 +2,4 @@ spring:
thymeleaf:
mode: HTML
profiles:
active: ZM
active: JN

View File

@ -1,6 +1,6 @@
const queryRegionListByName = (params) => {
return $axios({
url: '/zmquotation/regionList',
url: '/jnquotation/regionList',
method: 'post',
params
})
@ -19,4 +19,4 @@ const queryInventoryList = () => {
url: '/zmquotation/inventoryList',
method: 'post',
})
}
}

View File

@ -591,6 +591,7 @@
}
console.log(params)
queryRegionListByName(params).then(res => {
console.log('queryRegionListByName')
this.regionTableData = res.data || []
this.regionCurrentPage = 1;
}).catch(err => {

Binary file not shown.

Binary file not shown.

View File

@ -11,7 +11,7 @@ spring:
datasource:
master:
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
password: Itcenter110-
slave_1:

View File

@ -2,4 +2,4 @@ spring:
thymeleaf:
mode: HTML
profiles:
active: ZM
active: JN

View File

@ -1,6 +1,6 @@
const queryRegionListByName = (params) => {
return $axios({
url: '/zmquotation/regionList',
url: '/jnquotation/regionList',
method: 'post',
params
})
@ -19,4 +19,4 @@ const queryInventoryList = () => {
url: '/zmquotation/inventoryList',
method: 'post',
})
}
}

View File

@ -591,6 +591,7 @@
}
console.log(params)
queryRegionListByName(params).then(res => {
console.log('queryRegionListByName')
this.regionTableData = res.data || []
this.regionCurrentPage = 1;
}).catch(err => {

View File

@ -0,0 +1,3 @@
artifactId=JNDemo
groupId=com.JN
version=1.0-SNAPSHOT