修改POM依赖
This commit is contained in:
@@ -19,6 +19,7 @@
|
|||||||
<modules>
|
<modules>
|
||||||
<module>../../projects/fangjia-core</module>
|
<module>../../projects/fangjia-core</module>
|
||||||
<module>../../projects/fangjia-dal</module>
|
<module>../../projects/fangjia-dal</module>
|
||||||
|
<module>../../projects/chafangtong-dal</module>
|
||||||
<module>../../projects/fangjia-service</module>
|
<module>../../projects/fangjia-service</module>
|
||||||
<module>../../projects/geluke-dal</module>
|
<module>../../projects/geluke-dal</module>
|
||||||
<module>../../projects/geluke-service</module>
|
<module>../../projects/geluke-service</module>
|
||||||
|
|||||||
@@ -1,63 +0,0 @@
|
|||||||
/**
|
|
||||||
* Created by Administrator on 2017/5/9.
|
|
||||||
*/
|
|
||||||
import com.sun.org.apache.xerces.internal.impl.io.UTF8Reader;
|
|
||||||
import com.sun.xml.internal.txw2.Document;
|
|
||||||
import sun.nio.cs.ext.GB18030;
|
|
||||||
|
|
||||||
import java.io.BufferedReader;
|
|
||||||
import java.io.InputStreamReader;
|
|
||||||
import java.net.URL;
|
|
||||||
import java.net.URLConnection;
|
|
||||||
public class Test {
|
|
||||||
String fixture_Date = null;
|
|
||||||
String area = null;
|
|
||||||
String unit_Price = null;
|
|
||||||
String transaction_Price = null;
|
|
||||||
static String sendGet(String url) {
|
|
||||||
String result = "";
|
|
||||||
// 定义一个缓冲字符输入流
|
|
||||||
BufferedReader in = null;
|
|
||||||
try {
|
|
||||||
// 将string转成url对象
|
|
||||||
URL realUrl = new URL(url);
|
|
||||||
// 初始化一个链接到那个url的连接
|
|
||||||
URLConnection connection = realUrl.openConnection();
|
|
||||||
// 开始实际的连接
|
|
||||||
connection.connect();
|
|
||||||
// 初始化 BufferedReader输入流来读取URL的响应
|
|
||||||
in = new BufferedReader(new InputStreamReader(connection.getInputStream(),"gbk"));
|
|
||||||
// 用来临时存储抓取到的每一行的数据
|
|
||||||
String line;
|
|
||||||
while ((line = in.readLine()) != null)
|
|
||||||
{ // 遍历抓取到的每一行并将其存储到result里面
|
|
||||||
result += line;
|
|
||||||
}
|
|
||||||
Document document = Jsoup.parse(result, url);
|
|
||||||
|
|
||||||
parseListPage(document);
|
|
||||||
|
|
||||||
|
|
||||||
} catch (Exception e) {
|
|
||||||
System.out.println("发送GET请求出现异常!" + e);
|
|
||||||
e.printStackTrace(); }
|
|
||||||
// 使用finally来关闭输入流
|
|
||||||
finally {
|
|
||||||
try {
|
|
||||||
if (in != null) {
|
|
||||||
in.close(); }
|
|
||||||
} catch (Exception e2) {
|
|
||||||
e2.printStackTrace();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
public static void main(String[] args) {
|
|
||||||
// 定义即将访问的链接
|
|
||||||
String url = "http://dl.goufang.com/xq/1062/6";
|
|
||||||
// 访问链接并获取页面内容
|
|
||||||
String result = sendGet(url);
|
|
||||||
System.out.println(result);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -15,19 +15,19 @@ class LogStat {
|
|||||||
}
|
}
|
||||||
|
|
||||||
def run(){
|
def run(){
|
||||||
ExcelUtils.multiThreadingModify("D:\\data\\建行匹配小区2(1).xlsx",{ d ->
|
ExcelUtils.multiThreadingModify("C:\\Users\\wenyan\\Desktop\\建行匹配小区4.xlsx",{ d ->
|
||||||
def calDate = DateUtil.parseDate(d['M'], "yyyy-MM-dd")
|
// def calDate = DateUtil.parseDate(d['M'], "yyyy-MM-dd")
|
||||||
def weekend = DateUtils.getFirstDayOfWeek(calDate)
|
// def weekend = DateUtils.getFirstDayOfWeek(calDate)
|
||||||
def dbo = CommonDatautils.queryDistrictPrice(d['N'], d['O'], d['P'], weekend)
|
// def dbo = CommonDatautils.queryDistrictPrice(d['N'], d['O'], d['P'], weekend)
|
||||||
if(dbo){
|
// if(dbo){
|
||||||
d['E'] = dbo.avg_price
|
// d['E'] = dbo.avg_price
|
||||||
}
|
// }
|
||||||
|
|
||||||
def district = CommonDatautils.findDistrict(d['N'], d['O'], d['P'], "district")
|
def district = CommonDatautils.findDistrict(d['N'], d['O'], d['P'], "district")
|
||||||
if(district){
|
if(district){
|
||||||
def startDate = DateUtil.addMonth(new Date(), -6)
|
def startDate = DateUtil.addMonth(new Date(), -6)
|
||||||
def start = startDate.replace("-","").toInteger()
|
def start = startDate.replace("-","").toInteger()
|
||||||
def end = DateUtil.formatByPattern(calDate,"yyyyMMdd").toInteger()
|
// def end = DateUtil.formatByPattern(calDate,"yyyyMMdd").toInteger()
|
||||||
def alias = []
|
def alias = []
|
||||||
if(district.alias){
|
if(district.alias){
|
||||||
if(!district.alias.contains(district.name)){
|
if(!district.alias.contains(district.name)){
|
||||||
@@ -37,8 +37,8 @@ class LogStat {
|
|||||||
}else{
|
}else{
|
||||||
alias << district.name
|
alias << district.name
|
||||||
}
|
}
|
||||||
def count = findHouses(d['N'], d['O'], d['P'], alias, start, end)
|
def count = findHouses(d['N'], d['O'], d['P'], alias, start, null)
|
||||||
d['G'] = count
|
d['S'] = count
|
||||||
println(d)
|
println(d)
|
||||||
}
|
}
|
||||||
},0)
|
},0)
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.sothis</groupId>
|
<groupId>org.sothis</groupId>
|
||||||
<artifactId>sothis-core</artifactId>
|
<artifactId>sothis-core</artifactId>
|
||||||
<version>0.2.0-SNAPSHOT</version>
|
<version>0.2.0</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.fangjia</groupId>
|
<groupId>com.fangjia</groupId>
|
||||||
|
|||||||
@@ -51,7 +51,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.sothis</groupId>
|
<groupId>org.sothis</groupId>
|
||||||
<artifactId>sothis-web</artifactId>
|
<artifactId>sothis-web</artifactId>
|
||||||
<version>0.2.0-SNAPSHOT</version>
|
<version>0.2.0</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework</groupId>
|
<groupId>org.springframework</groupId>
|
||||||
|
|||||||
Reference in New Issue
Block a user