Browse Source

去除round

dev_shibei_match
zxc 5 years ago
parent
commit
f65653979f
  1. 23
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/controller/DemoController.java
  2. 2
      epmet-module/data-statistical/data-statistical-server/src/main/resources/mapper/evaluationindex/extract/FactOriginTopicMainDailyDao.xml

23
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/controller/DemoController.java

@ -496,20 +496,20 @@ public class DemoController {
@PostMapping("streetZxc")
public void getStreet(){
String customerId = "b09527201c4409e19d1dbc5e3c3429a1";
String monthId = "202008";
String monthId = "202009";
indexCalculateStreetService.calStreetAll(customerId,monthId);
}
@PostMapping("districtZxc")
public void getDistrict(){
String customerId = "45687aa479955f9d06204d415238f7cc";
String monthId = "202008";
String monthId = "202009";
indexCalculateDistrictService.calDistrictAll(customerId,monthId);
}
@PostMapping("gridZxc")
public void getGrid(){
String customerId = "b09527201c4409e19d1dbc5e3c3429a1";
String monthId = "202008";
String monthId = "202009";
CalculateCommonFormDTO c = new CalculateCommonFormDTO();
c.setCustomerId(customerId);
c.setMonthId(monthId);
@ -518,7 +518,7 @@ public class DemoController {
@PostMapping("deptZxc")
public void getDept(){
String customerId = "b09527201c4409e19d1dbc5e3c3429a1";
String monthId = "202008";
String monthId = "202009";
CalculateCommonFormDTO c = new CalculateCommonFormDTO();
c.setCustomerId(customerId);
c.setMonthId(monthId);
@ -564,20 +564,27 @@ public class DemoController {
@PostMapping("gridparty")
public void gridParty(){
String customerId = "3ef7e4bb195eb9e622d68b52509aa940";
String customerId = "45687aa479955f9d06204d415238f7cc";
// String customerId = "epmettest";
String monthId = "202008";
String monthId = "202009";
calGridIndexService.calGridIndexPartyAbility(customerId,monthId);
}
@PostMapping("gridgovern")
public void gridGovern(){
String customerId = "3ef7e4bb195eb9e622d68b52509aa940";
String customerId = "45687aa479955f9d06204d415238f7cc";
// String customerId = "epmettest";
String monthId = "202008";
String monthId = "202009";
calGridIndexService.calGridIndexGovernAbility(customerId,monthId);
}
@PostMapping("gridservice")
public void gridService(){
String customerId = "45687aa479955f9d06204d415238f7cc";
String monthId = "202009";
calGridIndexService.calGridIndexServiceAbility(customerId,monthId);
}
@PostMapping("handlemap")
public Result<Map<String,Integer>> handleMap(){
return new Result<Map<String,Integer>>().ok(

2
epmet-module/data-statistical/data-statistical-server/src/main/resources/mapper/evaluationindex/extract/FactOriginTopicMainDailyDao.xml

@ -85,7 +85,7 @@
<!-- 查询网格 党员/群众 人均提出话题数 -->
<select id="selectCreateTopicCount" resultType="com.epmet.dto.extract.result.CreateTopicCountResultDTO">
SELECT
ROUND(( COUNT( ID ) / COUNT( DISTINCT ( CREATE_TOPIC_USER_ID ))), 0 ) AS createTopicCount,
( COUNT( ID ) / COUNT( DISTINCT ( CREATE_TOPIC_USER_ID ))) AS createTopicCount,
GRID_ID
FROM
fact_origin_topic_main_daily

Loading…
Cancel
Save