Merge branch 'gray' into test6.8.9
Conflicts: dal/src/main/java/com/yoho/order/model/BuyerOrderReq.java
Showing
2 changed files
with
46 additions
and
0 deletions
1 | +package com.yohobuy.ufo; | ||
2 | + | ||
3 | +import com.yoho.ufo.util.XlsxUtils; | ||
4 | + | ||
5 | +import java.io.File; | ||
6 | +import java.io.IOException; | ||
7 | +import java.util.List; | ||
8 | + | ||
9 | +/** | ||
10 | + * Created by li.ma on 2019/3/28. | ||
11 | + */ | ||
12 | +public class ExcelParseUtil { | ||
13 | + public static void main(String[] args) { | ||
14 | + try { | ||
15 | + List<LiveVideoModel> dataList = XlsxUtils.parse(new File("C:\\Users\\li.ma\\Desktop\\鉴定视频有问题的.xlsx"), LiveVideoModel.class); | ||
16 | + | ||
17 | + for (LiveVideoModel item : dataList) { | ||
18 | + String l = String.format("curl 'http://172.31.70.39:8088/ufoPlatform/live/generateMp4Vedio?debug=XYZ&orderCode=%d&startTime=%d&endTime=%d&cameraCode=%d'", item.getOrderCode(), item.getStartTime(), item.getEndTime() + 1, item.getCameraCode()); | ||
19 | + System.out.println(l); | ||
20 | + } | ||
21 | + | ||
22 | + | ||
23 | + } catch (IOException e) { | ||
24 | + e.printStackTrace(); | ||
25 | + } | ||
26 | + } | ||
27 | +} |
1 | +package com.yohobuy.ufo; | ||
2 | + | ||
3 | +import com.yoho.ufo.annotation.BatchImportField; | ||
4 | +import lombok.Data; | ||
5 | + | ||
6 | +/** | ||
7 | + * Created by li.ma on 2019/3/28. | ||
8 | + */ | ||
9 | +@Data | ||
10 | +public class LiveVideoModel { | ||
11 | + @BatchImportField(index = 0) | ||
12 | + private Long orderCode; | ||
13 | + @BatchImportField(index = 1) | ||
14 | + private Integer startTime; | ||
15 | + @BatchImportField(index = 2) | ||
16 | + private Integer endTime; | ||
17 | + @BatchImportField(index = 3) | ||
18 | + private Integer cameraCode; | ||
19 | +} |
-
Please register or login to post a comment