|
|
@ -2,6 +2,7 @@ package com.ruoyi.web.controller.base;
|
|
|
|
|
|
|
|
|
|
|
|
import java.util.Date;
|
|
|
|
import java.util.Date;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
import java.util.UUID;
|
|
|
|
|
|
|
|
|
|
|
|
import com.ruoyi.common.utils.ShiroUtils;
|
|
|
|
import com.ruoyi.common.utils.ShiroUtils;
|
|
|
|
import com.ruoyi.system.domain.dto.BaseMonitorunitInfoDto;
|
|
|
|
import com.ruoyi.system.domain.dto.BaseMonitorunitInfoDto;
|
|
|
@ -128,6 +129,7 @@ public class BaseMonitorunitInfoController extends BaseController
|
|
|
|
@ResponseBody
|
|
|
|
@ResponseBody
|
|
|
|
public AjaxResult addSave(BaseMonitorunitInfo baseMonitorunitInfo)
|
|
|
|
public AjaxResult addSave(BaseMonitorunitInfo baseMonitorunitInfo)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
baseMonitorunitInfo.setMonitorunitId(UUID.randomUUID().toString());
|
|
|
|
baseMonitorunitInfo.setCreateBy(ShiroUtils.getLoginName());
|
|
|
|
baseMonitorunitInfo.setCreateBy(ShiroUtils.getLoginName());
|
|
|
|
baseMonitorunitInfo.setCreateTime(new Date());
|
|
|
|
baseMonitorunitInfo.setCreateTime(new Date());
|
|
|
|
return toAjax(baseMonitorunitInfoService.insertBaseMonitorunitInfo(baseMonitorunitInfo));
|
|
|
|
return toAjax(baseMonitorunitInfoService.insertBaseMonitorunitInfo(baseMonitorunitInfo));
|
|
|
@ -174,11 +176,12 @@ public class BaseMonitorunitInfoController extends BaseController
|
|
|
|
* 选择监控单元信息树
|
|
|
|
* 选择监控单元信息树
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@GetMapping(value = { "/selectMonitorUnitInfoTree/{ObjId}", "/selectMonitorUnitInfoTree/" })
|
|
|
|
@GetMapping(value = { "/selectMonitorUnitInfoTree/{ObjId}", "/selectMonitorUnitInfoTree/" })
|
|
|
|
public String selectMonitorUnitInfoTree(@PathVariable(value = "ObjId", required = false) Long ObjId, ModelMap mmap)
|
|
|
|
public String selectMonitorUnitInfoTree(@PathVariable(value = "ObjId", required = false) String ObjId, ModelMap mmap)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (StringUtils.isNotNull(ObjId))
|
|
|
|
if (StringUtils.isNotNull(ObjId))
|
|
|
|
{
|
|
|
|
{
|
|
|
|
mmap.put("baseMonitorunitInfo", baseMonitorunitInfoService.selectBaseMonitorunitInfoByObjId(ObjId));
|
|
|
|
/*mmap.put("baseMonitorunitInfo", baseMonitorunitInfoService.selectBaseMonitorunitInfoByObjId(ObjId));*/
|
|
|
|
|
|
|
|
mmap.put("baseMonitorunitInfo",baseMonitorunitInfoService.selectBaseMonitorunitInfoList(new BaseMonitorunitInfo(ObjId)).get(0));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return prefix + "/tree";
|
|
|
|
return prefix + "/tree";
|
|
|
|
}
|
|
|
|
}
|
|
|
|