|
@@ -1,26 +1,19 @@
|
|
package zhsq_qk.web.controller.system;
|
|
package zhsq_qk.web.controller.system;
|
|
|
|
|
|
-import java.util.List;
|
|
|
|
-import javax.servlet.http.HttpServletResponse;
|
|
|
|
-
|
|
|
|
-import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
-import org.springframework.web.bind.annotation.PutMapping;
|
|
|
|
-import org.springframework.web.bind.annotation.DeleteMapping;
|
|
|
|
-import org.springframework.web.bind.annotation.PathVariable;
|
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
+import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
import zhsq_qk.common.annotation.Log;
|
|
import zhsq_qk.common.annotation.Log;
|
|
import zhsq_qk.common.core.controller.BaseController;
|
|
import zhsq_qk.common.core.controller.BaseController;
|
|
import zhsq_qk.common.core.domain.AjaxResult;
|
|
import zhsq_qk.common.core.domain.AjaxResult;
|
|
|
|
+import zhsq_qk.common.core.page.TableDataInfo;
|
|
import zhsq_qk.common.enums.BusinessType;
|
|
import zhsq_qk.common.enums.BusinessType;
|
|
|
|
+import zhsq_qk.common.utils.poi.ExcelUtil;
|
|
import zhsq_qk.system.domain.QkEmergencyRescueTeam;
|
|
import zhsq_qk.system.domain.QkEmergencyRescueTeam;
|
|
import zhsq_qk.system.service.IQkEmergencyRescueTeamService;
|
|
import zhsq_qk.system.service.IQkEmergencyRescueTeamService;
|
|
-import zhsq_qk.common.utils.poi.ExcelUtil;
|
|
|
|
-import zhsq_qk.common.core.page.TableDataInfo;
|
|
|
|
|
|
+
|
|
|
|
+import javax.servlet.http.HttpServletResponse;
|
|
|
|
+import java.util.List;
|
|
|
|
|
|
/**
|
|
/**
|
|
* 抢险救援队Controller
|
|
* 抢险救援队Controller
|
|
@@ -34,11 +27,11 @@ public class QkEmergencyRescueTeamController extends BaseController {
|
|
@Autowired
|
|
@Autowired
|
|
private IQkEmergencyRescueTeamService qkEmergencyRescueTeamService;
|
|
private IQkEmergencyRescueTeamService qkEmergencyRescueTeamService;
|
|
|
|
|
|
-/**
|
|
|
|
- * 查询抢险救援队列表
|
|
|
|
- */
|
|
|
|
-@PreAuthorize("@ss.hasPermi('system:team:list')")
|
|
|
|
-@GetMapping("/list")
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 查询抢险救援队列表
|
|
|
|
+ */
|
|
|
|
+ @PreAuthorize("@ss.hasPermi('system:team:list')")
|
|
|
|
+ @GetMapping("/list")
|
|
public TableDataInfo list(QkEmergencyRescueTeam qkEmergencyRescueTeam) {
|
|
public TableDataInfo list(QkEmergencyRescueTeam qkEmergencyRescueTeam) {
|
|
startPage();
|
|
startPage();
|
|
List<QkEmergencyRescueTeam> list = qkEmergencyRescueTeamService.selectQkEmergencyRescueTeamList(qkEmergencyRescueTeam);
|
|
List<QkEmergencyRescueTeam> list = qkEmergencyRescueTeamService.selectQkEmergencyRescueTeamList(qkEmergencyRescueTeam);
|
|
@@ -53,7 +46,7 @@ public class QkEmergencyRescueTeamController extends BaseController {
|
|
@PostMapping("/export")
|
|
@PostMapping("/export")
|
|
public void export(HttpServletResponse response, QkEmergencyRescueTeam qkEmergencyRescueTeam) {
|
|
public void export(HttpServletResponse response, QkEmergencyRescueTeam qkEmergencyRescueTeam) {
|
|
List<QkEmergencyRescueTeam> list = qkEmergencyRescueTeamService.selectQkEmergencyRescueTeamList(qkEmergencyRescueTeam);
|
|
List<QkEmergencyRescueTeam> list = qkEmergencyRescueTeamService.selectQkEmergencyRescueTeamList(qkEmergencyRescueTeam);
|
|
- ExcelUtil<QkEmergencyRescueTeam> util = new ExcelUtil<QkEmergencyRescueTeam>(QkEmergencyRescueTeam. class);
|
|
|
|
|
|
+ ExcelUtil<QkEmergencyRescueTeam> util = new ExcelUtil<QkEmergencyRescueTeam>(QkEmergencyRescueTeam.class);
|
|
util.exportExcel(response, list, "抢险救援队数据");
|
|
util.exportExcel(response, list, "抢险救援队数据");
|
|
}
|
|
}
|
|
|
|
|
|
@@ -95,4 +88,21 @@ public class QkEmergencyRescueTeamController extends BaseController {
|
|
public AjaxResult remove(@PathVariable Long[] ids) {
|
|
public AjaxResult remove(@PathVariable Long[] ids) {
|
|
return toAjax(qkEmergencyRescueTeamService.deleteQkEmergencyRescueTeamByIds(ids));
|
|
return toAjax(qkEmergencyRescueTeamService.deleteQkEmergencyRescueTeamByIds(ids));
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 可视化查询抢险救援队列表
|
|
|
|
+ */
|
|
|
|
+ @GetMapping("/selectQkEmergencyRescueTeamAllList")
|
|
|
|
+ public AjaxResult selectQkEmergencyRescueTeamAllList() {
|
|
|
|
+ return success(qkEmergencyRescueTeamService.selectQkEmergencyRescueTeamAllList());
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 可视化根据deptId查询抢险救援队列表
|
|
|
|
+ */
|
|
|
|
+ @GetMapping(value = "/selectQkEmergencyRescueTeamByDeptId/{id}")
|
|
|
|
+ public AjaxResult selectQkEmergencyRescueTeamByDeptId(@PathVariable("id") Long id) {
|
|
|
|
+ return success(qkEmergencyRescueTeamService.selectQkEmergencyRescueTeamByDeptId(id));
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|