+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see .
+ */
+
+package com.elink.esua.epdc.dto.form;
+
+import lombok.Data;
+
+import java.io.Serializable;
+
+/**
+ * 取消报名参数
+ *
+ * @author wanggongfeng
+ * @since v1.0.0 2019-12-17
+ */
+@Data
+public class EpdcAppActUserCancelsignupDTO implements Serializable {
+
+ private static final long serialVersionUID = 1L;
+
+ /**
+ * 用户ID
+ */
+ private String userId;
+ /**
+ * 活动ID
+ */
+ private String actId;
+ /**
+ * 取消报名原因
+ */
+ private String failureReason;
+}
\ No newline at end of file
diff --git a/esua-epdc/epdc-module/epdc-api/epdc-api-server/pom.xml b/esua-epdc/epdc-module/epdc-api/epdc-api-server/pom.xml
index 80da348b7..64fbdd9cf 100644
--- a/esua-epdc/epdc-module/epdc-api/epdc-api-server/pom.xml
+++ b/esua-epdc/epdc-module/epdc-api/epdc-api-server/pom.xml
@@ -178,7 +178,7 @@
904047.104.224.45:8848513d6635-3cfe-401f-b8b6-a04417288f47
- EPDC_API
+ EPDC_CONFIG_GROUPtrue
@@ -219,7 +219,7 @@
904047.104.224.45:88486a3577b4-7b79-43f6-aebb-9c3f31263f6a
- EPDC_API
+ EPDC_CONFIG_GROUPtrue
diff --git a/esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/controller/ApiActUserRelationController.java b/esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/controller/ApiActUserRelationController.java
index 34155f8d2..a8acaa43b 100644
--- a/esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/controller/ApiActUserRelationController.java
+++ b/esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/controller/ApiActUserRelationController.java
@@ -1,6 +1,7 @@
package com.elink.esua.epdc.controller;
import com.elink.esua.epdc.activity.ActUserRelationDTO;
+import com.elink.esua.epdc.activity.AppActUserCancelsignupDTO;
import com.elink.esua.epdc.activity.AppActUserClockLogDTO;
import com.elink.esua.epdc.activity.AppClockListDTO;
import com.elink.esua.epdc.activity.result.AppActInfoDTO;
@@ -12,6 +13,7 @@ import com.elink.esua.epdc.commons.tools.enums.YesOrNoEnum;
import com.elink.esua.epdc.commons.tools.utils.ConvertUtils;
import com.elink.esua.epdc.commons.tools.utils.Result;
import com.elink.esua.epdc.dto.epdc.result.EpdcUserInfoResultDTO;
+import com.elink.esua.epdc.dto.form.EpdcAppActUserCancelsignupDTO;
import com.elink.esua.epdc.dto.form.EpdcAppActUserClockLogDTO;
import com.elink.esua.epdc.dto.result.EpdcAppClockListDTO;
import com.elink.esua.epdc.service.ActUserRelationService;
@@ -84,15 +86,16 @@ public class ApiActUserRelationController {
* 取消活动报名
*
* @param tokenDto
- * @param actId
+ * @param epdcAppActUserCancelsignupDTO
* @return com.elink.esua.epdc.commons.tools.utils.Result
* @author wanggongfeng
* @date 2019/12/13 14:41
*/
@PostMapping("cancelsignup")
- public Result activityCancelSignUp(@LoginUser TokenDto tokenDto,String actId) {
- return actUserRelationService.activityCancelSignUp(tokenDto.getUserId(),actId);
- //return actUserRelationService.activityCancelSignUp("0598a2e20eb2466ef0ebb42e930f3801",actId);
+ public Result activityCancelSignUp(@LoginUser TokenDto tokenDto,@RequestBody EpdcAppActUserCancelsignupDTO epdcAppActUserCancelsignupDTO) {
+ epdcAppActUserCancelsignupDTO.setUserId(tokenDto.getUserId());
+ AppActUserCancelsignupDTO actUserCancelsignupDTO = ConvertUtils.sourceToTarget(epdcAppActUserCancelsignupDTO, AppActUserCancelsignupDTO.class);
+ return actUserRelationService.activityCancelSignUp(actUserCancelsignupDTO);
}
@@ -111,21 +114,6 @@ public class ApiActUserRelationController {
appActUserClockLogDTO.setUserId(tokenDto.getUserId());
return actUserRelationService.activityClock(appActUserClockLogDTO);
- /* ArrayList imgList = new ArrayList();
- imgList.add("http://123232323223");
- imgList.add("http://12323232342423423");
- EpdcAppActUserClockLogDTO epdcAppActUserClockLogDTO = new EpdcAppActUserClockLogDTO();
- epdcAppActUserClockLogDTO.setActId("122");
- epdcAppActUserClockLogDTO.setClockAddress("打卡描述");
- epdcAppActUserClockLogDTO.setClockLatitude(new BigDecimal(123.122));
- epdcAppActUserClockLogDTO.setClockLongitude(new BigDecimal(123.122));
- epdcAppActUserClockLogDTO.setClockType("0");
- epdcAppActUserClockLogDTO.setImages(imgList);
- epdcAppActUserClockLogDTO.setClockAddress("山东省青岛市市北区台东路");
- AppActUserClockLogDTO appActUserClockLogDTO = ConvertUtils.sourceToTarget(epdcAppActUserClockLogDTO, AppActUserClockLogDTO.class);
- appActUserClockLogDTO.setUserId("3f6448adbfbe736dde333f057a956012");
- return actUserRelationService.activityClock(appActUserClockLogDTO);*/
-
}
/**
@@ -138,7 +126,7 @@ public class ApiActUserRelationController {
* @date 2019/12/13 14:41
*/
@GetMapping("clockList")
- public Result getClockList(@LoginUser TokenDto tokenDto, @PathVariable("actId") String actId) {
+ public Result getClockList(@LoginUser TokenDto tokenDto, String actId) {
Result result = actUserRelationService.getClockList(actId);
EpdcAppClockListDTO epdcAppClockListDTO = ConvertUtils.sourceToTarget(result.getData(), EpdcAppClockListDTO.class);
Result result1 = new Result();
@@ -156,7 +144,7 @@ public class ApiActUserRelationController {
* @date 2019/12/13 14:41
*/
@GetMapping("clockAddressDetail")
- public Result clockAddressDetail(@PathVariable("actId") String actId) {
+ public Result clockAddressDetail(String actId) {
return actUserRelationService.clockAddressDetail(actId);
}
diff --git a/esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/feign/AppActUserRelationFeignClient.java b/esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/feign/AppActUserRelationFeignClient.java
index f492b7bbe..00f257f18 100644
--- a/esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/feign/AppActUserRelationFeignClient.java
+++ b/esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/feign/AppActUserRelationFeignClient.java
@@ -1,6 +1,7 @@
package com.elink.esua.epdc.feign;
import com.elink.esua.epdc.activity.ActUserRelationDTO;
+import com.elink.esua.epdc.activity.AppActUserCancelsignupDTO;
import com.elink.esua.epdc.activity.AppActUserClockLogDTO;
import com.elink.esua.epdc.activity.AppClockListDTO;
import com.elink.esua.epdc.activity.result.AppActInfoDTO;
@@ -32,11 +33,11 @@ public interface AppActUserRelationFeignClient {
/**
* 取消活动报名
- * @param actId
+ * @param epdcAppActUserCancelsignupDTO
* @return
*/
- @GetMapping("heart/appactuserrelation/activityCancelSignUp/{userId}/{actId}")
- Result activityCancelSignUp(@PathVariable("userId") String userId,@PathVariable("actId") String actId);
+ @GetMapping("heart/appactuserrelation/activityCancelSignUp")
+ Result activityCancelSignUp(AppActUserCancelsignupDTO epdcAppActUserCancelsignupDTO);
/**
* 活动打卡
diff --git a/esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/feign/fallback/AppActUserRelationFeignClientFallback.java b/esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/feign/fallback/AppActUserRelationFeignClientFallback.java
index 7161b8a2f..3954ce303 100644
--- a/esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/feign/fallback/AppActUserRelationFeignClientFallback.java
+++ b/esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/feign/fallback/AppActUserRelationFeignClientFallback.java
@@ -1,6 +1,7 @@
package com.elink.esua.epdc.feign.fallback;
import com.elink.esua.epdc.activity.ActUserRelationDTO;
+import com.elink.esua.epdc.activity.AppActUserCancelsignupDTO;
import com.elink.esua.epdc.activity.AppActUserClockLogDTO;
import com.elink.esua.epdc.activity.result.AppActInfoDTO;
import com.elink.esua.epdc.commons.tools.constant.ServiceConstant;
@@ -21,8 +22,8 @@ public class AppActUserRelationFeignClientFallback implements AppActUserRelation
return ModuleUtils.feignConError(ServiceConstant.EPDC_HEART_SERVER, "activitySignUp", actUserRelationDTO);
}
@Override
- public Result activityCancelSignUp(String userId,String actId) {
- return ModuleUtils.feignConError(ServiceConstant.EPDC_HEART_SERVER, "activityCancelSignUp", userId,actId);
+ public Result activityCancelSignUp(AppActUserCancelsignupDTO epdcAppActUserCancelsignupDTO) {
+ return ModuleUtils.feignConError(ServiceConstant.EPDC_HEART_SERVER, "activityCancelSignUp", epdcAppActUserCancelsignupDTO);
}
@Override
diff --git a/esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/service/ActUserRelationService.java b/esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/service/ActUserRelationService.java
index 4b32ecd69..d85f6ba4a 100644
--- a/esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/service/ActUserRelationService.java
+++ b/esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/service/ActUserRelationService.java
@@ -1,6 +1,7 @@
package com.elink.esua.epdc.service;
import com.elink.esua.epdc.activity.ActUserRelationDTO;
+import com.elink.esua.epdc.activity.AppActUserCancelsignupDTO;
import com.elink.esua.epdc.activity.AppActUserClockLogDTO;
import com.elink.esua.epdc.activity.AppClockListDTO;
import com.elink.esua.epdc.activity.result.AppActInfoDTO;
@@ -22,12 +23,11 @@ public interface ActUserRelationService {
/**
* 取消活动报名
- * @param actId
- * @param userId
+ * @param epdcAppActUserCancelsignupDTO
* @Author wanggongfeng
* @return
*/
- Result activityCancelSignUp(String userId,String actId);
+ Result activityCancelSignUp(AppActUserCancelsignupDTO epdcAppActUserCancelsignupDTO);
/**
* 活动打卡
diff --git a/esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/service/impl/ActUserRelationServiceImpl.java b/esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/service/impl/ActUserRelationServiceImpl.java
index f17240424..26d89d255 100644
--- a/esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/service/impl/ActUserRelationServiceImpl.java
+++ b/esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/service/impl/ActUserRelationServiceImpl.java
@@ -1,6 +1,7 @@
package com.elink.esua.epdc.service.impl;
import com.elink.esua.epdc.activity.ActUserRelationDTO;
+import com.elink.esua.epdc.activity.AppActUserCancelsignupDTO;
import com.elink.esua.epdc.activity.AppActUserClockLogDTO;
import com.elink.esua.epdc.activity.AppClockListDTO;
import com.elink.esua.epdc.activity.result.AppActInfoDTO;
@@ -30,8 +31,8 @@ public class ActUserRelationServiceImpl implements ActUserRelationService {
}
@Override
- public Result activityCancelSignUp(String userId,String actId) {
- Result dataResult = actInfoFeignClient.activityCancelSignUp(userId,actId);
+ public Result activityCancelSignUp(AppActUserCancelsignupDTO epdcAppActUserCancelsignupDTO) {
+ Result dataResult = actInfoFeignClient.activityCancelSignUp(epdcAppActUserCancelsignupDTO);
return dataResult;
}
diff --git a/esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/service/impl/AppUserServiceImpl.java b/esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/service/impl/AppUserServiceImpl.java
index a9353aafa..4fcc65c04 100644
--- a/esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/service/impl/AppUserServiceImpl.java
+++ b/esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/service/impl/AppUserServiceImpl.java
@@ -1107,21 +1107,21 @@ public class AppUserServiceImpl implements AppUserService {
formDto.setSex(sex); // 性别
formDto.setBirthday(birthday); // 生日
formDto.setUserId(tokenDto.getUserId()); // 用户ID
- //验证是否为志愿者
+ // 验证是否为志愿者
Result volunteerCountResult = userFeignClient.getVolunteerCountById(tokenDto.getUserId());
if (!volunteerCountResult.success() || null == volunteerCountResult.getData()) {
return new Result().error("志愿者认证失败");
} else if (volunteerCountResult.getData() == 0) {
- //添加志愿者
+ // 添加志愿者
Result insertCountResult = userFeignClient.insertVolunteerInfo(formDto);
}
- //调用用户完善个人信息-保存
+ // 调用用户完善个人信息-保存
EpdcCompleteUserInfoFormDTO epdcCompleteUserInfoFormDTO = ConvertUtils.sourceToTarget(formDto, EpdcCompleteUserInfoFormDTO.class);
if (UserTagUtils.containIdentity(tokenDto.getUserTagInfos(), UserTagEnum.PARTY_MEMBER)) {
epdcCompleteUserInfoFormDTO.setPartyFlag(YesOrNoEnum.YES.value());// 党员标志
} else {
- epdcCompleteUserInfoFormDTO.setPartyFlag(YesOrNoEnum.NO.value());// 党员标志
+ epdcCompleteUserInfoFormDTO.setPartyFlag(YesOrNoEnum.NO.value()); // 党员标志
}
Result result = completeUserInfoNoVerifyCode(tokenDto, epdcCompleteUserInfoFormDTO);
diff --git a/esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/resources/application.yml b/esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/resources/application.yml
index 4892ef7b8..1179d7adb 100644
--- a/esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/resources/application.yml
+++ b/esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/resources/application.yml
@@ -18,3 +18,4 @@ nacos:
spring:
application:
name: epdc-api-server
+
diff --git a/esua-epdc/epdc-module/epdc-events/epdc-events-server/pom.xml b/esua-epdc/epdc-module/epdc-events/epdc-events-server/pom.xml
index b6e26ed44..52e58d1e3 100644
--- a/esua-epdc/epdc-module/epdc-events/epdc-events-server/pom.xml
+++ b/esua-epdc/epdc-module/epdc-events/epdc-events-server/pom.xml
@@ -178,7 +178,7 @@
906647.104.224.45:8848513d6635-3cfe-401f-b8b6-a04417288f47
- EPDC_EVENTS
+ EPDC_CONFIG_GROUPtruedev
@@ -218,7 +218,7 @@
906647.104.224.45:88486a3577b4-7b79-43f6-aebb-9c3f31263f6a
- EPDC_EVENTS
+ EPDC_CONFIG_GROUPtruetest
diff --git a/esua-epdc/epdc-module/epdc-group/epdc-group-server/pom.xml b/esua-epdc/epdc-module/epdc-group/epdc-group-server/pom.xml
index 830ffc8fa..86250d311 100644
--- a/esua-epdc/epdc-module/epdc-group/epdc-group-server/pom.xml
+++ b/esua-epdc/epdc-module/epdc-group/epdc-group-server/pom.xml
@@ -147,7 +147,7 @@
47.104.224.45:8848513d6635-3cfe-401f-b8b6-a04417288f47
- EPDC_GROUP
+ EPDC_CONFIG_GROUPtrue
@@ -178,7 +178,7 @@
47.104.224.45:88486a3577b4-7b79-43f6-aebb-9c3f31263f6a
- EPDC_GROUP
+ EPDC_CONFIG_GROUPtrue
diff --git a/esua-epdc/epdc-module/epdc-heart/epdc-heart-client/src/main/java/com/elink/esua/epdc/activity/AppActUserCancelsignupDTO.java b/esua-epdc/epdc-module/epdc-heart/epdc-heart-client/src/main/java/com/elink/esua/epdc/activity/AppActUserCancelsignupDTO.java
new file mode 100644
index 000000000..15dc4938c
--- /dev/null
+++ b/esua-epdc/epdc-module/epdc-heart/epdc-heart-client/src/main/java/com/elink/esua/epdc/activity/AppActUserCancelsignupDTO.java
@@ -0,0 +1,47 @@
+/**
+ * Copyright 2018 人人开源 https://www.renren.io
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *