| | |
| | | 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; |
| | |
| | | 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 |
| | |
| | | private ProductItemMapper productItemMapper; |
| | | @Autowired |
| | | private ProjectDocumentService projectDocumentService; |
| | | |
| | | @Autowired |
| | | private ProcessInspectionService processInspectionService; |
| | | |
| | | /** |
| | | * 目录管理 |
| | |
| | | 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(); |