From 91963e50725d00affc7f4aa13fd5bf4da4ade8ca Mon Sep 17 00:00:00 2001 From: yinzuomei <576302893@qq.com> Date: Wed, 5 Aug 2020 15:51:39 +0800 Subject: [PATCH 01/24] =?UTF-8?q?=E4=BD=93=E9=AA=8C=E7=89=88=EF=BC=9Aheart?= =?UTF-8?q?39?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../epmet-heart-server/deploy/docker-compose-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/epmet-module/epmet-heart/epmet-heart-server/deploy/docker-compose-test.yml b/epmet-module/epmet-heart/epmet-heart-server/deploy/docker-compose-test.yml index b3b8fecd49..6d1bf3366b 100644 --- a/epmet-module/epmet-heart/epmet-heart-server/deploy/docker-compose-test.yml +++ b/epmet-module/epmet-heart/epmet-heart-server/deploy/docker-compose-test.yml @@ -2,7 +2,7 @@ version: "3.7" services: epmet-heart-server: container_name: epmet-heart-server-test - image: registry-vpc.cn-qingdao.aliyuncs.com/epmet-cloud-release/epmet-heart-server:0.0.38 + image: registry-vpc.cn-qingdao.aliyuncs.com/epmet-cloud-release/epmet-heart-server:0.0.39 ports: - "8111:8111" network_mode: host # 使用现有网络 From e04bfd4be5852012f20c1ccb47e8502d92d6be27 Mon Sep 17 00:00:00 2001 From: yinzuomei <576302893@qq.com> Date: Wed, 5 Aug 2020 16:44:50 +0800 Subject: [PATCH 02/24] =?UTF-8?q?=E4=BD=93=E9=AA=8C=E7=89=88=EF=BC=9Aheart?= =?UTF-8?q?40?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../epmet-heart-server/deploy/docker-compose-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/epmet-module/epmet-heart/epmet-heart-server/deploy/docker-compose-test.yml b/epmet-module/epmet-heart/epmet-heart-server/deploy/docker-compose-test.yml index 6d1bf3366b..4a381aad89 100644 --- a/epmet-module/epmet-heart/epmet-heart-server/deploy/docker-compose-test.yml +++ b/epmet-module/epmet-heart/epmet-heart-server/deploy/docker-compose-test.yml @@ -2,7 +2,7 @@ version: "3.7" services: epmet-heart-server: container_name: epmet-heart-server-test - image: registry-vpc.cn-qingdao.aliyuncs.com/epmet-cloud-release/epmet-heart-server:0.0.39 + image: registry-vpc.cn-qingdao.aliyuncs.com/epmet-cloud-release/epmet-heart-server:0.0.40 ports: - "8111:8111" network_mode: host # 使用现有网络 From 5fd5f3d885199553a26a8370781a777ab6e34547 Mon Sep 17 00:00:00 2001 From: zxc <1272811460@qq.com> Date: Wed, 5 Aug 2020 17:55:41 +0800 Subject: [PATCH 03/24] =?UTF-8?q?auth=E3=80=81third=E3=80=81gov-org?= =?UTF-8?q?=E3=80=81oper-crm=E3=80=81resi-guide=E3=80=81resi-mine=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=E5=8D=87=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- epmet-auth/deploy/docker-compose-test.yml | 2 +- .../epmet-third-server/deploy/docker-compose-test.yml | 2 +- .../gov-org/gov-org-server/deploy/docker-compose-test.yml | 2 +- .../oper-crm/oper-crm-server/deploy/docker-compose-test.yml | 2 +- .../resi-guide/resi-guide-server/deploy/docker-compose-test.yml | 2 +- .../resi-mine/resi-mine-server/deploy/docker-compose-test.yml | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/epmet-auth/deploy/docker-compose-test.yml b/epmet-auth/deploy/docker-compose-test.yml index 2f062fe8a3..3f4980855e 100644 --- a/epmet-auth/deploy/docker-compose-test.yml +++ b/epmet-auth/deploy/docker-compose-test.yml @@ -2,7 +2,7 @@ version: "3.7" services: epmet-auth-server: container_name: epmet-auth-server-test - image: registry-vpc.cn-qingdao.aliyuncs.com/epmet-cloud-release/epmet-auth:0.3.67 + image: registry-vpc.cn-qingdao.aliyuncs.com/epmet-cloud-release/epmet-auth:0.3.68 ports: - "8081:8081" network_mode: host # 使用现有网络 diff --git a/epmet-module/epmet-third/epmet-third-server/deploy/docker-compose-test.yml b/epmet-module/epmet-third/epmet-third-server/deploy/docker-compose-test.yml index 6df1062901..317ce1d01d 100644 --- a/epmet-module/epmet-third/epmet-third-server/deploy/docker-compose-test.yml +++ b/epmet-module/epmet-third/epmet-third-server/deploy/docker-compose-test.yml @@ -2,7 +2,7 @@ version: "3.7" services: epmet-third-server: container_name: epmet-third-server-test - image: registry-vpc.cn-qingdao.aliyuncs.com/epmet-cloud-release/epmet-third-server:0.0.100 + image: registry-vpc.cn-qingdao.aliyuncs.com/epmet-cloud-release/epmet-third-server:0.0.105 ports: - "8110:8110" network_mode: host # 使用现有网络 diff --git a/epmet-module/gov-org/gov-org-server/deploy/docker-compose-test.yml b/epmet-module/gov-org/gov-org-server/deploy/docker-compose-test.yml index 35418ce4aa..a7c713d4f3 100644 --- a/epmet-module/gov-org/gov-org-server/deploy/docker-compose-test.yml +++ b/epmet-module/gov-org/gov-org-server/deploy/docker-compose-test.yml @@ -2,7 +2,7 @@ version: "3.7" services: gov-org-server: container_name: gov-org-server-test - image: registry-vpc.cn-qingdao.aliyuncs.com/epmet-cloud-release/gov-org-server:0.3.80 + image: registry-vpc.cn-qingdao.aliyuncs.com/epmet-cloud-release/gov-org-server:0.3.81 ports: - "8092:8092" network_mode: host # 使用现有网络 diff --git a/epmet-module/oper-crm/oper-crm-server/deploy/docker-compose-test.yml b/epmet-module/oper-crm/oper-crm-server/deploy/docker-compose-test.yml index 19896e77f4..ca375b4fc1 100644 --- a/epmet-module/oper-crm/oper-crm-server/deploy/docker-compose-test.yml +++ b/epmet-module/oper-crm/oper-crm-server/deploy/docker-compose-test.yml @@ -2,7 +2,7 @@ version: "3.7" services: oper-crm-server: container_name: oper-crm-server-test - image: registry-vpc.cn-qingdao.aliyuncs.com/epmet-cloud-release/oper-crm-server:0.3.63 + image: registry-vpc.cn-qingdao.aliyuncs.com/epmet-cloud-release/oper-crm-server:0.3.64 ports: - "8090:8090" network_mode: host # 使用现有网络 diff --git a/epmet-module/resi-guide/resi-guide-server/deploy/docker-compose-test.yml b/epmet-module/resi-guide/resi-guide-server/deploy/docker-compose-test.yml index 0504afe0e9..581215f95a 100644 --- a/epmet-module/resi-guide/resi-guide-server/deploy/docker-compose-test.yml +++ b/epmet-module/resi-guide/resi-guide-server/deploy/docker-compose-test.yml @@ -2,7 +2,7 @@ version: "3.7" services: resi-guide-server: container_name: resi-guide-server-test - image: registry-vpc.cn-qingdao.aliyuncs.com/epmet-cloud-release/resi-guide-server:0.3.19 + image: registry-vpc.cn-qingdao.aliyuncs.com/epmet-cloud-release/resi-guide-server:0.3.20 ports: - "8091:8091" network_mode: host # 使用现有网络 diff --git a/epmet-module/resi-mine/resi-mine-server/deploy/docker-compose-test.yml b/epmet-module/resi-mine/resi-mine-server/deploy/docker-compose-test.yml index 664549415c..52cf5df96b 100644 --- a/epmet-module/resi-mine/resi-mine-server/deploy/docker-compose-test.yml +++ b/epmet-module/resi-mine/resi-mine-server/deploy/docker-compose-test.yml @@ -2,7 +2,7 @@ version: "3.7" services: resi-mine-server: container_name: resi-mine-server-test - image: registry-vpc.cn-qingdao.aliyuncs.com/epmet-cloud-release/resi-mine-server:0.3.37 + image: registry-vpc.cn-qingdao.aliyuncs.com/epmet-cloud-release/resi-mine-server:0.3.38 ports: - "8094:8094" network_mode: host # 使用现有网络 From e8f51e442939b626713b8f209e95f2a74b94cf85 Mon Sep 17 00:00:00 2001 From: jianjun Date: Thu, 6 Aug 2020 09:12:20 +0800 Subject: [PATCH 04/24] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AE=A2=E6=88=B7app?= =?UTF-8?q?=E5=AD=98=E5=85=A5redis=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/epmet/redis/CustomerAppWxServiceUtil.java | 8 +++++++- epmet-auth/src/main/resources/bootstrap.yml | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/epmet-auth/src/main/java/com/epmet/redis/CustomerAppWxServiceUtil.java b/epmet-auth/src/main/java/com/epmet/redis/CustomerAppWxServiceUtil.java index e641d17ed6..ddd5d69769 100644 --- a/epmet-auth/src/main/java/com/epmet/redis/CustomerAppWxServiceUtil.java +++ b/epmet-auth/src/main/java/com/epmet/redis/CustomerAppWxServiceUtil.java @@ -13,6 +13,7 @@ import cn.binarywang.wx.miniapp.api.impl.WxMaServiceImpl; import cn.binarywang.wx.miniapp.config.impl.WxMaDefaultConfigImpl; import com.alibaba.fastjson.JSON; import com.epmet.commons.tools.redis.RedisKeys; +import com.epmet.commons.tools.utils.ConvertUtils; import com.epmet.commons.tools.utils.Result; import com.epmet.dto.CustomerAppDTO; import com.epmet.dto.CustomerAppRedisDTO; @@ -115,7 +116,12 @@ public class CustomerAppWxServiceUtil implements ApplicationRunner { maServices = maServicesNew; if (appSet != null && result != null) { for (CustomerAppDTO app : result) { - appSet.add(appKey, app); + CustomerAppRedisDTO appRedis = ConvertUtils.sourceToTarget(app, CustomerAppRedisDTO.class); + if(appRedis == null){ + logger.warn("init CustomerAppRedis fail,convert return null,appDB:{}",JSON.toJSONString(app)); + continue; + } + appSet.add(appKey, appRedis); } } } diff --git a/epmet-auth/src/main/resources/bootstrap.yml b/epmet-auth/src/main/resources/bootstrap.yml index f3c4a05e89..2306d2da5b 100644 --- a/epmet-auth/src/main/resources/bootstrap.yml +++ b/epmet-auth/src/main/resources/bootstrap.yml @@ -10,7 +10,7 @@ spring: allow-bean-definition-overriding: true #环境 dev|test|prod profiles: - active: dev + active: @spring.profiles.active@ messages: encoding: UTF-8 basename: i18n/messages_common From 0b1d2a4de87bf0e02060a71eedeb8e98af2deb68 Mon Sep 17 00:00:00 2001 From: zxc <1272811460@qq.com> Date: Thu, 6 Aug 2020 09:17:22 +0800 Subject: [PATCH 05/24] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E5=AE=A1=E6=A0=B8?= =?UTF-8?q?=E7=BB=93=E6=9E=9C=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/epmet/constant/ModuleConstant.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/epmet-module/epmet-third/epmet-third-server/src/main/java/com/epmet/constant/ModuleConstant.java b/epmet-module/epmet-third/epmet-third-server/src/main/java/com/epmet/constant/ModuleConstant.java index bdf4ea37bb..17bb891ece 100644 --- a/epmet-module/epmet-third/epmet-third-server/src/main/java/com/epmet/constant/ModuleConstant.java +++ b/epmet-module/epmet-third/epmet-third-server/src/main/java/com/epmet/constant/ModuleConstant.java @@ -91,7 +91,7 @@ public interface ModuleConstant { String FROM_CALLBACK = "from_callback"; String APPLICATION_JSON = "application/json"; String _FROM_API = "_from_api"; - String WE_APP_AUDIT = "we_app_audit"; + String WE_APP_AUDIT = "weapp_audit"; String TO_USER_NAME = "ToUserName"; String FROM_USER_NAME = "FromUserName"; From 0e25add2eb270cf7781bb28ab25ff397d76448f6 Mon Sep 17 00:00:00 2001 From: zxc <1272811460@qq.com> Date: Thu, 6 Aug 2020 09:18:53 +0800 Subject: [PATCH 06/24] =?UTF-8?q?third=E6=9C=8D=E5=8A=A1=E5=8D=87=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../epmet-third-server/deploy/docker-compose-dev.yml | 2 +- epmet-module/epmet-third/epmet-third-server/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/epmet-module/epmet-third/epmet-third-server/deploy/docker-compose-dev.yml b/epmet-module/epmet-third/epmet-third-server/deploy/docker-compose-dev.yml index 63f601776a..f22f3a06d8 100644 --- a/epmet-module/epmet-third/epmet-third-server/deploy/docker-compose-dev.yml +++ b/epmet-module/epmet-third/epmet-third-server/deploy/docker-compose-dev.yml @@ -2,7 +2,7 @@ version: "3.7" services: epmet-third-server: container_name: epmet-third-server-dev - image: 192.168.1.130:10080/epmet-cloud-dev/epmet-third-server:0.0.105 + image: 192.168.1.130:10080/epmet-cloud-dev/epmet-third-server:0.0.106 ports: - "8110:8110" network_mode: host # 使用现有网络 diff --git a/epmet-module/epmet-third/epmet-third-server/pom.xml b/epmet-module/epmet-third/epmet-third-server/pom.xml index 43277ff9ff..ad077c1cf9 100644 --- a/epmet-module/epmet-third/epmet-third-server/pom.xml +++ b/epmet-module/epmet-third/epmet-third-server/pom.xml @@ -2,7 +2,7 @@ 4.0.0 - 0.0.105 + 0.0.106 com.epmet From f6942827d734ae106ab3ed06aac08a26273d2db9 Mon Sep 17 00:00:00 2001 From: zhangyongzhangyong <2012005003@qq.coom> Date: Thu, 6 Aug 2020 09:34:29 +0800 Subject: [PATCH 07/24] =?UTF-8?q?=E7=AD=BE=E5=88=B0=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E5=88=A4=E6=96=AD=EF=BC=8C=E7=A9=BA=E6=8C=87=E9=92=88=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/ActInfoServiceImpl.java | 22 ++++++++++++------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/service/impl/ActInfoServiceImpl.java b/epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/service/impl/ActInfoServiceImpl.java index 2fc4a666cb..f2907b33d4 100644 --- a/epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/service/impl/ActInfoServiceImpl.java +++ b/epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/service/impl/ActInfoServiceImpl.java @@ -23,6 +23,7 @@ import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; import com.epmet.commons.tools.constant.FieldConstant; import com.epmet.commons.tools.constant.NumConstant; import com.epmet.commons.tools.exception.EpmetErrorCode; +import com.epmet.commons.tools.exception.RenException; import com.epmet.commons.tools.page.PageData; import com.epmet.commons.tools.security.dto.TokenDto; import com.epmet.commons.tools.utils.ConvertUtils; @@ -399,14 +400,19 @@ public class ActInfoServiceImpl extends BaseServiceImpl().ok(resultDTO); } From 29846d2c35f042dc4efcffc132ce0c327c481103 Mon Sep 17 00:00:00 2001 From: zhangyongzhangyong <2012005003@qq.coom> Date: Thu, 6 Aug 2020 09:53:32 +0800 Subject: [PATCH 08/24] =?UTF-8?q?=E6=B4=BB=E5=8A=A8=E5=9B=9E=E9=A1=BESQL?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/mapper/ActInfoDao.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/epmet-module/epmet-heart/epmet-heart-server/src/main/resources/mapper/ActInfoDao.xml b/epmet-module/epmet-heart/epmet-heart-server/src/main/resources/mapper/ActInfoDao.xml index 17dbb6c169..889c170bae 100644 --- a/epmet-module/epmet-heart/epmet-heart-server/src/main/resources/mapper/ActInfoDao.xml +++ b/epmet-module/epmet-heart/epmet-heart-server/src/main/resources/mapper/ActInfoDao.xml @@ -351,7 +351,7 @@ AND i.SUMMARY_FLAG = 1 OR r.ID is NOT NULL AND i.CUSTOMER_ID = #{customerId} AND i.ACT_STATUS = 'finished' - GROUP BY r.ACT_ID + GROUP BY i.ID ORDER BY i.CREATED_TIME DESC LIMIT #{pageNo}, #{pageSize} @@ -721,7 +721,7 @@ AND i.SUMMARY_FLAG = 1 OR r.ID is NOT NULL AND i.CUSTOMER_ID = #{customerId} AND i.ACT_STATUS = 'finished' - GROUP BY r.ACT_ID + GROUP BY i.ID ORDER BY i.CREATED_TIME DESC LIMIT 0, #{num} From cf236e9ee544bd41975686108c1f6535ffbc7e05 Mon Sep 17 00:00:00 2001 From: yinzuomei <576302893@qq.com> Date: Thu, 6 Aug 2020 10:25:04 +0800 Subject: [PATCH 09/24] =?UTF-8?q?=E6=8A=A5=E5=90=8D=E6=9D=A1=E4=BB=B6?= =?UTF-8?q?=E4=B8=8D=E5=BF=85=E5=A1=AB=EF=BC=8C=E5=A6=82=E6=9E=9C=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E5=A1=AB=E5=86=99=E9=BB=98=E8=AE=A4=E6=97=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/epmet/commons/tools/constant/StrConstant.java | 2 ++ .../com/epmet/dto/form/work/PublishActInfoFormDTO.java | 3 +-- .../java/com/epmet/dto/form/work/RePublishFormDTO.java | 3 +-- .../com/epmet/service/impl/WorkActDraftServiceImpl.java | 7 ++++++- .../java/com/epmet/service/impl/WorkActServiceImpl.java | 6 ++++++ .../main/resources/db/migration/V0.0.2__updateactinfo.sql | 1 + 6 files changed, 17 insertions(+), 5 deletions(-) create mode 100644 epmet-module/epmet-heart/epmet-heart-server/src/main/resources/db/migration/V0.0.2__updateactinfo.sql diff --git a/epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/constant/StrConstant.java b/epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/constant/StrConstant.java index a05eac28c6..655635e6d7 100644 --- a/epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/constant/StrConstant.java +++ b/epmet-commons/epmet-commons-tools/src/main/java/com/epmet/commons/tools/constant/StrConstant.java @@ -75,4 +75,6 @@ public interface StrConstant { String EPMETY_STR=""; String NULL_STR="null"; + + String NOT_FILLED = "无"; } diff --git a/epmet-module/epmet-heart/epmet-heart-client/src/main/java/com/epmet/dto/form/work/PublishActInfoFormDTO.java b/epmet-module/epmet-heart/epmet-heart-client/src/main/java/com/epmet/dto/form/work/PublishActInfoFormDTO.java index 5ded502bb2..fae068b230 100644 --- a/epmet-module/epmet-heart/epmet-heart-client/src/main/java/com/epmet/dto/form/work/PublishActInfoFormDTO.java +++ b/epmet-module/epmet-heart/epmet-heart-client/src/main/java/com/epmet/dto/form/work/PublishActInfoFormDTO.java @@ -120,8 +120,7 @@ public class PublishActInfoFormDTO implements Serializable { /** * 报名条件 */ - @NotBlank(message = "报名条件不能为空", groups = {AddUserShowGroup.class}) - @Length(min=1, max=500,message = "报名条件限500字以内", groups = {AddUserShowGroup.class}) + @Length(max=500,message = "报名条件限500字以内", groups = {AddUserShowGroup.class}) private String requirement; /** diff --git a/epmet-module/epmet-heart/epmet-heart-client/src/main/java/com/epmet/dto/form/work/RePublishFormDTO.java b/epmet-module/epmet-heart/epmet-heart-client/src/main/java/com/epmet/dto/form/work/RePublishFormDTO.java index 06208c4564..dfd1aeed99 100644 --- a/epmet-module/epmet-heart/epmet-heart-client/src/main/java/com/epmet/dto/form/work/RePublishFormDTO.java +++ b/epmet-module/epmet-heart/epmet-heart-client/src/main/java/com/epmet/dto/form/work/RePublishFormDTO.java @@ -126,8 +126,7 @@ public class RePublishFormDTO implements Serializable { /** * 报名条件 */ - @NotBlank(message = "报名条件不能为空", groups = {AddUserShowGroup.class}) - @Length(min=1, max=500,message = "报名条件限500字以内", groups = {AddUserShowGroup.class}) + @Length(max=500,message = "报名条件限500字以内", groups = {AddUserShowGroup.class}) private String requirement; /** diff --git a/epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/service/impl/WorkActDraftServiceImpl.java b/epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/service/impl/WorkActDraftServiceImpl.java index e622f5f9fb..da6a45db44 100644 --- a/epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/service/impl/WorkActDraftServiceImpl.java +++ b/epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/service/impl/WorkActDraftServiceImpl.java @@ -1,5 +1,6 @@ package com.epmet.service.impl; +import com.epmet.commons.tools.constant.StrConstant; import com.epmet.commons.tools.security.user.LoginUserUtil; import com.epmet.commons.tools.utils.DateUtils; import com.epmet.dto.LatestActContentDTO; @@ -182,7 +183,11 @@ public class WorkActDraftServiceImpl implements WorkActDraftService { latestActInfoDTO.setSignUpEndTime(signUpEndTime); } //招募要求 - latestActInfoDTO.setRequirement(formDTO.getRequirement()); + if(StringUtils.isNotBlank(formDTO.getRequirement())){ + latestActInfoDTO.setRequirement(formDTO.getRequirement()); + }else{ + latestActInfoDTO.setRequirement(StrConstant.NOT_FILLED); + } //活动预计开始时间 if(StringUtils.isNotBlank(formDTO.getActStartTime())){ Date actStartTime= DateUtils.minStrToSecondDate(formDTO.getActStartTime()); diff --git a/epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/service/impl/WorkActServiceImpl.java b/epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/service/impl/WorkActServiceImpl.java index 1936de361d..4656baf0ee 100644 --- a/epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/service/impl/WorkActServiceImpl.java +++ b/epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/service/impl/WorkActServiceImpl.java @@ -332,6 +332,9 @@ public class WorkActServiceImpl implements WorkActService { }else{ actInfoEntity.setPid(StrConstant.EPMETY_STR); } + if(StringUtils.isBlank(actInfoEntity.getRequirement())){ + actInfoEntity.setRequirement(StrConstant.NOT_FILLED); + } return actInfoEntity; } @@ -375,6 +378,9 @@ public class WorkActServiceImpl implements WorkActService { }else{ actInfoEntity.setPid(StrConstant.EPMETY_STR); } + if(StringUtils.isBlank(actInfoEntity.getRequirement())){ + actInfoEntity.setRequirement(StrConstant.NOT_FILLED); + } return actInfoEntity; } diff --git a/epmet-module/epmet-heart/epmet-heart-server/src/main/resources/db/migration/V0.0.2__updateactinfo.sql b/epmet-module/epmet-heart/epmet-heart-server/src/main/resources/db/migration/V0.0.2__updateactinfo.sql new file mode 100644 index 0000000000..e15cfae871 --- /dev/null +++ b/epmet-module/epmet-heart/epmet-heart-server/src/main/resources/db/migration/V0.0.2__updateactinfo.sql @@ -0,0 +1 @@ +alter table act_info MODIFY column REQUIREMENT VARCHAR(512) DEFAULT '' COMMENT '招募要求'; \ No newline at end of file From 38dbec117348ddcb848f93da79080470500e4a0a Mon Sep 17 00:00:00 2001 From: yinzuomei <576302893@qq.com> Date: Thu, 6 Aug 2020 10:26:28 +0800 Subject: [PATCH 10/24] =?UTF-8?q?130=EF=BC=9Aheart=3D>41?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../epmet-heart-server/deploy/docker-compose-dev.yml | 2 +- epmet-module/epmet-heart/epmet-heart-server/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/epmet-module/epmet-heart/epmet-heart-server/deploy/docker-compose-dev.yml b/epmet-module/epmet-heart/epmet-heart-server/deploy/docker-compose-dev.yml index a74ba3bc3d..48b868b0ce 100644 --- a/epmet-module/epmet-heart/epmet-heart-server/deploy/docker-compose-dev.yml +++ b/epmet-module/epmet-heart/epmet-heart-server/deploy/docker-compose-dev.yml @@ -2,7 +2,7 @@ version: "3.7" services: epmet-heart-server: container_name: epmet-heart-server-dev - image: 192.168.1.130:10080/epmet-cloud-dev/epmet-heart-server:0.0.40 + image: 192.168.1.130:10080/epmet-cloud-dev/epmet-heart-server:0.0.41 ports: - "8111:8111" network_mode: host # 使用现有网络 diff --git a/epmet-module/epmet-heart/epmet-heart-server/pom.xml b/epmet-module/epmet-heart/epmet-heart-server/pom.xml index 4e75ddecf8..7427d89f12 100644 --- a/epmet-module/epmet-heart/epmet-heart-server/pom.xml +++ b/epmet-module/epmet-heart/epmet-heart-server/pom.xml @@ -2,7 +2,7 @@ 4.0.0 - 0.0.40 + 0.0.41 com.epmet epmet-heart From e35be4e1e9c962c399fe30808cf97c9a618c2537 Mon Sep 17 00:00:00 2001 From: yinzuomei <576302893@qq.com> Date: Thu, 6 Aug 2020 10:33:42 +0800 Subject: [PATCH 11/24] =?UTF-8?q?=E4=BD=93=E9=AA=8C=E7=89=88=EF=BC=9Aheart?= =?UTF-8?q?=3D>41?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../epmet-heart-server/deploy/docker-compose-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/epmet-module/epmet-heart/epmet-heart-server/deploy/docker-compose-test.yml b/epmet-module/epmet-heart/epmet-heart-server/deploy/docker-compose-test.yml index 4a381aad89..a72e22e368 100644 --- a/epmet-module/epmet-heart/epmet-heart-server/deploy/docker-compose-test.yml +++ b/epmet-module/epmet-heart/epmet-heart-server/deploy/docker-compose-test.yml @@ -2,7 +2,7 @@ version: "3.7" services: epmet-heart-server: container_name: epmet-heart-server-test - image: registry-vpc.cn-qingdao.aliyuncs.com/epmet-cloud-release/epmet-heart-server:0.0.40 + image: registry-vpc.cn-qingdao.aliyuncs.com/epmet-cloud-release/epmet-heart-server:0.0.41 ports: - "8111:8111" network_mode: host # 使用现有网络 From dba5dfc1d968c87aa3d001ef1576d80da6ce8f6b Mon Sep 17 00:00:00 2001 From: yinzuomei <576302893@qq.com> Date: Thu, 6 Aug 2020 10:49:15 +0800 Subject: [PATCH 12/24] =?UTF-8?q?130=EF=BC=8Cheart\point+1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../epmet-heart-server/deploy/docker-compose-dev.yml | 2 +- epmet-module/epmet-heart/epmet-heart-server/pom.xml | 2 +- .../epmet-heart-server/src/main/resources/bootstrap.yml | 2 +- .../epmet-point-server/deploy/docker-compose-dev.yml | 2 +- epmet-module/epmet-point/epmet-point-server/pom.xml | 2 +- .../epmet-point-server/src/main/resources/bootstrap.yml | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/epmet-module/epmet-heart/epmet-heart-server/deploy/docker-compose-dev.yml b/epmet-module/epmet-heart/epmet-heart-server/deploy/docker-compose-dev.yml index a74ba3bc3d..48b868b0ce 100644 --- a/epmet-module/epmet-heart/epmet-heart-server/deploy/docker-compose-dev.yml +++ b/epmet-module/epmet-heart/epmet-heart-server/deploy/docker-compose-dev.yml @@ -2,7 +2,7 @@ version: "3.7" services: epmet-heart-server: container_name: epmet-heart-server-dev - image: 192.168.1.130:10080/epmet-cloud-dev/epmet-heart-server:0.0.40 + image: 192.168.1.130:10080/epmet-cloud-dev/epmet-heart-server:0.0.41 ports: - "8111:8111" network_mode: host # 使用现有网络 diff --git a/epmet-module/epmet-heart/epmet-heart-server/pom.xml b/epmet-module/epmet-heart/epmet-heart-server/pom.xml index 4e75ddecf8..7427d89f12 100644 --- a/epmet-module/epmet-heart/epmet-heart-server/pom.xml +++ b/epmet-module/epmet-heart/epmet-heart-server/pom.xml @@ -2,7 +2,7 @@ 4.0.0 - 0.0.40 + 0.0.41 com.epmet epmet-heart diff --git a/epmet-module/epmet-heart/epmet-heart-server/src/main/resources/bootstrap.yml b/epmet-module/epmet-heart/epmet-heart-server/src/main/resources/bootstrap.yml index fe8a9ba0d4..0ac5876e27 100644 --- a/epmet-module/epmet-heart/epmet-heart-server/src/main/resources/bootstrap.yml +++ b/epmet-module/epmet-heart/epmet-heart-server/src/main/resources/bootstrap.yml @@ -53,7 +53,7 @@ spring: # 数据迁移工具flyway flyway: - enabled: false + enabled: @spring.flyway.enabled@ locations: classpath:db/migration url: @datasource.druid.url@ user: @datasource.druid.username@ diff --git a/epmet-module/epmet-point/epmet-point-server/deploy/docker-compose-dev.yml b/epmet-module/epmet-point/epmet-point-server/deploy/docker-compose-dev.yml index 40fdbfdc04..6b361f8660 100644 --- a/epmet-module/epmet-point/epmet-point-server/deploy/docker-compose-dev.yml +++ b/epmet-module/epmet-point/epmet-point-server/deploy/docker-compose-dev.yml @@ -2,7 +2,7 @@ version: "3.7" services: epmet-point-server: container_name: epmet-point-server-dev - image: 192.168.1.130:10080/epmet-cloud-dev/epmet-point-server:0.0.33 + image: 192.168.1.130:10080/epmet-cloud-dev/epmet-point-server:0.0.34 ports: - "8112:8112" network_mode: host # 使用现有网络 diff --git a/epmet-module/epmet-point/epmet-point-server/pom.xml b/epmet-module/epmet-point/epmet-point-server/pom.xml index 3fda51dcd7..162a3dd9ed 100644 --- a/epmet-module/epmet-point/epmet-point-server/pom.xml +++ b/epmet-module/epmet-point/epmet-point-server/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - 0.0.33 + 0.0.34 epmet-point com.epmet diff --git a/epmet-module/epmet-point/epmet-point-server/src/main/resources/bootstrap.yml b/epmet-module/epmet-point/epmet-point-server/src/main/resources/bootstrap.yml index 0f4b3289d7..720887f6bd 100644 --- a/epmet-module/epmet-point/epmet-point-server/src/main/resources/bootstrap.yml +++ b/epmet-module/epmet-point/epmet-point-server/src/main/resources/bootstrap.yml @@ -53,7 +53,7 @@ spring: # 数据迁移工具flyway flyway: - enabled: false + enabled: @spring.flyway.enabled@ locations: classpath:db/migration url: @datasource.druid.url@ user: @datasource.druid.username@ From 541139fb0d702b2c8c58b229d244a879e5d280db Mon Sep 17 00:00:00 2001 From: yinzuomei <576302893@qq.com> Date: Thu, 6 Aug 2020 11:01:53 +0800 Subject: [PATCH 13/24] 130heart42 --- .../epmet-heart-server/deploy/docker-compose-dev.yml | 2 +- epmet-module/epmet-heart/epmet-heart-server/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/epmet-module/epmet-heart/epmet-heart-server/deploy/docker-compose-dev.yml b/epmet-module/epmet-heart/epmet-heart-server/deploy/docker-compose-dev.yml index 48b868b0ce..44f6c63ac8 100644 --- a/epmet-module/epmet-heart/epmet-heart-server/deploy/docker-compose-dev.yml +++ b/epmet-module/epmet-heart/epmet-heart-server/deploy/docker-compose-dev.yml @@ -2,7 +2,7 @@ version: "3.7" services: epmet-heart-server: container_name: epmet-heart-server-dev - image: 192.168.1.130:10080/epmet-cloud-dev/epmet-heart-server:0.0.41 + image: 192.168.1.130:10080/epmet-cloud-dev/epmet-heart-server:0.0.42 ports: - "8111:8111" network_mode: host # 使用现有网络 diff --git a/epmet-module/epmet-heart/epmet-heart-server/pom.xml b/epmet-module/epmet-heart/epmet-heart-server/pom.xml index 7427d89f12..0b24223812 100644 --- a/epmet-module/epmet-heart/epmet-heart-server/pom.xml +++ b/epmet-module/epmet-heart/epmet-heart-server/pom.xml @@ -2,7 +2,7 @@ 4.0.0 - 0.0.41 + 0.0.42 com.epmet epmet-heart From 45763bcf94c5fb23d136e131f76304b9c206dd03 Mon Sep 17 00:00:00 2001 From: yinzuomei <576302893@qq.com> Date: Thu, 6 Aug 2020 11:03:43 +0800 Subject: [PATCH 14/24] =?UTF-8?q?=E4=BD=93=E9=AA=8C=E7=89=88=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=E5=8D=87=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../epmet-heart-server/deploy/docker-compose-test.yml | 2 +- .../epmet-point-server/deploy/docker-compose-test.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/epmet-module/epmet-heart/epmet-heart-server/deploy/docker-compose-test.yml b/epmet-module/epmet-heart/epmet-heart-server/deploy/docker-compose-test.yml index a72e22e368..05632f1c83 100644 --- a/epmet-module/epmet-heart/epmet-heart-server/deploy/docker-compose-test.yml +++ b/epmet-module/epmet-heart/epmet-heart-server/deploy/docker-compose-test.yml @@ -2,7 +2,7 @@ version: "3.7" services: epmet-heart-server: container_name: epmet-heart-server-test - image: registry-vpc.cn-qingdao.aliyuncs.com/epmet-cloud-release/epmet-heart-server:0.0.41 + image: registry-vpc.cn-qingdao.aliyuncs.com/epmet-cloud-release/epmet-heart-server:0.0.42 ports: - "8111:8111" network_mode: host # 使用现有网络 diff --git a/epmet-module/epmet-point/epmet-point-server/deploy/docker-compose-test.yml b/epmet-module/epmet-point/epmet-point-server/deploy/docker-compose-test.yml index fa710c245b..1f8607180a 100644 --- a/epmet-module/epmet-point/epmet-point-server/deploy/docker-compose-test.yml +++ b/epmet-module/epmet-point/epmet-point-server/deploy/docker-compose-test.yml @@ -2,7 +2,7 @@ version: "3.7" services: epmet-point-server: container_name: epmet-point-server-test - image: registry-vpc.cn-qingdao.aliyuncs.com/epmet-cloud-release/epmet-point-server:0.0.33 + image: registry-vpc.cn-qingdao.aliyuncs.com/epmet-cloud-release/epmet-point-server:0.0.34 ports: - "8112:8112" network_mode: host # 使用现有网络 From 56b3bc4188f95d003f775958959f101d23efcd78 Mon Sep 17 00:00:00 2001 From: yinzuomei <576302893@qq.com> Date: Thu, 6 Aug 2020 11:16:47 +0800 Subject: [PATCH 15/24] flyway.enabledxiugai --- .../data-statistical-server/src/main/resources/bootstrap.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/epmet-module/data-statistical/data-statistical-server/src/main/resources/bootstrap.yml b/epmet-module/data-statistical/data-statistical-server/src/main/resources/bootstrap.yml index f148ea791b..a475fa198f 100644 --- a/epmet-module/data-statistical/data-statistical-server/src/main/resources/bootstrap.yml +++ b/epmet-module/data-statistical/data-statistical-server/src/main/resources/bootstrap.yml @@ -53,7 +53,7 @@ spring: # 数据迁移工具flyway flyway: - enabled: false + enabled: @spring.flyway.enabled@ locations: classpath:db/migration url: @datasource.druid.stats.url@ user: @datasource.druid.stats.username@ From 88d2652364b3b3e3ccd392d5ed33c2f6da8b876f Mon Sep 17 00:00:00 2001 From: wangchao Date: Thu, 6 Aug 2020 14:31:46 +0800 Subject: [PATCH 16/24] =?UTF-8?q?=E7=A7=AF=E5=88=86=E6=A0=B8=E9=94=80?= =?UTF-8?q?=E7=9A=84=E7=BB=93=E6=9E=9C=E5=A4=B1=E6=95=88=E6=9C=9F=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E4=B8=BA=E5=8D=81=E5=88=86=E9=92=9F=EF=BC=8C=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E5=9F=BA=E7=A1=80=E4=BF=A1=E6=81=AF=E7=BC=93=E5=AD=98?= =?UTF-8?q?=E5=A4=B1=E6=95=88=E6=9C=9F=E8=AE=BE=E7=BD=AE=E4=B8=BA=E4=B8=83?= =?UTF-8?q?=E5=A4=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/epmet/redis/PointRedis.java | 2 +- .../src/main/java/com/epmet/redis/UserBaseInfoRedis.java | 3 ++- .../java/com/epmet/service/impl/UserResiInfoServiceImpl.java | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/epmet-module/epmet-point/epmet-point-server/src/main/java/com/epmet/redis/PointRedis.java b/epmet-module/epmet-point/epmet-point-server/src/main/java/com/epmet/redis/PointRedis.java index 7ed5afbfe7..b65e80d705 100644 --- a/epmet-module/epmet-point/epmet-point-server/src/main/java/com/epmet/redis/PointRedis.java +++ b/epmet-module/epmet-point/epmet-point-server/src/main/java/com/epmet/redis/PointRedis.java @@ -20,7 +20,7 @@ public class PointRedis { public void lpush(String userId , PointExchangeResponseResultDTO verificationResult){ - redisUtils.leftPush(RedisKeys.getPointVerificationResultKey(userId),verificationResult); + redisUtils.leftPush(RedisKeys.getPointVerificationResultKey(userId),verificationResult,redisUtils.MINUTE_TEN_EXPIRE); } public Object lindex(String userId,Long index){ return redisUtils.lindex(RedisKeys.getPointVerificationResultKey(userId),index); diff --git a/epmet-user/epmet-user-server/src/main/java/com/epmet/redis/UserBaseInfoRedis.java b/epmet-user/epmet-user-server/src/main/java/com/epmet/redis/UserBaseInfoRedis.java index bfb4ff6110..006e6a52c1 100644 --- a/epmet-user/epmet-user-server/src/main/java/com/epmet/redis/UserBaseInfoRedis.java +++ b/epmet-user/epmet-user-server/src/main/java/com/epmet/redis/UserBaseInfoRedis.java @@ -83,7 +83,8 @@ public class UserBaseInfoRedis { String key = UserRedisKeys.getResiUserKey(baseInfo.getUserId()); //bean to map Map map = BeanUtil.beanToMap(baseInfo, false, true); - redisUtils.hMSet(key, map,NOT_EXPIRE); + //用户缓存的有效期为七天 + redisUtils.hMSet(key, map,RedisUtils.DEFAULT_EXPIRE * NumConstant.SEVEN); } public String get(String id){ diff --git a/epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/UserResiInfoServiceImpl.java b/epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/UserResiInfoServiceImpl.java index 9534e42cdc..c3d4efaca1 100644 --- a/epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/UserResiInfoServiceImpl.java +++ b/epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/UserResiInfoServiceImpl.java @@ -175,11 +175,11 @@ public class UserResiInfoServiceImpl extends BaseServiceImpl Date: Thu, 6 Aug 2020 14:44:08 +0800 Subject: [PATCH 17/24] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=B8=85=E9=99=A4?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E7=BC=93=E5=AD=98=E7=9A=84=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=20epmet/userbaseinfo/clearusercache?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../epmet/controller/UserBaseInfoController.java | 14 ++++++++++++++ .../java/com/epmet/redis/UserBaseInfoRedis.java | 14 ++++++++++++++ .../com/epmet/service/UserBaseInfoService.java | 9 +++++++++ .../service/impl/UserBaseInfoServiceImpl.java | 13 +++++++++++++ 4 files changed, 50 insertions(+) diff --git a/epmet-user/epmet-user-server/src/main/java/com/epmet/controller/UserBaseInfoController.java b/epmet-user/epmet-user-server/src/main/java/com/epmet/controller/UserBaseInfoController.java index c54a5248cf..c895f10197 100644 --- a/epmet-user/epmet-user-server/src/main/java/com/epmet/controller/UserBaseInfoController.java +++ b/epmet-user/epmet-user-server/src/main/java/com/epmet/controller/UserBaseInfoController.java @@ -176,4 +176,18 @@ public class UserBaseInfoController { userBaseInfoService.saveUserBaseInfoWhenAuthVolunteer(param); return new Result(); } + + /** + * @Description 清除用户缓存信息 + * @param userIds + * @return + * @author wangc + * @date 2020.08.06 14:41 + **/ + @PostMapping("clearusercache") + public Result clearUserCache(@RequestBody List userIds){ + userBaseInfoService.clearUserCache(userIds); + return new Result(); + } } + diff --git a/epmet-user/epmet-user-server/src/main/java/com/epmet/redis/UserBaseInfoRedis.java b/epmet-user/epmet-user-server/src/main/java/com/epmet/redis/UserBaseInfoRedis.java index 006e6a52c1..a2439d4dcd 100644 --- a/epmet-user/epmet-user-server/src/main/java/com/epmet/redis/UserBaseInfoRedis.java +++ b/epmet-user/epmet-user-server/src/main/java/com/epmet/redis/UserBaseInfoRedis.java @@ -255,6 +255,20 @@ public class UserBaseInfoRedis { } + /** + * @Description 批量清楚用户缓存信息 + * @param userIds + * @return + * @author wangc + * @date 2020.08.06 14:34 + **/ + public void clearUserCache(List userIds){ + userIds.forEach(id ->{ + if(StringUtils.isNotBlank(id)) { + redisUtils.delete(UserRedisKeys.getResiUserKey(id)); + } + }); + } public void mergeObject(T origin, T destination) { if (origin == null || destination == null) diff --git a/epmet-user/epmet-user-server/src/main/java/com/epmet/service/UserBaseInfoService.java b/epmet-user/epmet-user-server/src/main/java/com/epmet/service/UserBaseInfoService.java index 060f8385f1..33e27f88a6 100644 --- a/epmet-user/epmet-user-server/src/main/java/com/epmet/service/UserBaseInfoService.java +++ b/epmet-user/epmet-user-server/src/main/java/com/epmet/service/UserBaseInfoService.java @@ -152,4 +152,13 @@ public interface UserBaseInfoService extends BaseService { * @date 2020.07.31 09:38 **/ void saveUserBaseInfoWhenAuthVolunteer(ResiVolunteerAuthenticateFormDTO param); + + /** + * @Description 清除用户缓存信息 + * @param ids + * @return + * @author wangc + * @date 2020.08.06 14:38 + **/ + void clearUserCache(List ids); } diff --git a/epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/UserBaseInfoServiceImpl.java b/epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/UserBaseInfoServiceImpl.java index 019a790f73..ccf719e385 100644 --- a/epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/UserBaseInfoServiceImpl.java +++ b/epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/UserBaseInfoServiceImpl.java @@ -283,4 +283,17 @@ public class UserBaseInfoServiceImpl extends BaseServiceImpl ids) { + if(null == ids || ids.isEmpty()) return; + userBaseInfoRedis.clearUserCache(ids); + } } From 0d184276b0e4c855927d808622374a52439fb95c Mon Sep 17 00:00:00 2001 From: wangchao Date: Thu, 6 Aug 2020 14:57:33 +0800 Subject: [PATCH 18/24] user+1 -> 35 user+1 -> 109 --- .../epmet-point-server/deploy/docker-compose-dev.yml | 2 +- epmet-module/epmet-point/epmet-point-server/pom.xml | 2 +- epmet-user/epmet-user-server/deploy/docker-compose-dev.yml | 2 +- epmet-user/epmet-user-server/pom.xml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/epmet-module/epmet-point/epmet-point-server/deploy/docker-compose-dev.yml b/epmet-module/epmet-point/epmet-point-server/deploy/docker-compose-dev.yml index 6b361f8660..0f2b92b05c 100644 --- a/epmet-module/epmet-point/epmet-point-server/deploy/docker-compose-dev.yml +++ b/epmet-module/epmet-point/epmet-point-server/deploy/docker-compose-dev.yml @@ -2,7 +2,7 @@ version: "3.7" services: epmet-point-server: container_name: epmet-point-server-dev - image: 192.168.1.130:10080/epmet-cloud-dev/epmet-point-server:0.0.34 + image: 192.168.1.130:10080/epmet-cloud-dev/epmet-point-server:0.0.35 ports: - "8112:8112" network_mode: host # 使用现有网络 diff --git a/epmet-module/epmet-point/epmet-point-server/pom.xml b/epmet-module/epmet-point/epmet-point-server/pom.xml index 162a3dd9ed..5b5301a1e0 100644 --- a/epmet-module/epmet-point/epmet-point-server/pom.xml +++ b/epmet-module/epmet-point/epmet-point-server/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - 0.0.34 + 0.0.35 epmet-point com.epmet diff --git a/epmet-user/epmet-user-server/deploy/docker-compose-dev.yml b/epmet-user/epmet-user-server/deploy/docker-compose-dev.yml index 212fd27bf0..19e4acda93 100644 --- a/epmet-user/epmet-user-server/deploy/docker-compose-dev.yml +++ b/epmet-user/epmet-user-server/deploy/docker-compose-dev.yml @@ -2,7 +2,7 @@ version: "3.7" services: epmet-user-server: container_name: epmet-user-server-dev - image: 192.168.1.130:10080/epmet-cloud-dev/epmet-user-server:0.3.108 + image: 192.168.1.130:10080/epmet-cloud-dev/epmet-user-server:0.3.109 ports: - "8087:8087" network_mode: host # 不会创建新的网络 diff --git a/epmet-user/epmet-user-server/pom.xml b/epmet-user/epmet-user-server/pom.xml index c914d5b088..33f9085da5 100644 --- a/epmet-user/epmet-user-server/pom.xml +++ b/epmet-user/epmet-user-server/pom.xml @@ -2,7 +2,7 @@ 4.0.0 - 0.3.108 + 0.3.109 com.epmet epmet-user From 25f142eeb45251dd2b73caeb5fbe1930e0154ba5 Mon Sep 17 00:00:00 2001 From: wangchao Date: Thu, 6 Aug 2020 15:48:03 +0800 Subject: [PATCH 19/24] =?UTF-8?q?=E7=A7=AF=E5=88=86=E6=A0=B8=E9=94=80?= =?UTF-8?q?=E6=97=B6=E7=A7=AF=E5=88=86=E4=B8=8D=E8=83=BD=E4=B8=BA=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../epmet/service/impl/PointVerificationLogServiceImpl.java | 5 +++++ .../src/main/java/com/epmet/utils/ModuleConstant.java | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/epmet-module/epmet-point/epmet-point-server/src/main/java/com/epmet/service/impl/PointVerificationLogServiceImpl.java b/epmet-module/epmet-point/epmet-point-server/src/main/java/com/epmet/service/impl/PointVerificationLogServiceImpl.java index f32e1f607f..14194f057f 100644 --- a/epmet-module/epmet-point/epmet-point-server/src/main/java/com/epmet/service/impl/PointVerificationLogServiceImpl.java +++ b/epmet-module/epmet-point/epmet-point-server/src/main/java/com/epmet/service/impl/PointVerificationLogServiceImpl.java @@ -239,6 +239,11 @@ public class PointVerificationLogServiceImpl extends BaseServiceImpl Date: Thu, 6 Aug 2020 15:55:50 +0800 Subject: [PATCH 20/24] =?UTF-8?q?=E5=8A=A0=E6=80=A5=EF=BC=8C=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E5=9F=9F=E5=90=8D=EF=BC=8C=E5=B7=B2=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E7=B1=BB=E7=9B=AE=EF=BC=8C=E5=9F=BA=E6=9C=AC=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../epmet/dto/form/SubmitAuditFormDTO.java | 5 + .../dto/result/AccountBasicInfoResultDTO.java | 129 ++++++++++++++++++ .../dto/result/GetCategoryResultDTO.java | 69 ++++++++++ .../dto/result/SupportVersionResultDTO.java | 2 +- .../com/epmet/controller/CodeController.java | 12 +- .../controller/PaCustomerController.java | 30 +++- .../com/epmet/dao/AuthorizationInfoDao.java | 9 ++ .../java/com/epmet/service/CodeService.java | 9 ++ .../com/epmet/service/PaCustomerService.java | 18 +++ .../epmet/service/impl/CodeServiceImpl.java | 44 ++++-- .../service/impl/PaCustomerServiceImpl.java | 39 +++++- .../wxapi/constant/WxMaCodeConstant.java | 13 ++ .../wxapi/param/WxMaSpeedUpAuditReq.java | 21 +++ .../epmet/wxapi/result/WxBasicInfoResult.java | 66 +++++++++ .../wxapi/result/WxOpenGetCategoryResult.java | 44 ++++++ .../wxapi/result/WxSupportVersionResult.java | 2 +- .../epmet/wxapi/service/WxMaCodeService.java | 30 ++++ .../service/impl/WxMaCodeServiceImpl.java | 59 ++++++++ .../resources/mapper/AuthorizationInfoDao.xml | 8 ++ .../service/impl/CustomerServiceImpl.java | 8 ++ 20 files changed, 595 insertions(+), 22 deletions(-) create mode 100644 epmet-module/epmet-third/epmet-third-client/src/main/java/com/epmet/dto/result/AccountBasicInfoResultDTO.java create mode 100644 epmet-module/epmet-third/epmet-third-client/src/main/java/com/epmet/dto/result/GetCategoryResultDTO.java create mode 100644 epmet-module/epmet-third/epmet-third-server/src/main/java/com/epmet/wxapi/param/WxMaSpeedUpAuditReq.java create mode 100644 epmet-module/epmet-third/epmet-third-server/src/main/java/com/epmet/wxapi/result/WxBasicInfoResult.java create mode 100644 epmet-module/epmet-third/epmet-third-server/src/main/java/com/epmet/wxapi/result/WxOpenGetCategoryResult.java diff --git a/epmet-module/epmet-third/epmet-third-client/src/main/java/com/epmet/dto/form/SubmitAuditFormDTO.java b/epmet-module/epmet-third/epmet-third-client/src/main/java/com/epmet/dto/form/SubmitAuditFormDTO.java index 222250510f..9c2f1c506f 100644 --- a/epmet-module/epmet-third/epmet-third-client/src/main/java/com/epmet/dto/form/SubmitAuditFormDTO.java +++ b/epmet-module/epmet-third/epmet-third-client/src/main/java/com/epmet/dto/form/SubmitAuditFormDTO.java @@ -20,6 +20,11 @@ public class SubmitAuditFormDTO implements Serializable { */ private String codeId; + /** + * 是否加急 + */ + private Boolean isSpeed; + /** * 小程序版本说明和功能解释 */ diff --git a/epmet-module/epmet-third/epmet-third-client/src/main/java/com/epmet/dto/result/AccountBasicInfoResultDTO.java b/epmet-module/epmet-third/epmet-third-client/src/main/java/com/epmet/dto/result/AccountBasicInfoResultDTO.java new file mode 100644 index 0000000000..4a6f221c8d --- /dev/null +++ b/epmet-module/epmet-third/epmet-third-client/src/main/java/com/epmet/dto/result/AccountBasicInfoResultDTO.java @@ -0,0 +1,129 @@ +package com.epmet.dto.result; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.io.Serializable; + +/** + * @author zhaoqifeng + * @dscription + * @date 2020/8/6 10:50 + */ +@NoArgsConstructor +@Data +public class AccountBasicInfoResultDTO implements Serializable { + + private static final long serialVersionUID = -5111203845293330004L; + /** + * 帐号 appid + */ + @SerializedName("appid") + private String appid; + /** + * 帐号类型(1:订阅号,2:服务号,3:小程序) + */ + @SerializedName("account_type") + private Integer accountType; + /** + * 主体类型 0.个人 1.企业 2.媒体 3.政府 4.其他组织 + */ + @SerializedName("principal_type") + private Integer principalType; + /** + * 主体名称 + */ + @SerializedName("principal_name") + private String principalName; + /** + * 实名验证状态 1.实名验证成功 2.实名验证中 3.实名验证失败 + */ + @SerializedName("realname_status") + private Integer realnameStatus; + /** + * 微信认证信息 + */ + @SerializedName("wx_verify_info") + private WxVerifyInfoBean wxVerifyInfo; + /** + * 功能介绍信息 + */ + @SerializedName("signature_info") + private SignatureInfoBean signatureInfo; + /** + * 头像信息 + */ + @SerializedName("head_image_info") + private HeadImageInfoBean headImageInfo; + + @NoArgsConstructor + @Data + public static class WxVerifyInfoBean { + /** + * 是否资质认证,若是,拥有微信认证相关的权限。 + */ + @SerializedName("qualification_verify") + private Boolean qualificationVerify; + /** + * 是否名称认证 + */ + @SerializedName("naming_verify") + private Boolean namingVerify; + /** + * 是否需要年审(qualification_verify == true 时才有该字段) + */ + @SerializedName("annual_review") + private Boolean annualReview; + /** + * 年审开始时间,时间戳(qualification_verify == true 时才有该字段) + */ + @SerializedName("annual_review_begin_time") + private String annualReviewBeginTime; + /** + * 年审截止时间,时间戳(qualification_verify == true 时才有该字段) + */ + @SerializedName("annual_review_end_time") + private String annualReviewEndTime; + } + + @NoArgsConstructor + @Data + public static class SignatureInfoBean { + /** + * 功能介绍 + */ + @SerializedName("signature") + private String signature; + /** + * 功能介绍已使用修改次数(本月) + */ + @SerializedName("modify_used_count") + private Integer modifyUsedCount; + /** + * 功能介绍修改次数总额度(本月) + */ + @SerializedName("modify_quota") + private Integer modifyQuota; + } + + @NoArgsConstructor + @Data + public static class HeadImageInfoBean { + /** + * 头像 url + */ + @SerializedName("head_image_url") + private String headImageUrl; + /** + * 头像已使用修改次数(本月) + */ + @SerializedName("modify_used_count") + private Integer modifyUsedCount; + /** + * 头像修改次数总额度(本月) + */ + @SerializedName("modify_quota") + private Integer modifyQuota; + } +} diff --git a/epmet-module/epmet-third/epmet-third-client/src/main/java/com/epmet/dto/result/GetCategoryResultDTO.java b/epmet-module/epmet-third/epmet-third-client/src/main/java/com/epmet/dto/result/GetCategoryResultDTO.java new file mode 100644 index 0000000000..9dd7117852 --- /dev/null +++ b/epmet-module/epmet-third/epmet-third-client/src/main/java/com/epmet/dto/result/GetCategoryResultDTO.java @@ -0,0 +1,69 @@ +package com.epmet.dto.result; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.io.Serializable; +import java.util.List; + +/** + * @author zhaoqifeng + * @dscription + * @date 2020/8/6 10:03 + */ +@NoArgsConstructor +@Data +public class GetCategoryResultDTO implements Serializable { + + private static final long serialVersionUID = -6803569581887971887L; + /** + * 一个更改周期内可以添加类目的次数 + */ + private Integer limit; + /** + * 本更改周期内还可以添加类目的次数 + */ + private Integer quota; + /** + * 最多可以设置的类目数量 + */ + private Integer categoryLimit; + /** + * 已设置的类目信息列表 + */ + private List categories; + + @NoArgsConstructor + @Data + public static class CategoriesBean { + /** + * 一级类目 ID + */ + private Integer first; + /** + * 一级类目名称 + */ + @SerializedName("first_name") + private String firstName; + /** + * 二级类目 ID + */ + private Integer second; + /** + * 二级类目名称 + */ + @SerializedName("second_name") + private String secondName; + /** + * 审核状态(1 审核中 2 审核不通过 3 审核通过) + */ + @SerializedName("audit_status") + private Integer auditStatus; + /** + * 审核不通过的原因 + */ + @SerializedName("audit_reason") + private String auditReason; + } +} diff --git a/epmet-module/epmet-third/epmet-third-client/src/main/java/com/epmet/dto/result/SupportVersionResultDTO.java b/epmet-module/epmet-third/epmet-third-client/src/main/java/com/epmet/dto/result/SupportVersionResultDTO.java index 6a75b4972c..57092a3755 100644 --- a/epmet-module/epmet-third/epmet-third-client/src/main/java/com/epmet/dto/result/SupportVersionResultDTO.java +++ b/epmet-module/epmet-third/epmet-third-client/src/main/java/com/epmet/dto/result/SupportVersionResultDTO.java @@ -31,7 +31,7 @@ public class SupportVersionResultDTO implements Serializable { /** * 百分比 */ - private int percentage; + private Integer percentage; /** * 基础库版本号 */ diff --git a/epmet-module/epmet-third/epmet-third-server/src/main/java/com/epmet/controller/CodeController.java b/epmet-module/epmet-third/epmet-third-server/src/main/java/com/epmet/controller/CodeController.java index 36e561394e..25cc536e72 100644 --- a/epmet-module/epmet-third/epmet-third-server/src/main/java/com/epmet/controller/CodeController.java +++ b/epmet-module/epmet-third/epmet-third-server/src/main/java/com/epmet/controller/CodeController.java @@ -6,10 +6,8 @@ import com.epmet.dto.form.*; import com.epmet.dto.result.*; import com.epmet.service.CodeService; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.*; import java.util.List; @@ -203,4 +201,10 @@ public class CodeController { List result = codeService.getCategory(formDTO); return new Result>().ok(result); } + + @PostMapping("setdomain/{customerId}") + public Result setDomain(@PathVariable("customerId") String customerId) { + codeService.setDomain(customerId); + return new Result<>(); + } } diff --git a/epmet-module/epmet-third/epmet-third-server/src/main/java/com/epmet/controller/PaCustomerController.java b/epmet-module/epmet-third/epmet-third-server/src/main/java/com/epmet/controller/PaCustomerController.java index cbff84f9e3..ef9f3d3425 100644 --- a/epmet-module/epmet-third/epmet-third-server/src/main/java/com/epmet/controller/PaCustomerController.java +++ b/epmet-module/epmet-third/epmet-third-server/src/main/java/com/epmet/controller/PaCustomerController.java @@ -137,7 +137,7 @@ public class PaCustomerController { * @return com.epmet.commons.tools.utils.Result */ @PostMapping(value = "getweappsupportversion") - public Result getSupportVersion( @RequestBody CustomerClientFormDTO formDTO) { + public Result getSupportVersion(@RequestBody CustomerClientFormDTO formDTO) { return new Result().ok( paCustomerService.getSupportVersion(formDTO)); } @@ -149,9 +149,35 @@ public class PaCustomerController { * @return com.epmet.commons.tools.utils.Result */ @PostMapping(value = "setweappsupportversion") - public Result setSupportVersion( @RequestBody CustomerClientFormDTO formDTO) { + public Result setSupportVersion(@RequestBody CustomerClientFormDTO formDTO) { paCustomerService.getSupportVersion(formDTO); return new Result(); } + + /** + * 获取已设置的所有类目 + * @author zhaoqifeng + * @date 2020/8/6 14:36 + * @param formDTO + * @return com.epmet.commons.tools.utils.Result + */ + @PostMapping(value = "getcategory") + public Result getSetCategory(@RequestBody CustomerClientFormDTO formDTO) { + return new Result().ok(paCustomerService.getSetCategory(formDTO)); + } + + /** + * 获取基本信息 + * @author zhaoqifeng + * @date 2020/8/6 14:36 + * @param formDTO + * @return com.epmet.commons.tools.utils.Result + */ + @PostMapping(value = "getaccountbasicinfo") + public Result getAccountBasicInfo(@RequestBody CustomerClientFormDTO formDTO) { + return new Result().ok(paCustomerService.getAccountBasicInfo(formDTO)); + } + + } diff --git a/epmet-module/epmet-third/epmet-third-server/src/main/java/com/epmet/dao/AuthorizationInfoDao.java b/epmet-module/epmet-third/epmet-third-server/src/main/java/com/epmet/dao/AuthorizationInfoDao.java index 3d26bcffab..88ba820fba 100644 --- a/epmet-module/epmet-third/epmet-third-server/src/main/java/com/epmet/dao/AuthorizationInfoDao.java +++ b/epmet-module/epmet-third/epmet-third-server/src/main/java/com/epmet/dao/AuthorizationInfoDao.java @@ -90,4 +90,13 @@ public interface AuthorizationInfoDao extends BaseDao { */ AuthCodeResultDTO selectCustomerIdByAuthAppId(@Param("authAppId")String authAppId); + /** + * 根据客户ID,客户端类型获取授权信息 + * @author zhaoqifeng + * @date 2020/8/6 15:36 + * @param customerId + * @return java.util.List + */ + List getAuthInfoByCustomerId(@Param("customerId") String customerId); + } \ No newline at end of file diff --git a/epmet-module/epmet-third/epmet-third-server/src/main/java/com/epmet/service/CodeService.java b/epmet-module/epmet-third/epmet-third-server/src/main/java/com/epmet/service/CodeService.java index cdd7123ade..19928c70f6 100644 --- a/epmet-module/epmet-third/epmet-third-server/src/main/java/com/epmet/service/CodeService.java +++ b/epmet-module/epmet-third/epmet-third-server/src/main/java/com/epmet/service/CodeService.java @@ -139,4 +139,13 @@ public interface CodeService { */ List getCategory(CodeCommonFormDTO formDTO); + /** + * 设置服务器域名和业务域名 + * @author zhaoqifeng + * @date 2020/8/6 15:34 + * @param customerId + * @return int + */ + void setDomain(String customerId); + } diff --git a/epmet-module/epmet-third/epmet-third-server/src/main/java/com/epmet/service/PaCustomerService.java b/epmet-module/epmet-third/epmet-third-server/src/main/java/com/epmet/service/PaCustomerService.java index fec268261b..88259e13c9 100644 --- a/epmet-module/epmet-third/epmet-third-server/src/main/java/com/epmet/service/PaCustomerService.java +++ b/epmet-module/epmet-third/epmet-third-server/src/main/java/com/epmet/service/PaCustomerService.java @@ -186,4 +186,22 @@ public interface PaCustomerService extends BaseService { * @return void */ void setSupportVersion(CustomerClientFormDTO formDTO); + + /** + * 获取已设置的所有类目 + * @author zhaoqifeng + * @date 2020/8/6 14:36 + * @param formDTO + * @return com.epmet.dto.result.GetCategoryResultDTO + */ + GetCategoryResultDTO getSetCategory(CustomerClientFormDTO formDTO); + + /** + * 获取基本信息 + * @author zhaoqifeng + * @date 2020/8/6 14:36 + * @param formDTO + * @return com.epmet.dto.result.AccountBasicInfoResultDTO + */ + AccountBasicInfoResultDTO getAccountBasicInfo(CustomerClientFormDTO formDTO); } \ No newline at end of file diff --git a/epmet-module/epmet-third/epmet-third-server/src/main/java/com/epmet/service/impl/CodeServiceImpl.java b/epmet-module/epmet-third/epmet-third-server/src/main/java/com/epmet/service/impl/CodeServiceImpl.java index 836261721b..a922fbd20b 100644 --- a/epmet-module/epmet-third/epmet-third-server/src/main/java/com/epmet/service/impl/CodeServiceImpl.java +++ b/epmet-module/epmet-third/epmet-third-server/src/main/java/com/epmet/service/impl/CodeServiceImpl.java @@ -166,19 +166,6 @@ public class CodeServiceImpl implements CodeService { codeCustomerDTO.setStatus(CodeConstant.UNAUDITED); String codeId = codeCustomerService.save(codeCustomerDTO); - //设置服务器域名 - wxResult = wxMaCodeService.modifyDomain(authInfo.getAuthorizerAccessToken()); - if (!wxResult.success()) { - saveOperation(formDTO.getCustomerId(), null, formDTO.getUserVersion(), CodeConstant.OPER_UPLOAD, wxResult.getErrorMsg()); - throw new RenException(wxResult.getErrorCode(), wxResult.getErrorMsg()); - } - //设置业务域名 - wxResult = wxMaCodeService.setWebviewDomain(authInfo.getAuthorizerAccessToken()); - if (!wxResult.success()) { - saveOperation(formDTO.getCustomerId(), null, formDTO.getUserVersion(), CodeConstant.OPER_UPLOAD, wxResult.getErrorMsg()); - throw new RenException(wxResult.getErrorCode(), wxResult.getErrorMsg()); - } - saveOperation(formDTO.getCustomerId(), codeId, formDTO.getUserVersion(), CodeConstant.OPER_UPLOAD, "上传成功"); } @@ -250,6 +237,17 @@ public class CodeServiceImpl implements CodeService { wxResult.getErrorMsg()); throw new RenException(wxResult.getErrorCode(), wxResult.getErrorMsg()); } + if(formDTO.getIsSpeed()) { + //调用微信API 加急审核 + WxMaSpeedUpAuditReq speedRequest = new WxMaSpeedUpAuditReq(); + speedRequest.setAuditId(wxResult.getData()); + WxResult wxSpeedResult = wxMaCodeService.speedUpAudit(authInfo.getAuthorizerAccessToken(), speedRequest); + if (!wxSpeedResult.success()) { + saveOperation(codeCustomerDTO.getCustomerId(), codeCustomerDTO.getId(), codeCustomerDTO.getUserVersion(), CodeConstant.OPER_SUBMIT, + wxSpeedResult.getErrorMsg()); + throw new RenException(wxSpeedResult.getErrorCode(), wxSpeedResult.getErrorMsg()); + } + } //获取审核结果信息 CodeAuditResultDTO codeAuditResultDTO = codeAuditResultService.getAuditResultByCodeId(formDTO.getCodeId()); if (null == codeAuditResultDTO) { @@ -504,6 +502,26 @@ public class CodeServiceImpl implements CodeService { return ConvertUtils.sourceToTarget(wxResult.getData(), CategoryResultDTO.class); } + @Override + public void setDomain(String customerId) { + List authInfoList = authorizationInfoDao.getAuthInfoByCustomerId(customerId); + if (null == authInfoList || authInfoList.size() == NumConstant.ZERO) { + throw new RenException("没有有效的Access Token"); + } + authInfoList.forEach(authInfo -> { + //设置服务器域名 + WxResult wxResult = wxMaCodeService.modifyDomain(authInfo.getAuthorizerAccessToken()); + if (!wxResult.success()) { + throw new RenException(wxResult.getErrorCode(), wxResult.getErrorMsg()); + } + //设置业务域名 + wxResult = wxMaCodeService.setWebviewDomain(authInfo.getAuthorizerAccessToken()); + if (!wxResult.success()) { + throw new RenException(wxResult.getErrorCode(), wxResult.getErrorMsg()); + } + }); + } + private void saveOperation(String customerId, String codeId, String version, String operation, String describe) { CodeOperationHistoryDTO operationDTO = new CodeOperationHistoryDTO(); operationDTO.setCustomerId(customerId); diff --git a/epmet-module/epmet-third/epmet-third-server/src/main/java/com/epmet/service/impl/PaCustomerServiceImpl.java b/epmet-module/epmet-third/epmet-third-server/src/main/java/com/epmet/service/impl/PaCustomerServiceImpl.java index 3e2f971062..806be0f664 100644 --- a/epmet-module/epmet-third/epmet-third-server/src/main/java/com/epmet/service/impl/PaCustomerServiceImpl.java +++ b/epmet-module/epmet-third/epmet-third-server/src/main/java/com/epmet/service/impl/PaCustomerServiceImpl.java @@ -31,7 +31,6 @@ import com.epmet.commons.tools.redis.RedisUtils; import com.epmet.commons.tools.security.dto.TokenDto; import com.epmet.commons.tools.utils.ConvertUtils; import com.epmet.commons.tools.utils.CpUserDetailRedis; -import com.epmet.constant.CodeConstant; import com.epmet.constant.PaConstant; import com.epmet.dao.*; import com.epmet.dto.*; @@ -44,6 +43,8 @@ import com.epmet.service.PaCustomerAgencyService; import com.epmet.service.PaCustomerService; import com.epmet.service.PaCustomerUserAgencyService; import com.epmet.wxapi.param.WxSetWeAppSupportVersionReq; +import com.epmet.wxapi.result.WxBasicInfoResult; +import com.epmet.wxapi.result.WxOpenGetCategoryResult; import com.epmet.wxapi.result.WxResult; import com.epmet.wxapi.result.WxSupportVersionResult; import com.epmet.wxapi.service.WxMaCodeService; @@ -596,4 +597,40 @@ public class PaCustomerServiceImpl extends BaseServiceImpl wxResult = wxMaCodeService.getSetCategory(authInfo.getAuthorizerAccessToken()); + if (!wxResult.success()) { + throw new RenException(wxResult.getErrorCode(), wxResult.getErrorMsg()); + } + WxOpenGetCategoryResult categoryResult = wxResult.getData(); + result = ConvertUtils.sourceToTarget(categoryResult, GetCategoryResultDTO.class); + return result; + } + + @Override + public AccountBasicInfoResultDTO getAccountBasicInfo(CustomerClientFormDTO formDTO) { + //获取小程序调用令牌 + AccountBasicInfoResultDTO result; + AuthorizationInfoDTO authInfo = authorizationInfoDao.getAuthInfoByCustomer(formDTO.getCustomerId(), formDTO.getClientType()); + if (null == authInfo) { + throw new RenException("未授权"); + } + //调用微信API + WxResult wxResult = wxMaCodeService.getAccountBasicInfo(authInfo.getAuthorizerAccessToken()); + if (!wxResult.success()) { + throw new RenException(wxResult.getErrorCode(), wxResult.getErrorMsg()); + } + WxBasicInfoResult basicInfoResult = wxResult.getData(); + result = ConvertUtils.sourceToTarget(basicInfoResult, AccountBasicInfoResultDTO.class); + return result; + } + } \ No newline at end of file diff --git a/epmet-module/epmet-third/epmet-third-server/src/main/java/com/epmet/wxapi/constant/WxMaCodeConstant.java b/epmet-module/epmet-third/epmet-third-server/src/main/java/com/epmet/wxapi/constant/WxMaCodeConstant.java index f27eaff2c1..08f17ae49a 100644 --- a/epmet-module/epmet-third/epmet-third-server/src/main/java/com/epmet/wxapi/constant/WxMaCodeConstant.java +++ b/epmet-module/epmet-third/epmet-third-server/src/main/java/com/epmet/wxapi/constant/WxMaCodeConstant.java @@ -171,5 +171,18 @@ public interface WxMaCodeConstant { */ String GET_TEMPLATE_URL = "https://api.weixin.qq.com/wxa/gettemplatelist"; + /** + * 获取基本信息 + */ + String GET_BASIC_INFO_URL = "https://api.weixin.qq.com/cgi-bin/account/getaccountbasicinfo"; + /** + * 获取已设置的所有类目 + */ + String GET_SET_CATEGORY_URL = "https://api.weixin.qq.com/cgi-bin/wxopen/getcategory"; + + /** + * 加急审核申请 + */ + String SPEED_UP_AUDIT_URL = "https://api.weixin.qq.com/wxa/speedupaudit"; } diff --git a/epmet-module/epmet-third/epmet-third-server/src/main/java/com/epmet/wxapi/param/WxMaSpeedUpAuditReq.java b/epmet-module/epmet-third/epmet-third-server/src/main/java/com/epmet/wxapi/param/WxMaSpeedUpAuditReq.java new file mode 100644 index 0000000000..7f07a4bb8b --- /dev/null +++ b/epmet-module/epmet-third/epmet-third-server/src/main/java/com/epmet/wxapi/param/WxMaSpeedUpAuditReq.java @@ -0,0 +1,21 @@ +package com.epmet.wxapi.param; + +import com.google.gson.annotations.SerializedName; +import lombok.Data; + +import java.io.Serializable; + +/** + * @author zhaoqifeng + * @dscription + * @date 2020/8/6 15:10 + */ +@Data +public class WxMaSpeedUpAuditReq implements Serializable { + private static final long serialVersionUID = 3042725610534211385L; + /** + * 审核单ID + */ + @SerializedName("auditid") + private String auditId; +} diff --git a/epmet-module/epmet-third/epmet-third-server/src/main/java/com/epmet/wxapi/result/WxBasicInfoResult.java b/epmet-module/epmet-third/epmet-third-server/src/main/java/com/epmet/wxapi/result/WxBasicInfoResult.java new file mode 100644 index 0000000000..adc88ce88b --- /dev/null +++ b/epmet-module/epmet-third/epmet-third-server/src/main/java/com/epmet/wxapi/result/WxBasicInfoResult.java @@ -0,0 +1,66 @@ +package com.epmet.wxapi.result; + +import com.epmet.dto.result.AccountBasicInfoResultDTO; +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.io.Serializable; + +/** + * @author zhaoqifeng + * @dscription + * @date 2020/8/6 14:05 + */ +@Data +public class WxBasicInfoResult implements Serializable { + private static final long serialVersionUID = -9027187315142350899L; + /** + * 返回码 + */ + private Integer errcode; + /** + * 错误信息 + */ + private String errmsg; + /** + * 帐号 appid + */ + @SerializedName("appid") + private String appid; + /** + * 帐号类型(1:订阅号,2:服务号,3:小程序) + */ + @SerializedName("account_type") + private Integer accountType; + /** + * 主体类型 0.个人 1.企业 2.媒体 3.政府 4.其他组织 + */ + @SerializedName("principal_type") + private Integer principalType; + /** + * 主体名称 + */ + @SerializedName("principal_name") + private String principalName; + /** + * 实名验证状态 1.实名验证成功 2.实名验证中 3.实名验证失败 + */ + @SerializedName("realname_status") + private Integer realnameStatus; + /** + * 微信认证信息 + */ + @SerializedName("wx_verify_info") + private AccountBasicInfoResultDTO.WxVerifyInfoBean wxVerifyInfo; + /** + * 功能介绍信息 + */ + @SerializedName("signature_info") + private AccountBasicInfoResultDTO.SignatureInfoBean signatureInfo; + /** + * 头像信息 + */ + @SerializedName("head_image_info") + private AccountBasicInfoResultDTO.HeadImageInfoBean headImageInfo; +} diff --git a/epmet-module/epmet-third/epmet-third-server/src/main/java/com/epmet/wxapi/result/WxOpenGetCategoryResult.java b/epmet-module/epmet-third/epmet-third-server/src/main/java/com/epmet/wxapi/result/WxOpenGetCategoryResult.java new file mode 100644 index 0000000000..609679cc5a --- /dev/null +++ b/epmet-module/epmet-third/epmet-third-server/src/main/java/com/epmet/wxapi/result/WxOpenGetCategoryResult.java @@ -0,0 +1,44 @@ +package com.epmet.wxapi.result; + +import com.epmet.dto.result.GetCategoryResultDTO; +import com.google.gson.annotations.SerializedName; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.util.List; + +/** + * @author zhaoqifeng + * @dscription + * @date 2020/8/6 10:11 + */ +@NoArgsConstructor +@Data +public class WxOpenGetCategoryResult { + + /** + * 返回码 + */ + private Integer errcode; + /** + * 错误信息 + */ + private String errmsg; + /** + * 一个更改周期内可以添加类目的次数 + */ + private Integer limit; + /** + * 本更改周期内还可以添加类目的次数 + */ + private Integer quota; + /** + * 最多可以设置的类目数量类目信息说明 + */ + @SerializedName("category_limit") + private Integer categoryLimit; + /** + * 已设置的类目信息列表 + */ + private List categories; +} diff --git a/epmet-module/epmet-third/epmet-third-server/src/main/java/com/epmet/wxapi/result/WxSupportVersionResult.java b/epmet-module/epmet-third/epmet-third-server/src/main/java/com/epmet/wxapi/result/WxSupportVersionResult.java index f15ab9f48b..c9cced8352 100644 --- a/epmet-module/epmet-third/epmet-third-server/src/main/java/com/epmet/wxapi/result/WxSupportVersionResult.java +++ b/epmet-module/epmet-third/epmet-third-server/src/main/java/com/epmet/wxapi/result/WxSupportVersionResult.java @@ -48,7 +48,7 @@ public class WxSupportVersionResult implements Serializable { /** * 百分比 */ - private int percentage; + private Integer percentage; /** * 基础库版本号 */ diff --git a/epmet-module/epmet-third/epmet-third-server/src/main/java/com/epmet/wxapi/service/WxMaCodeService.java b/epmet-module/epmet-third/epmet-third-server/src/main/java/com/epmet/wxapi/service/WxMaCodeService.java index 6f41f29539..28212e5674 100644 --- a/epmet-module/epmet-third/epmet-third-server/src/main/java/com/epmet/wxapi/service/WxMaCodeService.java +++ b/epmet-module/epmet-third/epmet-third-server/src/main/java/com/epmet/wxapi/service/WxMaCodeService.java @@ -72,6 +72,16 @@ public interface WxMaCodeService { */ WxResult submitAudit(String accessToken, WxMaCodeSubmitAuditRequest auditRequest); + /** + * 加急审核申请 + * @author zhaoqifeng + * @date 2020/8/6 15:11 + * @param accessToken + * @param request + * @return com.epmet.wxapi.result.WxResult + */ + WxResult speedUpAudit(String accessToken, WxMaSpeedUpAuditReq request); + /** * 查询指定版本审核状态(仅供第三方代小程序调用). * @@ -161,4 +171,24 @@ public interface WxMaCodeService { * @date 2020/8/5 16:06 */ WxResult setWeAppSupportVersion(String accessToken, WxSetWeAppSupportVersionReq request); + + /** + * 获取已设置的所有类目 + * + * @param accessToken + * @return com.epmet.wxapi.result.WxResult + * @author zhaoqifeng + * @date 2020/8/6 10:47 + */ + WxResult getSetCategory(String accessToken); + + /** + * 获取基本信息 + * + * @param accessToken + * @return com.epmet.wxapi.result.WxResult + * @author zhaoqifeng + * @date 2020/8/6 14:07 + */ + WxResult getAccountBasicInfo(String accessToken); } diff --git a/epmet-module/epmet-third/epmet-third-server/src/main/java/com/epmet/wxapi/service/impl/WxMaCodeServiceImpl.java b/epmet-module/epmet-third/epmet-third-server/src/main/java/com/epmet/wxapi/service/impl/WxMaCodeServiceImpl.java index 1f92c3b1fd..e91b31cee6 100644 --- a/epmet-module/epmet-third/epmet-third-server/src/main/java/com/epmet/wxapi/service/impl/WxMaCodeServiceImpl.java +++ b/epmet-module/epmet-third/epmet-third-server/src/main/java/com/epmet/wxapi/service/impl/WxMaCodeServiceImpl.java @@ -1,6 +1,7 @@ package com.epmet.wxapi.service.impl; import com.alibaba.fastjson.JSONObject; +import com.epmet.commons.tools.constant.NumConstant; import com.epmet.commons.tools.utils.HttpClientManager; import com.epmet.commons.tools.utils.Result; import com.epmet.wxapi.constant.WxMaCodeConstant; @@ -147,6 +148,22 @@ public class WxMaCodeServiceImpl implements WxMaCodeService { return result; } + @Override + public WxResult speedUpAudit(String accessToken, WxMaSpeedUpAuditReq request) { + WxResult result = new WxResult(); + String url = WxMaCodeConstant.SPEED_UP_AUDIT_URL + "?" + "access_token=" + accessToken; + Result submitResult = HttpClientManager.getInstance().sendPostByJSON(url, toJson(request)); + if (!submitResult.success()) { + result.setErrorCode(submitResult.getCode()); + result.setErrorMsg(submitResult.getMsg()); + return result; + } + JSONObject jsonObject = JSONObject.parseObject(submitResult.getData()); + result.setErrorCode(jsonObject.getInteger(ERR_CODE)); + result.setErrorMsg(WxMaErrorMsgEnum.findMsgByCode(jsonObject.getInteger(ERR_CODE))); + return result; + } + @Override public WxResult getAuditStatus(String accessToken, WxMaCodeAuditStatusReq request) { WxResult result = new WxResult<>(); @@ -308,6 +325,48 @@ public class WxMaCodeServiceImpl implements WxMaCodeService { return result; } + @Override + public WxResult getSetCategory(String accessToken) { + WxResult result = new WxResult<>(); + String url = WxMaCodeConstant.GET_SET_CATEGORY_URL + "?" + "access_token=" + accessToken; + Result statusResult = HttpClientManager.getInstance().sendGet(url, null); + if (!statusResult.success()) { + result.setErrorCode(statusResult.getCode()); + result.setErrorMsg(statusResult.getMsg()); + return result; + } + Gson gson = new Gson(); + WxOpenGetCategoryResult categoryResult = gson.fromJson(statusResult.getData(), WxOpenGetCategoryResult.class); + if (categoryResult.getErrcode() != NumConstant.ZERO) { + result.setErrorCode(categoryResult.getErrcode()); + result.setErrorMsg(WxMaErrorMsgEnum.findMsgByCode(categoryResult.getErrcode())); + return result; + } + result.ok(categoryResult); + return result; + } + + @Override + public WxResult getAccountBasicInfo(String accessToken) { + WxResult result = new WxResult<>(); + String url = WxMaCodeConstant.GET_BASIC_INFO_URL + "?" + "access_token=" + accessToken; + Result statusResult = HttpClientManager.getInstance().sendGet(url, null); + if (!statusResult.success()) { + result.setErrorCode(statusResult.getCode()); + result.setErrorMsg(statusResult.getMsg()); + return result; + } + Gson gson = new Gson(); + WxBasicInfoResult basicInfoResult = gson.fromJson(statusResult.getData(), WxBasicInfoResult.class); + if (basicInfoResult.getErrcode() != NumConstant.ZERO) { + result.setErrorCode(basicInfoResult.getErrcode()); + result.setErrorMsg(WxMaErrorMsgEnum.findMsgByCode(basicInfoResult.getErrcode())); + return result; + } + result.ok(basicInfoResult); + return result; + } + private String toJson(Object object) { GsonBuilder gsonBuilder = new GsonBuilder(); gsonBuilder.setPrettyPrinting(); diff --git a/epmet-module/epmet-third/epmet-third-server/src/main/resources/mapper/AuthorizationInfoDao.xml b/epmet-module/epmet-third/epmet-third-server/src/main/resources/mapper/AuthorizationInfoDao.xml index ec104db583..b06647013c 100644 --- a/epmet-module/epmet-third/epmet-third-server/src/main/resources/mapper/AuthorizationInfoDao.xml +++ b/epmet-module/epmet-third/epmet-third-server/src/main/resources/mapper/AuthorizationInfoDao.xml @@ -90,5 +90,13 @@ del_flag = 0 AND authorizer_appid = #{authAppId} + \ No newline at end of file diff --git a/epmet-module/oper-crm/oper-crm-server/src/main/java/com/epmet/service/impl/CustomerServiceImpl.java b/epmet-module/oper-crm/oper-crm-server/src/main/java/com/epmet/service/impl/CustomerServiceImpl.java index 06413c8a1e..219ad17f20 100644 --- a/epmet-module/oper-crm/oper-crm-server/src/main/java/com/epmet/service/impl/CustomerServiceImpl.java +++ b/epmet-module/oper-crm/oper-crm-server/src/main/java/com/epmet/service/impl/CustomerServiceImpl.java @@ -526,6 +526,14 @@ public class CustomerServiceImpl extends BaseServiceImpl Date: Thu, 6 Aug 2020 16:25:03 +0800 Subject: [PATCH 21/24] =?UTF-8?q?=E7=A7=AF=E5=88=86=E8=B0=83=E6=95=B4?= =?UTF-8?q?=EF=BC=9A=E6=9F=A5=E8=AF=A2=E7=94=A8=E6=88=B7=E8=AF=A6=E6=83=85?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/epmet/service/impl/UserBaseInfoServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/UserBaseInfoServiceImpl.java b/epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/UserBaseInfoServiceImpl.java index ccf719e385..84e196906f 100644 --- a/epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/UserBaseInfoServiceImpl.java +++ b/epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/UserBaseInfoServiceImpl.java @@ -248,7 +248,7 @@ public class UserBaseInfoServiceImpl extends BaseServiceImpl Date: Thu, 6 Aug 2020 16:32:18 +0800 Subject: [PATCH 22/24] =?UTF-8?q?=E7=A7=AF=E5=88=86=20=20=20=20=E7=94=A8?= =?UTF-8?q?=E6=88=B7=20=20=20=20=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../epmet-point-server/deploy/docker-compose-dev.yml | 2 +- epmet-module/epmet-point/epmet-point-server/pom.xml | 2 +- epmet-user/epmet-user-server/deploy/docker-compose-dev.yml | 2 +- epmet-user/epmet-user-server/pom.xml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/epmet-module/epmet-point/epmet-point-server/deploy/docker-compose-dev.yml b/epmet-module/epmet-point/epmet-point-server/deploy/docker-compose-dev.yml index 0f2b92b05c..ff70765756 100644 --- a/epmet-module/epmet-point/epmet-point-server/deploy/docker-compose-dev.yml +++ b/epmet-module/epmet-point/epmet-point-server/deploy/docker-compose-dev.yml @@ -2,7 +2,7 @@ version: "3.7" services: epmet-point-server: container_name: epmet-point-server-dev - image: 192.168.1.130:10080/epmet-cloud-dev/epmet-point-server:0.0.35 + image: 192.168.1.130:10080/epmet-cloud-dev/epmet-point-server:0.0.36 ports: - "8112:8112" network_mode: host # 使用现有网络 diff --git a/epmet-module/epmet-point/epmet-point-server/pom.xml b/epmet-module/epmet-point/epmet-point-server/pom.xml index 5b5301a1e0..31a6611bae 100644 --- a/epmet-module/epmet-point/epmet-point-server/pom.xml +++ b/epmet-module/epmet-point/epmet-point-server/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - 0.0.35 + 0.0.36 epmet-point com.epmet diff --git a/epmet-user/epmet-user-server/deploy/docker-compose-dev.yml b/epmet-user/epmet-user-server/deploy/docker-compose-dev.yml index 19e4acda93..e7e6219ac1 100644 --- a/epmet-user/epmet-user-server/deploy/docker-compose-dev.yml +++ b/epmet-user/epmet-user-server/deploy/docker-compose-dev.yml @@ -2,7 +2,7 @@ version: "3.7" services: epmet-user-server: container_name: epmet-user-server-dev - image: 192.168.1.130:10080/epmet-cloud-dev/epmet-user-server:0.3.109 + image: 192.168.1.130:10080/epmet-cloud-dev/epmet-user-server:0.3.110 ports: - "8087:8087" network_mode: host # 不会创建新的网络 diff --git a/epmet-user/epmet-user-server/pom.xml b/epmet-user/epmet-user-server/pom.xml index 33f9085da5..9fd7485cf5 100644 --- a/epmet-user/epmet-user-server/pom.xml +++ b/epmet-user/epmet-user-server/pom.xml @@ -2,7 +2,7 @@ 4.0.0 - 0.3.109 + 0.3.110 com.epmet epmet-user From 896df53aafb3cb4764118a0c72feb1d90e6b0950 Mon Sep 17 00:00:00 2001 From: wangchao Date: Thu, 6 Aug 2020 17:48:18 +0800 Subject: [PATCH 23/24] =?UTF-8?q?=E7=A7=AF=E5=88=86=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=BA=93=E8=84=9A=E6=9C=AC=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/db/migration/epmet_point.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/epmet-module/epmet-point/epmet-point-server/src/main/resources/db/migration/epmet_point.sql b/epmet-module/epmet-point/epmet-point-server/src/main/resources/db/migration/epmet_point.sql index da1bc7a45e..9ef70cd625 100644 --- a/epmet-module/epmet-point/epmet-point-server/src/main/resources/db/migration/epmet_point.sql +++ b/epmet-module/epmet-point/epmet-point-server/src/main/resources/db/migration/epmet_point.sql @@ -76,7 +76,7 @@ CREATE TABLE `point_verification_log` ( `OPERATOR_ID` varchar(64) NOT NULL COMMENT '核销人员ID', `OPERATOR_NAME` varchar(64) NOT NULL COMMENT '核销人员名称 工作人员的昵称,在和核销记录里显示,兑换人、核销人都要显示,核销人昵称格式【xx机关-xxx】,若工作人员日后修改昵称,此项不变', `OPERATOR_AGENCY_ID` varchar(64) NOT NULL COMMENT '核销人员所属机关ID', - `EXCHANGED_ITEM` varchar(64) NOT NULL COMMENT '核销物品 目前没有做商城,所以商品的信息统一记录并展示核销人员手动输入的信息,必填项,为商品描述,以后如果开发商城体系,此项关联商品的ID', + `EXCHANGED_ITEM` varchar(512) NOT NULL COMMENT '核销物品 目前没有做商城,所以商品的信息统一记录并展示核销人员手动输入的信息,必填项,为商品描述,以后如果开发商城体系,此项关联商品的ID', `POINT` int(11) NOT NULL COMMENT '使用积分 需要多少积分', `LONGITUDE` varchar(32) NOT NULL COMMENT '核销人所在位置经度', `DIMENSION` varchar(32) NOT NULL COMMENT '核销人所在位置维度', @@ -135,7 +135,7 @@ CREATE TABLE `user_point_action_log` ( `ACTION_FLAG` varchar(64) NOT NULL COMMENT 'event的key【active_send_point】【register_volunteer】【active_insert_live】\r\n\r\n当来源为积分调整时 通过事件Id查找规则ID计算出分数 通过EVENT_ID能查出RUIE_ID', `EVENT_ID` varchar(64) DEFAULT NULL COMMENT '来源ID 当来源为积分调整时 通过事件Id查找规则ID计算出分数 通过EVENT_ID能查出RUIE_ID', `SOURCE_ID` varchar(64) DEFAULT NULL COMMENT '来源Id,可以是活动Id', - `EVENT_STATEMENT` varchar(128) DEFAULT NULL COMMENT '活动描述 获取积分的原因,相关内容,用来拼接【用户参加了xxx活动获取?积分】的文案,取活动的名称;【积分调整文案】;其他……\n如果是管理员手动调整扣减积分,ACTION_FLAG为"minus",但是不会生成核销记录,核销记录只保存用户使用积分兑换商品的核销详情', + `EVENT_STATEMENT` varchar(512) DEFAULT NULL COMMENT '活动描述 获取积分的原因,相关内容,用来拼接【用户参加了xxx活动获取?积分】的文案,取活动的名称;【积分调整文案】;其他……\n如果是管理员手动调整扣减积分,ACTION_FLAG为"minus",但是不会生成核销记录,核销记录只保存用户使用积分兑换商品的核销详情', `EVENT_NAME` varchar(64) NOT NULL COMMENT '事件名称 在积分记录里,对应的每一个明细都有一个标题和备注,该项为【标题】 value:活动、阅读文章、首次注册、评论、积分调整(手动)……', `POINT` int(11) NOT NULL COMMENT '分值 获取/核销的积分分值', `OPERATOR_AGENCY_ID` varchar(64) DEFAULT NULL COMMENT '操作人所属机关ID 用户获取/核销积分的途径,1.工作人员手动审核积分发放、2.系统事件自动响应,所以CREATED_BY会可能是SYSTEM和工作人员的ID,当CREATED_BY是工作人员ID时,AGENCY_ID为这个工作人员所属的机关ID', From 3c395a60243c411cba768f6638b5349431249230 Mon Sep 17 00:00:00 2001 From: wangchao Date: Thu, 6 Aug 2020 17:53:20 +0800 Subject: [PATCH 24/24] =?UTF-8?q?=E7=A7=AF=E5=88=86=E8=84=9A=E6=9C=AC?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=20=20=E6=9C=8D=E5=8A=A1=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../epmet-point-server/deploy/docker-compose-dev.yml | 2 +- epmet-module/epmet-point/epmet-point-server/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/epmet-module/epmet-point/epmet-point-server/deploy/docker-compose-dev.yml b/epmet-module/epmet-point/epmet-point-server/deploy/docker-compose-dev.yml index ff70765756..d947ffdaae 100644 --- a/epmet-module/epmet-point/epmet-point-server/deploy/docker-compose-dev.yml +++ b/epmet-module/epmet-point/epmet-point-server/deploy/docker-compose-dev.yml @@ -2,7 +2,7 @@ version: "3.7" services: epmet-point-server: container_name: epmet-point-server-dev - image: 192.168.1.130:10080/epmet-cloud-dev/epmet-point-server:0.0.36 + image: 192.168.1.130:10080/epmet-cloud-dev/epmet-point-server:0.0.37 ports: - "8112:8112" network_mode: host # 使用现有网络 diff --git a/epmet-module/epmet-point/epmet-point-server/pom.xml b/epmet-module/epmet-point/epmet-point-server/pom.xml index 31a6611bae..7dd73fd3ad 100644 --- a/epmet-module/epmet-point/epmet-point-server/pom.xml +++ b/epmet-module/epmet-point/epmet-point-server/pom.xml @@ -3,7 +3,7 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - 0.0.36 + 0.0.37 epmet-point com.epmet