Example #1
0
  public static SJDJArgument fromString(String str) throws Exception {

    SJDJArgument args = new SJDJArgument();
    String[] split = str.split(",");
    if (split.length != 5) {
      ConsolePrinter.err("使用时间登记参数错误。。。。");
      throw new Exception();
    }

    args.setJsbs(split[0]);
    args.setDelta(split[1]);
    args.setJsxmmc(split[2]);
    args.setMxbs(split[3]);
    args.setOrignVal(split[4]);

    return args;
  }
Example #2
0
  public static void main(String[] ars) throws Exception {
    String s = "12,2,12,21,2";
    SJDJArgument fromString = fromString(s);

    com.jz.web.root.log.ConsolePrinter.out(fromString);
  }