LhCreditApplication.java
4.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
package com.lhcredit;
import cn.hutool.extra.spring.SpringUtil;
import cn.hutool.http.HttpRequest;
import cn.hutool.poi.excel.ExcelReader;
import cn.hutool.poi.excel.ExcelUtil;
import cn.hutool.poi.excel.ExcelWriter;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.lhcredit.common.utils.Static;
import com.lhcredit.common.utils.StringUtils;
import com.lhcredit.common.utils.spring.SpringUtils;
import com.lhcredit.framework.web.service.FastDFSClient;
import com.lhcredit.project.business.TianYC.entity.param.SFParams;
import com.lhcredit.project.business.contractReportBusinessType.service.ContractReportBusinessTypeServiceImpl;
import com.lhcredit.project.business.creditGrantingInfo.domain.CGModelParamsLog;
import com.lhcredit.project.business.creditGrantingInfo.service.CreditGrantingInfoServiceImpl;
import com.lhcredit.project.business.creditGrantingRisk.domain.CreditGrantingRisk;
import com.lhcredit.project.business.creditGrantingRisk.service.ICreditGrantingRiskService;
import com.lhcredit.project.business.frontDept.controller.FrontDeptController;
import com.lhcredit.project.business.frontDept.domain.FrontDept;
import com.lhcredit.project.business.reportDataStorage.domain.ReportDataStorage;
import com.lhcredit.project.business.reportDataStorage.service.IReportDataStorageService;
import com.lhcredit.project.business.reportFinanceData.domain.ReportFinanceData;
import com.lhcredit.project.business.reportFinanceData.mapper.ReportFinanceDataMapper;
import com.lhcredit.project.business.reportFinanceData.service.IReportFinanceDataService;
import com.lhcredit.project.business.reportFinanceData.service.ReportFinanceDataServiceImpl;
import com.lhcredit.project.business.reportMake.ReportMakeService;
import com.lhcredit.project.business.reportMake.ReportOverseasMakeService;
import com.lhcredit.project.business.reportMake.reportTemp.LocalFunctionData;
import com.lhcredit.project.business.reportMake.reportTemp.MonitorDataTempLate;
import com.lhcredit.project.business.reportMake.reportTemp.WebTempConfig;
import com.lhcredit.project.business.templateDataSource.controller.TemplateDataSourceController;
import com.lhcredit.project.business.templateDataSource.domain.TemplateDataSource;
import com.lhcredit.project.business.templateDataSource.service.ITemplateDataSourceService;
import com.lhcredit.project.business.templateDataSource.service.TemplateDataSourceServiceImpl;
import com.lhcredit.project.monitor.job.task.MonitorDataTask;
import com.lhcredit.project.webbusiness.controller.WebApiFinanceController;
import com.lhcredit.project.webbusiness.controller.WebStatisticsController;
import com.lhcredit.project.worldbox.domain.Test;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.poi.openxml4j.util.ZipSecureFile;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.core.env.Environment;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.util.CollectionUtils;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.lang.reflect.Field;
import java.math.BigDecimal;
import java.util.*;
import java.util.stream.Collectors;
/**
* 启动程序
*/
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
@EnableCaching
@EnableScheduling
public class LhCreditApplication {
public static void main(String[] args) throws Exception {
// System.setProperty("spring.devtools.restart.enabled", "false");
SpringApplication.run(LhCreditApplication.class, args);
ZipSecureFile.setMinInflateRatio(0.001);
System.out.println("(♥◠‿◠)ノ゙ 项目启动成功 ლ(´ڡ`ლ)゙");
// String body = HttpRequest.get("http://localhost:8082/web/monitorReportDays/down/4").execute().body();
// JSONObject object = JSONObject.parseObject(body);
// System.out.println(MonitorDataTempLate.of(JSONObject.parseObject(body)).make());
}
}