| | |
| | | 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.RescueTeamExcel; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import org.springblade.modules.yw.entity.RescueTeamEntity; |
| | | import org.springblade.modules.yw.vo.RescueTeamVO; |
| | | import org.springblade.modules.yw.service.IRescueTeamService; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | import springfox.documentation.annotations.ApiIgnore; |
| | | import java.util.Map; |
| | | |
| | |
| | | return R.status(rescueTeamService.removeByIds(Func.toLongList(ids))); |
| | | } |
| | | |
| | | /** |
| | | * 导入救援队伍信息 |
| | | */ |
| | | @PostMapping("import-rescueTeam") |
| | | @ApiOperationSupport(order = 8) |
| | | @ApiOperation(value = "导入救援队伍信息", notes = "传入excel") |
| | | public R importRescueTeam(MultipartFile file, Integer isCovered) { |
| | | String data = rescueTeamService.importRescueTeam(ExcelUtil.read(file, RescueTeamExcel.class),isCovered == 1); |
| | | return R.data(200, data, data); |
| | | } |
| | | } |