diff --git a/hiver-admin/pom.xml b/hiver-admin/pom.xml
index d4991a66..2169fd11 100644
--- a/hiver-admin/pom.xml
+++ b/hiver-admin/pom.xml
@@ -16,37 +16,30 @@
cc.hiver
hiver-base
- 1.0-SNAPSHOT
cc.hiver
hiver-file
- 1.0-SNAPSHOT
cc.hiver
hiver-quartz
- 1.0-SNAPSHOT
cc.hiver
hiver-social
- 1.0-SNAPSHOT
cc.hiver
hiver-app
- 1.0-SNAPSHOT
cc.hiver
hiver-open
- 1.0-SNAPSHOT
cc.hiver
hiver-mall
- 1.0-SNAPSHOT
@@ -83,7 +76,6 @@
org.springframework.boot
spring-boot-maven-plugin
- 2.3.7.RELEASE
diff --git a/hiver-admin/src/main/resources/application.yml b/hiver-admin/src/main/resources/application.yml
index dfcde390..28c298a9 100644
--- a/hiver-admin/src/main/resources/application.yml
+++ b/hiver-admin/src/main/resources/application.yml
@@ -34,6 +34,8 @@ spring:
driver-class-name: com.mysql.jdbc.Driver
# Druid StatViewServlet配置
druid:
+ test-on-borrow: true
+ validation-query: SELECT 1
stat-view-servlet:
# 默认true 内置监控页面首页/druid/index.html
enabled: true
@@ -97,11 +99,11 @@ spring:
listener:
simple:
# 手动确认消息
- acknowledge-mode: manual
+ acknowledge-mode: AUTO
# 开启重试
retry:
enabled: true
- max-attempts: 3
+ max-attempts: 1
template:
retry:
enabled: true
diff --git a/hiver-core/pom.xml b/hiver-core/pom.xml
index 9bea1c3b..5c44166f 100644
--- a/hiver-core/pom.xml
+++ b/hiver-core/pom.xml
@@ -158,7 +158,6 @@
com.alibaba
fastjson
- 1.2.62
com.aliyun
@@ -173,8 +172,6 @@
com.github.binarywang
weixin-java-mp
- 4.6.0
- compile
\ No newline at end of file
diff --git a/hiver-modules/hiver-app/pom.xml b/hiver-modules/hiver-app/pom.xml
index a1eacf29..d7a354e5 100644
--- a/hiver-modules/hiver-app/pom.xml
+++ b/hiver-modules/hiver-app/pom.xml
@@ -16,7 +16,6 @@
cn.dev33
sa-token-spring-boot-starter
- 1.26.0
@@ -27,12 +26,10 @@
ch.ethz.ganymed
ganymed-ssh2
- build210
com.jcraft
jsch
- 0.1.55
\ No newline at end of file
diff --git a/hiver-modules/hiver-base/pom.xml b/hiver-modules/hiver-base/pom.xml
index e53e2d71..d3af6ef2 100644
--- a/hiver-modules/hiver-base/pom.xml
+++ b/hiver-modules/hiver-base/pom.xml
@@ -13,20 +13,16 @@
cc.hiver
hiver-mall
- 1.0-SNAPSHOT
- compile
org.apache.httpcomponents
httpclient
- 4.5.13
com.github.binarywang
weixin-java-mp
- 4.6.0
diff --git a/hiver-modules/hiver-mall/pom.xml b/hiver-modules/hiver-mall/pom.xml
index 09424a86..a452f94e 100644
--- a/hiver-modules/hiver-mall/pom.xml
+++ b/hiver-modules/hiver-mall/pom.xml
@@ -15,7 +15,6 @@
cc.hiver
hiver-app
- 1.0-SNAPSHOT
com.alibaba
@@ -31,8 +30,6 @@
cc.hiver
hiver-file
- 1.0-SNAPSHOT
- compile
org.springframework.boot
@@ -41,7 +38,6 @@
com.alibaba
fastjson
- 1.2.83
diff --git a/hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/controller/MallCouponController.java b/hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/controller/MallCouponController.java
index 3ab39cd5..e6e3426f 100644
--- a/hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/controller/MallCouponController.java
+++ b/hiver-modules/hiver-mall/src/main/java/cc/hiver/mall/controller/MallCouponController.java
@@ -4,18 +4,24 @@ import cc.hiver.core.common.utils.ResultUtil;
import cc.hiver.core.common.vo.Result;
import cc.hiver.mall.entity.MallCoupon;
import cc.hiver.mall.entity.MallUserCoupon;
+import cc.hiver.mall.mq.CouponMqConfig;
import cc.hiver.mall.pojo.query.MallCouponQuery;
import cc.hiver.mall.service.mybatis.MallCouponService;
import cc.hiver.mall.service.mybatis.MallUserCouponService;
+import com.alibaba.fastjson.JSON;
import com.baomidou.mybatisplus.core.metadata.IPage;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
+import lombok.Data;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.math.BigDecimal;
import java.util.List;
+@Slf4j
@RestController
@RequestMapping("/hiver/mall/coupon")
@Api(tags = "优惠券接口")
@@ -27,6 +33,17 @@ public class MallCouponController {
@Autowired
private MallUserCouponService mallUserCouponService;
+ @Autowired
+ private RabbitTemplate rabbitTemplate;
+
+ @Data
+ public static class SendCouponReq {
+ private String userPhones;
+ private Integer giveNum;
+ private Integer type;
+ private String couponId;
+ }
+
@PostMapping("/add")
@ApiOperation(value = "添加/发行优惠券")
public Result
-
+
com.github.binarywang
wx-java-mp-spring-boot-starter
${wx.java.mp.version}
+
+ com.github.binarywang
+ weixin-java-mp
+ ${wx.java.mp.version}
+
com.github.binarywang
wx-java-miniapp-spring-boot-starter
${wx.java.mp.version}
+
+ com.github.binarywang
+ weixin-java-miniapp
+ ${wx.java.mp.version}
+
+
+
+ com.alibaba
+ fastjson
+ ${fastjson.version}
+
+
+
+ org.apache.httpcomponents
+ httpclient
+ ${httpclient.version}
+
+
+
+ cn.dev33
+ sa-token-spring-boot-starter
+ ${sa-token.version}
+
+
+
+ ch.ethz.ganymed
+ ganymed-ssh2
+ ${ganymed-ssh2.version}
+
+
+ com.jcraft
+ jsch
+ ${jsch.version}
+
+
+
+ cc.hiver
+ hiver-core
+ ${project.version}
+
+
+ cc.hiver
+ hiver-mall
+ ${project.version}
+
+
+ cc.hiver
+ hiver-base
+ ${project.version}
+
+
+ cc.hiver
+ hiver-social
+ ${project.version}
+
+
+ cc.hiver
+ hiver-file
+ ${project.version}
+
+
+ cc.hiver
+ hiver-app
+ ${project.version}
+
+
+ cc.hiver
+ hiver-quartz
+ ${project.version}
+
+
+ cc.hiver
+ hiver-open
+ ${project.version}
+
+
de.schlichtherle.truelicense
@@ -311,6 +397,7 @@
org.springframework.boot
spring-boot-maven-plugin
+ ${spring.boot.version}