CZT
2023-11-27 c206acfaedc69c390fb67daa81bc686f58a212ef
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;