Browse Source

入参修改

dev_shibei_match
zxc 5 years ago
parent
commit
fa4688a0e6
  1. 12
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/controller/DemoController.java
  2. 7
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/evaluationindex/indexcal/IndexCalculateDistrictService.java
  3. 7
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/evaluationindex/indexcal/IndexCalculateStreetService.java
  4. 7
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/evaluationindex/indexcal/impl/IndexCalculateDistrictServiceImpl.java
  5. 4
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/evaluationindex/indexcal/impl/IndexCalculateServiceImpl.java
  6. 7
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/evaluationindex/indexcal/impl/IndexCalculateStreetServiceImpl.java

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

@ -486,17 +486,13 @@ public class DemoController {
} }
@PostMapping("streetZxc") @PostMapping("streetZxc")
public void getStreet(){ public void getStreet(@RequestBody CalculateCommonFormDTO form){
String customerId = "b09527201c4409e19d1dbc5e3c3429a1"; indexCalculateStreetService.calStreetAll(form);
String monthId = "202009";
indexCalculateStreetService.calStreetAll(customerId,monthId);
} }
@PostMapping("districtZxc") @PostMapping("districtZxc")
public void getDistrict(){ public void getDistrict(@RequestBody CalculateCommonFormDTO form){
String customerId = "45687aa479955f9d06204d415238f7cc"; indexCalculateDistrictService.calDistrictAll(form);
String monthId = "202009";
indexCalculateDistrictService.calDistrictAll(customerId,monthId);
} }
@PostMapping("gridZxc") @PostMapping("gridZxc")
public void getGrid(){ public void getGrid(){

7
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/evaluationindex/indexcal/IndexCalculateDistrictService.java

@ -1,5 +1,7 @@
package com.epmet.service.evaluationindex.indexcal; package com.epmet.service.evaluationindex.indexcal;
import com.epmet.dto.indexcal.CalculateCommonFormDTO;
/** /**
* @Author zxc * @Author zxc
* @DateTime 2020/9/4 9:03 上午 * @DateTime 2020/9/4 9:03 上午
@ -8,11 +10,10 @@ public interface IndexCalculateDistrictService {
/** /**
* @Description 计算全区相关总分 * @Description 计算全区相关总分
* @param customerId * @param form
* @param monthId
* @author zxc * @author zxc
* @date 2020/9/2 3:12 下午 * @date 2020/9/2 3:12 下午
*/ */
Boolean calDistrictAll(String customerId, String monthId); Boolean calDistrictAll(CalculateCommonFormDTO form);
} }

7
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/evaluationindex/indexcal/IndexCalculateStreetService.java

@ -1,5 +1,7 @@
package com.epmet.service.evaluationindex.indexcal; package com.epmet.service.evaluationindex.indexcal;
import com.epmet.dto.indexcal.CalculateCommonFormDTO;
/** /**
* @Author zxc * @Author zxc
* @DateTime 2020/9/2 3:11 下午 * @DateTime 2020/9/2 3:11 下午
@ -8,11 +10,10 @@ public interface IndexCalculateStreetService {
/** /**
* @Description 计算街道相关总分 * @Description 计算街道相关总分
* @param customerId * @param form
* @param monthId
* @author zxc * @author zxc
* @date 2020/9/2 3:12 下午 * @date 2020/9/2 3:12 下午
*/ */
Boolean calStreetAll(String customerId, String monthId); Boolean calStreetAll(CalculateCommonFormDTO form);
} }

7
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/evaluationindex/indexcal/impl/IndexCalculateDistrictServiceImpl.java

