| | |
| | | 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.springblade.modules.yw.excel.ProTarExcel; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import org.springblade.modules.yw.entity.ProTarEntity; |
| | | import org.springblade.modules.yw.vo.ProTarVO; |
| | | import org.springblade.modules.yw.service.IProTarService; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | import springfox.documentation.annotations.ApiIgnore; |
| | | import java.util.Map; |
| | | |
| | |
| | | */ |
| | | @RestController |
| | | @AllArgsConstructor |
| | | @RequestMapping("blade-proTar/proTar") |
| | | @RequestMapping("yw/proTar") |
| | | @Api(value = "保护目标表", tags = "保护目标表接口") |
| | | public class ProTarController { |
| | | |
| | |
| | | return R.status(proTarService.removeByIds(Func.toLongList(ids))); |
| | | } |
| | | |
| | | /** |
| | | * 导入保护目标信息 |
| | | */ |
| | | @PostMapping("import-proTar") |
| | | @ApiOperationSupport(order = 8) |
| | | @ApiOperation(value = "导入保护目标信息", notes = "传入excel") |
| | | public R importProTar(MultipartFile file, Integer isCovered) { |
| | | String data = proTarService.importProTar(ExcelUtil.read(file, ProTarExcel.class),isCovered == 1); |
| | | return R.data(200, data, data); |
| | | } |
| | | |
| | | } |