Merge remote-tracking branch 'origin/master'
# Conflicts: # config/application.properties # src/main/java/com/sy/IMF/IMF_Tesk.java # src/main/java/com/sy/IMF/KAKO_Sender.java
正在显示
3 个修改的文件
包含
16 行增加
和
22 行删除
| @@ -83,6 +83,9 @@ public class LogicOperation { | @@ -83,6 +83,9 @@ public class LogicOperation { | ||
| 83 | * @Result 计算卡口采集数据并发送报文 | 83 | * @Result 计算卡口采集数据并发送报文 |
| 84 | */ | 84 | */ |
| 85 | public static boolean operation(GatherInfo info) { | 85 | public static boolean operation(GatherInfo info) { |
| 86 | + if("综保区".equals(info.getAreaid())){ | ||
| 87 | + //todo 加综保区的判断逻辑 | ||
| 88 | + } | ||
| 86 | PropertyConfigurator.configure("config/log4j.properties"); | 89 | PropertyConfigurator.configure("config/log4j.properties"); |
| 87 | boolean result = false; | 90 | boolean result = false; |
| 88 | //转为double类型 | 91 | //转为double类型 |
| @@ -4,8 +4,7 @@ import com.sy.model.LandBusinessTypeList; | @@ -4,8 +4,7 @@ import com.sy.model.LandBusinessTypeList; | ||
| 4 | import com.sy.utils.DateTimeConverter; | 4 | import com.sy.utils.DateTimeConverter; |
| 5 | import com.sy.utils.FileTool; | 5 | import com.sy.utils.FileTool; |
| 6 | 6 | ||
| 7 | -import java.io.FileWriter; | ||
| 8 | -import java.io.IOException; | 7 | +import java.io.*; |
| 9 | 8 | ||
| 10 | /** | 9 | /** |
| 11 | * @author | 10 | * @author |
| @@ -18,12 +17,19 @@ public class VeManifestRelation { | @@ -18,12 +17,19 @@ public class VeManifestRelation { | ||
| 18 | 17 | ||
| 19 | public static boolean createFile(LandBusinessTypeList landBusinessTypeList){ | 18 | public static boolean createFile(LandBusinessTypeList landBusinessTypeList){ |
| 20 | boolean flag = false; | 19 | boolean flag = false; |
| 21 | - FileWriter fileWriter; | 20 | +// FileWriter fileWriter; |
| 21 | + File file; | ||
| 22 | try { | 22 | try { |
| 23 | - fileWriter = new FileWriter(veManifestDirectory+new DateTimeConverter().dateFormat()+".xml"); | ||
| 24 | - fileWriter.write(new VeManifestRelation().getMsg(landBusinessTypeList)); | ||
| 25 | - fileWriter.flush(); | ||
| 26 | - fileWriter.close(); | 23 | +// fileWriter = new FileWriter(veManifestDirectory+new DateTimeConverter().dateFormat()+".xml"); |
| 24 | +// | ||
| 25 | +// fileWriter.write(new VeManifestRelation().getMsg(landBusinessTypeList)); | ||
| 26 | +// fileWriter.flush(); | ||
| 27 | +// fileWriter.close(); | ||
| 28 | + file = new File(veManifestDirectory+new DateTimeConverter().dateFormat()+".xml"); | ||
| 29 | + Writer writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(file),"UTF-8")); | ||
| 30 | + writer.write(new VeManifestRelation().getMsg(landBusinessTypeList)); | ||
| 31 | + writer.flush(); | ||
| 32 | + writer.close(); | ||
| 27 | flag = true; | 33 | flag = true; |
| 28 | }catch (IOException e){ | 34 | }catch (IOException e){ |
| 29 | e.printStackTrace(); | 35 | e.printStackTrace(); |
src/main/java/com/sy/test.java
已删除
100644 → 0
| 1 | -package com.sy; | ||
| 2 | - | ||
| 3 | -/** | ||
| 4 | - * @author | ||
| 5 | - * @time 2019-${MOUTH}-06 17:59 | ||
| 6 | - */ | ||
| 7 | -public class test { | ||
| 8 | - | ||
| 9 | - // private static LogicOperation logicOperation =new LogicOperation(); | ||
| 10 | - | ||
| 11 | -/* public static void main(String[] args) { | ||
| 12 | - double a = logicOperation.GoodsWt("172-26481560,172-26481593,172-26481604,172-26481545,172-26481582,172-26481556,172-26481571","I"); | ||
| 13 | - System.out.printf("%.1f",a); | ||
| 14 | - }*/ | ||
| 15 | -} |
-
请 注册 或 登录 后发表评论