diff --git a/esua-epdc/epdc-admin/epdc-admin-server/pom.xml b/esua-epdc/epdc-admin/epdc-admin-server/pom.xml index 4a83d3bb..2aa659a7 100644 --- a/esua-epdc/epdc-admin/epdc-admin-server/pom.xml +++ b/esua-epdc/epdc-admin/epdc-admin-server/pom.xml @@ -145,10 +145,10 @@ 9092 dev - 2 - 114.215.125.123 - 9603 - epdc!redis@master1405 + 11 + r-m5eh5czgb1nucti6azpd.redis.rds.aliyuncs.com + 10001 + elink!888 @@ -188,10 +188,10 @@ 11002 test - 2 - 114.215.125.123 - 9603 - epdc!redis@master1405 + 11 + r-m5eh5czgb1nucti6azpd.redis.rds.aliyuncs.com + 10001 + elink!888 diff --git a/esua-epdc/epdc-admin/epdc-admin-server/src/main/java/com/elink/esua/epdc/controller/SysDeptController.java b/esua-epdc/epdc-admin/epdc-admin-server/src/main/java/com/elink/esua/epdc/controller/SysDeptController.java index e1fb43ca..6131fcc0 100644 --- a/esua-epdc/epdc-admin/epdc-admin-server/src/main/java/com/elink/esua/epdc/controller/SysDeptController.java +++ b/esua-epdc/epdc-admin/epdc-admin-server/src/main/java/com/elink/esua/epdc/controller/SysDeptController.java @@ -224,6 +224,18 @@ public class SysDeptController { return sysDeptService.getDeptTreeWithTypeKey(); } + /** + * 组织机构树:街道-社区-网格 + * + * @return com.elink.esua.epdc.commons.tools.utils.Result + * @author lc + * @since 2021/8/17 16:05 + */ + @GetMapping("party/getOrgTree") + public Result getOrgTree() { + return sysDeptService.getOrgTree(); + } + /** * @param * @return com.elink.esua.epdc.commons.tools.utils.Result diff --git a/esua-epdc/epdc-admin/epdc-admin-server/src/main/java/com/elink/esua/epdc/dao/SysDeptDao.java b/esua-epdc/epdc-admin/epdc-admin-server/src/main/java/com/elink/esua/epdc/dao/SysDeptDao.java index b0eca256..2dd4abf9 100644 --- a/esua-epdc/epdc-admin/epdc-admin-server/src/main/java/com/elink/esua/epdc/dao/SysDeptDao.java +++ b/esua-epdc/epdc-admin/epdc-admin-server/src/main/java/com/elink/esua/epdc/dao/SysDeptDao.java @@ -153,6 +153,15 @@ public interface SysDeptDao extends BaseDao { */ List selectListDeptTreeWithTypeKey(); + /** + * 组织机构树:街道-社区-网格 + * + * @return java.util.List + * @author lc + * @since 2021/8/17 15:56 + */ + List selectListOrgTree(); + /** * @param params * @return java.util.List diff --git a/esua-epdc/epdc-admin/epdc-admin-server/src/main/java/com/elink/esua/epdc/service/SysDeptService.java b/esua-epdc/epdc-admin/epdc-admin-server/src/main/java/com/elink/esua/epdc/service/SysDeptService.java index f4f4f00b..ccdc4f12 100644 --- a/esua-epdc/epdc-admin/epdc-admin-server/src/main/java/com/elink/esua/epdc/service/SysDeptService.java +++ b/esua-epdc/epdc-admin/epdc-admin-server/src/main/java/com/elink/esua/epdc/service/SysDeptService.java @@ -218,6 +218,15 @@ public interface SysDeptService extends BaseService { */ Result getDeptTreeWithTypeKey(); + /** + * 组织机构树:街道-社区-网格 + * + * @return com.elink.esua.epdc.commons.tools.utils.Result + * @author lc + * @since 2021/8/17 16:03 + */ + Result getOrgTree(); + /** * @param * @return com.elink.esua.epdc.commons.tools.utils.Result diff --git a/esua-epdc/epdc-admin/epdc-admin-server/src/main/java/com/elink/esua/epdc/service/impl/SysDeptServiceImpl.java b/esua-epdc/epdc-admin/epdc-admin-server/src/main/java/com/elink/esua/epdc/service/impl/SysDeptServiceImpl.java index 1b2ec1ad..89c5866a 100644 --- a/esua-epdc/epdc-admin/epdc-admin-server/src/main/java/com/elink/esua/epdc/service/impl/SysDeptServiceImpl.java +++ b/esua-epdc/epdc-admin/epdc-admin-server/src/main/java/com/elink/esua/epdc/service/impl/SysDeptServiceImpl.java @@ -684,6 +684,61 @@ public class SysDeptServiceImpl extends BaseServiceImpl deptList = baseDao.selectListOrgTree(); + JSONObject node; + JSONArray headNodes = new JSONArray(); + for (DeptTreeWithTypeKeyDTO deptItemDto : deptList) { + if (deptItemDto.getPid().longValue() == NumConstant.ZERO_L) { + node = new JSONObject(); + node.put("value", deptItemDto.getId()); + node.put("label", deptItemDto.getName()); + node.put("typeKey", deptItemDto.getTypeKey()); + headNodes.add(node); + } + } + // 用于存放所有父级节点 + JSONArray parent; + parent = headNodes; + // 用于存放所有子级节点 + JSONArray allChildren = new JSONArray(); + JSONArray children; + // 用于存放单个子级节点 + JSONObject childNode; + // 存放其余未处理的类别(节点) + List others = this.getOtherDeptWithTypeKey(deptList, parent); + + while (!others.isEmpty()) { + for (int i = 0; i < parent.size(); i++) { + node = parent.getJSONObject(i); + children = new JSONArray(); + for (DeptTreeWithTypeKeyDTO categoryTreeDto : others) { + if (categoryTreeDto.getPid().equals(node.get("value"))) { + childNode = new JSONObject(); + childNode.put("value", categoryTreeDto.getId()); + childNode.put("label", categoryTreeDto.getName()); + childNode.put("typeKey", categoryTreeDto.getTypeKey()); + children.add(childNode); + allChildren.add(childNode); + } + } + if (!children.isEmpty()) { + node.put("children", children); + } + } + parent = allChildren; + + others = this.getOtherDeptWithTypeKey(others, parent); + + } + //存放到redis中 + List cache = Lists.newArrayList(); + cache.add(headNodes); + DeptOption option = new DeptOption(); + option.setOptions(cache.get(0)); + redisUtils.set(RedisKeys.getAllOrgOptionKey(), option); + } + List getOtherDept(List deptList, JSONArray parent) { List already = Lists.newArrayList(); @@ -748,6 +803,17 @@ public class SysDeptServiceImpl extends BaseServiceImpl().ok((DeptOption) obj); } + @Override + public Result getOrgTree() { + String deptKey = RedisKeys.getAllOrgOptionKey(); + Object obj = redisUtils.get(deptKey); + if (null == obj) { + this.packgeAllOrgOption(); + obj = redisUtils.get(deptKey); + } + return new Result().ok((DeptOption) obj); + } + /** * @param * @return com.elink.esua.epdc.commons.tools.utils.Result diff --git a/esua-epdc/epdc-admin/epdc-admin-server/src/main/resources/mapper/SysDeptDao.xml b/esua-epdc/epdc-admin/epdc-admin-server/src/main/resources/mapper/SysDeptDao.xml index bc767365..9505661d 100644 --- a/esua-epdc/epdc-admin/epdc-admin-server/src/main/resources/mapper/SysDeptDao.xml +++ b/esua-epdc/epdc-admin/epdc-admin-server/src/main/resources/mapper/SysDeptDao.xml @@ -254,6 +254,18 @@ where sd.del_flag='0' and sd.type_key in ('district_party','street_party','street_dept') + + + SELECT + id, + pid, + pids, + NAME + FROM + esua_epdc_admin.sys_dept sd + WHERE + sd.del_flag = '0' + AND sd.type_key = 'street_party' + AND sd.id NOT IN ( + SELECT + t.dept_id + FROM + esua_epdc_admin.sys_dept_config t + WHERE + t.del_flag = '0' + ) + + + + + + + + + + + + + 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 f4df5545..bbf41b6d 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 @@ -156,10 +156,10 @@ 9040 - 2 - 114.215.125.123 - 9603 - epdc!redis@master1405 + 11 + r-m5eh5czgb1nucti6azpd.redis.rds.aliyuncs.com + 10001 + elink!888 @@ -208,10 +208,10 @@ 11003 - 2 - 114.215.125.123 - 9603 - epdc!redis@master1405 + 11 + r-m5eh5czgb1nucti6azpd.redis.rds.aliyuncs.com + 10001 + elink!888 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 e11cfeda..ccfbd3dc 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,9 +1,8 @@ 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 cn.hutool.core.collection.CollectionUtil; +import com.elink.esua.epdc.activity.*; +import com.elink.esua.epdc.activity.form.EpdcActSignupFormDTO; import com.elink.esua.epdc.activity.result.AppActInfoDTO; import com.elink.esua.epdc.common.token.dto.TokenDto; import com.elink.esua.epdc.commons.tools.annotation.LoginUser; @@ -26,7 +25,9 @@ import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; +import java.util.ArrayList; import java.util.Date; +import java.util.List; /** * APP活动相关接口 @@ -54,10 +55,8 @@ public class ApiActUserRelationController { * @date 2019/12/13 14:41 */ @PostMapping("signup") - public Result activitySignUp(@LoginUser TokenDto tokenDto, String actId) { - if (StringUtils.isBlank(actId)) { - return new Result().error("活动id不能为空"); - } + public Result activitySignUp(@LoginUser TokenDto tokenDto, @RequestBody EpdcActSignupFormDTO formDto) { + ValidatorUtils.validateEntity(formDto); //验证是否为志愿者 Result isVolunteer = appUserService.getVolunteerCountById(tokenDto); int code = isVolunteer.getCode(); @@ -69,7 +68,7 @@ public class ApiActUserRelationController { EpdcUserInfoResultDTO epdcUserInfoResultDTO = userInfo.getData(); ActUserRelationDTO actUserRelationDTO = new ActUserRelationDTO(); - actUserRelationDTO.setActId(actId); + actUserRelationDTO.setActId(formDto.getActId()); actUserRelationDTO.setUserId(tokenDto.getUserId()); actUserRelationDTO.setNickname(tokenDto.getNickname()); actUserRelationDTO.setFaceImg(tokenDto.getFaceImg()); @@ -79,6 +78,19 @@ public class ApiActUserRelationController { actUserRelationDTO.setPartyFlag(YesOrNoEnum.NO.value()); } + // 参与活动时间段 + if (CollectionUtil.isEmpty(formDto.getActPeriodId())) { + return new Result().error("请选择参与活动时间段"); + } + List periods = new ArrayList<>(); + for (String actPeriodId: + formDto.getActPeriodId()) { + ActPeriodDTO period = new ActPeriodDTO(); + period.setId(actPeriodId); + periods.add(period); + } + actUserRelationDTO.setPeriods(periods); + String identityNo = epdcUserInfoResultDTO.getIdentityNo(); String identityNoVerification = IdentityNoUtils.IdentityNoVerification(identityNo); @@ -183,4 +195,17 @@ public class ApiActUserRelationController { return actUserRelationService.clockAddressDetail(actId); } + + /** + * 获取活动可参与时间段 + * + * @param actId + * @return com.elink.esua.epdc.commons.tools.utils.Result> + * @author lc + * @since 2021/9/3 15:54 + */ + @GetMapping("getActPeriods") + public Result> getActPeriods(String actId) { + return actUserRelationService.listOfActPeriods(actId); + } } diff --git a/esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/controller/ApiScreenPopulationController.java b/esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/controller/ApiScreenPopulationController.java index 4695c6dc..d7b32ee0 100644 --- a/esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/controller/ApiScreenPopulationController.java +++ b/esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/controller/ApiScreenPopulationController.java @@ -8,11 +8,15 @@ import com.elink.esua.epdc.dto.DeptOption; import com.elink.esua.epdc.dto.PopulationInfoOverviewDTO; import com.elink.esua.epdc.dto.epdc.form.*; import com.elink.esua.epdc.dto.epdc.result.*; +import com.elink.esua.epdc.dto.form.EpdcScreenCompanyListFormDTO; +import com.elink.esua.epdc.dto.result.EpdcScreenCompanyListResultDTO; import com.elink.esua.epdc.service.AppUserService; import com.elink.esua.epdc.service.CustomService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; +import java.util.List; + /** * 用户模块 * @@ -168,4 +172,18 @@ public class ApiScreenPopulationController { public Result getPopulationInfoOverviewForScreen(@PathVariable("communityId")String communityId) { return appUserService.getPopulationInfoOverviewForScreen(communityId); } + + /** + * 大屏-企业信息 + * + * @param formDto + * @return com.elink.esua.epdc.commons.tools.utils.Result> + * @author lc + * @since 2021/9/3 18:59 + */ + @PostMapping("screenCompany/list") + public Result> screenCompanyList(@RequestBody EpdcScreenCompanyListFormDTO formDto) { + ValidatorUtils.validateEntity(formDto); + return customService.listOfCompanyListForScreen(formDto); + } } diff --git a/esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/feign/AdminFeignClient.java b/esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/feign/AdminFeignClient.java index 8d2ca093..8b4aff6a 100644 --- a/esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/feign/AdminFeignClient.java +++ b/esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/feign/AdminFeignClient.java @@ -116,6 +116,16 @@ public interface AdminFeignClient { @GetMapping("sys/dept/party/getDeptTreeWithTypeKey") Result getDeptTreeWithTypeKey(); + /** + * 组织机构树:街道-社区-网格 + * + * @return com.elink.esua.epdc.commons.tools.utils.Result + * @author lc + * @since 2021/8/17 16:08 + */ + @GetMapping("sys/dept/party/getOrgTree") + Result getOrgTree(); + /** * 根据数据字典类型获取简版数据字典列表,用于页面下拉菜单 * 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 6bfa1a43..1a89edc3 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,9 +1,6 @@ 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.*; import com.elink.esua.epdc.activity.result.AppActInfoDTO; import com.elink.esua.epdc.commons.tools.constant.ServiceConstant; import com.elink.esua.epdc.commons.tools.utils.Result; @@ -14,6 +11,8 @@ import org.springframework.http.MediaType; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; +import java.util.List; + /** * * 活动报名管理 @@ -72,4 +71,15 @@ public interface AppActUserRelationFeignClient { **/ @GetMapping(value = "heart/appactuserrelation/selectListV2ActUserRelation",consumes = MediaType.APPLICATION_JSON_UTF8_VALUE) Result selectListV2ActUserRelation(EpdcClockListV2FormDTO epdcClockListV2FormDTO); + + /** + * 获取活动可参与时间段 + * + * @param actId + * @return com.elink.esua.epdc.commons.tools.utils.Result> + * @author lc + * @since 2021/9/3 15:54 + */ + @GetMapping(value = "heart/appactuserrelation/getActPeriods/{actId}",consumes = MediaType.APPLICATION_JSON_UTF8_VALUE) + Result> getActPeriods(@PathVariable("actId") String actId); } diff --git a/esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/feign/CustomFeignClient.java b/esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/feign/CustomFeignClient.java index 7d8d889d..3ada374a 100644 --- a/esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/feign/CustomFeignClient.java +++ b/esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/feign/CustomFeignClient.java @@ -398,4 +398,15 @@ public interface CustomFeignClient { @PostMapping(value = "custom/enterprisereport/addEnterpriseReport", consumes = MediaType.APPLICATION_JSON_VALUE) Result addEnterpriseReport(@RequestBody EnterpriseReportAddFormDTO enterpriseReportAddFormDTO); + /** + * 大屏-企业列表 + * + * @param formDto + * @return com.elink.esua.epdc.commons.tools.utils.Result> + * @author lc + * @since 2021/9/3 19:02 + */ + @PostMapping(value = "custom/screencompany/screenCompanyList", consumes = MediaType.APPLICATION_JSON_VALUE) + Result> listOfCompanyListForScreen(EpdcScreenCompanyListFormDTO formDto); + } diff --git a/esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/feign/fallback/AdminFeignClientFallback.java b/esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/feign/fallback/AdminFeignClientFallback.java index ae4877c0..a051bf3c 100644 --- a/esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/feign/fallback/AdminFeignClientFallback.java +++ b/esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/feign/fallback/AdminFeignClientFallback.java @@ -62,6 +62,11 @@ public class AdminFeignClientFallback implements AdminFeignClient { return ModuleUtils.feignConError(ServiceConstant.EPDC_ADMIN_SERVER, "getDeptTreeWithTypeKey"); } + @Override + public Result getOrgTree() { + return ModuleUtils.feignConError(ServiceConstant.EPDC_ADMIN_SERVER, "getOrgTree"); + } + @Override public Result> getListSimpleDictInfo(String dictType) { return ModuleUtils.feignConError(ServiceConstant.EPDC_ADMIN_SERVER, "getListSimpleDictInfo", dictType); 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 95473ce3..6635604c 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,9 +1,6 @@ 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.AppClockListDTO; +import com.elink.esua.epdc.activity.*; import com.elink.esua.epdc.activity.result.AppActInfoDTO; import com.elink.esua.epdc.commons.tools.constant.ServiceConstant; import com.elink.esua.epdc.commons.tools.utils.ModuleUtils; @@ -12,6 +9,8 @@ import com.elink.esua.epdc.dto.form.EpdcClockListV2FormDTO; import com.elink.esua.epdc.feign.AppActUserRelationFeignClient; import org.springframework.stereotype.Component; +import java.util.List; + /** * @Author:wanggongfeng * @Date:2019/12/16 15:11 @@ -48,4 +47,9 @@ public class AppActUserRelationFeignClientFallback implements AppActUserRelation return ModuleUtils.feignConError(ServiceConstant.EPDC_HEART_SERVER, "selectListV2ActUserRelation", epdcClockListV2FormDTO); } + @Override + public Result> getActPeriods(String actId) { + return ModuleUtils.feignConError(ServiceConstant.EPDC_HEART_SERVER, "getActPeriods", actId); + } + } diff --git a/esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/feign/fallback/CustomFeignClientFallback.java b/esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/feign/fallback/CustomFeignClientFallback.java index a55ced8a..639b342e 100644 --- a/esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/feign/fallback/CustomFeignClientFallback.java +++ b/esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/feign/fallback/CustomFeignClientFallback.java @@ -215,4 +215,9 @@ public class CustomFeignClientFallback implements CustomFeignClient { public Result addEnterpriseReport(EnterpriseReportAddFormDTO enterpriseReportAddFormDTO) { return ModuleUtils.feignConError(ServiceConstant.EPDC_CUSTOM_SERVER, "addEnterpriseReport", enterpriseReportAddFormDTO); } + + @Override + public Result> listOfCompanyListForScreen(EpdcScreenCompanyListFormDTO formDto) { + return ModuleUtils.feignConError(ServiceConstant.EPDC_CUSTOM_SERVER, "listOfCompanyListForScreen", formDto); + } } 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 e81512a1..ce1e30b3 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,13 +1,12 @@ 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.*; import com.elink.esua.epdc.activity.result.AppActInfoDTO; import com.elink.esua.epdc.commons.tools.utils.Result; import com.elink.esua.epdc.dto.form.EpdcClockListV2FormDTO; +import java.util.List; + /** * @author wanggongfeng * @date 2019/12/17 9:50 @@ -61,4 +60,14 @@ public interface ActUserRelationService { * @return com.elink.esua.epdc.commons.tools.utils.Result **/ Result getV2ClockList(EpdcClockListV2FormDTO epdcClockListV2FormDTO); + + /** + * 获取活动可参与时间段 + * + * @param actId + * @return com.elink.esua.epdc.commons.tools.utils.Result> + * @author lc + * @since 2021/9/3 15:55 + */ + Result> listOfActPeriods(String actId); } diff --git a/esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/service/CustomService.java b/esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/service/CustomService.java index 39a9b4de..6652e41b 100644 --- a/esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/service/CustomService.java +++ b/esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/service/CustomService.java @@ -382,4 +382,14 @@ public interface CustomService { * @return com.elink.esua.epdc.commons.tools.utils.Result **/ Result getEnterpriseReportList(String id); + + /** + * 大屏-企业信息 + * + * @param formDto + * @return com.elink.esua.epdc.commons.tools.utils.Result> + * @author lc + * @since 2021/9/3 19:00 + */ + Result> listOfCompanyListForScreen(EpdcScreenCompanyListFormDTO formDto); } 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 3a8605ac..c2f0a659 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,9 +1,6 @@ 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.*; import com.elink.esua.epdc.activity.result.AppActInfoDTO; import com.elink.esua.epdc.commons.tools.utils.Result; import com.elink.esua.epdc.dto.form.EpdcClockListV2FormDTO; @@ -13,6 +10,8 @@ import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; +import java.util.List; + /** * @author wanggongfeng @@ -58,6 +57,12 @@ public class ActUserRelationServiceImpl implements ActUserRelationService { @Override public Result getV2ClockList(EpdcClockListV2FormDTO epdcClockListV2FormDTO) { Result result = actInfoFeignClient.selectListV2ActUserRelation(epdcClockListV2FormDTO); - return result; } + return result; + } + + @Override + public Result> listOfActPeriods(String actId) { + return actInfoFeignClient.getActPeriods(actId); + } } 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 ee7c3441..6dfac9af 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 @@ -1702,7 +1702,7 @@ public class AppUserServiceImpl implements AppUserService { @Override public Result getDeptTreeWithTypeKey() { - return adminFeignClient.getDeptTreeWithTypeKey(); + return adminFeignClient.getOrgTree(); } @Override diff --git a/esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/service/impl/CustomServiceImpl.java b/esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/service/impl/CustomServiceImpl.java index 5c33c52f..1995d29b 100644 --- a/esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/service/impl/CustomServiceImpl.java +++ b/esua-epdc/epdc-module/epdc-api/epdc-api-server/src/main/java/com/elink/esua/epdc/service/impl/CustomServiceImpl.java @@ -417,4 +417,9 @@ public class CustomServiceImpl implements CustomService { return customFeignClient.getEnterpriseReportList(id); } + @Override + public Result> listOfCompanyListForScreen(EpdcScreenCompanyListFormDTO formDto) { + return customFeignClient.listOfCompanyListForScreen(formDto); + } + } diff --git a/esua-epdc/epdc-module/epdc-content-security/epdc-content-security-server/pom.xml b/esua-epdc/epdc-module/epdc-content-security/epdc-content-security-server/pom.xml index 5365f6e1..09c9111e 100644 --- a/esua-epdc/epdc-module/epdc-content-security/epdc-content-security-server/pom.xml +++ b/esua-epdc/epdc-module/epdc-content-security/epdc-content-security-server/pom.xml @@ -139,10 +139,10 @@ 9079 - 2 - 114.215.125.123 - 9603 - epdc!redis@master1405 + 11 + r-m5eh5czgb1nucti6azpd.redis.rds.aliyuncs.com + 10001 + elink!888 @@ -181,10 +181,10 @@ 11017 - 2 - 114.215.125.123 - 9603 - epdc!redis@master1405 + 11 + r-m5eh5czgb1nucti6azpd.redis.rds.aliyuncs.com + 10001 + elink!888 diff --git a/esua-epdc/epdc-module/epdc-custom/epdc-custom-client/src/main/java/com/elink/esua/epdc/constant/CustomImageConstant.java b/esua-epdc/epdc-module/epdc-custom/epdc-custom-client/src/main/java/com/elink/esua/epdc/constant/CustomImageConstant.java index c4e2c294..5fde4921 100644 --- a/esua-epdc/epdc-module/epdc-custom/epdc-custom-client/src/main/java/com/elink/esua/epdc/constant/CustomImageConstant.java +++ b/esua-epdc/epdc-module/epdc-custom/epdc-custom-client/src/main/java/com/elink/esua/epdc/constant/CustomImageConstant.java @@ -20,4 +20,9 @@ public interface CustomImageConstant { * 志愿者服务-拼团购-评价 */ String IMAGE_TYPE_GROUP_BUY_EVALUATION = "group_buy_evaluation"; + + /** + * 大屏企业管理照片 + */ + String SCREEN_COMPANY_IMAGE = "screen_company_image"; } diff --git a/esua-epdc/epdc-module/epdc-custom/epdc-custom-client/src/main/java/com/elink/esua/epdc/dto/ScreenCompanyDTO.java b/esua-epdc/epdc-module/epdc-custom/epdc-custom-client/src/main/java/com/elink/esua/epdc/dto/ScreenCompanyDTO.java new file mode 100644 index 00000000..681c50eb --- /dev/null +++ b/esua-epdc/epdc-module/epdc-custom/epdc-custom-client/src/main/java/com/elink/esua/epdc/dto/ScreenCompanyDTO.java @@ -0,0 +1,129 @@ +/** + * 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. + *

+ * 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; + +import java.io.Serializable; +import java.util.Date; +import java.util.List; + +import com.elink.esua.epdc.dto.result.ScreenCompanyImagesResultDTO; +import lombok.Data; + + +/** + * 大屏企业信息表 + * + * @author qu qu@elink-cn.com + * @since v1.0.0 2021-09-03 + */ +@Data +public class ScreenCompanyDTO implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * 主键 + */ + private String id; + + /** + * 企业名称 + */ + private String companyName; + + /** + * 企业简介 + */ + private String companyIntroduction; + + /** + * 联系人 + */ + private String contactPerson; + + /** + * 联系电话 + */ + private String mobile; + + /** + * 企业地址 + */ + private String companyAddress; + + /** + * 统一社会信用代码 + */ + private String uniformSocialCreditCode; + + /** + * 注册资金(万元) + */ + private Integer registeredCapital; + + /** + * 企业人数 + */ + private Integer employedPopulation; + + /** + * 经度 + */ + private String longitude; + + /** + * 纬度 + */ + private String latitude; + + /** + * 乐观锁 + */ + private Integer revision; + + /** + * 删除标识 0:否,1:是 + */ + private String delFlag; + + /** + * 创建人 + */ + private String createdBy; + + /** + * 创建时间 + */ + private Date createdTime; + + /** + * 更新人 + */ + private String updatedBy; + + /** + * 更新时间 + */ + private Date updatedTime; + + /** + * 企业照片 + */ + private List images; + +} diff --git a/esua-epdc/epdc-module/epdc-custom/epdc-custom-client/src/main/java/com/elink/esua/epdc/dto/form/EpdcScreenCompanyListFormDTO.java b/esua-epdc/epdc-module/epdc-custom/epdc-custom-client/src/main/java/com/elink/esua/epdc/dto/form/EpdcScreenCompanyListFormDTO.java new file mode 100644 index 00000000..289f9d8d --- /dev/null +++ b/esua-epdc/epdc-module/epdc-custom/epdc-custom-client/src/main/java/com/elink/esua/epdc/dto/form/EpdcScreenCompanyListFormDTO.java @@ -0,0 +1,29 @@ +package com.elink.esua.epdc.dto.form; + +import lombok.Data; + +import javax.validation.constraints.Min; +import java.io.Serializable; + +@Data +public class EpdcScreenCompanyListFormDTO implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * 页码 + */ + @Min(value = 1, message = "页码必须大于0") + private Integer pageIndex; + + /** + * 页容量 + */ + @Min(value = 1, message = "页容量必须大于0") + private Integer pageSize; + + /** + * 企业名称 + */ + private String companyName; +} diff --git a/esua-epdc/epdc-module/epdc-custom/epdc-custom-client/src/main/java/com/elink/esua/epdc/dto/result/EpdcScreenCompanyListResultDTO.java b/esua-epdc/epdc-module/epdc-custom/epdc-custom-client/src/main/java/com/elink/esua/epdc/dto/result/EpdcScreenCompanyListResultDTO.java new file mode 100644 index 00000000..ecf78574 --- /dev/null +++ b/esua-epdc/epdc-module/epdc-custom/epdc-custom-client/src/main/java/com/elink/esua/epdc/dto/result/EpdcScreenCompanyListResultDTO.java @@ -0,0 +1,57 @@ +package com.elink.esua.epdc.dto.result; + +import lombok.Data; + +import java.io.Serializable; +import java.util.List; + +@Data +public class EpdcScreenCompanyListResultDTO implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * 主键 + */ + private String id; + + /** + * 企业名称 + */ + private String companyName; + + /** + * 企业简介 + */ + private String companyIntroduction; + + /** + * 联系人 + */ + private String contactPerson; + + /** + * 联系电话 + */ + private String mobile; + + /** + * 企业地址 + */ + private String companyAddress; + + /** + * 经度 + */ + private String longitude; + + /** + * 纬度 + */ + private String latitude; + + /** + * 企业照片 + */ + private List images; +} diff --git a/esua-epdc/epdc-module/epdc-custom/epdc-custom-client/src/main/java/com/elink/esua/epdc/dto/result/ScreenCompanyImagesResultDTO.java b/esua-epdc/epdc-module/epdc-custom/epdc-custom-client/src/main/java/com/elink/esua/epdc/dto/result/ScreenCompanyImagesResultDTO.java new file mode 100644 index 00000000..1675dac2 --- /dev/null +++ b/esua-epdc/epdc-module/epdc-custom/epdc-custom-client/src/main/java/com/elink/esua/epdc/dto/result/ScreenCompanyImagesResultDTO.java @@ -0,0 +1,13 @@ +package com.elink.esua.epdc.dto.result; + +import lombok.Data; + +import java.io.Serializable; + +@Data +public class ScreenCompanyImagesResultDTO implements Serializable { + + private String name; + + private String url; +} diff --git a/esua-epdc/epdc-module/epdc-custom/epdc-custom-server/pom.xml b/esua-epdc/epdc-module/epdc-custom/epdc-custom-server/pom.xml index ae497bd8..fc2636fe 100644 --- a/esua-epdc/epdc-module/epdc-custom/epdc-custom-server/pom.xml +++ b/esua-epdc/epdc-module/epdc-custom/epdc-custom-server/pom.xml @@ -139,10 +139,10 @@ 9076 - 2 - 114.215.125.123 - 9603 - epdc!redis@master1405 + 11 + r-m5eh5czgb1nucti6azpd.redis.rds.aliyuncs.com + 10001 + elink!888 @@ -172,10 +172,10 @@ 11015 - 2 - 114.215.125.123 - 9603 - epdc!redis@master1405 + 11 + r-m5eh5czgb1nucti6azpd.redis.rds.aliyuncs.com + 10001 + elink!888 diff --git a/esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/epidemic/controller/ScreenCompanyController.java b/esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/epidemic/controller/ScreenCompanyController.java new file mode 100644 index 00000000..e49d77b8 --- /dev/null +++ b/esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/epidemic/controller/ScreenCompanyController.java @@ -0,0 +1,111 @@ +/** + * 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. + *

+ * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +package com.elink.esua.epdc.modules.epidemic.controller; + +import com.elink.esua.epdc.commons.tools.page.PageData; +import com.elink.esua.epdc.commons.tools.utils.ExcelUtils; +import com.elink.esua.epdc.commons.tools.utils.Result; +import com.elink.esua.epdc.commons.tools.validator.AssertUtils; +import com.elink.esua.epdc.commons.tools.validator.ValidatorUtils; +import com.elink.esua.epdc.commons.tools.validator.group.AddGroup; +import com.elink.esua.epdc.commons.tools.validator.group.UpdateGroup; +import com.elink.esua.epdc.commons.tools.validator.group.DefaultGroup; +import com.elink.esua.epdc.dto.ScreenCompanyDTO; +import com.elink.esua.epdc.dto.form.EpdcScreenCompanyListFormDTO; +import com.elink.esua.epdc.dto.result.EpdcScreenCompanyListResultDTO; +import com.elink.esua.epdc.modules.epidemic.excel.ScreenCompanyExcel; +import com.elink.esua.epdc.modules.epidemic.service.ScreenCompanyService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +import javax.servlet.http.HttpServletResponse; +import java.util.List; +import java.util.Map; + + +/** + * 大屏企业信息表 + * + * @author qu qu@elink-cn.com + * @since v1.0.0 2021-09-03 + */ +@RestController +@RequestMapping("screencompany") +public class ScreenCompanyController { + + @Autowired + private ScreenCompanyService screenCompanyService; + + @GetMapping("page") + public Result> page(@RequestParam Map params){ + PageData page = screenCompanyService.page(params); + return new Result>().ok(page); + } + + @GetMapping("{id}") + public Result get(@PathVariable("id") String id){ + ScreenCompanyDTO data = screenCompanyService.get(id); + return new Result().ok(data); + } + + @PostMapping + public Result save(@RequestBody ScreenCompanyDTO dto){ + //效验数据 + ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); + screenCompanyService.save(dto); + return new Result(); + } + + @PutMapping + public Result update(@RequestBody ScreenCompanyDTO dto){ + //效验数据 + ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); + screenCompanyService.update(dto); + return new Result(); + } + + @DeleteMapping + public Result delete(@RequestBody String[] ids){ + //效验数据 + AssertUtils.isArrayEmpty(ids, "id"); + screenCompanyService.delete(ids); + return new Result(); + } + + @GetMapping("export") + public void export(@RequestParam Map params, HttpServletResponse response) throws Exception { + List list = screenCompanyService.list(params); + ExcelUtils.exportExcelToTarget(response, null, list, ScreenCompanyExcel.class); + } + + /** + * 大屏-企业列表 + * + * @param formDto + * @return com.elink.esua.epdc.commons.tools.utils.Result> + * @author lc + * @since 2021/9/3 18:55 + */ + @PostMapping("screenCompanyList") + public Result> screenCompanyList(@RequestBody EpdcScreenCompanyListFormDTO formDto) { + ValidatorUtils.validateEntity(formDto); + List data = screenCompanyService.listOfCompanyListForScreen(formDto); + return new Result>().ok(data); + } + +} diff --git a/esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/epidemic/dao/ScreenCompanyDao.java b/esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/epidemic/dao/ScreenCompanyDao.java new file mode 100644 index 00000000..61b20a7a --- /dev/null +++ b/esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/epidemic/dao/ScreenCompanyDao.java @@ -0,0 +1,58 @@ +/** + * 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. + *

+ * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +package com.elink.esua.epdc.modules.epidemic.dao; + +import com.elink.esua.epdc.commons.mybatis.dao.BaseDao; +import com.elink.esua.epdc.dto.ScreenCompanyDTO; +import com.elink.esua.epdc.dto.form.EpdcScreenCompanyListFormDTO; +import com.elink.esua.epdc.dto.result.EpdcScreenCompanyListResultDTO; +import com.elink.esua.epdc.modules.epidemic.entity.ScreenCompanyEntity; +import org.apache.ibatis.annotations.Mapper; + +import java.util.List; + +/** + * 大屏企业信息表 + * + * @author qu qu@elink-cn.com + * @since v1.0.0 2021-09-03 + */ +@Mapper +public interface ScreenCompanyDao extends BaseDao { + + /** + * 查询大屏企业信息 + * + * @param id + * @return com.elink.esua.epdc.dto.ScreenCompanyDTO + * @author lc + * @since 2021/9/3 18:34 + */ + ScreenCompanyDTO selectCompanyInfoById(String id); + + /** + * 大屏-企业列表 + * + * @param formDto + * @return java.util.List + * @author lc + * @since 2021/9/3 18:50 + */ + List selectListOfCompanyListForScreen(EpdcScreenCompanyListFormDTO formDto); + +} diff --git a/esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/epidemic/entity/ScreenCompanyEntity.java b/esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/epidemic/entity/ScreenCompanyEntity.java new file mode 100644 index 00000000..d76cb7f4 --- /dev/null +++ b/esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/epidemic/entity/ScreenCompanyEntity.java @@ -0,0 +1,91 @@ +/** + * 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. + *

+ * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +package com.elink.esua.epdc.modules.epidemic.entity; + +import com.baomidou.mybatisplus.annotation.TableName; + +import com.elink.esua.epdc.commons.mybatis.entity.BaseEpdcEntity; +import lombok.Data; +import lombok.EqualsAndHashCode; + +import java.util.Date; + +/** + * 大屏企业信息表 + * + * @author qu qu@elink-cn.com + * @since v1.0.0 2021-09-03 + */ +@Data +@EqualsAndHashCode(callSuper=false) +@TableName("epdc_screen_company") +public class ScreenCompanyEntity extends BaseEpdcEntity { + + private static final long serialVersionUID = 1L; + + /** + * 企业名称 + */ + private String companyName; + + /** + * 企业简介 + */ + private String companyIntroduction; + + /** + * 联系人 + */ + private String contactPerson; + + /** + * 联系电话 + */ + private String mobile; + + /** + * 企业地址 + */ + private String companyAddress; + + /** + * 统一社会信用代码 + */ + private String uniformSocialCreditCode; + + /** + * 注册资金(万元) + */ + private Integer registeredCapital; + + /** + * 企业人数 + */ + private Integer employedPopulation; + + /** + * 经度 + */ + private String longitude; + + /** + * 纬度 + */ + private String latitude; + +} diff --git a/esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/epidemic/excel/ScreenCompanyExcel.java b/esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/epidemic/excel/ScreenCompanyExcel.java new file mode 100644 index 00000000..588f18eb --- /dev/null +++ b/esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/epidemic/excel/ScreenCompanyExcel.java @@ -0,0 +1,86 @@ +/** + * 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. + *

+ * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +package com.elink.esua.epdc.modules.epidemic.excel; + +import cn.afterturn.easypoi.excel.annotation.Excel; +import lombok.Data; + +import java.util.Date; + +/** + * 大屏企业信息表 + * + * @author qu qu@elink-cn.com + * @since v1.0.0 2021-09-03 + */ +@Data +public class ScreenCompanyExcel { + + @Excel(name = "主键") + private String id; + + @Excel(name = "企业名称") + private String companyName; + + @Excel(name = "企业简介") + private String companyIntroduction; + + @Excel(name = "联系人") + private String contactPerson; + + @Excel(name = "联系电话") + private String mobile; + + @Excel(name = "企业地址") + private String companyAddress; + + @Excel(name = "统一社会信用代码") + private String uniformSocialCreditCode; + + @Excel(name = "注册资金(万元)") + private Integer registeredCapital; + + @Excel(name = "企业人数") + private Integer employedPopulation; + + @Excel(name = "经度") + private String longitude; + + @Excel(name = "纬度") + private String latitude; + + @Excel(name = "乐观锁") + private Integer revision; + + @Excel(name = "删除标识 0:否,1:是") + private String delFlag; + + @Excel(name = "创建人") + private String createdBy; + + @Excel(name = "创建时间") + private Date createdTime; + + @Excel(name = "更新人") + private String updatedBy; + + @Excel(name = "更新时间") + private Date updatedTime; + + +} diff --git a/esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/epidemic/service/ScreenCompanyService.java b/esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/epidemic/service/ScreenCompanyService.java new file mode 100644 index 00000000..e7b48538 --- /dev/null +++ b/esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/epidemic/service/ScreenCompanyService.java @@ -0,0 +1,107 @@ +/** + * 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. + *

+ * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +package com.elink.esua.epdc.modules.epidemic.service; + +import com.elink.esua.epdc.commons.mybatis.service.BaseService; +import com.elink.esua.epdc.commons.tools.page.PageData; +import com.elink.esua.epdc.dto.ScreenCompanyDTO; +import com.elink.esua.epdc.dto.form.EpdcScreenCompanyListFormDTO; +import com.elink.esua.epdc.dto.result.EpdcScreenCompanyListResultDTO; +import com.elink.esua.epdc.modules.epidemic.entity.ScreenCompanyEntity; + +import java.util.List; +import java.util.Map; + +/** + * 大屏企业信息表 + * + * @author qu qu@elink-cn.com + * @since v1.0.0 2021-09-03 + */ +public interface ScreenCompanyService extends BaseService { + + /** + * 默认分页 + * + * @param params + * @return PageData + * @author generator + * @date 2021-09-03 + */ + PageData page(Map params); + + /** + * 默认查询 + * + * @param params + * @return java.util.List + * @author generator + * @date 2021-09-03 + */ + List list(Map params); + + /** + * 单条查询 + * + * @param id + * @return ScreenCompanyDTO + * @author generator + * @date 2021-09-03 + */ + ScreenCompanyDTO get(String id); + + /** + * 默认保存 + * + * @param dto + * @return void + * @author generator + * @date 2021-09-03 + */ + void save(ScreenCompanyDTO dto); + + /** + * 默认更新 + * + * @param dto + * @return void + * @author generator + * @date 2021-09-03 + */ + void update(ScreenCompanyDTO dto); + + /** + * 批量删除 + * + * @param ids + * @return void + * @author generator + * @date 2021-09-03 + */ + void delete(String[] ids); + + /** + * 大屏-企业列表 + * + * @param formDto + * @return java.util.List + * @author lc + * @since 2021/9/3 18:52 + */ + List listOfCompanyListForScreen(EpdcScreenCompanyListFormDTO formDto); +} diff --git a/esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/epidemic/service/impl/ScreenCompanyServiceImpl.java b/esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/epidemic/service/impl/ScreenCompanyServiceImpl.java new file mode 100644 index 00000000..425723c4 --- /dev/null +++ b/esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/epidemic/service/impl/ScreenCompanyServiceImpl.java @@ -0,0 +1,140 @@ +/** + * 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. + *

+ * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +package com.elink.esua.epdc.modules.epidemic.service.impl; + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.elink.esua.epdc.commons.mybatis.service.impl.BaseServiceImpl; +import com.elink.esua.epdc.commons.tools.constant.NumConstant; +import com.elink.esua.epdc.commons.tools.page.PageData; +import com.elink.esua.epdc.commons.tools.utils.ConvertUtils; +import com.elink.esua.epdc.commons.tools.constant.FieldConstant; +import com.elink.esua.epdc.constant.CustomImageConstant; +import com.elink.esua.epdc.dto.ScreenCompanyDTO; +import com.elink.esua.epdc.dto.form.EpdcScreenCompanyListFormDTO; +import com.elink.esua.epdc.dto.result.EpdcScreenCompanyListResultDTO; +import com.elink.esua.epdc.dto.result.ScreenCompanyImagesResultDTO; +import com.elink.esua.epdc.modules.epidemic.dao.ScreenCompanyDao; +import com.elink.esua.epdc.modules.epidemic.entity.ScreenCompanyEntity; +import com.elink.esua.epdc.modules.epidemic.service.ScreenCompanyService; +import com.elink.esua.epdc.modules.reportissue.service.CustomImgService; +import org.apache.commons.lang3.StringUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import java.util.Map; + +/** + * 大屏企业信息表 + * + * @author qu qu@elink-cn.com + * @since v1.0.0 2021-09-03 + */ +@Service +public class ScreenCompanyServiceImpl extends BaseServiceImpl implements ScreenCompanyService { + + @Autowired + private CustomImgService customImgService; + + @Override + public PageData page(Map params) { + IPage page = baseDao.selectPage( + getPage(params, FieldConstant.CREATED_TIME, false), + getWrapper(params) + ); + return getPageData(page, ScreenCompanyDTO.class); + } + + @Override + public List list(Map params) { + List entityList = baseDao.selectList(getWrapper(params)); + + return ConvertUtils.sourceToTarget(entityList, ScreenCompanyDTO.class); + } + + private QueryWrapper getWrapper(Map params){ + String companyName = (String)params.get("companyName"); + + QueryWrapper wrapper = new QueryWrapper<>(); + wrapper.like(StringUtils.isNotBlank(companyName), "COMPANY_NAME", companyName.trim()); + + return wrapper; + } + + @Override + public ScreenCompanyDTO get(String id) { + return baseDao.selectCompanyInfoById(id); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void save(ScreenCompanyDTO dto) { + ScreenCompanyEntity entity = ConvertUtils.sourceToTarget(dto, ScreenCompanyEntity.class); + insert(entity); + // 保存图片 + this.saveImages(dto.getImages(), entity.getId()); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void update(ScreenCompanyDTO dto) { + ScreenCompanyEntity entity = ConvertUtils.sourceToTarget(dto, ScreenCompanyEntity.class); + updateById(entity); + // 删除已有图片 + customImgService.modifyImagesByReferenceIdAndImgType(entity.getId(), CustomImageConstant.SCREEN_COMPANY_IMAGE); + // 保存新图片 + this.saveImages(dto.getImages(), entity.getId()); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void delete(String[] ids) { + // 逻辑删除(@TableLogic 注解) + baseDao.deleteBatchIds(Arrays.asList(ids)); + } + + @Override + public List listOfCompanyListForScreen(EpdcScreenCompanyListFormDTO formDto) { + int pageIndex = (formDto.getPageIndex() - NumConstant.ONE) * formDto.getPageSize(); + formDto.setPageIndex(pageIndex); + return baseDao.selectListOfCompanyListForScreen(formDto); + } + + /** + * 保存图片 + * + * @param dto + * @param id + * @return void + * @author lc + * @since 2021/9/6 11:06 + */ + private void saveImages(List dto, String id) { + List images = new ArrayList<>(); + for (ScreenCompanyImagesResultDTO image: + dto) { + images.add(image.getUrl()); + } + customImgService.saveImages(images, id, CustomImageConstant.SCREEN_COMPANY_IMAGE); + } + +} diff --git a/esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/reportissue/dao/CustomImgDao.java b/esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/reportissue/dao/CustomImgDao.java index 973bb17c..fba56cb0 100644 --- a/esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/reportissue/dao/CustomImgDao.java +++ b/esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/reportissue/dao/CustomImgDao.java @@ -37,4 +37,15 @@ public interface CustomImgDao extends BaseDao { * @return void **/ void deleteByGroupBuyId(String id); -} \ No newline at end of file + + /** + * 删除照片 + * + * @param referenceId + * @param imgType + * @return void + * @author lc + * @since 2021/9/3 18:30 + */ + void modifyImagesByReferenceIdAndImgType(String referenceId, String imgType); +} diff --git a/esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/reportissue/service/CustomImgService.java b/esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/reportissue/service/CustomImgService.java index 0622d5be..bbac51b2 100644 --- a/esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/reportissue/service/CustomImgService.java +++ b/esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/reportissue/service/CustomImgService.java @@ -104,4 +104,15 @@ public interface CustomImgService extends BaseService { * @since 2020/10/22 17:42 */ boolean saveImages(List images, String referenceId, String imgType); -} \ No newline at end of file + + /** + * 删除照片 + * + * @param referenceId + * @param imgType + * @return void + * @author lc + * @since 2021/9/3 18:29 + */ + void modifyImagesByReferenceIdAndImgType(String referenceId, String imgType); +} diff --git a/esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/reportissue/service/impl/CustomImgServiceImpl.java b/esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/reportissue/service/impl/CustomImgServiceImpl.java index d6469fea..7fee31ca 100644 --- a/esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/reportissue/service/impl/CustomImgServiceImpl.java +++ b/esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/reportissue/service/impl/CustomImgServiceImpl.java @@ -116,4 +116,10 @@ public class CustomImgServiceImpl extends BaseServiceImpl + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/resources/mapper/reportissue/CustomImgDao.xml b/esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/resources/mapper/reportissue/CustomImgDao.xml index 85b98bbc..2ae80607 100644 --- a/esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/resources/mapper/reportissue/CustomImgDao.xml +++ b/esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/resources/mapper/reportissue/CustomImgDao.xml @@ -19,5 +19,9 @@ delete from epdc_custom_img where REFERENCE_ID = #{id} + + update epdc_custom_img set del_flag = '1' where REFERENCE_ID = #{referenceId} and IMG_TYPE = #{imgType} + - \ No newline at end of file + + 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 83990a6f..eecd5262 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 @@ -159,10 +159,10 @@ 9066 - 2 - 114.215.125.123 - 9603 - epdc!redis@master1405 + 11 + r-m5eh5czgb1nucti6azpd.redis.rds.aliyuncs.com + 10001 + elink!888 @@ -209,10 +209,10 @@ 11004 - 2 - 114.215.125.123 - 9603 - epdc!redis@master1405 + 11 + r-m5eh5czgb1nucti6azpd.redis.rds.aliyuncs.com + 10001 + elink!888 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 f82fdf50..c3861074 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 @@ -128,10 +128,10 @@ 9063 - 2 - 114.215.125.123 - 9603 - epdc!redis@master1405 + 11 + r-m5eh5czgb1nucti6azpd.redis.rds.aliyuncs.com + 10001 + elink!888 @@ -158,10 +158,10 @@ 11005 - 2 - 114.215.125.123 - 9603 - epdc!redis@master1405 + 11 + r-m5eh5czgb1nucti6azpd.redis.rds.aliyuncs.com + 10001 + elink!888 diff --git a/esua-epdc/epdc-module/epdc-heart/epdc-heart-client/src/main/java/com/elink/esua/epdc/activity/ActInfoDTO.java b/esua-epdc/epdc-module/epdc-heart/epdc-heart-client/src/main/java/com/elink/esua/epdc/activity/ActInfoDTO.java index 74ae79c8..3a26152b 100644 --- a/esua-epdc/epdc-module/epdc-heart/epdc-heart-client/src/main/java/com/elink/esua/epdc/activity/ActInfoDTO.java +++ b/esua-epdc/epdc-module/epdc-heart/epdc-heart-client/src/main/java/com/elink/esua/epdc/activity/ActInfoDTO.java @@ -22,6 +22,7 @@ import lombok.Data; import java.io.Serializable; import java.math.BigDecimal; import java.util.Date; +import java.util.List; /** * 活动信息表 @@ -249,4 +250,9 @@ public class ActInfoDTO implements Serializable { * 置顶人 */ private String topUserName; + + /** + * 活动详细时间段 + */ + private List periods; } diff --git a/esua-epdc/epdc-module/epdc-heart/epdc-heart-client/src/main/java/com/elink/esua/epdc/activity/ActPeriodDTO.java b/esua-epdc/epdc-module/epdc-heart/epdc-heart-client/src/main/java/com/elink/esua/epdc/activity/ActPeriodDTO.java new file mode 100644 index 00000000..929525ba --- /dev/null +++ b/esua-epdc/epdc-module/epdc-heart/epdc-heart-client/src/main/java/com/elink/esua/epdc/activity/ActPeriodDTO.java @@ -0,0 +1,86 @@ +/** + * 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. + *

+ * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +package com.elink.esua.epdc.activity; + +import java.io.Serializable; +import java.util.Date; +import lombok.Data; + + +/** + * 活动详细时间段表 + * + * @author qu qu@elink-cn.com + * @since v1.0.0 2021-09-02 + */ +@Data +public class ActPeriodDTO implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * 主键 + */ + private String id; + + /** + * 活动ID + */ + private String actId; + + /** + * 活动开始时间 + */ + private Date actPeriodStartTime; + + /** + * 活动结束时间 + */ + private Date actPeriodEndTime; + + /** + * 乐观锁 + */ + private Integer revision; + + /** + * 删除标识 0:未删除 1:删除 + */ + private String delFlag; + + /** + * 创建人 + */ + private String createdBy; + + /** + * 创建时间 + */ + private Date createdTime; + + /** + * 更新人 + */ + private String updatedBy; + + /** + * 更新时间 + */ + private Date updatedTime; + +} diff --git a/esua-epdc/epdc-module/epdc-heart/epdc-heart-client/src/main/java/com/elink/esua/epdc/activity/ActPeriodUserDTO.java b/esua-epdc/epdc-module/epdc-heart/epdc-heart-client/src/main/java/com/elink/esua/epdc/activity/ActPeriodUserDTO.java new file mode 100644 index 00000000..8fa36c55 --- /dev/null +++ b/esua-epdc/epdc-module/epdc-heart/epdc-heart-client/src/main/java/com/elink/esua/epdc/activity/ActPeriodUserDTO.java @@ -0,0 +1,81 @@ +/** + * 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. + *

+ * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +package com.elink.esua.epdc.activity; + +import java.io.Serializable; +import java.util.Date; +import lombok.Data; + + +/** + * 活动详细时间段用户关系表 + * + * @author qu qu@elink-cn.com + * @since v1.0.0 2021-09-02 + */ +@Data +public class ActPeriodUserDTO implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * 主键 + */ + private String id; + + /** + * 活动详细时间段表ID + */ + private String actPeriodId; + + /** + * 活动用户关系表ID + */ + private String actUserRelationId; + + /** + * 乐观锁 + */ + private Integer revision; + + /** + * 删除标识 0:未删除 1:删除 + */ + private String delFlag; + + /** + * 创建人 + */ + private String createdBy; + + /** + * 创建时间 + */ + private Date createdTime; + + /** + * 更新人 + */ + private String updatedBy; + + /** + * 更新时间 + */ + private Date updatedTime; + +} diff --git a/esua-epdc/epdc-module/epdc-heart/epdc-heart-client/src/main/java/com/elink/esua/epdc/activity/ActUserRelationDTO.java b/esua-epdc/epdc-module/epdc-heart/epdc-heart-client/src/main/java/com/elink/esua/epdc/activity/ActUserRelationDTO.java index e365873d..44eee3a1 100644 --- a/esua-epdc/epdc-module/epdc-heart/epdc-heart-client/src/main/java/com/elink/esua/epdc/activity/ActUserRelationDTO.java +++ b/esua-epdc/epdc-module/epdc-heart/epdc-heart-client/src/main/java/com/elink/esua/epdc/activity/ActUserRelationDTO.java @@ -21,6 +21,7 @@ import lombok.Data; import java.io.Serializable; import java.util.Date; +import java.util.List; /** @@ -134,4 +135,9 @@ public class ActUserRelationDTO implements Serializable { */ private Date updatedTime; -} \ No newline at end of file + /** + * 活动详细时间段 + */ + private List periods; + +} diff --git a/esua-epdc/epdc-module/epdc-heart/epdc-heart-client/src/main/java/com/elink/esua/epdc/activity/form/ActInfoAppFormDTO.java b/esua-epdc/epdc-module/epdc-heart/epdc-heart-client/src/main/java/com/elink/esua/epdc/activity/form/ActInfoAppFormDTO.java index 336779df..164ed79a 100644 --- a/esua-epdc/epdc-module/epdc-heart/epdc-heart-client/src/main/java/com/elink/esua/epdc/activity/form/ActInfoAppFormDTO.java +++ b/esua-epdc/epdc-module/epdc-heart/epdc-heart-client/src/main/java/com/elink/esua/epdc/activity/form/ActInfoAppFormDTO.java @@ -65,4 +65,9 @@ public class ActInfoAppFormDTO implements Serializable { */ private String actId; -} \ No newline at end of file + /** + * 活动主办方 + */ + private String sponsor; + +} diff --git a/esua-epdc/epdc-module/epdc-heart/epdc-heart-client/src/main/java/com/elink/esua/epdc/activity/form/EpdcActSignupFormDTO.java b/esua-epdc/epdc-module/epdc-heart/epdc-heart-client/src/main/java/com/elink/esua/epdc/activity/form/EpdcActSignupFormDTO.java new file mode 100644 index 00000000..109feb09 --- /dev/null +++ b/esua-epdc/epdc-module/epdc-heart/epdc-heart-client/src/main/java/com/elink/esua/epdc/activity/form/EpdcActSignupFormDTO.java @@ -0,0 +1,29 @@ +package com.elink.esua.epdc.activity.form; + +import lombok.Data; + +import javax.validation.constraints.NotBlank; +import javax.validation.constraints.NotNull; +import java.io.Serializable; +import java.util.List; + +/** + * 活动报名 + */ +@Data +public class EpdcActSignupFormDTO implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * 活动ID + */ + @NotBlank(message = "活动ID不能为空") + private String actId; + + /** + * 参与活动时间段 + */ + @NotNull(message = "参与活动时间段不能为空") + private List actPeriodId; +} diff --git a/esua-epdc/epdc-module/epdc-heart/epdc-heart-client/src/main/java/com/elink/esua/epdc/activity/result/ActInfoDetailResultDTO.java b/esua-epdc/epdc-module/epdc-heart/epdc-heart-client/src/main/java/com/elink/esua/epdc/activity/result/ActInfoDetailResultDTO.java index a5bc0959..b76880af 100644 --- a/esua-epdc/epdc-module/epdc-heart/epdc-heart-client/src/main/java/com/elink/esua/epdc/activity/result/ActInfoDetailResultDTO.java +++ b/esua-epdc/epdc-module/epdc-heart/epdc-heart-client/src/main/java/com/elink/esua/epdc/activity/result/ActInfoDetailResultDTO.java @@ -125,4 +125,9 @@ public class ActInfoDetailResultDTO implements Serializable { * 活动新闻稿 */ private String actNewsContent; + + /** + * 活动主办方 + */ + private String sponsor; } diff --git a/esua-epdc/epdc-module/epdc-heart/epdc-heart-client/src/main/java/com/elink/esua/epdc/activity/result/ActUserRelationResultDTO.java b/esua-epdc/epdc-module/epdc-heart/epdc-heart-client/src/main/java/com/elink/esua/epdc/activity/result/ActUserRelationResultDTO.java index 3dd7800b..78ffbf31 100644 --- a/esua-epdc/epdc-module/epdc-heart/epdc-heart-client/src/main/java/com/elink/esua/epdc/activity/result/ActUserRelationResultDTO.java +++ b/esua-epdc/epdc-module/epdc-heart/epdc-heart-client/src/main/java/com/elink/esua/epdc/activity/result/ActUserRelationResultDTO.java @@ -17,10 +17,12 @@ package com.elink.esua.epdc.activity.result; +import com.elink.esua.epdc.activity.ActPeriodDTO; import lombok.Data; import java.io.Serializable; import java.util.Date; +import java.util.List; /** @@ -125,4 +127,9 @@ public class ActUserRelationResultDTO implements Serializable { * 报名时间 "2020-10-15 10:56:20" */ private String signupTimeString; + + /** + * 活动详细时间段 + */ + private List periods; } diff --git a/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/pom.xml b/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/pom.xml index b59a9355..bde6fb53 100644 --- a/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/pom.xml +++ b/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/pom.xml @@ -156,10 +156,10 @@ 9060 - 2 - 114.215.125.123 - 9603 - epdc!redis@master1405 + 11 + r-m5eh5czgb1nucti6azpd.redis.rds.aliyuncs.com + 10001 + elink!888 @@ -188,10 +188,10 @@ 11012 - 2 - 114.215.125.123 - 9603 - epdc!redis@master1405 + 11 + r-m5eh5czgb1nucti6azpd.redis.rds.aliyuncs.com + 10001 + elink!888 diff --git a/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/controller/ActInfoController.java b/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/controller/ActInfoController.java index 9050fea9..5fd0657b 100644 --- a/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/controller/ActInfoController.java +++ b/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/controller/ActInfoController.java @@ -53,7 +53,7 @@ import java.util.Map; @RestController @RequestMapping("actinfo") public class ActInfoController { - + @Autowired private ActInfoService actInfoService; @@ -64,7 +64,6 @@ public class ActInfoController { if(SecurityUser.getDeptId() != null){ params.put("deptId", SecurityUser.getDeptId()); } - System.out.println(params); PageData page = actInfoService.getActInfoPageFromPC(params); return new Result>().ok(page); } @@ -137,4 +136,4 @@ public class ActInfoController { ValidatorUtils.validateEntity(formDto); return actInfoService.modifyActTopFlag(formDto); } -} \ No newline at end of file +} diff --git a/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/controller/ActPeriodController.java b/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/controller/ActPeriodController.java new file mode 100644 index 00000000..917356e4 --- /dev/null +++ b/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/controller/ActPeriodController.java @@ -0,0 +1,84 @@ +/** + * 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. + *

+ * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +package com.elink.esua.epdc.modules.activity.controller; + +import com.elink.esua.epdc.activity.ActPeriodDTO; +import com.elink.esua.epdc.commons.tools.page.PageData; +import com.elink.esua.epdc.commons.tools.utils.Result; +import com.elink.esua.epdc.commons.tools.validator.AssertUtils; +import com.elink.esua.epdc.commons.tools.validator.ValidatorUtils; +import com.elink.esua.epdc.commons.tools.validator.group.AddGroup; +import com.elink.esua.epdc.commons.tools.validator.group.UpdateGroup; +import com.elink.esua.epdc.commons.tools.validator.group.DefaultGroup; +import com.elink.esua.epdc.modules.activity.service.ActPeriodService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +import java.util.Map; + + +/** + * 活动详细时间段表 + * + * @author qu qu@elink-cn.com + * @since v1.0.0 2021-09-02 + */ +@RestController +@RequestMapping("actperiod") +public class ActPeriodController { + + @Autowired + private ActPeriodService actPeriodService; + + @GetMapping("page") + public Result> page(@RequestParam Map params){ + PageData page = actPeriodService.page(params); + return new Result>().ok(page); + } + + @GetMapping("{id}") + public Result get(@PathVariable("id") String id){ + ActPeriodDTO data = actPeriodService.get(id); + return new Result().ok(data); + } + + @PostMapping + public Result save(@RequestBody ActPeriodDTO dto){ + //效验数据 + ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); + actPeriodService.save(dto); + return new Result(); + } + + @PutMapping + public Result update(@RequestBody ActPeriodDTO dto){ + //效验数据 + ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); + actPeriodService.update(dto); + return new Result(); + } + + @DeleteMapping + public Result delete(@RequestBody String[] ids){ + //效验数据 + AssertUtils.isArrayEmpty(ids, "id"); + actPeriodService.delete(ids); + return new Result(); + } + +} diff --git a/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/controller/ActPeriodUserController.java b/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/controller/ActPeriodUserController.java new file mode 100644 index 00000000..4f51b20e --- /dev/null +++ b/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/controller/ActPeriodUserController.java @@ -0,0 +1,87 @@ +/** + * 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. + *

+ * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +package com.elink.esua.epdc.modules.activity.controller; + +import com.elink.esua.epdc.activity.ActPeriodUserDTO; +import com.elink.esua.epdc.commons.tools.page.PageData; +import com.elink.esua.epdc.commons.tools.utils.ExcelUtils; +import com.elink.esua.epdc.commons.tools.utils.Result; +import com.elink.esua.epdc.commons.tools.validator.AssertUtils; +import com.elink.esua.epdc.commons.tools.validator.ValidatorUtils; +import com.elink.esua.epdc.commons.tools.validator.group.AddGroup; +import com.elink.esua.epdc.commons.tools.validator.group.UpdateGroup; +import com.elink.esua.epdc.commons.tools.validator.group.DefaultGroup; +import com.elink.esua.epdc.modules.activity.service.ActPeriodUserService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +import javax.servlet.http.HttpServletResponse; +import java.util.List; +import java.util.Map; + + +/** + * 活动详细时间段用户关系表 + * + * @author qu qu@elink-cn.com + * @since v1.0.0 2021-09-02 + */ +@RestController +@RequestMapping("actperioduser") +public class ActPeriodUserController { + + @Autowired + private ActPeriodUserService actPeriodUserService; + + @GetMapping("page") + public Result> page(@RequestParam Map params){ + PageData page = actPeriodUserService.page(params); + return new Result>().ok(page); + } + + @GetMapping("{id}") + public Result get(@PathVariable("id") String id){ + ActPeriodUserDTO data = actPeriodUserService.get(id); + return new Result().ok(data); + } + + @PostMapping + public Result save(@RequestBody ActPeriodUserDTO dto){ + //效验数据 + ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); + actPeriodUserService.save(dto); + return new Result(); + } + + @PutMapping + public Result update(@RequestBody ActPeriodUserDTO dto){ + //效验数据 + ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); + actPeriodUserService.update(dto); + return new Result(); + } + + @DeleteMapping + public Result delete(@RequestBody String[] ids){ + //效验数据 + AssertUtils.isArrayEmpty(ids, "id"); + actPeriodUserService.delete(ids); + return new Result(); + } + +} diff --git a/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/controller/AppActUserRelationController.java b/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/controller/AppActUserRelationController.java index 56369dd3..c4640f2b 100644 --- a/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/controller/AppActUserRelationController.java +++ b/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/controller/AppActUserRelationController.java @@ -17,6 +17,7 @@ package com.elink.esua.epdc.modules.activity.controller; +import com.elink.esua.epdc.activity.ActPeriodDTO; import com.elink.esua.epdc.activity.ActUserRelationDTO; import com.elink.esua.epdc.activity.AppActUserCancelsignupDTO; import com.elink.esua.epdc.activity.AppClockListDTO; @@ -27,6 +28,8 @@ import com.elink.esua.epdc.modules.activity.service.ActUserRelationService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; +import java.util.List; + /** * 用户活动关系表 * @@ -67,7 +70,7 @@ public class AppActUserRelationController { * @return */ @GetMapping("selectListActUserRelation/{actId}") - public Result selectListActUserRelation(@PathVariable("actId")String actId){ + public Result selectListActUserRelation(@PathVariable("actId") String actId){ return actUserRelationService.selectListActUserRelation(actId); } @@ -87,8 +90,22 @@ public class AppActUserRelationController { * @return */ @GetMapping("AutoAuditActUser/{actId}") - public Result AutoAuditActUser(@PathVariable("actId")String actId){ + public Result AutoAuditActUser(@PathVariable("actId") String actId){ return actUserRelationService.updateAuditDefaultStatus(actId); } + /** + * 获取活动可参与时间段 + * + * @param actId + * @return com.elink.esua.epdc.commons.tools.utils.Result> + * @author lc + * @since 2021/9/3 15:54 + */ + @GetMapping("getActPeriods/{actId}") + public Result> getActPeriods(@PathVariable("actId") String actId) { + List data = actUserRelationService.listOfActPeriods(actId); + return new Result>().ok(data); + } + } diff --git a/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/dao/ActPeriodDao.java b/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/dao/ActPeriodDao.java new file mode 100644 index 00000000..0d05e7ce --- /dev/null +++ b/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/dao/ActPeriodDao.java @@ -0,0 +1,67 @@ +/** + * 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. + *

+ * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +package com.elink.esua.epdc.modules.activity.dao; + +import com.elink.esua.epdc.activity.ActPeriodDTO; +import com.elink.esua.epdc.commons.mybatis.dao.BaseDao; +import com.elink.esua.epdc.modules.activity.entity.ActPeriodEntity; +import org.apache.ibatis.annotations.Mapper; + +import java.util.List; + +/** + * 活动详细时间段表 + * + * @author qu qu@elink-cn.com + * @since v1.0.0 2021-09-02 + */ +@Mapper +public interface ActPeriodDao extends BaseDao { + + /** + * 查询活动已报名的时间段 + * + * @param actId + * @return java.util.List + * @author lc + * @since 2021/9/2 16:02 + */ + List selectPeriodsAlreadySignIn(String actId); + + /** + * 删除活动时间段 + * + * @param actId + * @return void + * @author lc + * @since 2021/9/2 15:30 + */ + void modifyDelFlagByActId(String actId); + + /** + * 获取活动时间段 + * + * @param actId + * @return java.util.List + * @author lc + * @since 2021/9/2 16:29 + */ + List selectListOfActPeriodsByActId(String actId); + List selectActTimeByActId(String actId); + +} diff --git a/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/dao/ActPeriodUserDao.java b/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/dao/ActPeriodUserDao.java new file mode 100644 index 00000000..0be7135c --- /dev/null +++ b/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/dao/ActPeriodUserDao.java @@ -0,0 +1,56 @@ +/** + * 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. + *

+ * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +package com.elink.esua.epdc.modules.activity.dao; + +import com.elink.esua.epdc.activity.ActPeriodDTO; +import com.elink.esua.epdc.commons.mybatis.dao.BaseDao; +import com.elink.esua.epdc.modules.activity.entity.ActPeriodUserEntity; +import org.apache.ibatis.annotations.Mapper; + +import java.util.List; + +/** + * 活动详细时间段用户关系表 + * + * @author qu qu@elink-cn.com + * @since v1.0.0 2021-09-02 + */ +@Mapper +public interface ActPeriodUserDao extends BaseDao { + + /** + * 获取用户报名时间段 + * + * @param actUserRelationId + * @return java.util.List + * @author lc + * @since 2021/9/2 20:06 + */ + List selectListOfSignInActPeriodsByActUserRelationId(String actUserRelationId); + + /** + * 删除参与活动时间段记录 + * + * @param actUserRelationId + * @return void + * @author lc + * @since 2021/9/3 15:47 + */ + void modifyActPeriodUserDelFlagByActUserRelationId(String actUserRelationId); + +} diff --git a/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/entity/ActPeriodEntity.java b/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/entity/ActPeriodEntity.java new file mode 100644 index 00000000..93b15538 --- /dev/null +++ b/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/entity/ActPeriodEntity.java @@ -0,0 +1,56 @@ +/** + * 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. + *

+ * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +package com.elink.esua.epdc.modules.activity.entity; + +import com.baomidou.mybatisplus.annotation.TableName; + +import com.elink.esua.epdc.commons.mybatis.entity.BaseEpdcEntity; +import lombok.Data; +import lombok.EqualsAndHashCode; + +import java.util.Date; + +/** + * 活动详细时间段表 + * + * @author qu qu@elink-cn.com + * @since v1.0.0 2021-09-02 + */ +@Data +@EqualsAndHashCode(callSuper=false) +@TableName("epdc_act_period") +public class ActPeriodEntity extends BaseEpdcEntity { + + private static final long serialVersionUID = 1L; + + /** + * 活动ID + */ + private String actId; + + /** + * 活动开始时间 + */ + private Date actPeriodStartTime; + + /** + * 活动结束时间 + */ + private Date actPeriodEndTime; + +} diff --git a/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/entity/ActPeriodUserEntity.java b/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/entity/ActPeriodUserEntity.java new file mode 100644 index 00000000..68f186f8 --- /dev/null +++ b/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/entity/ActPeriodUserEntity.java @@ -0,0 +1,51 @@ +/** + * 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. + *

+ * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +package com.elink.esua.epdc.modules.activity.entity; + +import com.baomidou.mybatisplus.annotation.TableName; + +import com.elink.esua.epdc.commons.mybatis.entity.BaseEpdcEntity; +import lombok.Data; +import lombok.EqualsAndHashCode; + +import java.util.Date; + +/** + * 活动详细时间段用户关系表 + * + * @author qu qu@elink-cn.com + * @since v1.0.0 2021-09-02 + */ +@Data +@EqualsAndHashCode(callSuper=false) +@TableName("epdc_act_period_user") +public class ActPeriodUserEntity extends BaseEpdcEntity { + + private static final long serialVersionUID = 1L; + + /** + * 活动详细时间段表ID + */ + private String actPeriodId; + + /** + * 活动用户关系表ID + */ + private String actUserRelationId; + +} diff --git a/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/service/ActPeriodService.java b/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/service/ActPeriodService.java new file mode 100644 index 00000000..abf4986f --- /dev/null +++ b/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/service/ActPeriodService.java @@ -0,0 +1,115 @@ +/** + * 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. + *

+ * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +package com.elink.esua.epdc.modules.activity.service; + +import com.elink.esua.epdc.activity.ActPeriodDTO; +import com.elink.esua.epdc.commons.mybatis.service.BaseService; +import com.elink.esua.epdc.commons.tools.page.PageData; +import com.elink.esua.epdc.modules.activity.entity.ActPeriodEntity; + +import java.util.List; +import java.util.Map; + +/** + * 活动详细时间段表 + * + * @author qu qu@elink-cn.com + * @since v1.0.0 2021-09-02 + */ +public interface ActPeriodService extends BaseService { + + /** + * 默认分页 + * + * @param params + * @return PageData + * @author generator + * @date 2021-09-02 + */ + PageData page(Map params); + + /** + * 默认查询 + * + * @param params + * @return java.util.List + * @author generator + * @date 2021-09-02 + */ + List list(Map params); + + /** + * 单条查询 + * + * @param id + * @return ActPeriodDTO + * @author generator + * @date 2021-09-02 + */ + ActPeriodDTO get(String id); + + /** + * 默认保存 + * + * @param dto + * @return void + * @author generator + * @date 2021-09-02 + */ + void save(ActPeriodDTO dto); + + /** + * 默认更新 + * + * @param dto + * @return void + * @author generator + * @date 2021-09-02 + */ + void update(ActPeriodDTO dto); + + /** + * 批量删除 + * + * @param ids + * @return void + * @author generator + * @date 2021-09-02 + */ + void delete(String[] ids); + + /** + * 删除活动时间段 + * + * @param actId + * @return void + * @author lc + * @since 2021/9/2 15:28 + */ + void removeActPeriodsByActId(String actId); + + /** + * 获取活动时间段 + * + * @param actId + * @return java.util.List + * @author lc + * @since 2021/9/2 16:13 + */ + List listOfActPeriodsByActId(String actId); +} diff --git a/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/service/ActPeriodUserService.java b/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/service/ActPeriodUserService.java new file mode 100644 index 00000000..d5f51426 --- /dev/null +++ b/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/service/ActPeriodUserService.java @@ -0,0 +1,116 @@ +/** + * 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. + *

+ * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +package com.elink.esua.epdc.modules.activity.service; + +import com.elink.esua.epdc.activity.ActPeriodDTO; +import com.elink.esua.epdc.activity.ActPeriodUserDTO; +import com.elink.esua.epdc.commons.mybatis.service.BaseService; +import com.elink.esua.epdc.commons.tools.page.PageData; +import com.elink.esua.epdc.modules.activity.entity.ActPeriodUserEntity; + +import java.util.List; +import java.util.Map; + +/** + * 活动详细时间段用户关系表 + * + * @author qu qu@elink-cn.com + * @since v1.0.0 2021-09-02 + */ +public interface ActPeriodUserService extends BaseService { + + /** + * 默认分页 + * + * @param params + * @return PageData + * @author generator + * @date 2021-09-02 + */ + PageData page(Map params); + + /** + * 默认查询 + * + * @param params + * @return java.util.List + * @author generator + * @date 2021-09-02 + */ + List list(Map params); + + /** + * 单条查询 + * + * @param id + * @return ActPeriodUserDTO + * @author generator + * @date 2021-09-02 + */ + ActPeriodUserDTO get(String id); + + /** + * 默认保存 + * + * @param dto + * @return void + * @author generator + * @date 2021-09-02 + */ + void save(ActPeriodUserDTO dto); + + /** + * 默认更新 + * + * @param dto + * @return void + * @author generator + * @date 2021-09-02 + */ + void update(ActPeriodUserDTO dto); + + /** + * 批量删除 + * + * @param ids + * @return void + * @author generator + * @date 2021-09-02 + */ + void delete(String[] ids); + + /** + * 获取用户报名时间段 + * + * @param actUserRelationId + * @return java.util.List + * @author lc + * @since 2021/9/2 20:05 + */ + List listOfSignInActPeriodsByActUserRelationId(String actUserRelationId); + + /** + * 删除参与活动时间段记录 + * + * @param actUserRelationId + * @return void + * @author lc + * @since 2021/9/3 15:45 + */ + void removeActPeriodUserByActUserRelationId(String actUserRelationId); +} diff --git a/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/service/ActUserRelationService.java b/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/service/ActUserRelationService.java index 049201a2..d700eb73 100644 --- a/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/service/ActUserRelationService.java +++ b/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/service/ActUserRelationService.java @@ -17,6 +17,7 @@ package com.elink.esua.epdc.modules.activity.service; +import com.elink.esua.epdc.activity.ActPeriodDTO; import com.elink.esua.epdc.activity.ActUserRelationDTO; import com.elink.esua.epdc.activity.AppActUserCancelsignupDTO; import com.elink.esua.epdc.activity.AppClockListDTO; @@ -183,4 +184,14 @@ public interface ActUserRelationService extends BaseService **/ Result selectListV2ActUserRelation(EpdcClockListV2FormDTO formDTO); + + /** + * 获取活动可参与时间段 + * + * @param actId + * @return java.util.List + * @author lc + * @since 2021/9/3 16:00 + */ + List listOfActPeriods(String actId); } diff --git a/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/service/impl/ActInfoServiceImpl.java b/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/service/impl/ActInfoServiceImpl.java index bb907f61..9982b770 100644 --- a/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/service/impl/ActInfoServiceImpl.java +++ b/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/service/impl/ActInfoServiceImpl.java @@ -17,12 +17,10 @@ package com.elink.esua.epdc.modules.activity.service.impl; +import cn.hutool.core.collection.CollectionUtil; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; -import com.elink.esua.epdc.activity.ActBannerDTO; -import com.elink.esua.epdc.activity.ActInfoDTO; -import com.elink.esua.epdc.activity.ActUserReadDTO; -import com.elink.esua.epdc.activity.ActUserRelationDTO; +import com.elink.esua.epdc.activity.*; import com.elink.esua.epdc.activity.form.ActInfoAppFormDTO; import com.elink.esua.epdc.activity.form.ActInfoFormDTO; import com.elink.esua.epdc.activity.form.ActSignInListFormDTO; @@ -54,12 +52,10 @@ import com.elink.esua.epdc.dto.ScheduleJobDTO; import com.elink.esua.epdc.dto.epdc.form.EpdcInformationFormDTO; import com.elink.esua.epdc.dto.epdc.form.EpdcVolunteerKindnessTimeUpdateFormDTO; import com.elink.esua.epdc.modules.activity.dao.*; -import com.elink.esua.epdc.modules.activity.entity.ActBannerEntity; -import com.elink.esua.epdc.modules.activity.entity.ActInfoEntity; -import com.elink.esua.epdc.modules.activity.entity.ActUserClockLogEntity; -import com.elink.esua.epdc.modules.activity.entity.ActUserRelationEntity; +import com.elink.esua.epdc.modules.activity.entity.*; import com.elink.esua.epdc.modules.activity.service.ActBannerService; import com.elink.esua.epdc.modules.activity.service.ActInfoService; +import com.elink.esua.epdc.modules.activity.service.ActPeriodService; import com.elink.esua.epdc.modules.activity.service.ActUserReadService; import com.elink.esua.epdc.modules.async.NewsTask; import com.elink.esua.epdc.modules.feign.AdminFeignClient; @@ -109,6 +105,8 @@ public class ActInfoServiceImpl extends BaseServiceImpl page(Map params) { @@ -145,12 +143,18 @@ public class ActInfoServiceImpl extends BaseServiceImpl periods = actPeriodService.listOfActPeriodsByActId(id); + ActInfoDTO dto = ConvertUtils.sourceToTarget(entity, ActInfoDTO.class); + dto.setPeriods(periods); + return dto; } @Override @Transactional(rollbackFor = Exception.class) public Result save(ActInfoDTO dto) { + // 校验活动详细时间段 + this.checkActPeriods(dto); //内容审核 - start Boolean isConReview = null; String userName = null; @@ -193,6 +197,8 @@ public class ActInfoServiceImpl extends BaseServiceImpl 0 + || periodEndTime.compareTo(dto.getActStartTime()) < 0 + || periodEndTime.compareTo(dto.getActEndTime()) > 0 + || periodEndTime.compareTo(periodStartTime) < 0) { + throw new RenException("活动时间段需在活动开始至活动结束时间内,且活动时间段结束时间需在活动时间段开始时间之后"); + } + if (i>0) { + if (periodStartTime.compareTo(periodEndTimeTmp) < 0) { + throw new RenException("活动时间段之间有重复时间,请调整后重新提交"); + } + } + periodEndTimeTmp = periodEndTime; + } + } + + /** + * 保存/修改活动时间段 + * + * @param periods + * @param actId + * @return void + * @author lc + * @since 2021/9/2 15:27 + */ + private void saveOrUpdateActPeriods(List periods, String actId) { + // 删除活动已有的时间段 + actPeriodService.removeActPeriodsByActId(actId); + // 保存活动时间段 + for (ActPeriodDTO dto: + periods) { + dto.setActId(actId); + dto.setId(null); + actPeriodService.save(dto); + } + } } diff --git a/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/service/impl/ActPeriodServiceImpl.java b/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/service/impl/ActPeriodServiceImpl.java new file mode 100644 index 00000000..cb14d666 --- /dev/null +++ b/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/service/impl/ActPeriodServiceImpl.java @@ -0,0 +1,121 @@ +/** + * 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. + *

+ * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +package com.elink.esua.epdc.modules.activity.service.impl; + +import cn.hutool.core.collection.CollectionUtil; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.elink.esua.epdc.activity.ActPeriodDTO; +import com.elink.esua.epdc.commons.mybatis.service.impl.BaseServiceImpl; +import com.elink.esua.epdc.commons.tools.exception.RenException; +import com.elink.esua.epdc.commons.tools.page.PageData; +import com.elink.esua.epdc.commons.tools.utils.ConvertUtils; +import com.elink.esua.epdc.commons.tools.constant.FieldConstant; +import com.elink.esua.epdc.modules.activity.dao.ActPeriodDao; +import com.elink.esua.epdc.modules.activity.entity.ActPeriodEntity; +import com.elink.esua.epdc.modules.activity.service.ActPeriodService; +import org.apache.commons.lang3.StringUtils; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +import java.util.Arrays; +import java.util.List; +import java.util.Map; + +/** + * 活动详细时间段表 + * + * @author qu qu@elink-cn.com + * @since v1.0.0 2021-09-02 + */ +@Service +public class ActPeriodServiceImpl extends BaseServiceImpl implements ActPeriodService { + + @Override + public PageData page(Map params) { + IPage page = baseDao.selectPage( + getPage(params, FieldConstant.CREATED_TIME, false), + getWrapper(params) + ); + return getPageData(page, ActPeriodDTO.class); + } + + @Override + public List list(Map params) { + List entityList = baseDao.selectList(getWrapper(params)); + + return ConvertUtils.sourceToTarget(entityList, ActPeriodDTO.class); + } + + private QueryWrapper getWrapper(Map params){ + String id = (String)params.get(FieldConstant.ID_HUMP); + + QueryWrapper wrapper = new QueryWrapper<>(); + wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id); + + return wrapper; + } + + @Override + public ActPeriodDTO get(String id) { + ActPeriodEntity entity = baseDao.selectById(id); + return ConvertUtils.sourceToTarget(entity, ActPeriodDTO.class); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void save(ActPeriodDTO dto) { + ActPeriodEntity entity = ConvertUtils.sourceToTarget(dto, ActPeriodEntity.class); + insert(entity); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void update(ActPeriodDTO dto) { + ActPeriodEntity entity = ConvertUtils.sourceToTarget(dto, ActPeriodEntity.class); + updateById(entity); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void delete(String[] ids) { + // 逻辑删除(@TableLogic 注解) + baseDao.deleteBatchIds(Arrays.asList(ids)); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void removeActPeriodsByActId(String actId) { + // 校验活动是否已有人报名,有人报名后不能修改活动时间段 + List periods = baseDao.selectPeriodsAlreadySignIn(actId); + if (CollectionUtil.isNotEmpty(periods)) { + throw new RenException("活动时间段已有人报名,不能修改"); + } + baseDao.modifyDelFlagByActId(actId); + } + + @Override + public List listOfActPeriodsByActId(String actId) { + List data = baseDao.selectListOfActPeriodsByActId(actId); + if (CollectionUtil.isEmpty(data)) { + data = baseDao.selectActTimeByActId(actId); + } + return data; + } + +} diff --git a/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/service/impl/ActPeriodUserServiceImpl.java b/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/service/impl/ActPeriodUserServiceImpl.java new file mode 100644 index 00000000..40898c17 --- /dev/null +++ b/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/service/impl/ActPeriodUserServiceImpl.java @@ -0,0 +1,111 @@ +/** + * 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. + *

+ * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +package com.elink.esua.epdc.modules.activity.service.impl; + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.elink.esua.epdc.activity.ActPeriodDTO; +import com.elink.esua.epdc.activity.ActPeriodUserDTO; +import com.elink.esua.epdc.commons.mybatis.service.impl.BaseServiceImpl; +import com.elink.esua.epdc.commons.tools.page.PageData; +import com.elink.esua.epdc.commons.tools.utils.ConvertUtils; +import com.elink.esua.epdc.commons.tools.constant.FieldConstant; +import com.elink.esua.epdc.modules.activity.dao.ActPeriodUserDao; +import com.elink.esua.epdc.modules.activity.entity.ActPeriodUserEntity; +import com.elink.esua.epdc.modules.activity.service.ActPeriodUserService; +import org.apache.commons.lang3.StringUtils; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +import java.util.Arrays; +import java.util.List; +import java.util.Map; + +/** + * 活动详细时间段用户关系表 + * + * @author qu qu@elink-cn.com + * @since v1.0.0 2021-09-02 + */ +@Service +public class ActPeriodUserServiceImpl extends BaseServiceImpl implements ActPeriodUserService { + + @Override + public PageData page(Map params) { + IPage page = baseDao.selectPage( + getPage(params, FieldConstant.CREATED_TIME, false), + getWrapper(params) + ); + return getPageData(page, ActPeriodUserDTO.class); + } + + @Override + public List list(Map params) { + List entityList = baseDao.selectList(getWrapper(params)); + + return ConvertUtils.sourceToTarget(entityList, ActPeriodUserDTO.class); + } + + private QueryWrapper getWrapper(Map params){ + String id = (String)params.get(FieldConstant.ID_HUMP); + + QueryWrapper wrapper = new QueryWrapper<>(); + wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id); + + return wrapper; + } + + @Override + public ActPeriodUserDTO get(String id) { + ActPeriodUserEntity entity = baseDao.selectById(id); + return ConvertUtils.sourceToTarget(entity, ActPeriodUserDTO.class); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void save(ActPeriodUserDTO dto) { + ActPeriodUserEntity entity = ConvertUtils.sourceToTarget(dto, ActPeriodUserEntity.class); + insert(entity); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void update(ActPeriodUserDTO dto) { + ActPeriodUserEntity entity = ConvertUtils.sourceToTarget(dto, ActPeriodUserEntity.class); + updateById(entity); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void delete(String[] ids) { + // 逻辑删除(@TableLogic 注解) + baseDao.deleteBatchIds(Arrays.asList(ids)); + } + + @Override + public List listOfSignInActPeriodsByActUserRelationId(String actUserRelationId) { + return baseDao.selectListOfSignInActPeriodsByActUserRelationId(actUserRelationId); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public void removeActPeriodUserByActUserRelationId(String actUserRelationId) { + baseDao.modifyActPeriodUserDelFlagByActUserRelationId(actUserRelationId); + } + +} diff --git a/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/service/impl/ActUserRelationServiceImpl.java b/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/service/impl/ActUserRelationServiceImpl.java index a5815b36..9364b23d 100644 --- a/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/service/impl/ActUserRelationServiceImpl.java +++ b/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/java/com/elink/esua/epdc/modules/activity/service/impl/ActUserRelationServiceImpl.java @@ -55,9 +55,7 @@ import com.elink.esua.epdc.modules.activity.entity.ActInfoEntity; import com.elink.esua.epdc.modules.activity.entity.ActUserLogEntity; import com.elink.esua.epdc.modules.activity.entity.ActUserPointsLogEntity; import com.elink.esua.epdc.modules.activity.entity.ActUserRelationEntity; -import com.elink.esua.epdc.modules.activity.service.ActInfoService; -import com.elink.esua.epdc.modules.activity.service.ActUserPointsLogService; -import com.elink.esua.epdc.modules.activity.service.ActUserRelationService; +import com.elink.esua.epdc.modules.activity.service.*; import com.elink.esua.epdc.modules.async.NewsTask; import com.elink.esua.epdc.modules.feign.AdminFeignClient; import com.elink.esua.epdc.modules.feign.PointsFeignClient; @@ -101,6 +99,11 @@ public class ActUserRelationServiceImpl extends BaseServiceImpl page(Map params) { IPage page = baseDao.selectPage( @@ -149,7 +152,10 @@ public class ActUserRelationServiceImpl extends BaseServiceImpl periods = actPeriodUserService.listOfSignInActPeriodsByActUserRelationId(id); + ActUserRelationDTO dto = ConvertUtils.sourceToTarget(entity, ActUserRelationDTO.class); + dto.setPeriods(periods); + return dto; } @Override @@ -179,7 +185,6 @@ public class ActUserRelationServiceImpl extends BaseServiceImpl listOfActPeriods(String actId) { + return actPeriodService.listOfActPeriodsByActId(actId); + } + } diff --git a/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/resources/mapper/activity/ActInfoDao.xml b/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/resources/mapper/activity/ActInfoDao.xml index c7589eba..9b1fd355 100644 --- a/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/resources/mapper/activity/ActInfoDao.xml +++ b/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/resources/mapper/activity/ActInfoDao.xml @@ -191,6 +191,9 @@ AND actInfo.ID = #{actId} + + AND actInfo.SPONSOR like concat('%', #{sponsor}, '%') + #{timestamp} @@ -503,6 +506,7 @@ eai.PUNISHMENT_POINTS as punishmentPoints, eai.REQUIREMENT as requirement, eai.ACT_CONTENT as actContent, + eai.SPONSOR as sponsor, ACT_NEWS_CONTENT as actNewsContent from epdc_act_info eai where eai.DEL_FLAG='0' diff --git a/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/resources/mapper/activity/ActPeriodDao.xml b/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/resources/mapper/activity/ActPeriodDao.xml new file mode 100644 index 00000000..4411cceb --- /dev/null +++ b/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/resources/mapper/activity/ActPeriodDao.xml @@ -0,0 +1,41 @@ + + + + + + + + + update epdc_act_period set del_flag = '1' where act_id = #{actId} + + + + + + + diff --git a/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/resources/mapper/activity/ActPeriodUserDao.xml b/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/resources/mapper/activity/ActPeriodUserDao.xml new file mode 100644 index 00000000..7cb63ffd --- /dev/null +++ b/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/resources/mapper/activity/ActPeriodUserDao.xml @@ -0,0 +1,40 @@ + + + + + + + + + update epdc_act_period_user set del_flag = '1' where ACT_USER_RELATION_ID = #{actUserRelationId} + + + diff --git a/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/resources/mapper/activity/ActUserRelationDao.xml b/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/resources/mapper/activity/ActUserRelationDao.xml index 58587ffb..874e2def 100644 --- a/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/resources/mapper/activity/ActUserRelationDao.xml +++ b/esua-epdc/epdc-module/epdc-heart/epdc-heart-server/src/main/resources/mapper/activity/ActUserRelationDao.xml @@ -42,6 +42,10 @@ + + + +