7 changed files with 141 additions and 12 deletions
@ -0,0 +1,8 @@ |
|||
package com.epmet.plugin.power.dto.axis.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
@Data |
|||
public class PowerAxisStructViewFormDTO { |
|||
private String agencyId; |
|||
} |
@ -0,0 +1,36 @@ |
|||
package com.epmet.plugin.power.dto.axis.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
@Data |
|||
public class PowerAxisStructViewResultDTO { |
|||
/** |
|||
* 网格党支部数 |
|||
*/ |
|||
private int gridNum; |
|||
|
|||
/** |
|||
* 楼院党小组数 |
|||
*/ |
|||
private int groupNum; |
|||
|
|||
/** |
|||
* 党员数 |
|||
*/ |
|||
private int partyMemberNum; |
|||
|
|||
/** |
|||
* 党员中心户数 |
|||
*/ |
|||
private int kernelHouseHoldNum; |
|||
|
|||
/** |
|||
* 服务站数 |
|||
*/ |
|||
private int serviceStationNum; |
|||
|
|||
/** |
|||
* 志愿队伍数 |
|||
*/ |
|||
private int volunteerTeamNum; |
|||
} |
@ -0,0 +1,29 @@ |
|||
package com.epmet.plugin.power.modules.axis.ViewController; |
|||
|
|||
import com.epmet.commons.tools.utils.Result; |
|||
import com.epmet.plugin.power.dto.axis.form.PowerAxisStructViewFormDTO; |
|||
import com.epmet.plugin.power.dto.axis.result.PowerAxisStructViewResultDTO; |
|||
import com.epmet.plugin.power.modules.axis.service.PowerAxisStructService; |
|||
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; |
|||
|
|||
@RestController |
|||
@RequestMapping("/data/axis") |
|||
public class PowerAxisStructViewController { |
|||
|
|||
@Autowired |
|||
private PowerAxisStructService powerAxisStructService; |
|||
|
|||
|
|||
/** |
|||
* 关键指标统计 |
|||
*/ |
|||
@PostMapping("/statistics") |
|||
public Result getStatistics(@RequestBody PowerAxisStructViewFormDTO form){ |
|||
PowerAxisStructViewResultDTO result = powerAxisStructService.getStatistics(form); |
|||
return new Result().ok(result); |
|||
} |
|||
} |
Loading…
Reference in new issue