jinlin
2023-12-22 2cf47388b765be947805a51ece7608b27e47650b
modules/mainPart/src/main/java/com/zt/life/modules/configItemWarehouse/service/ConfigItemWarehouseService.java
@@ -95,7 +95,9 @@
     */
    public List<ConfigItemWarehouse> page(QueryFilter queryFilter) {
        List<ConfigItemWarehouse> list= baseDao.getList(queryFilter.getQueryParams());
        workflowService.getRunFlow(list,"pzxrk");
        if (list.size() > 0) {
            workflowService.getRunFlow(list, "pzxrk");
        }
        return list;
    }
@@ -129,14 +131,18 @@
                if (CommonUtils.isActureChangeData(configItem,configItem2)) {
                    configItemService.update(configItem);
                }
                if(CommonUtils.isActureChangeData(configItemDto.getConfigItemWarehouse().getLibraryType(),configItem.getLibraryType())){
                    configItem.setLibraryType(configItemDto.getConfigItemWarehouse().getLibraryType());
                    configItemService.update(configItem);
                }
            } else {
                Map<String, String> map = new HashMap<>();
                String pageCode = configItem.getPageCode();
                if (StringUtils.isNotBlank(pageCode) && "plan,explain,record,report".contains(pageCode)) {
                    map.put("funCode", "test_" + pageCode);
                    //map.put("projectId",configItemDto.getProjectId().toString());
                    configItem.setItemIdentify(sysCodeRuleService.getNewCode(map));
                }
                configItem.setLibraryType(configItemDto.getConfigItemWarehouse().getLibraryType());
                configItem.setWarehouseId(warehouseId);
                configItem.setProjectId(configItemDto.getConfigItemWarehouse().getProjectId());
                configItemService.insert(configItem);