| | |
| | | import io.swagger.annotations.ApiParam; |
| | | import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
| | | import lombok.AllArgsConstructor; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | 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.DateUtil; |
| | | import org.springblade.core.tool.utils.Func; |
| | | import org.springblade.modules.seinspect.excel.SeinspectExcel; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import org.springblade.modules.seinspect.entity.Seinspect; |
| | | import org.springblade.modules.seinspect.vo.SeinspectVO; |
| | | import org.springblade.modules.seinspect.service.ISeinspectService; |
| | | import org.springblade.core.boot.ctrl.BladeController; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 控制器 |
| | |
| | | return R.status(seinspectService.removeByIds(Func.toLongList(ids))); |
| | | } |
| | | |
| | | /** |
| | | * 导出保安员检查信息 |
| | | */ |
| | | @GetMapping("export-seinspect") |
| | | @ApiOperation(value = "导出保安员检查", notes = "传入seinspect") |
| | | public void exportSeinspect(SeinspectVO seinspect, HttpServletResponse response) { |
| | | List<SeinspectExcel> list = seinspectService.exportSeinspect(seinspect); |
| | | ExcelUtil.export(response, "保安员检查数据" + DateUtil.time(), "保安员检查数据表", list, SeinspectExcel.class); |
| | | } |
| | | |
| | | |
| | | } |