czt
20 小时以前 256f9c48f2c52985a094a220b644d60d24cb6ed4
igds-inout/src/main/java/com/ld/igds/m/InoutManageUtil.java
@@ -102,9 +102,14 @@
    public static String createPlanId(String type, String year, List<InoutPlan> list) {
        String index = "001";
        if (list != null && list.size() > 0) {
            String[] arr = list.get(0).getId().split("_");
            int temp = Integer.valueOf(arr[2]) + 1;
            index = temp + "";
            int temp = 0;
            for (InoutPlan inoutPlan : list) {
                String[] arr = inoutPlan.getId().split("_");
                if(Integer.valueOf(arr[2]) > temp){
                    temp = Integer.valueOf(arr[2]);
                }
            }
            index = temp + 1 + "";
        }
        if (index.length() == 1) {
            index = "00" + index;