Commit f78f467d authored by 耿迪迪's avatar 耿迪迪

隐患接口 gengdidi

parent 500ba214
...@@ -45,6 +45,18 @@ public class THiddenTroubleController extends BaseController ...@@ -45,6 +45,18 @@ public class THiddenTroubleController extends BaseController
return getDataTable(list); return getDataTable(list);
} }
/**
* 地图初始化隐患
* @param tHiddenTrouble
* @return
*/
@GetMapping("/getMapHiddenTroublelist")
public AjaxResult getMapHiddenTroublelist(THiddenTrouble tHiddenTrouble)
{
List<THiddenTrouble> list = tHiddenTroubleService.selectTHiddenTroubleList(tHiddenTrouble);
return AjaxResult.success(list);
}
/** /**
* 导出隐患信息列表 * 导出隐患信息列表
*/ */
...@@ -53,6 +65,7 @@ public class THiddenTroubleController extends BaseController ...@@ -53,6 +65,7 @@ public class THiddenTroubleController extends BaseController
@GetMapping("/export") @GetMapping("/export")
public AjaxResult export(THiddenTrouble tHiddenTrouble) public AjaxResult export(THiddenTrouble tHiddenTrouble)
{ {
tHiddenTrouble.setDealStatus("3");
List<THiddenTrouble> list = tHiddenTroubleService.selectTHiddenTroubleList(tHiddenTrouble); List<THiddenTrouble> list = tHiddenTroubleService.selectTHiddenTroubleList(tHiddenTrouble);
ExcelUtil<THiddenTrouble> util = new ExcelUtil<THiddenTrouble>(THiddenTrouble.class); ExcelUtil<THiddenTrouble> util = new ExcelUtil<THiddenTrouble>(THiddenTrouble.class);
return util.exportExcel(list, "隐患信息数据"); return util.exportExcel(list, "隐患信息数据");
......
...@@ -9,6 +9,15 @@ export function listHiddenTrouble(query) { ...@@ -9,6 +9,15 @@ export function listHiddenTrouble(query) {
}) })
} }
//地图隐患初始化
export function getMapHiddenTroublelist(query) {
return request({
url: '/riskManagement/hiddenTrouble/getMapHiddenTroublelist',
method: 'get',
params: query
})
}
// 查询隐患信息详细 // 查询隐患信息详细
export function getHiddenTrouble(troubleId) { export function getHiddenTrouble(troubleId) {
return request({ return request({
...@@ -50,4 +59,4 @@ export function exportHiddenTrouble(query) { ...@@ -50,4 +59,4 @@ export function exportHiddenTrouble(query) {
method: 'get', method: 'get',
params: query params: query
}) })
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment