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

Method main

drg_group/wuhan_2022/GroupTest.java:10–34  ·  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 // System.out.println(grouper.group_record("22139456,1.0,51.0,18987.0,,13110006.0,10.0,2.0,\"K75.000,J98.414,R68.800x001,N19.x03,J96.900x001,K76.800x006,E14.900x001,I10.x00x002\",\"96.7201,96.0400,38.9301,38.9303,99.0800\",AH11"));
13 // grouper.group_txt();
14 // group(grouper);
15 // System.exit(0);
16
17 if (args==null||args.length==0){
18 String path=System.getProperty("user.dir");
19 if (!new File(path, "input.txt").exists()){
20 System.out.println(String.format("文件不存在:%s", new File(path, "input.txt")));
21 System.exit(1);
22 }
23 new GroupProxy().group_txt();
24 }else if (args.length==1){
25 GroupResult result=grouper.group_record(args[0]);
26 System.out.println(result);
27 }else{
28 if (!new File(args[0]).exists()){
29 System.out.println(String.format("文件不存在:%s", args[0]));
30 System.exit(1);
31 }
32 grouper.group_csv(Paths.get(args[0]),Arrays.asList(args[1].split(",",-1)));
33 }
34 }
35 // public static void group(GroupProxy grouper){
36 // String yearMonth="202212";
37 // 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