| | |
| | | package org.springblade.code.controller; |
| | | |
| | | import com.vci.mdm.dto.CodeClassifyDTO; |
| | | import com.vci.mdm.pagemodel.CodeClassifyVO; |
| | | import com.vci.mdm.service.CodeClassifyServiceI; |
| | | |
| | | import com.vci.starter.web.pagemodel.*; |
| | | import com.vci.starter.web.util.ControllerUtil; |
| | | import com.vci.starter.web.util.LangBaseUtil; |
| | | import com.vci.starter.web.util.LocalFileUtil; |
| | | import com.vci.starter.web.util.VciBaseUtil; |
| | | import com.vci.web.pageModel.OsAttributeVO; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.apache.commons.lang.StringUtils; |
| | | import org.springblade.code.dto.CodeClassifyDTO; |
| | | import org.springblade.code.service.CodeClassifyServiceI; |
| | | import org.springblade.code.vo.pagemodel.CodeClassifyVO; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | |
| | | |
| | | import static com.vci.frameworkcore.constant.FrameWorkDefaultValueConstant.FRAMEWORK_DATA_DISABLED; |
| | | import static com.vci.frameworkcore.constant.FrameWorkDefaultValueConstant.FRAMEWORK_DATA_ENABLED; |
| | | |
| | | |
| | | /** |
| | | * 主题库分类控制器 |
| | |
| | | */ |
| | | @GetMapping("/treeCodeClassify") |
| | | public List<Tree> treeCodeClassify(TreeQueryObject treeQueryObject) { |
| | | return codeClassifyService.treeCodeClassify(treeQueryObject); |
| | | return codeClassifyService.treeCodeClassify(treeQueryObject); |
| | | } |
| | | |
| | | /** |
| | |
| | | * @throws IOException 抛出异常 |
| | | */ |
| | | @GetMapping("/downloadImportExcel") |
| | | public void downloadImportExcel(HttpServletResponse response) throws IOException{ |
| | | public void downloadImportExcel(HttpServletResponse response) throws IOException { |
| | | String excelName = codeClassifyService.createImportExcel(); |
| | | try { |
| | | ControllerUtil.writeFileToResponse(response,excelName); |