MCPcopy Create free account
hub / github.com/OpenDRG/DRG_Java / main

Method main

drg_group/wuxi_2022/GroupTest.java:10–36  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

8
9public class GroupTest {
10 public static void main(String[] args) {
11 GroupProxy grouper=new GroupProxy();
12 // group_yancheng(grouper);
13 // group_suzhou(grouper);
14 // grouper.group_txt();
15 System.out.println(grouper.group_record(
16 "22058878,2,88,32460,,13040503,94,1,K80.302|K80.305|K83.109|K72.905|Z90.408|E14.900x001,51.8803|51.8701|54.5100x005|45.1301"));
17 System.exit(0);
18
19 if (args==null||args.length==0){
20 String path=System.getProperty("user.dir");
21 if (!new File(path, "input.txt").exists()){
22 System.out.println(String.format("文件不存在:%s", new File(path, "input.txt")));
23 System.exit(1);
24 }
25 new GroupProxy().group_txt();
26 }else if (args.length==1){
27 GroupResult result=grouper.group_record(args[0]);
28 System.out.println(result);
29 }else{
30 if (!new File(args[0]).exists()){
31 System.out.println(String.format("文件不存在:%s", args[0]));
32 System.exit(1);
33 }
34 grouper.group_csv(Paths.get(args[0]),Arrays.asList(args[1].split(",",-1)));
35 }
36 }
37 // public static void group_yancheng(GroupProxy grouper){
38 // String yearMonth="202209";
39 // Path filename=Paths.get("/mnt/c/yb/yc",String.format("ba_group_info_%s.csv", yearMonth));

Callers

nothing calls this directly

Calls 3

group_recordMethod · 0.95
group_csvMethod · 0.95
group_txtMethod · 0.45

Tested by

no test coverage detected