bug (办公作价):修复办公作价bug
1. 修复下载查询传参名称不匹配 2. 调整docker container中的时区
This commit is contained in:
@ -17,7 +17,7 @@ public class GenerateTableTests {
|
||||
@Test
|
||||
public void testLastYearMonth() {
|
||||
|
||||
Integer lastYearMonth = DateUtils.getLastYearMonth();
|
||||
Integer lastYearMonth = DateUtils.getLastYearMonth();
|
||||
Assert.assertTrue(202007 == lastYearMonth);
|
||||
|
||||
}
|
||||
@ -179,4 +179,50 @@ public class GenerateTableTests {
|
||||
Assert.assertTrue(Objects.equals(202006, lastYearMonth));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@Test
|
||||
public void testPrintLoop() {
|
||||
|
||||
/**
|
||||
* 成交案例总数
|
||||
* 成交套数
|
||||
* 成交价格
|
||||
*/
|
||||
List<String> list = new LinkedList<>();
|
||||
list.add("425280");
|
||||
list.add("428770");
|
||||
list.add("427490");
|
||||
list.add("428790");
|
||||
list.add("427780");
|
||||
list.add("430050");
|
||||
list.add("425028");
|
||||
list.add("429710");
|
||||
list.add("425700");
|
||||
for (int j = 0; j < list.size(); j++) {
|
||||
|
||||
System.out.println("select " + list.get(j) + " as community_id , sum(count) as count,sum(total_price) as " +
|
||||
"total_price," +
|
||||
"avg" +
|
||||
"(avg_price) as avg_price ,sum(total_area) as total_area,avg(avg_area) as avg_area from (");
|
||||
|
||||
for (int i = 201901; i <= 201906; i++) {
|
||||
System.out.println("select COUNT(1) " +
|
||||
"as count" +
|
||||
" ,sum" +
|
||||
"(PriceTotal) as total_price ,avg" +
|
||||
"(PriceTotal) as avg_price," +
|
||||
"sum(Area) as total_area ,avg" +
|
||||
"(Area) as avg_area from " +
|
||||
"ODS_HOUSINGCASE_DEAL_" + i + " where ProjectID=" + list.get(j));
|
||||
if (i != 201906)
|
||||
System.out.println("union");
|
||||
}
|
||||
System.out.println(") as t;\n");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -27,9 +27,9 @@ public class DownloadOriginalResidenceSaleClosingCaseServiceImplTests {
|
||||
@Test
|
||||
public void testLoopDownload() {
|
||||
// , 201912
|
||||
Arrays.asList(201901, 201902, 201903, 201904, 201905, 201906, 201907, 201908, 201909, 201910).parallelStream().forEach(i -> {
|
||||
downloadOriginalResidenceSaleClosingCaseService.download(i + 2, i);
|
||||
});
|
||||
// Arrays.asList(201901, 201902, 201903, 201904, 201905, 201906, 201907, 201908, 201909, 201910).parallelStream().forEach(i -> {
|
||||
// downloadOriginalResidenceSaleClosingCaseService.download(i + 2, i);
|
||||
// });
|
||||
// downloadOriginalResidenceSaleClosingCaseService.download(202001, 201911);
|
||||
// downloadOriginalResidenceSaleClosingCaseService.download(202002, 201912);
|
||||
// downloadOriginalResidenceSaleClosingCaseService.download(202003, 202001);
|
||||
|
Reference in New Issue
Block a user