package com.ims.eval.controller; import com.ims.common.utils.StringUtils; import com.ims.eval.cache.CacheContext; import com.ims.eval.config.CustomException; import com.ims.eval.entity.BinSection; import com.ims.eval.entity.dto.result.R; import com.ims.eval.service.IBinSectionService; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; import java.util.Arrays; import java.util.List; import java.util.stream.Collectors; /** *
* 生产经营业务分类 前端控制器 *
* * @author wang * @since 2023-03-12 */ @RestController @RequestMapping("//bin-section") public class BinSectionController { @Autowired private IBinSectionService binSectionService; @Autowired private CacheContext cache; /** * 查询 * * @param id 主键ID * @param sectionName name * @param sectionCode code * @return */ //@ImsPreAuth("eval:binSection:view") @GetMapping(value = "list") public R list(@RequestParam(value = "id", required = false) String id, @RequestParam(value = "sectionName", required = false) String sectionName, @RequestParam(value = "sectionCode", required = false) String sectionCode, @RequestParam(value = "type", required = false) String type) { List