@ -79,14 +79,15 @@ public class IndexCalculateDistrictServiceImpl implements IndexCalculateDistrict
private AgencySelfSubScoreDao agencySelfSubScoreDao; private AgencySelfSubScoreDao agencySelfSubScoreDao;
/** /**
* @param customerId * @param form
* @param monthId
* @Description 计算全区相关总分 * @Description 计算全区相关总分
* @author zxc * @author zxc
* @date 2020/9/2 3:12 下午 * @date 2020/9/2 3:12 下午
*/ */
@Override @Override
public Boolean calDistrictAll(String customerId, String monthId) { public Boolean calDistrictAll(CalculateCommonFormDTO form) {
String customerId = form.getCustomerId();
String monthId = form.getMonthId();
Boolean aBoolean = districtPartyCalculate(customerId, monthId);//党建能力 Boolean aBoolean = districtPartyCalculate(customerId, monthId);//党建能力
if (!aBoolean.equals(true)) { if (!aBoolean.equals(true)) {
throw new RenException("calculate district-party-ability failure ......"); throw new RenException("calculate district-party-ability failure ......");

4
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/evaluationindex/indexcal/impl/IndexCalculateServiceImpl.java

@ -144,7 +144,7 @@ public class IndexCalculateServiceImpl implements IndexCalculateService {
//计算街道 //计算街道
start = System.currentTimeMillis(); start = System.currentTimeMillis();
try { try {
flag = indexCalculateStreetService.calStreetAll(customerId, formDTO.getMonthId()); flag = indexCalculateStreetService.calStreetAll(formDTO);
log.info("客户Id:{}【街道相关】计算完毕,总耗时:{}秒,result:{}", customerId, (System.currentTimeMillis() - start) / 1000, flag); log.info("客户Id:{}【街道相关】计算完毕,总耗时:{}秒,result:{}", customerId, (System.currentTimeMillis() - start) / 1000, flag);
} catch (Exception e) { } catch (Exception e) {
log.error("indexCalculate calStreetAll exception", e); log.error("indexCalculate calStreetAll exception", e);
@ -162,7 +162,7 @@ public class IndexCalculateServiceImpl implements IndexCalculateService {
//计算全区 //计算全区
start = System.currentTimeMillis(); start = System.currentTimeMillis();
try { try {
flag = indexCalculateDistrictService.calDistrictAll(customerId, formDTO.getMonthId()); flag = indexCalculateDistrictService.calDistrictAll(formDTO);
log.info("客户Id:{}【全区相关】计算完毕,总耗时:{}秒,result:{}", customerId, (System.currentTimeMillis() - start) / 1000, flag); log.info("客户Id:{}【全区相关】计算完毕,总耗时:{}秒,result:{}", customerId, (System.currentTimeMillis() - start) / 1000, flag);
} catch (Exception e) { } catch (Exception e) {
log.error("indexCalculate calDistrictAll exception", e); log.error("indexCalculate calDistrictAll exception", e);

7
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/evaluationindex/indexcal/impl/IndexCalculateStreetServiceImpl.java

@ -82,14 +82,15 @@ public class IndexCalculateStreetServiceImpl implements IndexCalculateStreetServ
private AgencySelfSubScoreDao agencySelfSubScoreDao; private AgencySelfSubScoreDao agencySelfSubScoreDao;
/** /**
* @param customerId * @param form
* @param monthId
* @Description 计算街道相关总分 * @Description 计算街道相关总分
* @author zxc * @author zxc
* @date 2020/9/2 3:12 下午 * @date 2020/9/2 3:12 下午
*/ */
@Override @Override
public Boolean calStreetAll(String customerId, String monthId) { public Boolean calStreetAll(CalculateCommonFormDTO form) {
String customerId = form.getCustomerId();
String monthId = form.getMonthId();
Boolean aBoolean = streetPartyCalculate(customerId, monthId);//党建能力 Boolean aBoolean = streetPartyCalculate(customerId, monthId);//党建能力
if (!aBoolean.equals(true)) { if (!aBoolean.equals(true)) {
throw new RenException("calculate street-party-ability failure ......"); throw new RenException("calculate street-party-ability failure ......");

Loading…
Cancel
Save