YYC
2023-10-19 6bd36a38fc587ba39bd50e26257ed6ece71363e7
igds-inout/src/main/java/com/ld/igds/inout/manager/InoutManager2.java
@@ -227,6 +227,9 @@
        if (null == data.getIntelCard()) {
            data.setIntelCard(data.getUserId());
        }
        if (null == data.getRegisterTime()) {
            data.setRegisterTime(new Date());
        }
        msg = inoutService.insertData(data);
        //执行附件信息
@@ -637,7 +640,6 @@
            param.setCompanyId(user.getCompanyId());
        }
        param.setDeptId(ContextUtil.subDeptId(user));
        param.setCompleteStatus(InoutConstant.COMPLETE_STATUS_NONE);
        List<InoutNoticeIn> list = inoutManagerService.listNoticeIn(param);
@@ -671,8 +673,8 @@
        //获取仓库信息
        List<Depot> depotList = coreCommonService.getCacheDepotList(param.getCompanyId(), param.getDeptId());
        Map<String,String> map = new HashMap<>();
        if(depotList != null && depotList.size() > 0){
        Map<String, String> map = new HashMap<>();
        if (depotList != null && depotList.size() > 0) {
            for (Depot depot : depotList) {
                map.put(depot.getId(), depot.getName());
            }
@@ -680,7 +682,7 @@
        //赋值仓库名称
        for (InoutNoticeOut inoutNoticeOut : list) {
            if(map.get(inoutNoticeOut.getDepotId()) != null){
            if (map.get(inoutNoticeOut.getDepotId()) != null) {
                inoutNoticeOut.setDepotName(map.get(inoutNoticeOut.getDepotId()));
            }
        }