|
@@ -12,6 +12,8 @@ import com.sooka.common.core.domain.AjaxResult;
|
|
|
import com.sooka.common.core.page.TableDataInfo;
|
|
|
import com.sooka.common.enums.BusinessType;
|
|
|
import com.sooka.common.utils.poi.ExcelUtil;
|
|
|
+import com.sooka.system.service.ISysConfigService;
|
|
|
+import com.sooka.system.service.ISysDictDataService;
|
|
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
import org.springframework.ui.ModelMap;
|
|
@@ -37,6 +39,10 @@ public class TResStationfireController extends BaseController
|
|
|
|
|
|
@Resource
|
|
|
private ITResStationfireService tResStationfireService;
|
|
|
+ @Resource
|
|
|
+ private ISysConfigService iSysConfigService;
|
|
|
+ @Resource
|
|
|
+ private ISysDictDataService iSysDictDataService;
|
|
|
|
|
|
//@RequiresPermissions("system:stationfire:view")
|
|
|
@GetMapping()
|
|
@@ -118,15 +124,22 @@ public class TResStationfireController extends BaseController
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 详情【请填写功能名称】
|
|
|
- */
|
|
|
- @GetMapping("/detail/{id}")
|
|
|
- public String detail(@PathVariable("id") String id, ModelMap mmap)
|
|
|
- {
|
|
|
- TResStationfire tResStationfire = tResStationfireService.selectTResStationfireById(id);
|
|
|
- mmap.put("tResStationfire", tResStationfire);
|
|
|
- return prefix + "/detail";
|
|
|
- }
|
|
|
+ * 详情【请填写功能名称】
|
|
|
+ */
|
|
|
+@GetMapping("/detail/{id}")
|
|
|
+public String detail(@PathVariable("id") String id, ModelMap mmap)
|
|
|
+{
|
|
|
+ TResStationfire tResStationfire = tResStationfireService.selectTResStationfireById(id);
|
|
|
+ mmap.put("tResStationfire", tResStationfire);
|
|
|
+ String basepath = iSysConfigService.selectConfigByKey("supmap_service_path");
|
|
|
+ String datapath = iSysConfigService.selectConfigByKey("supmap_service_data_path");
|
|
|
+ String centerPoint = iSysDictDataService.selectDictLabel("supermap_centerpoint", "supermap_centerpoint_7");
|
|
|
+ mmap.put("basepath", basepath);
|
|
|
+ mmap.put("datapath", datapath);
|
|
|
+ mmap.put("centerPoint", centerPoint);
|
|
|
+
|
|
|
+ return prefix + "/detail";
|
|
|
+}
|
|
|
|
|
|
/**
|
|
|
* 删除【请填写功能名称】
|