Compare commits

...

1 Commits

Author SHA1 Message Date
lichao 949564d4ea 市北大屏 2 years ago
  1. 30
      epmet-plugins-module/pli-power-base/pli-power-base-server/src/main/java/com/epmet/plugin/power/modules/axis/controller/PowerAxisDataVisualController.java
  2. 2
      epmet-plugins-module/pli-power-base/pli-power-base-server/src/main/java/com/epmet/plugin/power/modules/axis/service/PowerAxisStructService.java
  3. 7
      epmet-plugins-module/pli-power-base/pli-power-base-server/src/main/java/com/epmet/plugin/power/modules/axis/service/impl/PowerAxisStructServiceImpl.java

30
epmet-plugins-module/pli-power-base/pli-power-base-server/src/main/java/com/epmet/plugin/power/modules/axis/controller/PowerAxisDataVisualController.java

@ -68,6 +68,22 @@ public class PowerAxisDataVisualController {
return new Result().ok(result); return new Result().ok(result);
} }
/**
* 关键指标统计 for 市北大屏
*
* @param form
* @return com.epmet.commons.tools.utils.Result
* @author LZN
* @date 2022/4/23 10:20
*/
@PostMapping("axis/screen/statistics")
public Result getStatisticsForScreen(@RequestBody PowerAxisStructViewFormDTO form) {
form.setCustomerId("b09527201c4409e19d1dbc5e3c3429a1");
ValidatorUtils.validateEntity(form);
PowerAxisStructViewResultDTO result = powerAxisStructService.getStatistics(form);
return new Result().ok(result);
}
/** /**
* 动力主轴负责人详细信息 * 动力主轴负责人详细信息
* *
@ -96,6 +112,20 @@ public class PowerAxisDataVisualController {
return new Result().ok(dto); return new Result().ok(dto);
} }
/**
* 动力主轴结构树
*
* @param form
* @return com.epmet.commons.tools.utils.Result
* @author LZN
* @date 2022/4/23 10:20
*/
@PostMapping("axis/screen/structTree")
public Result getStructTreeForScreen(@RequestBody PowerAxisStructStructTreeFormDTO form) {
List<PowerAxisStructTreeResultDTO> dto = powerAxisStructService.getStructTreeForScreen(form);
return new Result().ok(dto);
}
/** /**
* 动力主轴节点坐标集合 * 动力主轴节点坐标集合
* *

2
epmet-plugins-module/pli-power-base/pli-power-base-server/src/main/java/com/epmet/plugin/power/modules/axis/service/PowerAxisStructService.java

@ -165,4 +165,6 @@ public interface PowerAxisStructService extends BaseService<PowerAxisStructEntit
* @date 2022/5/12/0012 10:26 * @date 2022/5/12/0012 10:26
*/ */
String getRootAxisStructId(String rootStructId, String customerId, String agencyId); String getRootAxisStructId(String rootStructId, String customerId, String agencyId);
List<PowerAxisStructTreeResultDTO> getStructTreeForScreen(PowerAxisStructStructTreeFormDTO form);
} }

7
epmet-plugins-module/pli-power-base/pli-power-base-server/src/main/java/com/epmet/plugin/power/modules/axis/service/impl/PowerAxisStructServiceImpl.java

@ -274,4 +274,11 @@ public class PowerAxisStructServiceImpl extends BaseServiceImpl<PowerAxisStructD
} }
return baseDao.getRootAxisStructId(customerId, agencyId, PowerTagLevelEnum.ROOT.level()); return baseDao.getRootAxisStructId(customerId, agencyId, PowerTagLevelEnum.ROOT.level());
} }
@Override
public List<PowerAxisStructTreeResultDTO> getStructTreeForScreen(PowerAxisStructStructTreeFormDTO form) {
form.setCustomerId("b09527201c4409e19d1dbc5e3c3429a1");
List<PowerAxisStructTreeResultDTO> dto = baseDao.getStructTree(form);
return TreeUtils.build(dto);
}
} }

Loading…
Cancel
Save