“djh”
2 天以前 97cd53a574602b3eb4320a6e63105f604eb03f85
multi-system/src/main/java/com/gkhy/exam/system/service/impl/CatalogueServiceImpl.java
@@ -16,8 +16,10 @@
import com.gkhy.exam.system.mapper.ProductItemMapper;
import com.gkhy.exam.system.mapper.SysCompanyMapper;
import com.gkhy.exam.system.service.CatalogueService;
import com.gkhy.exam.system.service.ProcessInspectionService;
import com.gkhy.exam.system.service.ProjectDocumentService;
import com.gkhy.exam.system.service.SysCompanyService;
import org.apache.poi.ss.formula.functions.T;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@@ -25,7 +27,9 @@
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
@Service
@@ -41,6 +45,9 @@
    private ProductItemMapper productItemMapper;
    @Autowired
    private ProjectDocumentService projectDocumentService;
    @Autowired
    private ProcessInspectionService processInspectionService;
    /**
     * 目录管理
@@ -281,6 +288,23 @@
        return CommonResult.success(collect);
    }
    @Override
    public CommonResult selectCatalogueDocumentListAll(CatalogueReq catalogueReq) {
        Map<String, Object> parm = new HashMap<>();
        parm.put("company_id",catalogueReq.getCompanyId());
        parm.put("item_id",catalogueReq.getItemId());
        parm.put("del_flag",1);
        List<ProjectDocument> projectDocuments = projectDocumentService.listByMap(parm);
        parm.put("del_flag",0);
        List<ProcessInspection> processInspections = processInspectionService.listByMap(parm);
        Map<String, Object> resultMap = new HashMap<>();
        resultMap.put("paojectDocuments",projectDocuments);
        resultMap.put("processInspections",processInspections);
        return CommonResult.success(resultMap);
    }
    private void saveCatalogue(List<CatalogueVo> children,Catalogue catalogue) {
        for (CatalogueVo child : children) {
            Catalogue catalogue1 = new Catalogue();