From 97a8a5472dba7456cbce8e3b394de82ac9953d0e Mon Sep 17 00:00:00 2001
From: wangw <1594593906@qq.com>
Date: Fri, 1 Nov 2024 09:40:03 +0800
Subject: [PATCH 01/12] =?UTF-8?q?=E5=A4=9A=E4=BD=99=E4=BB=A3=E7=A0=81?=
=?UTF-8?q?=E5=88=A0=E9=99=A4=20=E7=8E=AF=E5=A2=83=E9=85=8D=E7=BD=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
eladmin-system/pom.xml | 10 ++-
.../ysk/cashier/dto/BotButtonConfigDto.java | 37 --------
.../dto/BotButtonConfigQueryCriteria.java | 32 -------
.../java/cn/ysk/cashier/dto/BotConfigDto.java | 40 ---------
.../cashier/dto/BotConfigQueryCriteria.java | 36 --------
.../java/cn/ysk/cashier/dto/BotUserDto.java | 87 -------------------
.../cn/ysk/cashier/dto/BotUserFlowDto.java | 54 ------------
.../cashier/dto/BotUserFlowQueryCriteria.java | 40 ---------
.../ysk/cashier/dto/BotUserQueryCriteria.java | 48 ----------
9 files changed, 8 insertions(+), 376 deletions(-)
delete mode 100644 eladmin-system/src/main/java/cn/ysk/cashier/dto/BotButtonConfigDto.java
delete mode 100644 eladmin-system/src/main/java/cn/ysk/cashier/dto/BotButtonConfigQueryCriteria.java
delete mode 100644 eladmin-system/src/main/java/cn/ysk/cashier/dto/BotConfigDto.java
delete mode 100644 eladmin-system/src/main/java/cn/ysk/cashier/dto/BotConfigQueryCriteria.java
delete mode 100644 eladmin-system/src/main/java/cn/ysk/cashier/dto/BotUserDto.java
delete mode 100644 eladmin-system/src/main/java/cn/ysk/cashier/dto/BotUserFlowDto.java
delete mode 100644 eladmin-system/src/main/java/cn/ysk/cashier/dto/BotUserFlowQueryCriteria.java
delete mode 100644 eladmin-system/src/main/java/cn/ysk/cashier/dto/BotUserQueryCriteria.java
diff --git a/eladmin-system/pom.xml b/eladmin-system/pom.xml
index 2b543b9e..cb0749ce 100644
--- a/eladmin-system/pom.xml
+++ b/eladmin-system/pom.xml
@@ -167,9 +167,15 @@
- pro
+ pre
- pro
+ pre
+
+
+
+ prod
+
+ prod
diff --git a/eladmin-system/src/main/java/cn/ysk/cashier/dto/BotButtonConfigDto.java b/eladmin-system/src/main/java/cn/ysk/cashier/dto/BotButtonConfigDto.java
deleted file mode 100644
index b555cae6..00000000
--- a/eladmin-system/src/main/java/cn/ysk/cashier/dto/BotButtonConfigDto.java
+++ /dev/null
@@ -1,37 +0,0 @@
-/*
-* Copyright 2019-2020 Zheng Jie
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-package cn.ysk.cashier.dto;
-
-import lombok.Data;
-import java.io.Serializable;
-
-/**
-* @website https://eladmin.vip
-* @description /
-* @author admin
-* @date 2023-10-31
-**/
-@Data
-public class BotButtonConfigDto implements Serializable {
-
- private Integer id;
-
- /** 按钮名称 */
- private String buttonName;
-
- /** 按钮值 */
- private String buttonValue;
-}
\ No newline at end of file
diff --git a/eladmin-system/src/main/java/cn/ysk/cashier/dto/BotButtonConfigQueryCriteria.java b/eladmin-system/src/main/java/cn/ysk/cashier/dto/BotButtonConfigQueryCriteria.java
deleted file mode 100644
index d789fd09..00000000
--- a/eladmin-system/src/main/java/cn/ysk/cashier/dto/BotButtonConfigQueryCriteria.java
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
-* Copyright 2019-2020 Zheng Jie
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-package cn.ysk.cashier.dto;
-
-import lombok.Data;
-import cn.ysk.cashier.annotation.Query;
-
-/**
-* @website https://eladmin.vip
-* @author admin
-* @date 2023-10-31
-**/
-@Data
-public class BotButtonConfigQueryCriteria{
-
- /** 精确 */
- @Query
- private String buttonName;
-}
\ No newline at end of file
diff --git a/eladmin-system/src/main/java/cn/ysk/cashier/dto/BotConfigDto.java b/eladmin-system/src/main/java/cn/ysk/cashier/dto/BotConfigDto.java
deleted file mode 100644
index 1426d65d..00000000
--- a/eladmin-system/src/main/java/cn/ysk/cashier/dto/BotConfigDto.java
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
-* Copyright 2019-2020 Zheng Jie
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-package cn.ysk.cashier.dto;
-
-import lombok.Data;
-import java.io.Serializable;
-
-/**
-* @website https://eladmin.vip
-* @description /
-* @author admin
-* @date 2023-10-31
-**/
-@Data
-public class BotConfigDto implements Serializable {
-
- private Integer id;
-
- /** 元素键值 */
- private String configKey;
-
- /** 元素值 */
- private String configValue;
-
- /** 描述 */
- private String remark;
-}
\ No newline at end of file
diff --git a/eladmin-system/src/main/java/cn/ysk/cashier/dto/BotConfigQueryCriteria.java b/eladmin-system/src/main/java/cn/ysk/cashier/dto/BotConfigQueryCriteria.java
deleted file mode 100644
index ce14acb3..00000000
--- a/eladmin-system/src/main/java/cn/ysk/cashier/dto/BotConfigQueryCriteria.java
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
-* Copyright 2019-2020 Zheng Jie
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-package cn.ysk.cashier.dto;
-
-import lombok.Data;
-import cn.ysk.cashier.annotation.Query;
-
-/**
-* @website https://eladmin.vip
-* @author admin
-* @date 2023-10-31
-**/
-@Data
-public class BotConfigQueryCriteria{
-
- /** 精确 */
- @Query
- private String configKey;
-
- /** 精确 */
- @Query
- private String configValue;
-}
\ No newline at end of file
diff --git a/eladmin-system/src/main/java/cn/ysk/cashier/dto/BotUserDto.java b/eladmin-system/src/main/java/cn/ysk/cashier/dto/BotUserDto.java
deleted file mode 100644
index 93ee777f..00000000
--- a/eladmin-system/src/main/java/cn/ysk/cashier/dto/BotUserDto.java
+++ /dev/null
@@ -1,87 +0,0 @@
-/*
-* Copyright 2019-2020 Zheng Jie
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-package cn.ysk.cashier.dto;
-
-import lombok.Data;
-import java.sql.Timestamp;
-import java.math.BigDecimal;
-import java.io.Serializable;
-
-/**
-* @website https://eladmin.vip
-* @description /
-* @author admin
-* @date 2023-10-30
-**/
-@Data
-public class BotUserDto implements Serializable {
-
- private Integer id;
-
- private Integer fatherId;
-
- /** 父级电报号 */
- private String fatherTelegramId;
-
- /** 电报号 */
- private String userTelegramId;
-
- /** 用户名称 */
- private String userName;
-
- /** 组电报号 */
- private String groupTelegramId;
-
- /** 用户代码 */
- private String userCode;
-
- private String userPayPass;
-
- private String bombStatus;
-
- /** 用户状态 */
- private String botStatus;
-
- /** 总充值 */
- private BigDecimal usdtRechargeTotal;
-
- /** 总提现 */
- private BigDecimal usdtWithdrawTotal;
-
- /** 总资金 */
- private BigDecimal balance;
-
- /** 冻结资金 */
- private BigDecimal freezeBalance;
-
- /** 版本号 */
- private Integer version;
-
- /** 创建时间 */
- private Timestamp createTime;
-
- /** 更新时间 */
- private Timestamp updateTime;
-
- /** 语言 */
- private String userLanguage;
-
- /** 质押资金 */
- private BigDecimal chipBalance;
-
- /** 绑定时间 */
- private Timestamp fatherBindTime;
-}
\ No newline at end of file
diff --git a/eladmin-system/src/main/java/cn/ysk/cashier/dto/BotUserFlowDto.java b/eladmin-system/src/main/java/cn/ysk/cashier/dto/BotUserFlowDto.java
deleted file mode 100644
index cc5a0e83..00000000
--- a/eladmin-system/src/main/java/cn/ysk/cashier/dto/BotUserFlowDto.java
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
-* Copyright 2019-2020 Zheng Jie
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-package cn.ysk.cashier.dto;
-
-import lombok.Data;
-import java.sql.Timestamp;
-import java.math.BigDecimal;
-import java.io.Serializable;
-
-/**
-* @website https://eladmin.vip
-* @description /
-* @author admin
-* @date 2023-10-30
-**/
-@Data
-public class BotUserFlowDto implements Serializable {
-
- private Integer id;
-
- /** 电报号 */
- private String userTelegramId;
-
- /** 用户名称 */
- private String userName;
-
- /** 业务代码 */
- private String bizCode;
-
- /** 变动金额 */
- private BigDecimal amount;
-
- /** 变动前金额 */
- private BigDecimal oldBalance;
-
- /** 变动后金额 */
- private BigDecimal newBalance;
-
- /** 创建时间 */
- private Timestamp createTime;
-}
\ No newline at end of file
diff --git a/eladmin-system/src/main/java/cn/ysk/cashier/dto/BotUserFlowQueryCriteria.java b/eladmin-system/src/main/java/cn/ysk/cashier/dto/BotUserFlowQueryCriteria.java
deleted file mode 100644
index d629ccf6..00000000
--- a/eladmin-system/src/main/java/cn/ysk/cashier/dto/BotUserFlowQueryCriteria.java
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
-* Copyright 2019-2020 Zheng Jie
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-package cn.ysk.cashier.dto;
-
-import lombok.Data;
-import cn.ysk.cashier.annotation.Query;
-
-/**
-* @website https://eladmin.vip
-* @author admin
-* @date 2023-10-30
-**/
-@Data
-public class BotUserFlowQueryCriteria{
-
- /** 精确 */
- @Query
- private String userTelegramId;
-
- /** 精确 */
- @Query
- private String userName;
-
- /** 精确 */
- @Query
- private String bizCode;
-}
\ No newline at end of file
diff --git a/eladmin-system/src/main/java/cn/ysk/cashier/dto/BotUserQueryCriteria.java b/eladmin-system/src/main/java/cn/ysk/cashier/dto/BotUserQueryCriteria.java
deleted file mode 100644
index e174c66c..00000000
--- a/eladmin-system/src/main/java/cn/ysk/cashier/dto/BotUserQueryCriteria.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/*
-* Copyright 2019-2020 Zheng Jie
-*
-* Licensed under the Apache License, Version 2.0 (the "License");
-* you may not use this file except in compliance with the License.
-* You may obtain a copy of the License at
-*
-* http://www.apache.org/licenses/LICENSE-2.0
-*
-* Unless required by applicable law or agreed to in writing, software
-* distributed under the License is distributed on an "AS IS" BASIS,
-* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-* See the License for the specific language governing permissions and
-* limitations under the License.
-*/
-package cn.ysk.cashier.dto;
-
-import lombok.Data;
-import cn.ysk.cashier.annotation.Query;
-
-/**
-* @website https://eladmin.vip
-* @author admin
-* @date 2023-10-30
-**/
-@Data
-public class BotUserQueryCriteria{
-
- /** 精确 */
- @Query
- private String fatherTelegramId;
-
- /** 精确 */
- @Query
- private String userTelegramId;
-
- /** 精确 */
- @Query
- private String userName;
-
- /** 精确 */
- @Query
- private String userCode;
-
- /** 精确 */
- @Query
- private String botStatus;
-}
\ No newline at end of file
From cdeb5e003c60589fd2da0883338330cbb359c007 Mon Sep 17 00:00:00 2001
From: wangw <1594593906@qq.com>
Date: Fri, 1 Nov 2024 13:46:10 +0800
Subject: [PATCH 02/12] =?UTF-8?q?=E5=A4=9A=E4=BD=99=E6=B3=A8=E8=A7=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../java/cn/ysk/cashier/controller/shop/SummaryController.java | 1 -
1 file changed, 1 deletion(-)
diff --git a/eladmin-system/src/main/java/cn/ysk/cashier/controller/shop/SummaryController.java b/eladmin-system/src/main/java/cn/ysk/cashier/controller/shop/SummaryController.java
index efd3df02..7b814e1e 100644
--- a/eladmin-system/src/main/java/cn/ysk/cashier/controller/shop/SummaryController.java
+++ b/eladmin-system/src/main/java/cn/ysk/cashier/controller/shop/SummaryController.java
@@ -26,7 +26,6 @@ public class SummaryController {
//营业板块 上
@PostMapping("/trade")
- @AnonymousPostMapping
private Object shopSummaryDate(@RequestBody BaseQueryDto param) {
return summaryService.trade(param);
}
From 086eb3523b7df63ebee34fd104fa01ab7ceb61af Mon Sep 17 00:00:00 2001
From: SongZhang <2064194730@qq.com>
Date: Fri, 1 Nov 2024 16:51:51 +0800
Subject: [PATCH 03/12] =?UTF-8?q?1.=20=E8=AE=A2=E5=8D=95=E8=A1=A8=E4=BF=AE?=
=?UTF-8?q?=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../main/java/cn/ysk/cashier/pojo/order/TbOrderInfo.java | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/eladmin-system/src/main/java/cn/ysk/cashier/pojo/order/TbOrderInfo.java b/eladmin-system/src/main/java/cn/ysk/cashier/pojo/order/TbOrderInfo.java
index 00c63939..dc8a40c8 100644
--- a/eladmin-system/src/main/java/cn/ysk/cashier/pojo/order/TbOrderInfo.java
+++ b/eladmin-system/src/main/java/cn/ysk/cashier/pojo/order/TbOrderInfo.java
@@ -246,9 +246,11 @@ public class TbOrderInfo implements Serializable {
// 使用的积分数量
private Integer pointsNum;
// 用户优惠券id
- private String activateInInfoList;
+ private String userCouponInfoList;
// 优惠券折扣金额
- private BigDecimal activateInDiscountAmount;
+ private BigDecimal productCouponDiscountAmount;
+ // 满减抵扣金额
+ private BigDecimal fullCouponDiscountAmount;
public void copy(TbOrderInfo source){
BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
From 6f6085343f6f306eba88860155323c8d2c3116fc Mon Sep 17 00:00:00 2001
From: wangw <1594593906@qq.com>
Date: Mon, 4 Nov 2024 10:27:23 +0800
Subject: [PATCH 04/12] =?UTF-8?q?=E9=BB=98=E8=AE=A4=E5=8D=95=E4=BD=8D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../java/cn/ysk/cashier/cons/domain/TbConsInfo.java | 4 ++++
.../java/cn/ysk/cashier/cons/domain/TbConsInfoV2.java | 4 ++++
.../cons/service/impl/TbConsInfoServiceImpl.java | 10 +++++++++-
3 files changed, 17 insertions(+), 1 deletion(-)
diff --git a/eladmin-system/src/main/java/cn/ysk/cashier/cons/domain/TbConsInfo.java b/eladmin-system/src/main/java/cn/ysk/cashier/cons/domain/TbConsInfo.java
index e2231b25..64e0b5ad 100644
--- a/eladmin-system/src/main/java/cn/ysk/cashier/cons/domain/TbConsInfo.java
+++ b/eladmin-system/src/main/java/cn/ysk/cashier/cons/domain/TbConsInfo.java
@@ -61,6 +61,10 @@ public class TbConsInfo implements Serializable {
@ApiModelProperty(value = "单位换算")
private BigDecimal conUnitTwoConvert;
+ @Column(name = "`default_unit`")
+ @ApiModelProperty(value = "默认入库单位")
+ private String defaultUnit;
+
@Column(name = "`laster_in_stock`")
@ApiModelProperty(value = "最近一次入库量")
private BigDecimal lasterInStock;
diff --git a/eladmin-system/src/main/java/cn/ysk/cashier/cons/domain/TbConsInfoV2.java b/eladmin-system/src/main/java/cn/ysk/cashier/cons/domain/TbConsInfoV2.java
index 111aeb04..7874d061 100644
--- a/eladmin-system/src/main/java/cn/ysk/cashier/cons/domain/TbConsInfoV2.java
+++ b/eladmin-system/src/main/java/cn/ysk/cashier/cons/domain/TbConsInfoV2.java
@@ -63,6 +63,10 @@ public class TbConsInfoV2 implements Serializable {
@ApiModelProperty(value = "单位换算")
private BigDecimal conUnitTwoConvert;
+ @Column(name = "`default_unit`")
+ @ApiModelProperty(value = "默认入库单位")
+ private String defaultUnit;
+
@Column(name = "`laster_in_stock`")
@ApiModelProperty(value = "最近一次入库量")
diff --git a/eladmin-system/src/main/java/cn/ysk/cashier/cons/service/impl/TbConsInfoServiceImpl.java b/eladmin-system/src/main/java/cn/ysk/cashier/cons/service/impl/TbConsInfoServiceImpl.java
index 3b7a1451..ab6a429d 100644
--- a/eladmin-system/src/main/java/cn/ysk/cashier/cons/service/impl/TbConsInfoServiceImpl.java
+++ b/eladmin-system/src/main/java/cn/ysk/cashier/cons/service/impl/TbConsInfoServiceImpl.java
@@ -231,10 +231,18 @@ public class TbConsInfoServiceImpl implements TbConsInfoService {
}
BigDecimal changeStock = conInfos.getStockNumber();
//副单位的实际修改值
- if (StringUtils.isNotBlank(conInfos.getUnit()) && conInfos.getUnit().equals(info.getConUnitTwo())) {
+ if(StringUtils.isNotBlank(conInfos.getUnit())){
+ info.setDefaultUnit(conInfos.getUnit());
+ if(conInfos.getUnit().equals(info.getConUnitTwo())){
+ changeStock = conInfos.getStockNumber().multiply(info.getConUnitTwoConvert()).setScale(2, BigDecimal.ROUND_HALF_UP);
+ }
+ }else if(info.getConUnitTwo().equals(info.getDefaultUnit())) {
+ info.setDefaultUnit(info.getConUnitTwo());
changeStock = conInfos.getStockNumber().multiply(info.getConUnitTwoConvert()).setScale(2, BigDecimal.ROUND_HALF_UP);
}
+
+
TbConsSuppFlow suppFlow = new TbConsSuppFlow();
TbConsInfoFlow flow = new TbConsInfoFlow();
From 8aad5da1048cf45aea7485752e891093286b52e0 Mon Sep 17 00:00:00 2001
From: wangw <1594593906@qq.com>
Date: Mon, 4 Nov 2024 10:53:42 +0800
Subject: [PATCH 05/12] =?UTF-8?q?=E9=BB=98=E8=AE=A4=E5=8D=95=E4=BD=8D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../main/java/cn/ysk/cashier/cons/service/dto/TbConsInfoDto.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/eladmin-system/src/main/java/cn/ysk/cashier/cons/service/dto/TbConsInfoDto.java b/eladmin-system/src/main/java/cn/ysk/cashier/cons/service/dto/TbConsInfoDto.java
index a4b0bf17..40276438 100644
--- a/eladmin-system/src/main/java/cn/ysk/cashier/cons/service/dto/TbConsInfoDto.java
+++ b/eladmin-system/src/main/java/cn/ysk/cashier/cons/service/dto/TbConsInfoDto.java
@@ -39,6 +39,7 @@ public class TbConsInfoDto implements Serializable {
private String conUnitTwo;
private BigDecimal conUnitTwoConvert;
+ private String defaultUnit;
/** 最近一次入库量 */
private BigDecimal lasterInStock;
From 7c572d7384f00c723d763160dcfc13260137dbbb Mon Sep 17 00:00:00 2001
From: SongZhang <2064194730@qq.com>
Date: Mon, 4 Nov 2024 11:12:27 +0800
Subject: [PATCH 06/12] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=E6=94=AF?=
=?UTF-8?q?=E4=BB=98=E7=A7=AF=E5=88=86=E4=BC=98=E6=83=A0=E5=88=B8=E6=94=AF?=
=?UTF-8?q?=E6=8C=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../cn/ysk/cashier/cons/TableConstant.java | 7 +-
.../controller/TbShopCouponController.java | 6 +
.../controller/product/TbPlaceController.java | 10 +-
.../cashier/dto/order/OrderCartInfoDTO.java | 19 +
.../cashier/dto/order/OrderCouponInfoDTO.java | 20 +
.../ysk/cashier/dto/order/OrderPriceDTO.java | 20 +
.../cashier/dto/order/UserCouponInfoDTO.java | 12 +
.../cashier/dto/shoptable/CreateOrderDTO.java | 12 +-
.../cn/ysk/cashier/dto/shoptable/PayDTO.java | 11 +-
.../cashier/dto/shoptable/UpdateVipDTO.java | 2 +-
.../mapper/TbActivateInRecordMapper.java | 16 +-
.../mapper/TbActivateOutRecordMapper.java | 3 +-
.../mybatis/service/MpCashierCartService.java | 6 +
.../mybatis/service/MpOrderDetailService.java | 8 +-
.../mybatis/service/MpOrderInfoService.java | 31 +-
.../mybatis/service/MpShopUserService.java | 16 +
.../mybatis/service/TbShopCouponService.java | 33 +
.../impl/MpCashierCartServiceImpl.java | 10 +
.../impl/MpOrderDetailServiceImpl.java | 10 +-
.../service/impl/MpOrderInfoServiceImpl.java | 8 +
.../service/impl/MpShopUserServiceImpl.java | 23 +
.../service/impl/TbShopCouponServiceImpl.java | 140 ++-
.../ysk/cashier/pojo/order/TbCashierCart.java | 2 +
.../ysk/cashier/pojo/order/TbOrderInfo.java | 2 +-
.../shop/TbPlussShopStaffRepository.java | 5 +-
.../impl/shopimpl/TbShopTableServiceImpl.java | 953 ++++++++++++------
.../cn/ysk/cashier/vo/ActivateInInfoVO.java | 15 +
.../cn/ysk/cashier/vo/TbUserCouponVo.java | 5 +
28 files changed, 1066 insertions(+), 339 deletions(-)
create mode 100644 eladmin-system/src/main/java/cn/ysk/cashier/dto/order/OrderCartInfoDTO.java
create mode 100644 eladmin-system/src/main/java/cn/ysk/cashier/dto/order/OrderCouponInfoDTO.java
create mode 100644 eladmin-system/src/main/java/cn/ysk/cashier/dto/order/OrderPriceDTO.java
create mode 100644 eladmin-system/src/main/java/cn/ysk/cashier/dto/order/UserCouponInfoDTO.java
create mode 100644 eladmin-system/src/main/java/cn/ysk/cashier/mybatis/service/MpShopUserService.java
create mode 100644 eladmin-system/src/main/java/cn/ysk/cashier/mybatis/service/impl/MpShopUserServiceImpl.java
create mode 100644 eladmin-system/src/main/java/cn/ysk/cashier/vo/ActivateInInfoVO.java
diff --git a/eladmin-system/src/main/java/cn/ysk/cashier/cons/TableConstant.java b/eladmin-system/src/main/java/cn/ysk/cashier/cons/TableConstant.java
index ac2e0605..1244125a 100644
--- a/eladmin-system/src/main/java/cn/ysk/cashier/cons/TableConstant.java
+++ b/eladmin-system/src/main/java/cn/ysk/cashier/cons/TableConstant.java
@@ -57,12 +57,17 @@ public interface TableConstant {
@Getter
public enum Status {
REFUNDING("refunding"), REFUND("refund"), CLOSED("closed"), CREATE("create"),
- UNPAID("unpaid"), PAYING("paying"), RETURN("return");
+ UNPAID("unpaid"), PAYING("paying"), RETURN("return"), FINAL("final");
private final String value;
Status(String value) {
this.value = value;
}
+
+ public boolean equalsVals(String value) {
+ return this.value.equals(value);
+ }
+
}
@Getter
diff --git a/eladmin-system/src/main/java/cn/ysk/cashier/controller/TbShopCouponController.java b/eladmin-system/src/main/java/cn/ysk/cashier/controller/TbShopCouponController.java
index bae5fed1..9184405f 100644
--- a/eladmin-system/src/main/java/cn/ysk/cashier/controller/TbShopCouponController.java
+++ b/eladmin-system/src/main/java/cn/ysk/cashier/controller/TbShopCouponController.java
@@ -90,5 +90,11 @@ public class TbShopCouponController {
tbShopCouponService.deleteReceive(ids);
return new ResponseEntity<>(HttpStatus.OK);
}
+
+ @GetMapping("activateByOrderId")
+ @ApiOperation("根据订单id获取可用优惠券信息")
+ public ResponseEntity