From 2d223030d4f3ae9f3380b661b77e730f737823df Mon Sep 17 00:00:00 2001 From: tangqian Date: Mon, 22 May 2023 18:05:56 +0800 Subject: [PATCH 1/6] =?UTF-8?q?feat:=20=E6=A0=B9=E6=8D=AE=E6=89=8B?= =?UTF-8?q?=E6=9C=BA=E5=8F=B7=E6=9F=A5=E8=AF=A2=E6=A1=A3=E6=AC=A1=E4=BF=A1?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../app/member/MemberController.java | 10 +++++++- .../service/recharge/RechargeGearService.java | 2 ++ .../recharge/RechargeGearServiceImpl.java | 23 +++++++++++++++++++ 3 files changed, 34 insertions(+), 1 deletion(-) diff --git a/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/controller/app/member/MemberController.java b/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/controller/app/member/MemberController.java index d8ba080d3..ae181e67f 100644 --- a/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/controller/app/member/MemberController.java +++ b/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/controller/app/member/MemberController.java @@ -12,11 +12,13 @@ import cn.iocoder.yudao.module.shop.service.recharge.PhoneRecordService; import cn.iocoder.yudao.module.shop.service.recharge.RechargeGearService; import cn.iocoder.yudao.module.shop.service.recharge.RechargeOrderService; import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.Parameter; import io.swagger.v3.oas.annotations.tags.Tag; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; import java.util.List; @@ -64,6 +66,12 @@ public class MemberController { return CommonResult.success(rechargeOrderService.memberHeadInfo()); } - + @Operation(summary = "根据手机号查询档次信息") + @RequestMapping(value = "/memberByHomeGradeInfo", method = RequestMethod.GET) + @PreAuthenticated + @TenantIgnore + public CommonResult> memberByPhoneGradeInfo(@RequestParam String phone) { + return CommonResult.success(rechargeGearService.memberByPhoneGradeInfo(phone)); + } } diff --git a/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/service/recharge/RechargeGearService.java b/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/service/recharge/RechargeGearService.java index 507476d2e..7a05e26cf 100644 --- a/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/service/recharge/RechargeGearService.java +++ b/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/service/recharge/RechargeGearService.java @@ -68,4 +68,6 @@ public interface RechargeGearService { List getRechargeGearList(RechargeGearExportReqVO exportReqVO); List getGradeInfo(); + + List memberByPhoneGradeInfo(String phone); } diff --git a/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/service/recharge/RechargeGearServiceImpl.java b/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/service/recharge/RechargeGearServiceImpl.java index db01cb0b0..a184481e6 100644 --- a/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/service/recharge/RechargeGearServiceImpl.java +++ b/yudao-module-mall/yudao-module-shop-biz/src/main/java/cn/iocoder/yudao/module/shop/service/recharge/RechargeGearServiceImpl.java @@ -125,4 +125,27 @@ public class RechargeGearServiceImpl implements RechargeGearService { return rechargeGearRespVOS; } + @Override + public List memberByPhoneGradeInfo(String phone) { + List rechargeGearDOS = rechargeGearMapper.selectList(Wrappers.lambdaQuery() + .eq(RechargeGearDO::getDeleted, 0)); + List rechargeGearRespVOS = RechargeGearConvert.INSTANCE.convertList(rechargeGearDOS); + RechargeOrderDO orderDO = orderMapper.selectOne(Wrappers.lambdaQuery().eq(RechargeOrderDO::getUserPhone, phone) + .eq(RechargeOrderDO::getPaid,1) + .last("LIMIT 1")); + if (Objects.nonNull(orderDO)) { + List infoDOS = phoneRecordMapper.selectList(Wrappers.lambdaQuery().eq(PhoneRecordDO::getRechargeOrderId, orderDO.getId())); + Map> collect = infoDOS.stream().collect(Collectors.groupingBy(PhoneRecordDO::getRechargeGearId)); + rechargeGearRespVOS.forEach(vo -> { + List infoDOS1 = collect.get(vo.getId()); + if (!CollectionUtils.isEmpty(infoDOS1)) { + vo.setIsExist("1"); + } else { + vo.setIsExist("0"); + } + }); + } + return rechargeGearRespVOS; + } + } From 0b928b1abcfd6794549868d5c71b92beaca51347 Mon Sep 17 00:00:00 2001 From: perry <292303709@qq.com> Date: Mon, 22 May 2023 22:03:48 +0800 Subject: [PATCH 2/6] =?UTF-8?q?=E6=AD=A3=E5=BC=8F=E7=8E=AF=E5=A2=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 4 ++-- .../src/main/resources/application-dev.yaml | 12 ++++++------ .../src/main/resources/application-prod.yaml | 17 ++++++++++++----- .../src/main/resources/application.yaml | 1 + 4 files changed, 21 insertions(+), 13 deletions(-) diff --git a/pom.xml b/pom.xml index 57989ebcd..a90fb0250 100644 --- a/pom.xml +++ b/pom.xml @@ -16,13 +16,13 @@ yudao-module-member yudao-module-system yudao-module-infra - yudao-module-pay + yudao-module-mall - yudao-example + ${project.artifactId} diff --git a/yudao-server/src/main/resources/application-dev.yaml b/yudao-server/src/main/resources/application-dev.yaml index e4cafd6a9..c1d2b6ac9 100644 --- a/yudao-server/src/main/resources/application-dev.yaml +++ b/yudao-server/src/main/resources/application-dev.yaml @@ -45,7 +45,7 @@ spring: datasource: master: name: cyywl - url: jdbc:mysql://117.33.142.185:3306/${spring.datasource.dynamic.datasource.master.name}?useSSL=false&allowPublicKeyRetrieval=true + url: jdbc:mysql://47.109.92.244:3306/${spring.datasource.dynamic.datasource.master.name}?useSSL=false&allowPublicKeyRetrieval=true driver-class-name: com.mysql.jdbc.Driver username: root password: axzsd110 @@ -58,10 +58,10 @@ spring: # Redis 配置。Redisson 默认的配置足够使用,一般不需要进行调优 redis: - host: 117.33.142.185 # 地址 + host: 47.109.92.244 # 地址 port: 6369 # 端口 database: 6 # 数据库索引 - password: 20221122@dev # 密码,建议生产环境开启 + password: cyywl123.. # 密码,建议生产环境开启 --- #################### 定时任务相关配置 #################### @@ -216,7 +216,7 @@ wx: useRedis: false defaultContent: \u60A8\u597D\uFF0C\u6709\u4EC0\u4E48\u95EE\u9898\uFF1F redisConfig: - host: 117.33.142.185 # 地址 - port: 6369 # 端口 + host: 47.109.92.244 # 地址 + port: 6399 # 端口 database: 16 # 数据库索引 - password: 20221122@dev # 密码,建议生产环境开启 + password: cyywl123.. # 密码,建议生产环境开启 diff --git a/yudao-server/src/main/resources/application-prod.yaml b/yudao-server/src/main/resources/application-prod.yaml index 1a093b012..fef802529 100644 --- a/yudao-server/src/main/resources/application-prod.yaml +++ b/yudao-server/src/main/resources/application-prod.yaml @@ -47,10 +47,10 @@ spring: datasource: master: name: cyywl - url: jdbc:mysql://117.33.142.185:3306/${spring.datasource.dynamic.datasource.master.name}?useSSL=false&allowPublicKeyRetrieval=true + url: jdbc:mysql://47.109.92.244:3386/${spring.datasource.dynamic.datasource.master.name}?useSSL=false&allowPublicKeyRetrieval=true driver-class-name: com.mysql.jdbc.Driver username: root - password: axzsd110 + password: cyywl123 # slave: # 模拟从库,可根据自己需要修改 # 模拟从库,可根据自己需要修改 # name: ruoyi-vue-pro # url: jdbc:mysql://400-infra.server.iocoder.cn:3306/${spring.datasource.dynamic.datasource.slave.name}?useSSL=false&serverTimezone=CTT&allowPublicKeyRetrieval=true @@ -60,10 +60,10 @@ spring: # Redis 配置。Redisson 默认的配置足够使用,一般不需要进行调优 redis: - host: 117.33.142.185 # 地址 - port: 6369 # 端口 + host: 47.109.92.244 # 地址 + port: 6399 # 端口 database: 6 # 数据库索引 - password: 20221122@dev # 密码,建议生产环境开启 + password: cyywl123.. # 密码,建议生产环境开启 --- #################### 定时任务相关配置 #################### @@ -143,6 +143,13 @@ logging: --- #################### 微信公众号相关配置 #################### wx: # 参见 https://github.com/Wechat-Group/WxJava/blob/develop/spring-boot-starters/wx-java-mp-spring-boot-starter/README.md 文档 mp: + useRedis: false + defaultContent: \u60A8\u597D\uFF0C\u6709\u4EC0\u4E48\u95EE\u9898\uFF1F + redisConfig: + host: 47.109.92.244 # 地址 + port: 6399 # 端口 + database: 16 # 数据库索引 + password: cyywl123.. # 密码,建议生产环境开启 # 公众号配置(必填) app-id: wx041349c6f39b268b secret: 5abee519483bc9f8cb37ce280e814bd0 diff --git a/yudao-server/src/main/resources/application.yaml b/yudao-server/src/main/resources/application.yaml index cbed8c6d9..f2f651392 100644 --- a/yudao-server/src/main/resources/application.yaml +++ b/yudao-server/src/main/resources/application.yaml @@ -196,6 +196,7 @@ yudao: - rep_demo_jianpiao - tmp_report_data_1 - tmp_report_data_income + - eb_category - eb_shipping_templates - eb_shipping_templates_free - eb_shipping_templates_no_delivery From 4ce908adcec17080964e0bc741b5e8fa7989cdd1 Mon Sep 17 00:00:00 2001 From: perry <292303709@qq.com> Date: Mon, 22 May 2023 22:14:17 +0800 Subject: [PATCH 3/6] =?UTF-8?q?=E6=AD=A3=E5=BC=8F=E7=8E=AF=E5=A2=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yudao-module-mall/pom.xml | 12 ++++++------ yudao-module-mall/yudao-module-shop-biz/pom.xml | 5 ----- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/yudao-module-mall/pom.xml b/yudao-module-mall/pom.xml index 13b205436..13c8b7253 100644 --- a/yudao-module-mall/pom.xml +++ b/yudao-module-mall/pom.xml @@ -18,12 +18,12 @@ 商城大模块,由 product 商品、promotion 营销、trade 交易等组成 - yudao-module-promotion-api - yudao-module-promotion-biz - yudao-module-product-api - yudao-module-product-biz - yudao-module-trade-api - yudao-module-trade-biz + + + + + + yudao-module-shop-biz yudao-module-shop-api diff --git a/yudao-module-mall/yudao-module-shop-biz/pom.xml b/yudao-module-mall/yudao-module-shop-biz/pom.xml index f96408a10..1d093c2f7 100644 --- a/yudao-module-mall/yudao-module-shop-biz/pom.xml +++ b/yudao-module-mall/yudao-module-shop-biz/pom.xml @@ -17,11 +17,6 @@ UTF-8 - - cn.iocoder.boot - yudao-module-product-api - ${revision} - cn.iocoder.boot From 071c2bf86362eba2b1ad7a0aa0930fb05bd10532 Mon Sep 17 00:00:00 2001 From: perry <292303709@qq.com> Date: Mon, 22 May 2023 23:26:27 +0800 Subject: [PATCH 4/6] =?UTF-8?q?=E6=AD=A3=E5=BC=8F=E7=8E=AF=E5=A2=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yudao-ui-admin/.env.prod | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yudao-ui-admin/.env.prod b/yudao-ui-admin/.env.prod index 2d2f3e175..d8df84b8f 100644 --- a/yudao-ui-admin/.env.prod +++ b/yudao-ui-admin/.env.prod @@ -5,13 +5,13 @@ ENV = 'production' VUE_APP_TITLE = 创盈商户管理系统 # 创盈管理系统/生产环境 -VUE_APP_BASE_API = 'https://cmx.bskies.cc:8000/cyywl-api' +VUE_APP_BASE_API = 'http://api.cyywl.top' #VUE_APP_BASE_API = 'http://192.168.2.71' # 根据服务器或域名修改 -PUBLIC_PATH = 'https://cmx.bskies.cc:8000/cy-admin/' +PUBLIC_PATH = 'http://admin.cyywl.top' # 二级部署路径 -VUE_APP_APP_NAME ='/cy-admin/' +VUE_APP_APP_NAME ='' # 多租户的开关 VUE_APP_TENANT_ENABLE = true From 57084b320cb5e63c2f995675ceab78f51339a30b Mon Sep 17 00:00:00 2001 From: perry <292303709@qq.com> Date: Tue, 23 May 2023 09:19:03 +0800 Subject: [PATCH 5/6] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E7=8E=AF=E5=A2=83=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yudao-ui-admin/.env.dev | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yudao-ui-admin/.env.dev b/yudao-ui-admin/.env.dev index dc7c069b3..cd578096a 100644 --- a/yudao-ui-admin/.env.dev +++ b/yudao-ui-admin/.env.dev @@ -5,8 +5,8 @@ ENV = 'development' VUE_APP_TITLE = 创盈商户管理系统 # 芋道管理系统/开发环境 -#VUE_APP_BASE_API = 'https://cmx.bskies.cc:8000/cyywl-api' -VUE_APP_BASE_API = 'http://192.168.1.147:48080' +VUE_APP_BASE_API = 'https://cmx.bskies.cc:8000/cyywl-api' +#VUE_APP_BASE_API = 'http://192.168.1.147:48080' # 路由懒加载 VUE_CLI_BABEL_TRANSPILE_MODULES = true From b45a6d49b64e4415bae2c315153e18039d3009cc Mon Sep 17 00:00:00 2001 From: perry <292303709@qq.com> Date: Tue, 23 May 2023 09:22:04 +0800 Subject: [PATCH 6/6] =?UTF-8?q?=E7=9F=AD=E4=BF=A1=E5=8F=91=E9=80=81?= =?UTF-8?q?=E9=A2=91=E7=8E=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yudao-server/src/main/resources/application.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yudao-server/src/main/resources/application.yaml b/yudao-server/src/main/resources/application.yaml index f2f651392..ab8cfe1ef 100644 --- a/yudao-server/src/main/resources/application.yaml +++ b/yudao-server/src/main/resources/application.yaml @@ -222,7 +222,7 @@ yudao: - eb_store_order_status sms-code: # 短信验证码相关的配置项 expire-times: 5m - send-frequency: 10m + send-frequency: 10s send-maximum-quantity-per-day: 10 begin-code: 100000 # 这里配置 9999 的原因是,测试方便。 end-code: 999999 # 这里配置 9999 的原因是,测试方便。