| | |
| | | import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
| | | import lombok.AllArgsConstructor; |
| | | import javax.validation.Valid; |
| | | import org.springblade.core.excel.util.ExcelUtil; |
| | | import org.springblade.core.mp.support.Condition; |
| | | import org.springblade.core.mp.support.Query; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.core.tool.utils.Func; |
| | | import org.springblade.modules.yw.excel.IndParkInfoExcel; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import org.springblade.modules.yw.entity.IndParkInfoEntity; |
| | | import org.springblade.modules.yw.vo.IndParkInfoVO; |
| | | import org.springblade.modules.yw.service.IIndParkInfoService; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | import springfox.documentation.annotations.ApiIgnore; |
| | | import java.util.Map; |
| | | |
| | |
| | | */ |
| | | @RestController |
| | | @AllArgsConstructor |
| | | @RequestMapping("blade-indParkInfo/indParkInfo") |
| | | @RequestMapping("yw/indParkInfo") |
| | | @Api(value = "园区基本信息表", tags = "园区基本信息表接口") |
| | | public class IndParkInfoController { |
| | | |
| | |
| | | return R.status(indParkInfoService.removeByIds(Func.toLongList(ids))); |
| | | } |
| | | |
| | | /** |
| | | * 导入园区信息 |
| | | */ |
| | | @PostMapping("import-indParkInfo") |
| | | @ApiOperationSupport(order = 8) |
| | | @ApiOperation(value = "导入园区信息", notes = "传入excel") |
| | | public R importIndParkInfo(MultipartFile file, Integer isCovered) { |
| | | String data = indParkInfoService.importIndParkInfo(ExcelUtil.read(file, IndParkInfoExcel.class),isCovered == 1); |
| | | return R.data(200, data, data); |
| | | } |
| | | |
| | | /** |
| | | * 园区基本信息详情查询 |
| | | */ |
| | | @GetMapping("/getDetail") |
| | | @ApiOperationSupport(order = 9) |
| | | @ApiOperation(value = "详情", notes = "传入indParkInfo") |
| | | public R getDetail(IndParkInfoEntity indParkInfo) { |
| | | IndParkInfoVO detail = indParkInfoService.getDetail(indParkInfo); |
| | | return R.data(detail); |
| | | } |
| | | } |