Browse Source

合并dev代码,并且解决冲突

dev_shibei_match
wangxianzhang 4 years ago
parent
commit
876614fc2c
  1. 2
      epmet-module/epmet-heart/epmet-heart-client/src/main/java/com/epmet/feign/EpmetHeartOpenFeignClient.java
  2. 2
      epmet-module/epmet-heart/epmet-heart-client/src/main/java/com/epmet/feign/fallback/EpmetHeartOpenFeignClientFallback.java
  3. 4
      epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/controller/ResiVolunteerController.java
  4. 2
      epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/service/VolunteerInfoService.java
  5. 12
      epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/service/impl/VolunteerInfoServiceImpl.java
  6. 2
      epmet-module/epmet-job/epmet-job-server/src/main/java/com/epmet/task/AutoEvaluateDemandTask.java
  7. 1
      epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/VolunteerServiceImpl.java

2
epmet-module/epmet-heart/epmet-heart-client/src/main/java/com/epmet/feign/EpmetHeartOpenFeignClient.java

@ -74,7 +74,7 @@ public interface EpmetHeartOpenFeignClient {
* @return * @return
*/ */
@PostMapping("/heart/residemand/autoevaluate") @PostMapping("/heart/residemand/autoevaluate")
Result AutoEvaluateDemand(@RequestBody AutoEvaluateDemandFormDTO formDTO); Result autoEvaluateDemand(@RequestBody AutoEvaluateDemandFormDTO formDTO);
/** /**
* 查询志愿者数量 * 查询志愿者数量

2
epmet-module/epmet-heart/epmet-heart-client/src/main/java/com/epmet/feign/fallback/EpmetHeartOpenFeignClientFallback.java

@ -68,7 +68,7 @@ public class EpmetHeartOpenFeignClientFallback implements EpmetHeartOpenFeignCli
* @return * @return
*/ */
@Override @Override
public Result AutoEvaluateDemand(AutoEvaluateDemandFormDTO formDTO) { public Result autoEvaluateDemand(AutoEvaluateDemandFormDTO formDTO) {
return ModuleUtils.feignConError(ServiceConstant.EPMET_HEART_SERVER, "autoEvaluate",formDTO); return ModuleUtils.feignConError(ServiceConstant.EPMET_HEART_SERVER, "autoEvaluate",formDTO);
} }

4
epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/controller/ResiVolunteerController.java

@ -153,10 +153,10 @@ public class ResiVolunteerController {
*/ */
@PostMapping("count") @PostMapping("count")
public Result<Integer> getVolunteerCount(@RequestBody VolunteerCommonFormDTO input) { public Result<Integer> getVolunteerCount(@RequestBody VolunteerCommonFormDTO input) {
ValidatorUtils.validateEntity(input, VolunteerCommonFormDTO.VolunteerPage.class);
String customerId = input.getCustomerId(); String customerId = input.getCustomerId();
String pidsPrefix = input.getSuperiorAgencyId();
Integer volunteerCount = volunteerInfoService.getVolunteerCount(customerId); Integer volunteerCount = volunteerInfoService.getVolunteerCount(customerId, pidsPrefix);
return new Result<Integer>().ok(volunteerCount); return new Result<Integer>().ok(volunteerCount);
} }
} }

2
epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/service/VolunteerInfoService.java

@ -102,5 +102,5 @@ public interface VolunteerInfoService extends BaseService<VolunteerInfoEntity> {
* @param customerId * @param customerId
* @return * @return
*/ */
Integer getVolunteerCount(String customerId); Integer getVolunteerCount(String customerId, String pidsPrefix);
} }

12
epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/service/impl/VolunteerInfoServiceImpl.java

@ -385,9 +385,17 @@ public class VolunteerInfoServiceImpl extends BaseServiceImpl<VolunteerInfoDao,
} }
@Override @Override
public Integer getVolunteerCount(String customerId) { public Integer getVolunteerCount(String customerId, String pidsPrefix) {
LambdaQueryWrapper<VolunteerInfoEntity> query = new LambdaQueryWrapper<>(); LambdaQueryWrapper<VolunteerInfoEntity> query = new LambdaQueryWrapper<>();
query.eq(VolunteerInfoEntity::getCustomerId, customerId);
Optional.ofNullable(customerId).ifPresent((cId) -> {
query.eq(VolunteerInfoEntity::getCustomerId, cId);
});
Optional.ofNullable(pidsPrefix).ifPresent((pidsPrefixt) -> {
query.likeRight(VolunteerInfoEntity::getPids, pidsPrefixt);
});
return baseDao.selectCount(query); return baseDao.selectCount(query);
} }
} }

2
epmet-module/epmet-job/epmet-job-server/src/main/java/com/epmet/task/AutoEvaluateDemandTask.java

@ -26,6 +26,6 @@ public class AutoEvaluateDemandTask implements ITask {
if (StringUtils.isNotBlank(params)) { if (StringUtils.isNotBlank(params)) {
formDTO = JSON.parseObject(params, AutoEvaluateDemandFormDTO.class); formDTO = JSON.parseObject(params, AutoEvaluateDemandFormDTO.class);
} }
Result result = heartOpenFeignClient.AutoEvaluateDemand(formDTO); Result result = heartOpenFeignClient.autoEvaluateDemand(formDTO);
} }
} }

1
epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/VolunteerServiceImpl.java

@ -103,6 +103,7 @@ public class VolunteerServiceImpl implements VolunteerService, ResultDataResolve
String vcErrorMsg = "【志愿者分布】查询志愿者总数出错"; String vcErrorMsg = "【志愿者分布】查询志愿者总数出错";
VolunteerCommonFormDTO volunteerCountForm = new VolunteerCommonFormDTO(); VolunteerCommonFormDTO volunteerCountForm = new VolunteerCommonFormDTO();
volunteerCountForm.setCustomerId(customerId); volunteerCountForm.setCustomerId(customerId);
volunteerCountForm.setSuperiorAgencyId(agencyId);
Integer volunteerCount = getResultDataOrThrowsException(epmetHeartOpenFeignClient.getVolunteerCount(volunteerCountForm), Integer volunteerCount = getResultDataOrThrowsException(epmetHeartOpenFeignClient.getVolunteerCount(volunteerCountForm),
ServiceConstant.EPMET_HEART_SERVER, ServiceConstant.EPMET_HEART_SERVER,
EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(), EpmetErrorCode.EPMET_COMMON_OPERATION_FAIL.getCode(),

Loading…
Cancel
Save