|
|
|
@ -28,7 +28,7 @@ public class A1 {
|
|
|
|
|
static String[] excludeCityList = {"~$", "磨憨-磨丁", "经开区", "阳宗海"};
|
|
|
|
|
|
|
|
|
|
//有好多EXCEL,啥样的有用?必须带有关键字字样的才有用!
|
|
|
|
|
static String fileNameKey="发展规模数据";
|
|
|
|
|
static String fileNameKey = "发展规模数据";
|
|
|
|
|
|
|
|
|
|
public static void main(String[] args) throws IOException, InvalidFormatException {
|
|
|
|
|
//初始化数据库连接
|
|
|
|
@ -98,11 +98,9 @@ public class A1 {
|
|
|
|
|
List<List<String>> dataList = ExcelKit.readSecondTable(sourceExcel, 0, "自动计算招生数、在校生数",
|
|
|
|
|
2, "K");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//入园总数
|
|
|
|
|
for (List<String> stringList : dataList) {
|
|
|
|
|
for (List<String> stringList : dataList){
|
|
|
|
|
//年份
|
|
|
|
|
if (stringList.isEmpty() || StrKit.isBlank(stringList.get(0))) break;
|
|
|
|
|
int year = Integer.parseInt(stringList.get(0));
|
|
|
|
|
//3预测总招生数
|
|
|
|
|
String zss = stringList.get(3).split("\\.")[0];
|
|
|
|
@ -124,7 +122,6 @@ public class A1 {
|
|
|
|
|
//城区
|
|
|
|
|
for (List<String> stringList : dataList) {
|
|
|
|
|
//年份
|
|
|
|
|
if(stringList.isEmpty() || StrKit.isBlank(stringList.get(0))) break;
|
|
|
|
|
int year = Integer.parseInt(stringList.get(0));
|
|
|
|
|
//4修正城区招生A
|
|
|
|
|
int v = Integer.parseInt(stringList.get(4).split("\\.")[0]);
|
|
|
|
@ -136,7 +133,6 @@ public class A1 {
|
|
|
|
|
|
|
|
|
|
//镇区
|
|
|
|
|
for (List<String> stringList : dataList) {
|
|
|
|
|
if(stringList.isEmpty() || StrKit.isBlank(stringList.get(0))) break;
|
|
|
|
|
//年份
|
|
|
|
|
int year = Integer.parseInt(stringList.get(0));
|
|
|
|
|
|
|
|
|
@ -149,10 +145,9 @@ public class A1 {
|
|
|
|
|
|
|
|
|
|
//乡村
|
|
|
|
|
for (List<String> stringList : dataList) {
|
|
|
|
|
if(stringList.isEmpty() || StrKit.isBlank(stringList.get(0))) break;
|
|
|
|
|
//年份
|
|
|
|
|
int year = Integer.parseInt(stringList.get(0));
|
|
|
|
|
int v = Integer.parseInt(stringList.get(5).split("\\.")[0]);
|
|
|
|
|
int v = Integer.parseInt(stringList.get(6).split("\\.")[0]);
|
|
|
|
|
Row outRow = outSheet.createRow(++rowIndex);
|
|
|
|
|
ExcelKit.putData(outRow, Arrays.asList(String.valueOf(year),
|
|
|
|
|
"", "乡村", "", String.valueOf(v), areaName, cityName), dataStyle);
|
|
|
|
|