4 changed files with 136 additions and 167 deletions
@ -1,78 +0,0 @@ |
|||
package com.epmet.plugin.power.modules.axis.ViewController; |
|||
|
|||
import com.epmet.commons.tools.utils.Result; |
|||
import com.epmet.plugin.power.dto.axis.ResultDTO; |
|||
import com.epmet.plugin.power.dto.axis.form.PowerAxisLeaderDetailFormDTO; |
|||
|
|||
import com.epmet.plugin.power.dto.axis.form.PowerAxisStructStructTreeFormDTO; |
|||
import com.epmet.plugin.power.dto.axis.form.PowerAxisStructViewFormDTO; |
|||
import com.epmet.plugin.power.dto.axis.result.*; |
|||
import com.epmet.plugin.power.modules.axis.service.PowerAxisLeaderService; |
|||
import com.epmet.plugin.power.modules.axis.service.PowerAxisStructService; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import java.util.List; |
|||
|
|||
@RestController |
|||
@RequestMapping("/data/axis") |
|||
public class PowerAxisStructViewController { |
|||
|
|||
@Autowired |
|||
private PowerAxisStructService powerAxisStructService; |
|||
|
|||
@Autowired |
|||
private PowerAxisLeaderService powerAxisLeaderService; |
|||
|
|||
/** |
|||
* 关键指标统计 |
|||
* @param form |
|||
* @return com.epmet.commons.tools.utils.Result |
|||
* @author LZN |
|||
* @date 2022/4/23 10:20 |
|||
*/ |
|||
@PostMapping("/statistics") |
|||
public Result getStatistics(@RequestBody PowerAxisStructViewFormDTO form){ |
|||
PowerAxisStructViewResultDTO result = powerAxisStructService.getStatistics(form); |
|||
return new Result().ok(result); |
|||
} |
|||
|
|||
/** |
|||
* 动力主轴负责人详细信息 |
|||
* @param form |
|||
* @return com.epmet.commons.tools.utils.Result |
|||
* @author LZN |
|||
* @date 2022/4/23 10:20 |
|||
*/ |
|||
@PostMapping("/leader") |
|||
public Result getLeaderDetail(@RequestBody PowerAxisLeaderDetailFormDTO form){ |
|||
PowerAxisLeaderDetailResultDTO dto = powerAxisLeaderService.getLeaderDetail(form); |
|||
return new Result().ok(dto); |
|||
} |
|||
|
|||
/** |
|||
* 动力主轴结构树 |
|||
* @param form |
|||
* @return com.epmet.commons.tools.utils.Result |
|||
* @author LZN |
|||
* @date 2022/4/23 10:20 |
|||
*/ |
|||
@PostMapping("/structTree") |
|||
public Result getStructTree(@RequestBody PowerAxisStructStructTreeFormDTO form){ |
|||
List<PowerAxisStructTreeResultDTO> dto = powerAxisStructService.getStructTree(form); |
|||
return new Result().ok(dto); |
|||
} |
|||
|
|||
/** |
|||
* 动力主轴节点坐标集合 |
|||
* @param structLevel |
|||
* @return com.epmet.plugin.power.dto.axis.ResultDTO |
|||
* @author LZN |
|||
* @date 2022/4/23 10:19 |
|||
*/ |
|||
@PostMapping("/{structLevel}/listPosition") |
|||
public ResultDTO getListPosition(@PathVariable int structLevel){ |
|||
List<PowerAxisListPositionResultDTO> list = powerAxisStructService.getListPosition(structLevel); |
|||
return ResultDTO.success("成功",list,powerAxisStructService.queryTotal(structLevel)); |
|||
} |
|||
} |
@ -1,52 +0,0 @@ |
|||
package com.epmet.plugin.power.modules.axis.ViewController; |
|||
|
|||
import com.epmet.commons.tools.utils.Result; |
|||
import com.epmet.plugin.power.dto.axis.ResultDTO; |
|||
import com.epmet.plugin.power.dto.axis.form.PowerKernelHouseHoldViewListFormDTO; |
|||
import com.epmet.plugin.power.dto.axis.form.PowerKernelListPostitionFormDTO; |
|||
import com.epmet.plugin.power.dto.axis.result.PowerKernelHouseHoldViewListResultDTO; |
|||
import com.epmet.plugin.power.dto.axis.result.PowerKernelListPostitionResultDTO; |
|||
import com.epmet.plugin.power.modules.axis.service.PowerKernelHouseholdService; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.PostMapping; |
|||
import org.springframework.web.bind.annotation.RequestBody; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
import java.util.List; |
|||
|
|||
|
|||
@RestController |
|||
@RequestMapping("/data/kernelHousehold") |
|||
public class PowerAxiskernelHouseholdViewController { |
|||
|
|||
@Autowired |
|||
private PowerKernelHouseholdService powerKernelHouseholdService; |
|||
|
|||
|
|||
/** |
|||
* 党员中心户列表 |
|||
* @param form |
|||
* @return com.epmet.plugin.power.dto.axis.ResultDTO |
|||
* @author LZN |
|||
* @date 2022/4/23 10:20 |
|||
*/ |
|||
@PostMapping("/list") |
|||
public ResultDTO getList(@RequestBody PowerKernelHouseHoldViewListFormDTO form){ |
|||
List<PowerKernelHouseHoldViewListResultDTO> dto = powerKernelHouseholdService.getList(form); |
|||
return ResultDTO.success("查询成功",dto,powerKernelHouseholdService.getTotal(form)); |
|||
} |
|||
|
|||
/** |
|||
* 党员中心户坐标集合 |
|||
* @param form |
|||
* @return com.epmet.plugin.power.dto.axis.ResultDTO |
|||
* @author LZN |
|||
* @date 2022/4/23 10:20 |
|||
*/ |
|||
@PostMapping("/listPosition") |
|||
public ResultDTO getListPosition(@RequestBody PowerKernelListPostitionFormDTO form){ |
|||
List<PowerKernelListPostitionResultDTO> dto = powerKernelHouseholdService.getListPosition(form); |
|||
return ResultDTO.success("成功",dto,powerKernelHouseholdService.getListTotal(form)); |
|||
} |
|||
} |
@ -1,37 +0,0 @@ |
|||
package com.epmet.plugin.power.modules.axis.ViewController; |
|||
|
|||
import com.baomidou.mybatisplus.extension.plugins.pagination.dialects.GBaseDialect; |
|||
import com.epmet.plugin.power.dto.axis.ResultDTO; |
|||
import com.epmet.plugin.power.dto.axis.form.PowerAxisServiceStationFormDTO; |
|||
import com.epmet.plugin.power.dto.axis.result.PowerAxisServiceStationResultDTO; |
|||
import com.epmet.plugin.power.modules.axis.service.PowerServiceStationService; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.PostMapping; |
|||
import org.springframework.web.bind.annotation.RequestBody; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
import javax.xml.transform.Result; |
|||
import java.util.List; |
|||
|
|||
@RestController |
|||
@RequestMapping("/data/serviceStation") |
|||
public class PowerViewServiceStationController { |
|||
|
|||
@Autowired |
|||
private PowerServiceStationService powerServiceStationService; |
|||
|
|||
/** |
|||
* 党群服务站集合坐标 |
|||
* @param form |
|||
* @return com.epmet.plugin.power.dto.axis.ResultDTO |
|||
* @author LZN |
|||
* @date 2022/4/22 19:53 |
|||
*/ |
|||
@PostMapping("/listPosition") |
|||
public ResultDTO getListPostition(@RequestBody PowerAxisServiceStationFormDTO form){ |
|||
List<PowerAxisServiceStationResultDTO> list = powerServiceStationService.getListPosition(form); |
|||
return ResultDTO.success("成功",list,powerServiceStationService.queryTotal(form)); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,136 @@ |
|||
package com.epmet.plugin.power.modules.axis.controller; |
|||
|
|||
import com.epmet.commons.tools.utils.Result; |
|||
import com.epmet.plugin.power.dto.axis.ResultDTO; |
|||
import com.epmet.plugin.power.dto.axis.form.*; |
|||
import com.epmet.plugin.power.dto.axis.result.*; |
|||
import com.epmet.plugin.power.modules.axis.service.PowerAxisLeaderService; |
|||
import com.epmet.plugin.power.modules.axis.service.PowerAxisStructService; |
|||
import com.epmet.plugin.power.modules.axis.service.PowerKernelHouseholdService; |
|||
import com.epmet.plugin.power.modules.axis.service.PowerServiceStationService; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import java.util.List; |
|||
|
|||
/*** |
|||
* 动力主轴相关数据可视化接口 |
|||
* @author work@yujt.net.cn |
|||
* @date 2022/4/23/0023 10:27 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("data") |
|||
public class PowerAxisDataVisualController { |
|||
|
|||
@Autowired |
|||
private PowerAxisStructService powerAxisStructService; |
|||
|
|||
@Autowired |
|||
private PowerAxisLeaderService powerAxisLeaderService; |
|||
|
|||
@Autowired |
|||
private PowerServiceStationService powerServiceStationService; |
|||
|
|||
@Autowired |
|||
private PowerKernelHouseholdService powerKernelHouseholdService; |
|||
|
|||
/** |
|||
* 党群服务站集合坐标 |
|||
* |
|||
* @param form |
|||
* @return com.epmet.plugin.power.dto.axis.ResultDTO |
|||
* @author LZN |
|||
* @date 2022/4/22 19:53 |
|||
*/ |
|||
@PostMapping("serviceStation/listPosition") |
|||
public ResultDTO getListPostition(@RequestBody PowerAxisServiceStationFormDTO form) { |
|||
List<PowerAxisServiceStationResultDTO> list = powerServiceStationService.getListPosition(form); |
|||
return ResultDTO.success("成功", list, powerServiceStationService.queryTotal(form)); |
|||
} |
|||
|
|||
/** |
|||
* 关键指标统计 |
|||
* |
|||
* @param form |
|||
* @return com.epmet.commons.tools.utils.Result |
|||
* @author LZN |
|||
* @date 2022/4/23 10:20 |
|||
*/ |
|||
@PostMapping("axis/statistics") |
|||
public Result getStatistics(@RequestBody PowerAxisStructViewFormDTO form) { |
|||
PowerAxisStructViewResultDTO result = powerAxisStructService.getStatistics(form); |
|||
return new Result().ok(result); |
|||
} |
|||
|
|||
/** |
|||
* 动力主轴负责人详细信息 |
|||
* |
|||
* @param form |
|||
* @return com.epmet.commons.tools.utils.Result |
|||
* @author LZN |
|||
* @date 2022/4/23 10:20 |
|||
*/ |
|||
@PostMapping("axis/leader") |
|||
public Result getLeaderDetail(@RequestBody PowerAxisLeaderDetailFormDTO form) { |
|||
PowerAxisLeaderDetailResultDTO dto = powerAxisLeaderService.getLeaderDetail(form); |
|||
return new Result().ok(dto); |
|||
} |
|||
|
|||
/** |
|||
* 动力主轴结构树 |
|||
* |
|||
* @param form |
|||
* @return com.epmet.commons.tools.utils.Result |
|||
* @author LZN |
|||
* @date 2022/4/23 10:20 |
|||
*/ |
|||
@PostMapping("axis/structTree") |
|||
public Result getStructTree(@RequestBody PowerAxisStructStructTreeFormDTO form) { |
|||
List<PowerAxisStructTreeResultDTO> dto = powerAxisStructService.getStructTree(form); |
|||
return new Result().ok(dto); |
|||
} |
|||
|
|||
/** |
|||
* 动力主轴节点坐标集合 |
|||
* |
|||
* @param structLevel |
|||
* @return com.epmet.plugin.power.dto.axis.ResultDTO |
|||
* @author LZN |
|||
* @date 2022/4/23 10:19 |
|||
*/ |
|||
@PostMapping("axis/{structLevel}/listPosition") |
|||
public ResultDTO getListPosition(@PathVariable int structLevel) { |
|||
List<PowerAxisListPositionResultDTO> list = powerAxisStructService.getListPosition(structLevel); |
|||
return ResultDTO.success("成功", list, powerAxisStructService.queryTotal(structLevel)); |
|||
} |
|||
|
|||
|
|||
/** |
|||
* 党员中心户列表 |
|||
* |
|||
* @param form |
|||
* @return com.epmet.plugin.power.dto.axis.ResultDTO |
|||
* @author LZN |
|||
* @date 2022/4/23 10:20 |
|||
*/ |
|||
@PostMapping("kernelHousehold/list") |
|||
public ResultDTO getList(@RequestBody PowerKernelHouseHoldViewListFormDTO form) { |
|||
List<PowerKernelHouseHoldViewListResultDTO> dto = powerKernelHouseholdService.getList(form); |
|||
return ResultDTO.success("查询成功", dto, powerKernelHouseholdService.getTotal(form)); |
|||
} |
|||
|
|||
/** |
|||
* 党员中心户坐标集合 |
|||
* |
|||
* @param form |
|||
* @return com.epmet.plugin.power.dto.axis.ResultDTO |
|||
* @author LZN |
|||
* @date 2022/4/23 10:20 |
|||
*/ |
|||
@PostMapping("kernelHousehold/listPosition") |
|||
public ResultDTO getListPosition(@RequestBody PowerKernelListPostitionFormDTO form) { |
|||
List<PowerKernelListPostitionResultDTO> dto = powerKernelHouseholdService.getListPosition(form); |
|||
return ResultDTO.success("成功", dto, powerKernelHouseholdService.getListTotal(form)); |
|||
} |
|||
|
|||
} |
Loading…
Reference in new issue