From dfafdf9acf4806169ab7d81c2c1f5e092e241a5e Mon Sep 17 00:00:00 2001
From: "Ray.Hao" <1490493387@qq.com>
Date: Fri, 14 Jun 2024 18:35:57 +0800
Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BC=9A=E5=91=98=E6=A8=A1?=
=?UTF-8?q?=E5=9D=97=E5=92=8C=E8=90=A5=E9=94=80=E6=A8=A1=E5=9D=97=E9=87=8D?=
=?UTF-8?q?=E5=91=BD=E5=90=8D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
README.md | 8 +-
docs/sql/mysql5/youlai_system.sql | 4 +-
docs/sql/mysql8/youlai_system.sql | 4 +-
.../marketing-api}/pom.xml | 6 +-
.../api}/CouponRecordFeignClient.java | 8 +-
.../marketing-boot}/Dockerfile | 0
.../marketing-boot}/pom.xml | 6 +-
.../youlai/mall/sms/MarketingApplication.java | 4 +-
.../controller/admin/AdvertController.java | 30 +++---
.../controller/admin/CouponController.java | 6 +-
.../controller/app/AdvertAppController.java | 8 +-
.../mall/sms/converter/AdvertConverter.java | 10 +-
.../mall/sms/converter/CouponConverter.java | 10 +-
.../sms/enums/CouponApplicationScopeEnum.java | 0
.../sms/enums/CouponFaceValueTypeEnum.java | 0
.../youlai/mall/sms/enums/CouponTypeEnum.java | 0
.../youlai/mall/sms/enums/PlatformEnum.java | 0
.../sms/enums/ValidityPeriodTypeEnum.java | 0
.../youlai/mall/sms/mapper/AdvertMapper.java | 6 +-
.../mall/sms/mapper/CouponHistoryMapper.java | 4 +-
.../youlai/mall/sms/mapper/CouponMapper.java | 6 +-
.../sms/mapper/CouponSpuCategoryMapper.java | 4 +-
.../mall/sms/mapper/CouponSpuMapper.java | 4 +-
.../youlai/mall/sms/model/entity/Advert.java | 8 +-
.../youlai/mall/sms/model/entity/Coupon.java | 12 +--
.../mall/sms/model/entity/CouponHistory.java | 5 +-
.../mall/sms/model/entity/CouponSpu.java | 6 +-
.../sms/model/entity/CouponSpuCategory.java | 2 +-
.../mall/sms/model/form/CouponForm.java | 0
.../mall/sms/model/query/AdvertPageQuery.java | 0
.../mall/sms/model/query/CouponPageQuery.java | 0
.../mall/sms/model/vo/AdvertPageVO.java | 0
.../youlai/mall/sms/model/vo/BannerVO.java | 0
.../mall/sms/model/vo/CouponPageVO.java | 0
.../mall/sms/service/AdvertService.java | 4 +-
.../sms/service/CouponHistoryService.java | 11 +++
.../mall/sms/service/CouponService.java | 4 +-
.../sms/service/CouponSpuCategoryService.java | 11 +++
.../mall/sms/service/CouponSpuService.java | 11 +++
.../sms/service/impl/AdvertServiceImpl.java | 16 ++--
.../impl/CouponHistoryServiceImpl.java | 20 ++++
.../sms/service/impl/CouponServiceImpl.java | 80 ++++++++--------
.../impl/CouponSpuCategoryServiceImpl.java | 20 ++++
.../service/impl/CouponSpuServiceImpl.java | 20 ++++
.../com/youlai/mall/sms/util/CouponUtils.java | 0
.../src/main/resources/bootstrap-dev.yml | 0
.../src/main/resources/bootstrap-prod.yml | 0
.../src/main/resources/bootstrap.yml | 3 +-
.../main/resources/mapper/AdvertMapper.xml | 4 +-
.../resources/mapper/CouponHistoryMapper.xml | 4 +-
.../main/resources/mapper/CouponMapper.xml | 4 +-
.../mapper/CouponSpuCategoryMapper.xml | 2 +-
.../main/resources/mapper/CouponSpuMapper.xml | 4 +-
.../mall/sms/MarketingApplicationTest.java | 2 +-
{mall-sms => mall-marketing}/pom.xml | 6 +-
.../member-api}/pom.xml | 4 +-
.../mall/member}/api/MemberFeignClient.java | 13 ++-
.../youlai/mall/member}/dto/CartItemDTO.java | 2 +-
.../mall/member}/dto/MemberAddressDTO.java | 2 +-
.../mall/member}/dto/MemberAuthDTO.java | 2 +-
.../mall/member}/dto/MemberInfoDTO.java | 2 +-
.../mall/member}/dto/MemberRegisterDTO.java | 2 +-
.../youlai/mall/member}/dto/RechargeDTO.java | 4 +-
.../youlai/mall/member}/dto/ResultPayDTO.java | 2 +-
.../member-boot}/Dockerfile | 2 +-
.../member-boot}/pom.xml | 6 +-
.../youlai/mall/member/MemberApplication.java | 6 +-
.../controller/admin/MemberController.java | 28 +++---
.../controller/app/AddressController.java | 20 ++--
.../member/controller/app/CartController.java | 8 +-
.../controller/app/MemberAppController.java | 24 ++---
.../mall/member/convert/AddressConvert.java | 21 +++++
.../mall/member/convert/CartConverter.java | 25 +++++
.../mall/member}/convert/MemberConvert.java | 19 ++--
.../mall/member}/listener/CartListener.java | 4 +-
.../mall/member/mapper/AddressMapper.java | 8 +-
.../mall/member/mapper/MemberMapper.java | 16 +---
.../mall/member}/model/bo/AddressBO.java | 2 +-
.../mall/member}/model/bo/MemberBO.java | 2 +-
.../member/model/cache}/CartItemCache.java | 2 +-
.../mall/member}/model/dto/MemberDTO.java | 2 +-
.../mall/member/model/entity/Address.java | 12 ++-
.../mall/member/model/entity/Member.java | 4 +-
.../mall/member}/model/form/AddressForm.java | 2 +-
.../member}/model/query/MemberPageQuery.java | 2 +-
.../mall/member}/model/vo/MemberPageVO.java | 4 +-
.../mall/member/service/AddressService.java | 10 +-
.../mall/member}/service/CartService.java | 4 +-
.../mall/member/service/MemberService.java | 18 ++--
.../service/impl/AddressServiceImpl.java | 56 +++++------
.../member}/service/impl/CartServiceImpl.java | 12 +--
.../service/impl/MemberServiceImpl.java | 78 ++++++++--------
.../src/main/resources/bootstrap-dev.yml | 0
.../src/main/resources/bootstrap-prod.yml | 0
.../src/main/resources/bootstrap.yml | 3 +-
.../main/resources/mapper/AddressMapper.xml | 2 +-
.../main/resources/mapper/MemberMapper.xml | 4 +-
{mall-ums => mall-member}/pom.xml | 6 +-
mall-order/order-boot/pom.xml | 2 +-
.../youlai/mall/order/OrderApplication.java | 2 +-
.../mall/order/model/vo/OrderConfirmVO.java | 2 +-
.../order/service/impl/OrderServiceImpl.java | 6 +-
mall-product/product-boot/pom.xml | 2 +-
.../mall/product/ProductApplication.java | 2 +-
.../controller/admin/AttributeController.java | 10 +-
.../controller/admin/SpecController.java | 4 +-
.../mall/product/converter/AttrConverter.java | 15 +--
.../product/converter/CategoryConverter.java | 2 +-
.../mall/product/converter/SpecConverter.java | 6 +-
.../mall/product/enums/AttributeTypeEnum.java | 32 -------
.../product/enums/ProductOrderByEnum.java | 2 -
.../mall/product/listener/StockListener.java | 8 +-
.../mall/product/mapper/AttrGroupMapper.java | 8 +-
.../mall/product/mapper/AttrMapper.java | 12 +--
.../mall/product/mapper/SpecMapper.java | 2 +-
.../youlai/mall/product/model/bo/AttrBO.java | 21 ++---
.../youlai/mall/product/model/bo/SpecBO.java | 14 ++-
.../mall/product/model/entity/Attr.java | 3 +-
.../mall/product/model/entity/Spec.java | 6 +-
.../mall/product/model/form/AttrForm.java | 8 +-
...PageQuery.java => AttrGroupPageQuery.java} | 14 +--
.../model/query/AttributePageQuery.java | 30 ------
.../product/model/vo/AttrGroupPageVO.java | 67 ++++++++++++++
.../mall/product/model/vo/AttrPageVO.java | 48 ----------
.../mall/product/model/vo/SpecPageVO.java | 37 +++-----
.../product/service/AttrGroupService.java | 27 +-----
.../mall/product/service/AttrService.java | 18 +---
.../service/impl/AttrGroupServiceImpl.java | 92 +++++--------------
.../product/service/impl/AttrServiceImpl.java | 59 +++---------
.../service/impl/CategoryServiceImpl.java | 2 +-
.../product/service/impl/SpecServiceImpl.java | 6 +-
.../main/resources/mapper/AttrGroupMapper.xml | 36 +++++---
.../src/main/resources/mapper/AttrMapper.xml | 79 +++-------------
.../src/main/resources/mapper/SpecMapper.xml | 32 ++-----
.../sms/service/SmsCouponHistoryService.java | 11 ---
.../service/SmsCouponSpuCategoryService.java | 11 ---
.../mall/sms/service/SmsCouponSpuService.java | 11 ---
.../impl/SmsCouponHistoryServiceImpl.java | 20 ----
.../impl/SmsCouponSpuCategoryServiceImpl.java | 20 ----
.../service/impl/SmsCouponSpuServiceImpl.java | 20 ----
.../mall/ums/convert/AddressConvert.java | 21 -----
.../mall/ums/convert/CartConverter.java | 26 ------
pom.xml | 8 +-
youlai-auth/pom.xml | 2 +-
.../java/com/youlai/auth/AuthApplication.java | 2 +-
.../com/youlai/auth/model/MemberDetails.java | 2 +-
.../auth/service/MemberDetailsService.java | 6 +-
.../filter/TokenValidationGlobalFilter.java | 3 -
.../system/converter/DeptConverter.java | 2 +-
.../system/converter/MenuConverter.java | 2 +-
.../service/impl/SysDeptServiceImpl.java | 2 +-
.../service/impl/SysMenuServiceImpl.java | 2 +-
152 files changed, 732 insertions(+), 987 deletions(-)
rename {mall-sms/sms-api => mall-marketing/marketing-api}/pom.xml (90%)
rename {mall-sms/sms-api/src/main/java/com/youlai/mall/sms/api/app => mall-marketing/marketing-api/src/main/java/com/youlai/mall/marketing/api}/CouponRecordFeignClient.java (85%)
rename {mall-sms/sms-boot => mall-marketing/marketing-boot}/Dockerfile (100%)
rename {mall-sms/sms-boot => mall-marketing/marketing-boot}/pom.xml (94%)
rename mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/SmsApplication.java => mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/MarketingApplication.java (88%)
rename mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/controller/admin/SmsAdvertController.java => mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/controller/admin/AdvertController.java (68%)
rename mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/controller/admin/SmsCouponController.java => mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/controller/admin/CouponController.java (94%)
rename mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/controller/app/AdvertController.java => mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/controller/app/AdvertAppController.java (80%)
rename {mall-sms/sms-boot => mall-marketing/marketing-boot}/src/main/java/com/youlai/mall/sms/converter/AdvertConverter.java (60%)
rename {mall-sms/sms-boot => mall-marketing/marketing-boot}/src/main/java/com/youlai/mall/sms/converter/CouponConverter.java (87%)
rename {mall-sms/sms-boot => mall-marketing/marketing-boot}/src/main/java/com/youlai/mall/sms/enums/CouponApplicationScopeEnum.java (100%)
rename {mall-sms/sms-boot => mall-marketing/marketing-boot}/src/main/java/com/youlai/mall/sms/enums/CouponFaceValueTypeEnum.java (100%)
rename {mall-sms/sms-boot => mall-marketing/marketing-boot}/src/main/java/com/youlai/mall/sms/enums/CouponTypeEnum.java (100%)
rename {mall-sms/sms-boot => mall-marketing/marketing-boot}/src/main/java/com/youlai/mall/sms/enums/PlatformEnum.java (100%)
rename {mall-sms/sms-boot => mall-marketing/marketing-boot}/src/main/java/com/youlai/mall/sms/enums/ValidityPeriodTypeEnum.java (100%)
rename mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/mapper/SmsAdvertMapper.java => mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/mapper/AdvertMapper.java (65%)
rename mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/mapper/SmsCouponHistoryMapper.java => mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/mapper/CouponHistoryMapper.java (53%)
rename mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/mapper/SmsCouponMapper.java => mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/mapper/CouponMapper.java (63%)
rename mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/mapper/SmsCouponSpuCategoryMapper.java => mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/mapper/CouponSpuCategoryMapper.java (61%)
rename mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/mapper/SmsCouponSpuMapper.java => mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/mapper/CouponSpuMapper.java (65%)
rename mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/model/entity/SmsAdvert.java => mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/model/entity/Advert.java (76%)
rename mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/model/entity/SmsCoupon.java => mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/model/entity/Coupon.java (90%)
rename mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/model/entity/SmsCouponHistory.java => mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/model/entity/CouponHistory.java (93%)
rename mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/model/entity/SmsCouponSpu.java => mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/model/entity/CouponSpu.java (89%)
rename mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/model/entity/SmsCouponSpuCategory.java => mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/model/entity/CouponSpuCategory.java (92%)
rename {mall-sms/sms-boot => mall-marketing/marketing-boot}/src/main/java/com/youlai/mall/sms/model/form/CouponForm.java (100%)
rename {mall-sms/sms-boot => mall-marketing/marketing-boot}/src/main/java/com/youlai/mall/sms/model/query/AdvertPageQuery.java (100%)
rename {mall-sms/sms-boot => mall-marketing/marketing-boot}/src/main/java/com/youlai/mall/sms/model/query/CouponPageQuery.java (100%)
rename {mall-sms/sms-boot => mall-marketing/marketing-boot}/src/main/java/com/youlai/mall/sms/model/vo/AdvertPageVO.java (100%)
rename {mall-sms/sms-boot => mall-marketing/marketing-boot}/src/main/java/com/youlai/mall/sms/model/vo/BannerVO.java (100%)
rename {mall-sms/sms-boot => mall-marketing/marketing-boot}/src/main/java/com/youlai/mall/sms/model/vo/CouponPageVO.java (100%)
rename mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/service/SmsAdvertService.java => mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/service/AdvertService.java (82%)
create mode 100644 mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/service/CouponHistoryService.java
rename mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/service/SmsCouponService.java => mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/service/CouponService.java (91%)
create mode 100644 mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/service/CouponSpuCategoryService.java
create mode 100644 mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/service/CouponSpuService.java
rename mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/service/impl/SmsAdvertServiceImpl.java => mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/service/impl/AdvertServiceImpl.java (68%)
create mode 100644 mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/service/impl/CouponHistoryServiceImpl.java
rename mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/service/impl/SmsCouponServiceImpl.java => mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/service/impl/CouponServiceImpl.java (66%)
create mode 100644 mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/service/impl/CouponSpuCategoryServiceImpl.java
create mode 100644 mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/service/impl/CouponSpuServiceImpl.java
rename {mall-sms/sms-boot => mall-marketing/marketing-boot}/src/main/java/com/youlai/mall/sms/util/CouponUtils.java (100%)
rename {mall-sms/sms-boot => mall-marketing/marketing-boot}/src/main/resources/bootstrap-dev.yml (100%)
rename {mall-sms/sms-boot => mall-marketing/marketing-boot}/src/main/resources/bootstrap-prod.yml (100%)
rename {mall-ums/ums-boot => mall-marketing/marketing-boot}/src/main/resources/bootstrap.yml (66%)
rename mall-sms/sms-boot/src/main/resources/mapper/SmsAdvertMapper.xml => mall-marketing/marketing-boot/src/main/resources/mapper/AdvertMapper.xml (87%)
rename mall-sms/sms-boot/src/main/resources/mapper/SmsCouponHistoryMapper.xml => mall-marketing/marketing-boot/src/main/resources/mapper/CouponHistoryMapper.xml (93%)
rename mall-sms/sms-boot/src/main/resources/mapper/SmsCouponMapper.xml => mall-marketing/marketing-boot/src/main/resources/mapper/CouponMapper.xml (80%)
rename mall-sms/sms-boot/src/main/resources/mapper/SmsCouponSpuCategoryMapper.xml => mall-marketing/marketing-boot/src/main/resources/mapper/CouponSpuCategoryMapper.xml (70%)
rename mall-sms/sms-boot/src/main/resources/mapper/SmsCouponSpuMapper.xml => mall-marketing/marketing-boot/src/main/resources/mapper/CouponSpuMapper.xml (87%)
rename mall-sms/sms-boot/src/test/java/com/youlai/mall/sms/SmsApplicationTest.java => mall-marketing/marketing-boot/src/test/java/com/youlai/mall/sms/MarketingApplicationTest.java (86%)
rename {mall-sms => mall-marketing}/pom.xml (80%)
rename {mall-ums/ums-api => mall-member/member-api}/pom.xml (92%)
rename {mall-ums/ums-api/src/main/java/com/youlai/mall/ums => mall-member/member-api/src/main/java/com/youlai/mall/member}/api/MemberFeignClient.java (83%)
rename {mall-ums/ums-api/src/main/java/com/youlai/mall/ums => mall-member/member-api/src/main/java/com/youlai/mall/member}/dto/CartItemDTO.java (95%)
rename {mall-ums/ums-api/src/main/java/com/youlai/mall/ums => mall-member/member-api/src/main/java/com/youlai/mall/member}/dto/MemberAddressDTO.java (92%)
rename {mall-ums/ums-api/src/main/java/com/youlai/mall/ums => mall-member/member-api/src/main/java/com/youlai/mall/member}/dto/MemberAuthDTO.java (92%)
rename {mall-ums/ums-api/src/main/java/com/youlai/mall/ums => mall-member/member-api/src/main/java/com/youlai/mall/member}/dto/MemberInfoDTO.java (85%)
rename {mall-ums/ums-api/src/main/java/com/youlai/mall/ums => mall-member/member-api/src/main/java/com/youlai/mall/member}/dto/MemberRegisterDTO.java (93%)
rename {mall-ums/ums-api/src/main/java/com/youlai/mall/ums => mall-member/member-api/src/main/java/com/youlai/mall/member}/dto/RechargeDTO.java (90%)
rename {mall-ums/ums-api/src/main/java/com/youlai/mall/ums => mall-member/member-api/src/main/java/com/youlai/mall/member}/dto/ResultPayDTO.java (90%)
rename {mall-ums/ums-boot => mall-member/member-boot}/Dockerfile (96%)
rename {mall-ums/ums-boot => mall-member/member-boot}/pom.xml (95%)
rename mall-ums/ums-boot/src/main/java/com/youlai/mall/ums/UmsApplication.java => mall-member/member-boot/src/main/java/com/youlai/mall/member/MemberApplication.java (78%)
rename {mall-ums/ums-boot/src/main/java/com/youlai/mall/ums => mall-member/member-boot/src/main/java/com/youlai/mall/member}/controller/admin/MemberController.java (72%)
rename mall-ums/ums-boot/src/main/java/com/youlai/mall/ums/controller/app/AppAddressController.java => mall-member/member-boot/src/main/java/com/youlai/mall/member/controller/app/AddressController.java (79%)
rename mall-ums/ums-boot/src/main/java/com/youlai/mall/ums/controller/app/AppCartController.java => mall-member/member-boot/src/main/java/com/youlai/mall/member/controller/app/CartController.java (92%)
rename mall-ums/ums-boot/src/main/java/com/youlai/mall/ums/controller/app/AppMemberController.java => mall-member/member-boot/src/main/java/com/youlai/mall/member/controller/app/MemberAppController.java (82%)
create mode 100644 mall-member/member-boot/src/main/java/com/youlai/mall/member/convert/AddressConvert.java
create mode 100644 mall-member/member-boot/src/main/java/com/youlai/mall/member/convert/CartConverter.java
rename {mall-ums/ums-boot/src/main/java/com/youlai/mall/ums => mall-member/member-boot/src/main/java/com/youlai/mall/member}/convert/MemberConvert.java (59%)
rename {mall-ums/ums-boot/src/main/java/com/youlai/mall/ums => mall-member/member-boot/src/main/java/com/youlai/mall/member}/listener/CartListener.java (93%)
rename mall-ums/ums-boot/src/main/java/com/youlai/mall/ums/mapper/UmsAddressMapper.java => mall-member/member-boot/src/main/java/com/youlai/mall/member/mapper/AddressMapper.java (66%)
rename mall-ums/ums-boot/src/main/java/com/youlai/mall/ums/mapper/UmsMemberMapper.java => mall-member/member-boot/src/main/java/com/youlai/mall/member/mapper/MemberMapper.java (51%)
rename {mall-ums/ums-boot/src/main/java/com/youlai/mall/ums => mall-member/member-boot/src/main/java/com/youlai/mall/member}/model/bo/AddressBO.java (94%)
rename {mall-ums/ums-boot/src/main/java/com/youlai/mall/ums => mall-member/member-boot/src/main/java/com/youlai/mall/member}/model/bo/MemberBO.java (96%)
rename {mall-ums/ums-boot/src/main/java/com/youlai/mall/ums/model/dto => mall-member/member-boot/src/main/java/com/youlai/mall/member/model/cache}/CartItemCache.java (91%)
rename {mall-ums/ums-boot/src/main/java/com/youlai/mall/ums => mall-member/member-boot/src/main/java/com/youlai/mall/member}/model/dto/MemberDTO.java (93%)
rename mall-ums/ums-boot/src/main/java/com/youlai/mall/ums/model/entity/UmsAddress.java => mall-member/member-boot/src/main/java/com/youlai/mall/member/model/entity/Address.java (79%)
rename mall-ums/ums-boot/src/main/java/com/youlai/mall/ums/model/entity/UmsMember.java => mall-member/member-boot/src/main/java/com/youlai/mall/member/model/entity/Member.java (94%)
rename {mall-ums/ums-boot/src/main/java/com/youlai/mall/ums => mall-member/member-boot/src/main/java/com/youlai/mall/member}/model/form/AddressForm.java (96%)
rename {mall-ums/ums-boot/src/main/java/com/youlai/mall/ums => mall-member/member-boot/src/main/java/com/youlai/mall/member}/model/query/MemberPageQuery.java (91%)
rename {mall-ums/ums-boot/src/main/java/com/youlai/mall/ums => mall-member/member-boot/src/main/java/com/youlai/mall/member}/model/vo/MemberPageVO.java (93%)
rename mall-ums/ums-boot/src/main/java/com/youlai/mall/ums/service/UmsAddressService.java => mall-member/member-boot/src/main/java/com/youlai/mall/member/service/AddressService.java (69%)
rename {mall-ums/ums-boot/src/main/java/com/youlai/mall/ums => mall-member/member-boot/src/main/java/com/youlai/mall/member}/service/CartService.java (91%)
rename mall-ums/ums-boot/src/main/java/com/youlai/mall/ums/service/UmsMemberService.java => mall-member/member-boot/src/main/java/com/youlai/mall/member/service/MemberService.java (73%)
rename mall-ums/ums-boot/src/main/java/com/youlai/mall/ums/service/impl/UmsAddressServiceImpl.java => mall-member/member-boot/src/main/java/com/youlai/mall/member/service/impl/AddressServiceImpl.java (56%)
rename {mall-ums/ums-boot/src/main/java/com/youlai/mall/ums => mall-member/member-boot/src/main/java/com/youlai/mall/member}/service/impl/CartServiceImpl.java (94%)
rename mall-ums/ums-boot/src/main/java/com/youlai/mall/ums/service/impl/UmsMemberServiceImpl.java => mall-member/member-boot/src/main/java/com/youlai/mall/member/service/impl/MemberServiceImpl.java (61%)
rename {mall-ums/ums-boot => mall-member/member-boot}/src/main/resources/bootstrap-dev.yml (100%)
rename {mall-ums/ums-boot => mall-member/member-boot}/src/main/resources/bootstrap-prod.yml (100%)
rename {mall-sms/sms-boot => mall-member/member-boot}/src/main/resources/bootstrap.yml (69%)
rename mall-ums/ums-boot/src/main/resources/mapper/UmsAddressMapper.xml => mall-member/member-boot/src/main/resources/mapper/AddressMapper.xml (95%)
rename mall-ums/ums-boot/src/main/resources/mapper/UmsMemberMapper.xml => mall-member/member-boot/src/main/resources/mapper/MemberMapper.xml (88%)
rename {mall-ums => mall-member}/pom.xml (81%)
delete mode 100644 mall-product/product-boot/src/main/java/com/youlai/mall/product/enums/AttributeTypeEnum.java
rename mall-product/product-boot/src/main/java/com/youlai/mall/product/model/query/{AttributeGroupPageQuery.java => AttrGroupPageQuery.java} (68%)
delete mode 100644 mall-product/product-boot/src/main/java/com/youlai/mall/product/model/query/AttributePageQuery.java
create mode 100644 mall-product/product-boot/src/main/java/com/youlai/mall/product/model/vo/AttrGroupPageVO.java
delete mode 100644 mall-product/product-boot/src/main/java/com/youlai/mall/product/model/vo/AttrPageVO.java
delete mode 100644 mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/service/SmsCouponHistoryService.java
delete mode 100644 mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/service/SmsCouponSpuCategoryService.java
delete mode 100644 mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/service/SmsCouponSpuService.java
delete mode 100644 mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/service/impl/SmsCouponHistoryServiceImpl.java
delete mode 100644 mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/service/impl/SmsCouponSpuCategoryServiceImpl.java
delete mode 100644 mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/service/impl/SmsCouponSpuServiceImpl.java
delete mode 100644 mall-ums/ums-boot/src/main/java/com/youlai/mall/ums/convert/AddressConvert.java
delete mode 100644 mall-ums/ums-boot/src/main/java/com/youlai/mall/ums/convert/CartConverter.java
diff --git a/README.md b/README.md
index f5f0fd73a..18f861127 100644
--- a/README.md
+++ b/README.md
@@ -68,7 +68,7 @@ youlai-mall
├── sql # SQL脚本
├── mysql5 # MySQL5脚本
├── mysql8 # MySQL8脚本
-├── mall-sms # 营销服务(Sales Management Service)
+├── mall-marketing # 营销服务(Sales Management Service)
├── sms-api # 营销服务-Feign客户端
├── sms-boot # 营销服务-启动应用
├── mall-product # 商品服务(Product Management Service)
@@ -76,9 +76,9 @@ youlai-mall
├── product-boot # 商品服务-启动应用
├── mall-order # 订单服务(Order Management Service)
├── order-boot # 订单服务-启动应用
-├── mall-ums # 会员服务(User Management Service)
- ├── ums-api # 会员服务-Feign客户端
- ├── ums-boot # 会员服务-启动应用
+├── mall-member # 会员服务(User Management Service)
+ ├── member-api # 会员服务-Feign客户端
+ ├── member-boot # 会员服务-启动应用
├── youlai-auth # 认证授权中心
├── youlai-common # 公共模块
├── common-core # 基础依赖
diff --git a/docs/sql/mysql5/youlai_system.sql b/docs/sql/mysql5/youlai_system.sql
index b2e7701da..2c9c7566e 100644
--- a/docs/sql/mysql5/youlai_system.sql
+++ b/docs/sql/mysql5/youlai_system.sql
@@ -115,8 +115,8 @@ INSERT INTO `sys_menu` VALUES (11, 0, 1, '商品管理', '/product', 'Layout', N
INSERT INTO `sys_menu` VALUES (12, 11, 1, '商品列表', 'goods', 'product/goods/index', NULL, 'goods-list', 1, 1, NULL, NULL, NULL, 1, '2021-08-28 09:12:21', '2021-08-28 09:12:21');
INSERT INTO `sys_menu` VALUES (13, 0, 2, '订单管理', '/oms', 'Layout', NULL, 'el-icon-ShoppingCart', 3, 1, '/oms/order', '0', 1, 1, '2021-08-28 09:12:21', '2024-03-03 23:52:32');
INSERT INTO `sys_menu` VALUES (14, 13, 1, '订单列表', 'order', 'oms/order/index', NULL, 'el-icon-Document', 1, 1, NULL, 'null,13', NULL, 1, '2021-08-28 09:12:21', '2024-03-03 23:45:09');
-INSERT INTO `sys_menu` VALUES (15, 0, 1, '会员管理', '/ums', 'Layout', NULL, 'user', 4, 1, '/ums/member', NULL, NULL, 1, '2021-08-28 09:12:21', '2021-08-28 09:12:21');
-INSERT INTO `sys_menu` VALUES (16, 15, 1, '会员列表', 'member', 'ums/member/index', NULL, 'peoples', 1, 1, NULL, NULL, NULL, 1, '2021-08-28 09:12:21', '2021-08-28 09:12:21');
+INSERT INTO `sys_menu` VALUES (15, 0, 1, '会员管理', '/member', 'Layout', NULL, 'user', 4, 1, '/member/member', NULL, NULL, 1, '2021-08-28 09:12:21', '2021-08-28 09:12:21');
+INSERT INTO `sys_menu` VALUES (16, 15, 1, '会员列表', 'member', 'member/member/index', NULL, 'peoples', 1, 1, NULL, NULL, NULL, 1, '2021-08-28 09:12:21', '2021-08-28 09:12:21');
INSERT INTO `sys_menu` VALUES (17, 11, 1, '品牌管理', 'brand', 'product/brand/index', NULL, 'brand', 5, 1, NULL, NULL, NULL, 1, '2021-08-28 09:12:21', '2021-08-28 09:12:21');
INSERT INTO `sys_menu` VALUES (18, 11, 1, '商品分类', 'category', 'product/category/index', NULL, 'menu', 3, 1, NULL, NULL, NULL, 1, '2021-08-28 09:12:21', '2021-08-28 09:12:21');
INSERT INTO `sys_menu` VALUES (19, 11, 1, '商品上架', 'goods-detail', 'product/goods/detail', NULL, 'publish', 2, 1, NULL, NULL, NULL, NULL, '2021-08-28 09:12:21', '2021-08-28 09:12:21');
diff --git a/docs/sql/mysql8/youlai_system.sql b/docs/sql/mysql8/youlai_system.sql
index f081db125..7a9fbaadb 100644
--- a/docs/sql/mysql8/youlai_system.sql
+++ b/docs/sql/mysql8/youlai_system.sql
@@ -130,8 +130,8 @@ INSERT INTO `sys_menu` VALUES (11, 0, 1, '商品管理', '/product', 'Layout', N
INSERT INTO `sys_menu` VALUES (12, 11, 1, '商品列表', 'goods', 'product/goods/index', NULL, 'goods-list', 1, 1, NULL, NULL, NULL, 1, NULL, '2021-08-28 09:12:21', '2021-08-28 09:12:21');
INSERT INTO `sys_menu` VALUES (13, 0, 2, '订单管理', '/oms', 'Layout', NULL, 'el-icon-ShoppingCart', 3, 1, '/oms/order', '0', 1, 1, NULL, '2021-08-28 09:12:21', '2024-03-03 23:52:32');
INSERT INTO `sys_menu` VALUES (14, 13, 1, '订单列表', 'order', 'oms/order/index', NULL, 'el-icon-Document', 1, 1, NULL, 'null,13', NULL, 1, NULL, '2021-08-28 09:12:21', '2024-03-03 23:45:09');
-INSERT INTO `sys_menu` VALUES (15, 0, 1, '会员管理', '/ums', 'Layout', NULL, 'user', 4, 1, '/ums/member', NULL, NULL, 1, NULL, '2021-08-28 09:12:21', '2021-08-28 09:12:21');
-INSERT INTO `sys_menu` VALUES (16, 15, 1, '会员列表', 'member', 'ums/member/index', NULL, 'peoples', 1, 1, NULL, NULL, NULL, 1, NULL, '2021-08-28 09:12:21', '2021-08-28 09:12:21');
+INSERT INTO `sys_menu` VALUES (15, 0, 1, '会员管理', '/member', 'Layout', NULL, 'user', 4, 1, '/member/member', NULL, NULL, 1, NULL, '2021-08-28 09:12:21', '2021-08-28 09:12:21');
+INSERT INTO `sys_menu` VALUES (16, 15, 1, '会员列表', 'member', 'member/member/index', NULL, 'peoples', 1, 1, NULL, NULL, NULL, 1, NULL, '2021-08-28 09:12:21', '2021-08-28 09:12:21');
INSERT INTO `sys_menu` VALUES (17, 11, 1, '品牌管理', 'brand', 'product/brand/index', NULL, 'brand', 5, 1, NULL, NULL, NULL, 1, NULL, '2021-08-28 09:12:21', '2021-08-28 09:12:21');
INSERT INTO `sys_menu` VALUES (18, 11, 1, '商品分类', 'category', 'product/category/index', NULL, 'menu', 3, 1, NULL, NULL, NULL, 1, NULL, '2021-08-28 09:12:21', '2021-08-28 09:12:21');
INSERT INTO `sys_menu` VALUES (19, 11, 1, '商品上架', 'goods-detail', 'product/goods/detail', NULL, 'publish', 2, 1, NULL, NULL, NULL, NULL, NULL, '2021-08-28 09:12:21', '2021-08-28 09:12:21');
diff --git a/mall-sms/sms-api/pom.xml b/mall-marketing/marketing-api/pom.xml
similarity index 90%
rename from mall-sms/sms-api/pom.xml
rename to mall-marketing/marketing-api/pom.xml
index e4264ef9b..9deb455d0 100644
--- a/mall-sms/sms-api/pom.xml
+++ b/mall-marketing/marketing-api/pom.xml
@@ -3,13 +3,13 @@
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">
- mall-sms
+ mall-marketing
com.youlai
3.2.1
4.0.0
- sms-api
+ marketing-api
@@ -36,7 +36,7 @@
com.youlai
- ums-api
+ member-api
diff --git a/mall-sms/sms-api/src/main/java/com/youlai/mall/sms/api/app/CouponRecordFeignClient.java b/mall-marketing/marketing-api/src/main/java/com/youlai/mall/marketing/api/CouponRecordFeignClient.java
similarity index 85%
rename from mall-sms/sms-api/src/main/java/com/youlai/mall/sms/api/app/CouponRecordFeignClient.java
rename to mall-marketing/marketing-api/src/main/java/com/youlai/mall/marketing/api/CouponRecordFeignClient.java
index 51d53cdf4..080a447b0 100644
--- a/mall-sms/sms-api/src/main/java/com/youlai/mall/sms/api/app/CouponRecordFeignClient.java
+++ b/mall-marketing/marketing-api/src/main/java/com/youlai/mall/marketing/api/CouponRecordFeignClient.java
@@ -1,4 +1,4 @@
-package com.youlai.mall.sms.api.app;
+package com.youlai.mall.marketing.api;
import com.youlai.common.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
@@ -8,12 +8,12 @@ import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
/**
+ * 优惠券领券记录APP端Feign接口
+ *
* @author huawei
- * @desc 优惠券领券记录APP端Feign接口
- * @email huawei_code@163.com
* @since 2021/3/17
*/
-@FeignClient(value = "mall-sms")
+@FeignClient(value = "mall-marketing")
public interface CouponRecordFeignClient {
@GetMapping("/api.app/v1/coupon_record/list")
diff --git a/mall-sms/sms-boot/Dockerfile b/mall-marketing/marketing-boot/Dockerfile
similarity index 100%
rename from mall-sms/sms-boot/Dockerfile
rename to mall-marketing/marketing-boot/Dockerfile
diff --git a/mall-sms/sms-boot/pom.xml b/mall-marketing/marketing-boot/pom.xml
similarity index 94%
rename from mall-sms/sms-boot/pom.xml
rename to mall-marketing/marketing-boot/pom.xml
index cc4f118ef..abb7e68dc 100644
--- a/mall-sms/sms-boot/pom.xml
+++ b/mall-marketing/marketing-boot/pom.xml
@@ -3,13 +3,13 @@
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">
- mall-sms
+ mall-marketing
com.youlai
3.2.1
4.0.0
- sms-boot
+ marketing-boot
8804
@@ -55,7 +55,7 @@
com.youlai
- sms-api
+ marketing-api
diff --git a/mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/SmsApplication.java b/mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/MarketingApplication.java
similarity index 88%
rename from mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/SmsApplication.java
rename to mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/MarketingApplication.java
index 2c40ac997..d5711020e 100644
--- a/mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/SmsApplication.java
+++ b/mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/MarketingApplication.java
@@ -16,9 +16,9 @@ import org.springframework.scheduling.annotation.EnableScheduling;
@EnableDiscoveryClient
@EnableFeignClients
@EnableScheduling
-public class SmsApplication {
+public class MarketingApplication {
public static void main(String[] args) {
- SpringApplication.run(SmsApplication.class, args);
+ SpringApplication.run(MarketingApplication.class, args);
}
}
diff --git a/mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/controller/admin/SmsAdvertController.java b/mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/controller/admin/AdvertController.java
similarity index 68%
rename from mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/controller/admin/SmsAdvertController.java
rename to mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/controller/admin/AdvertController.java
index d132e08eb..f9803a904 100644
--- a/mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/controller/admin/SmsAdvertController.java
+++ b/mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/controller/admin/AdvertController.java
@@ -5,9 +5,9 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.youlai.common.result.PageResult;
import com.youlai.common.result.Result;
-import com.youlai.mall.sms.model.entity.SmsAdvert;
+import com.youlai.mall.sms.model.entity.Advert;
import com.youlai.mall.sms.model.query.AdvertPageQuery;
-import com.youlai.mall.sms.service.SmsAdvertService;
+import com.youlai.mall.sms.service.AdvertService;
import io.swagger.v3.oas.annotations.tags.Tag;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
@@ -20,13 +20,13 @@ import java.util.Arrays;
@RestController
@RequestMapping("/api/v1/adverts")
@RequiredArgsConstructor
-public class SmsAdvertController {
+public class AdvertController {
- private final SmsAdvertService smsAdvertService;
+ private final AdvertService advertService;
@Operation(summary= "广告分页列表")
@GetMapping("/page")
- public PageResult getAdvertPage(AdvertPageQuery queryParams) {
+ public PageResult getAdvertPage(AdvertPageQuery queryParams) {
// 查询参数
int pageNum = queryParams.getPageNum();
@@ -34,11 +34,11 @@ public class SmsAdvertController {
String keywords = queryParams.getKeywords();
// 分页查询
- Page result = smsAdvertService.page(
+ Page result = advertService.page(
new Page<>(pageNum, pageSize),
- new LambdaQueryWrapper()
- .like(StrUtil.isNotBlank(keywords), SmsAdvert::getTitle, keywords)
- .orderByAsc(SmsAdvert::getSort)
+ new LambdaQueryWrapper()
+ .like(StrUtil.isNotBlank(keywords), Advert::getTitle, keywords)
+ .orderByAsc(Advert::getSort)
);
return PageResult.success(result);
}
@@ -48,14 +48,14 @@ public class SmsAdvertController {
public Result getAdvertDetail(
@Parameter(description = "广告ID") @PathVariable Long id
) {
- SmsAdvert advert = smsAdvertService.getById(id);
+ Advert advert = advertService.getById(id);
return Result.success(advert);
}
@Operation(summary= "新增广告")
@PostMapping
- public Result addAvert(@RequestBody SmsAdvert advert) {
- boolean status = smsAdvertService.save(advert);
+ public Result addAvert(@RequestBody Advert advert) {
+ boolean status = advertService.save(advert);
return Result.judge(status);
}
@@ -63,15 +63,15 @@ public class SmsAdvertController {
@PutMapping(value = "/{id}")
public Result updateAdvert(
@Parameter(description = "广告ID") @PathVariable Long id,
- @RequestBody SmsAdvert advert) {
- boolean status = smsAdvertService.updateById(advert);
+ @RequestBody Advert advert) {
+ boolean status = advertService.updateById(advert);
return Result.judge(status);
}
@Operation(summary= "删除广告")
@DeleteMapping("/{ids}")
public Result deleteAdverts(@Parameter(description = "广告ID,多个以英文逗号(,)分割") @PathVariable("ids") String ids) {
- boolean status = smsAdvertService.removeByIds(Arrays.asList(ids.split(",")));
+ boolean status = advertService.removeByIds(Arrays.asList(ids.split(",")));
return Result.judge(status);
diff --git a/mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/controller/admin/SmsCouponController.java b/mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/controller/admin/CouponController.java
similarity index 94%
rename from mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/controller/admin/SmsCouponController.java
rename to mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/controller/admin/CouponController.java
index 86844105a..5dc7f1aeb 100644
--- a/mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/controller/admin/SmsCouponController.java
+++ b/mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/controller/admin/CouponController.java
@@ -6,7 +6,7 @@ import com.youlai.common.result.Result;
import com.youlai.mall.sms.model.form.CouponForm;
import com.youlai.mall.sms.model.query.CouponPageQuery;
import com.youlai.mall.sms.model.vo.CouponPageVO;
-import com.youlai.mall.sms.service.SmsCouponService;
+import com.youlai.mall.sms.service.CouponService;
import io.swagger.v3.oas.annotations.tags.Tag;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
@@ -19,9 +19,9 @@ import jakarta.validation.Valid;
@RestController
@RequestMapping("/api/v1/coupons")
@RequiredArgsConstructor
-public class SmsCouponController {
+public class CouponController {
- private final SmsCouponService couponService;
+ private final CouponService couponService;
@Operation(summary= "优惠券分页列表")
@GetMapping("/pages")
diff --git a/mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/controller/app/AdvertController.java b/mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/controller/app/AdvertAppController.java
similarity index 80%
rename from mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/controller/app/AdvertController.java
rename to mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/controller/app/AdvertAppController.java
index 8e4d647fe..361023e50 100644
--- a/mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/controller/app/AdvertController.java
+++ b/mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/controller/app/AdvertAppController.java
@@ -2,7 +2,7 @@ package com.youlai.mall.sms.controller.app;
import com.youlai.common.result.Result;
import com.youlai.mall.sms.model.vo.BannerVO;
-import com.youlai.mall.sms.service.SmsAdvertService;
+import com.youlai.mall.sms.service.AdvertService;
import io.swagger.v3.oas.annotations.tags.Tag;
import io.swagger.v3.oas.annotations.Operation;
import lombok.AllArgsConstructor;
@@ -18,13 +18,13 @@ import java.util.List;
@RequestMapping("/app-api/v1/adverts")
@Slf4j
@AllArgsConstructor
-public class AdvertController {
+public class AdvertAppController {
- private SmsAdvertService smsAdvertService;
+ private AdvertService advertService;
@Operation(summary= "APP首页广告横幅列表")
@GetMapping("/banners")
public Result> getBannerList() {
- List list = smsAdvertService.getBannerList();
+ List list = advertService.getBannerList();
return Result.success(list);
}
}
diff --git a/mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/converter/AdvertConverter.java b/mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/converter/AdvertConverter.java
similarity index 60%
rename from mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/converter/AdvertConverter.java
rename to mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/converter/AdvertConverter.java
index f2970e384..b289a0d6b 100644
--- a/mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/converter/AdvertConverter.java
+++ b/mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/converter/AdvertConverter.java
@@ -2,7 +2,7 @@ package com.youlai.mall.sms.converter;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
-import com.youlai.mall.sms.model.entity.SmsAdvert;
+import com.youlai.mall.sms.model.entity.Advert;
import com.youlai.mall.sms.model.vo.BannerVO;
import com.youlai.mall.sms.model.vo.AdvertPageVO;
import org.mapstruct.Mapper;
@@ -18,11 +18,11 @@ import java.util.List;
@Mapper(componentModel = "spring")
public interface AdvertConverter {
- AdvertPageVO entity2PageVo(SmsAdvert entity);
+ AdvertPageVO entity2PageVo(Advert entity);
- Page entity2PageVo(Page po);
+ Page entity2PageVo(Page po);
- BannerVO entity2BannerVo(SmsAdvert entity);
+ BannerVO entity2BannerVo(Advert entity);
- List entity2BannerVo(List entities);
+ List entity2BannerVo(List entities);
}
\ No newline at end of file
diff --git a/mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/converter/CouponConverter.java b/mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/converter/CouponConverter.java
similarity index 87%
rename from mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/converter/CouponConverter.java
rename to mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/converter/CouponConverter.java
index b6ece536e..e45768d39 100644
--- a/mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/converter/CouponConverter.java
+++ b/mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/converter/CouponConverter.java
@@ -1,7 +1,7 @@
package com.youlai.mall.sms.converter;
-import com.youlai.mall.sms.model.entity.SmsCoupon;
+import com.youlai.mall.sms.model.entity.Coupon;
import com.youlai.mall.sms.model.form.CouponForm;
import com.youlai.mall.sms.model.vo.CouponPageVO;
import org.mapstruct.Mapper;
@@ -29,20 +29,20 @@ public interface CouponConverter {
),
@Mapping(target = "minPointLabel", expression = "java(cn.hutool.core.util.NumberUtil.toStr(cn.hutool.core.util.NumberUtil.div(entity.getMinPoint(),new java.math.BigDecimal(100)).setScale(2)))"),
})
- CouponPageVO entity2PageVO(SmsCoupon entity);
+ CouponPageVO entity2PageVO(Coupon entity);
- List entity2PageVO(List entities);
+ List entity2PageVO(List entities);
@Mappings({
@Mapping(target = "discount",expression = "java(cn.hutool.core.util.NumberUtil.div(form.getDiscount(),10L))"),
})
- SmsCoupon toEntity(CouponForm form);
+ Coupon toEntity(CouponForm form);
@Mappings({
@Mapping(target = "discount",expression = "java(cn.hutool.core.util.NumberUtil.mul(entity.getDiscount(),10L))"),
})
- CouponForm toForm(SmsCoupon entity);
+ CouponForm toForm(Coupon entity);
}
\ No newline at end of file
diff --git a/mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/enums/CouponApplicationScopeEnum.java b/mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/enums/CouponApplicationScopeEnum.java
similarity index 100%
rename from mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/enums/CouponApplicationScopeEnum.java
rename to mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/enums/CouponApplicationScopeEnum.java
diff --git a/mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/enums/CouponFaceValueTypeEnum.java b/mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/enums/CouponFaceValueTypeEnum.java
similarity index 100%
rename from mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/enums/CouponFaceValueTypeEnum.java
rename to mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/enums/CouponFaceValueTypeEnum.java
diff --git a/mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/enums/CouponTypeEnum.java b/mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/enums/CouponTypeEnum.java
similarity index 100%
rename from mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/enums/CouponTypeEnum.java
rename to mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/enums/CouponTypeEnum.java
diff --git a/mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/enums/PlatformEnum.java b/mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/enums/PlatformEnum.java
similarity index 100%
rename from mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/enums/PlatformEnum.java
rename to mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/enums/PlatformEnum.java
diff --git a/mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/enums/ValidityPeriodTypeEnum.java b/mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/enums/ValidityPeriodTypeEnum.java
similarity index 100%
rename from mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/enums/ValidityPeriodTypeEnum.java
rename to mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/enums/ValidityPeriodTypeEnum.java
diff --git a/mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/mapper/SmsAdvertMapper.java b/mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/mapper/AdvertMapper.java
similarity index 65%
rename from mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/mapper/SmsAdvertMapper.java
rename to mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/mapper/AdvertMapper.java
index f87fd655b..cd1fbcab5 100644
--- a/mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/mapper/SmsAdvertMapper.java
+++ b/mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/mapper/AdvertMapper.java
@@ -2,12 +2,12 @@ package com.youlai.mall.sms.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
-import com.youlai.mall.sms.model.entity.SmsAdvert;
+import com.youlai.mall.sms.model.entity.Advert;
import com.youlai.mall.sms.model.query.AdvertPageQuery;
import org.apache.ibatis.annotations.Mapper;
@Mapper
-public interface SmsAdvertMapper extends BaseMapper {
+public interface AdvertMapper extends BaseMapper {
/**
* 广告分页列表
@@ -16,5 +16,5 @@ public interface SmsAdvertMapper extends BaseMapper {
* @param queryParams
* @return
*/
- Page getAdvertPage(Page page, AdvertPageQuery queryParams);
+ Page getAdvertPage(Page page, AdvertPageQuery queryParams);
}
diff --git a/mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/mapper/SmsCouponHistoryMapper.java b/mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/mapper/CouponHistoryMapper.java
similarity index 53%
rename from mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/mapper/SmsCouponHistoryMapper.java
rename to mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/mapper/CouponHistoryMapper.java
index 796f69d09..c05463f32 100644
--- a/mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/mapper/SmsCouponHistoryMapper.java
+++ b/mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/mapper/CouponHistoryMapper.java
@@ -1,12 +1,12 @@
package com.youlai.mall.sms.mapper;
-import com.youlai.mall.sms.model.entity.SmsCouponHistory;
+import com.youlai.mall.sms.model.entity.CouponHistory;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
@Mapper
-public interface SmsCouponHistoryMapper extends BaseMapper {
+public interface CouponHistoryMapper extends BaseMapper {
}
diff --git a/mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/mapper/SmsCouponMapper.java b/mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/mapper/CouponMapper.java
similarity index 63%
rename from mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/mapper/SmsCouponMapper.java
rename to mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/mapper/CouponMapper.java
index e049e9738..d20ca9982 100644
--- a/mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/mapper/SmsCouponMapper.java
+++ b/mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/mapper/CouponMapper.java
@@ -1,7 +1,7 @@
package com.youlai.mall.sms.mapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
-import com.youlai.mall.sms.model.entity.SmsCoupon;
+import com.youlai.mall.sms.model.entity.Coupon;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.youlai.mall.sms.model.query.CouponPageQuery;
import com.youlai.mall.sms.model.vo.CouponPageVO;
@@ -11,9 +11,9 @@ import java.util.List;
@Mapper
-public interface SmsCouponMapper extends BaseMapper {
+public interface CouponMapper extends BaseMapper {
- List getCouponPage(Page page, CouponPageQuery queryParams);
+ List getCouponPage(Page page, CouponPageQuery queryParams);
}
diff --git a/mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/mapper/SmsCouponSpuCategoryMapper.java b/mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/mapper/CouponSpuCategoryMapper.java
similarity index 61%
rename from mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/mapper/SmsCouponSpuCategoryMapper.java
rename to mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/mapper/CouponSpuCategoryMapper.java
index ec7c5ca68..8849b916f 100644
--- a/mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/mapper/SmsCouponSpuCategoryMapper.java
+++ b/mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/mapper/CouponSpuCategoryMapper.java
@@ -1,6 +1,6 @@
package com.youlai.mall.sms.mapper;
-import com.youlai.mall.sms.model.entity.SmsCouponSpuCategory;
+import com.youlai.mall.sms.model.entity.CouponSpuCategory;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
@@ -11,7 +11,7 @@ import org.apache.ibatis.annotations.Mapper;
* @since 2022/6/30
*/
@Mapper
-public interface SmsCouponSpuCategoryMapper extends BaseMapper {
+public interface CouponSpuCategoryMapper extends BaseMapper {
}
diff --git a/mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/mapper/SmsCouponSpuMapper.java b/mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/mapper/CouponSpuMapper.java
similarity index 65%
rename from mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/mapper/SmsCouponSpuMapper.java
rename to mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/mapper/CouponSpuMapper.java
index c9a85ece1..908225c17 100644
--- a/mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/mapper/SmsCouponSpuMapper.java
+++ b/mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/mapper/CouponSpuMapper.java
@@ -1,6 +1,6 @@
package com.youlai.mall.sms.mapper;
-import com.youlai.mall.sms.model.entity.SmsCouponSpu;
+import com.youlai.mall.sms.model.entity.CouponSpu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
@@ -11,7 +11,7 @@ import org.apache.ibatis.annotations.Mapper;
* @since 2022/6/30
*/
@Mapper
-public interface SmsCouponSpuMapper extends BaseMapper {
+public interface CouponSpuMapper extends BaseMapper {
}
diff --git a/mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/model/entity/SmsAdvert.java b/mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/model/entity/Advert.java
similarity index 76%
rename from mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/model/entity/SmsAdvert.java
rename to mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/model/entity/Advert.java
index 0a49be8ac..8df31d356 100644
--- a/mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/model/entity/SmsAdvert.java
+++ b/mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/model/entity/Advert.java
@@ -1,5 +1,6 @@
package com.youlai.mall.sms.model.entity;
+import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.youlai.common.base.BaseEntity;
import lombok.Data;
@@ -14,14 +15,15 @@ import java.util.Date;
* @since 2024/6/7
*/
@EqualsAndHashCode(callSuper = true)
+@TableName("sms_advert")
@Data
-public class SmsAdvert extends BaseEntity {
+public class Advert extends BaseEntity {
private String title;
private String imageUrl;
- @JsonFormat( pattern = "yyyy-MM-dd", timezone = "GMT+8")
+ @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
private Date startTime;
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
@@ -40,7 +42,7 @@ public class SmsAdvert extends BaseEntity {
/**
* 跳转URL
*/
- private String redirectUrl;
+ private String redirectUrl;
private String remark;
diff --git a/mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/model/entity/SmsCoupon.java b/mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/model/entity/Coupon.java
similarity index 90%
rename from mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/model/entity/SmsCoupon.java
rename to mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/model/entity/Coupon.java
index 0554dc411..50b33848a 100644
--- a/mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/model/entity/SmsCoupon.java
+++ b/mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/model/entity/Coupon.java
@@ -18,9 +18,9 @@ import java.util.Date;
* @since 2024/6/7
*/
@EqualsAndHashCode(callSuper = true)
-@TableName
+@TableName("sms_coupon")
@Data
-public class SmsCoupon extends BaseEntity {
+public class Coupon extends BaseEntity {
/**
* ID
*/
@@ -85,7 +85,7 @@ public class SmsCoupon extends BaseEntity {
/**
* 有效期起始时间
*/
- private Date validityBeginTime;
+ private Date validityStartTime;
/**
* 有效期截止时间
@@ -117,10 +117,4 @@ public class SmsCoupon extends BaseEntity {
*/
private String remark;
- /**
- * 逻辑删除标识(0:正常;1:删除)
- */
- @TableLogic(value = "0", delval = "1")
- private Integer deleted;
-
}
\ No newline at end of file
diff --git a/mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/model/entity/SmsCouponHistory.java b/mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/model/entity/CouponHistory.java
similarity index 93%
rename from mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/model/entity/SmsCouponHistory.java
rename to mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/model/entity/CouponHistory.java
index 6c40aeeed..395d3a7c2 100644
--- a/mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/model/entity/SmsCouponHistory.java
+++ b/mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/model/entity/CouponHistory.java
@@ -8,12 +8,11 @@ import java.util.Date;
import lombok.Data;
/**
- *
- * @TableName sms_coupon_history
+ * 优惠券领取历史记录
*/
@TableName(value ="sms_coupon_history")
@Data
-public class SmsCouponHistory implements Serializable {
+public class CouponHistory implements Serializable {
/**
*
*/
diff --git a/mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/model/entity/SmsCouponSpu.java b/mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/model/entity/CouponSpu.java
similarity index 89%
rename from mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/model/entity/SmsCouponSpu.java
rename to mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/model/entity/CouponSpu.java
index 4a2eb57b5..f97775487 100644
--- a/mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/model/entity/SmsCouponSpu.java
+++ b/mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/model/entity/CouponSpu.java
@@ -10,13 +10,13 @@ import lombok.experimental.Accessors;
import java.io.Serializable;
/**
- *
- * @TableName sms_coupon_spu
+ * 优惠券与产品关联表
*/
+
@TableName(value ="sms_coupon_spu")
@Data
@Accessors(chain = true)
-public class SmsCouponSpu implements Serializable {
+public class CouponSpu implements Serializable {
/**
*
*/
diff --git a/mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/model/entity/SmsCouponSpuCategory.java b/mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/model/entity/CouponSpuCategory.java
similarity index 92%
rename from mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/model/entity/SmsCouponSpuCategory.java
rename to mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/model/entity/CouponSpuCategory.java
index cefc8be6a..55f1283a3 100644
--- a/mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/model/entity/SmsCouponSpuCategory.java
+++ b/mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/model/entity/CouponSpuCategory.java
@@ -12,7 +12,7 @@ import java.io.Serializable;
@TableName(value ="sms_coupon_spu_category")
@Data
@Accessors(chain = true)
-public class SmsCouponSpuCategory implements Serializable {
+public class CouponSpuCategory implements Serializable {
/**
*
*/
diff --git a/mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/model/form/CouponForm.java b/mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/model/form/CouponForm.java
similarity index 100%
rename from mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/model/form/CouponForm.java
rename to mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/model/form/CouponForm.java
diff --git a/mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/model/query/AdvertPageQuery.java b/mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/model/query/AdvertPageQuery.java
similarity index 100%
rename from mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/model/query/AdvertPageQuery.java
rename to mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/model/query/AdvertPageQuery.java
diff --git a/mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/model/query/CouponPageQuery.java b/mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/model/query/CouponPageQuery.java
similarity index 100%
rename from mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/model/query/CouponPageQuery.java
rename to mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/model/query/CouponPageQuery.java
diff --git a/mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/model/vo/AdvertPageVO.java b/mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/model/vo/AdvertPageVO.java
similarity index 100%
rename from mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/model/vo/AdvertPageVO.java
rename to mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/model/vo/AdvertPageVO.java
diff --git a/mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/model/vo/BannerVO.java b/mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/model/vo/BannerVO.java
similarity index 100%
rename from mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/model/vo/BannerVO.java
rename to mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/model/vo/BannerVO.java
diff --git a/mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/model/vo/CouponPageVO.java b/mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/model/vo/CouponPageVO.java
similarity index 100%
rename from mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/model/vo/CouponPageVO.java
rename to mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/model/vo/CouponPageVO.java
diff --git a/mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/service/SmsAdvertService.java b/mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/service/AdvertService.java
similarity index 82%
rename from mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/service/SmsAdvertService.java
rename to mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/service/AdvertService.java
index c32af1b14..aa3aff8ce 100644
--- a/mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/service/SmsAdvertService.java
+++ b/mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/service/AdvertService.java
@@ -2,14 +2,14 @@ package com.youlai.mall.sms.service;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
-import com.youlai.mall.sms.model.entity.SmsAdvert;
+import com.youlai.mall.sms.model.entity.Advert;
import com.youlai.mall.sms.model.query.AdvertPageQuery;
import com.youlai.mall.sms.model.vo.BannerVO;
import com.youlai.mall.sms.model.vo.AdvertPageVO;
import java.util.List;
-public interface SmsAdvertService extends IService {
+public interface AdvertService extends IService {
/**
* 广告分页列表
diff --git a/mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/service/CouponHistoryService.java b/mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/service/CouponHistoryService.java
new file mode 100644
index 000000000..32ecde00f
--- /dev/null
+++ b/mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/service/CouponHistoryService.java
@@ -0,0 +1,11 @@
+package com.youlai.mall.sms.service;
+
+import com.youlai.mall.sms.model.entity.CouponHistory;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ *
+ */
+public interface CouponHistoryService extends IService {
+
+}
diff --git a/mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/service/SmsCouponService.java b/mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/service/CouponService.java
similarity index 91%
rename from mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/service/SmsCouponService.java
rename to mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/service/CouponService.java
index 12e203914..2eb6d3454 100644
--- a/mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/service/SmsCouponService.java
+++ b/mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/service/CouponService.java
@@ -1,7 +1,7 @@
package com.youlai.mall.sms.service;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
-import com.youlai.mall.sms.model.entity.SmsCoupon;
+import com.youlai.mall.sms.model.entity.Coupon;
import com.baomidou.mybatisplus.extension.service.IService;
import com.youlai.mall.sms.model.form.CouponForm;
import com.youlai.mall.sms.model.query.CouponPageQuery;
@@ -13,7 +13,7 @@ import com.youlai.mall.sms.model.vo.CouponPageVO;
* @author Ray
* @since 2022/5/29
*/
-public interface SmsCouponService extends IService {
+public interface CouponService extends IService {
/**
* 优惠券分页列表
diff --git a/mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/service/CouponSpuCategoryService.java b/mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/service/CouponSpuCategoryService.java
new file mode 100644
index 000000000..3d3a8a84a
--- /dev/null
+++ b/mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/service/CouponSpuCategoryService.java
@@ -0,0 +1,11 @@
+package com.youlai.mall.sms.service;
+
+import com.youlai.mall.sms.model.entity.CouponSpuCategory;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ *
+ */
+public interface CouponSpuCategoryService extends IService {
+
+}
diff --git a/mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/service/CouponSpuService.java b/mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/service/CouponSpuService.java
new file mode 100644
index 000000000..ce6441a10
--- /dev/null
+++ b/mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/service/CouponSpuService.java
@@ -0,0 +1,11 @@
+package com.youlai.mall.sms.service;
+
+import com.youlai.mall.sms.model.entity.CouponSpu;
+import com.baomidou.mybatisplus.extension.service.IService;
+
+/**
+ *
+ */
+public interface CouponSpuService extends IService {
+
+}
diff --git a/mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/service/impl/SmsAdvertServiceImpl.java b/mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/service/impl/AdvertServiceImpl.java
similarity index 68%
rename from mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/service/impl/SmsAdvertServiceImpl.java
rename to mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/service/impl/AdvertServiceImpl.java
index 826191477..024161ddb 100644
--- a/mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/service/impl/SmsAdvertServiceImpl.java
+++ b/mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/service/impl/AdvertServiceImpl.java
@@ -5,12 +5,12 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.youlai.common.enums.StatusEnum;
import com.youlai.mall.sms.converter.AdvertConverter;
-import com.youlai.mall.sms.model.entity.SmsAdvert;
-import com.youlai.mall.sms.mapper.SmsAdvertMapper;
+import com.youlai.mall.sms.model.entity.Advert;
+import com.youlai.mall.sms.mapper.AdvertMapper;
import com.youlai.mall.sms.model.query.AdvertPageQuery;
import com.youlai.mall.sms.model.vo.BannerVO;
import com.youlai.mall.sms.model.vo.AdvertPageVO;
-import com.youlai.mall.sms.service.SmsAdvertService;
+import com.youlai.mall.sms.service.AdvertService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
@@ -24,7 +24,7 @@ import java.util.List;
*/
@Service
@RequiredArgsConstructor
-public class SmsAdvertServiceImpl extends ServiceImpl implements SmsAdvertService {
+public class AdvertServiceImpl extends ServiceImpl implements AdvertService {
private final AdvertConverter advertConverter;
@@ -36,7 +36,7 @@ public class SmsAdvertServiceImpl extends ServiceImpl getAdvertPage(AdvertPageQuery queryParams) {
- Page page = this.baseMapper.getAdvertPage(new Page<>(queryParams.getPageNum(),
+ Page page = this.baseMapper.getAdvertPage(new Page<>(queryParams.getPageNum(),
queryParams.getPageSize()),
queryParams);
return advertConverter.entity2PageVo(page);
@@ -48,9 +48,9 @@ public class SmsAdvertServiceImpl extends ServiceImpl getBannerList() {
- List entities = this.list(new LambdaQueryWrapper().
- eq(SmsAdvert::getStatus, StatusEnum.ENABLE.getValue())
- .select(SmsAdvert::getTitle, SmsAdvert::getImageUrl, SmsAdvert::getRedirectUrl)
+ List entities = this.list(new LambdaQueryWrapper().
+ eq(Advert::getStatus, StatusEnum.ENABLE.getValue())
+ .select(Advert::getTitle, Advert::getImageUrl, Advert::getRedirectUrl)
);
return advertConverter.entity2BannerVo(entities);
}
diff --git a/mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/service/impl/CouponHistoryServiceImpl.java b/mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/service/impl/CouponHistoryServiceImpl.java
new file mode 100644
index 000000000..738b2217b
--- /dev/null
+++ b/mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/service/impl/CouponHistoryServiceImpl.java
@@ -0,0 +1,20 @@
+package com.youlai.mall.sms.service.impl;
+
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.youlai.mall.sms.model.entity.CouponHistory;
+import com.youlai.mall.sms.service.CouponHistoryService;
+import com.youlai.mall.sms.mapper.CouponHistoryMapper;
+import org.springframework.stereotype.Service;
+
+/**
+ *
+ */
+@Service
+public class CouponHistoryServiceImpl extends ServiceImpl
+implements CouponHistoryService {
+
+}
+
+
+
+
diff --git a/mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/service/impl/SmsCouponServiceImpl.java b/mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/service/impl/CouponServiceImpl.java
similarity index 66%
rename from mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/service/impl/SmsCouponServiceImpl.java
rename to mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/service/impl/CouponServiceImpl.java
index 24575147e..b524170dc 100644
--- a/mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/service/impl/SmsCouponServiceImpl.java
+++ b/mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/service/impl/CouponServiceImpl.java
@@ -9,16 +9,16 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.youlai.common.base.IBaseEnum;
import com.youlai.mall.sms.enums.CouponApplicationScopeEnum;
import com.youlai.mall.sms.converter.CouponConverter;
-import com.youlai.mall.sms.mapper.SmsCouponMapper;
-import com.youlai.mall.sms.model.entity.SmsCoupon;
-import com.youlai.mall.sms.model.entity.SmsCouponSpu;
-import com.youlai.mall.sms.model.entity.SmsCouponSpuCategory;
+import com.youlai.mall.sms.mapper.CouponMapper;
+import com.youlai.mall.sms.model.entity.Coupon;
+import com.youlai.mall.sms.model.entity.CouponSpu;
+import com.youlai.mall.sms.model.entity.CouponSpuCategory;
import com.youlai.mall.sms.model.form.CouponForm;
import com.youlai.mall.sms.model.query.CouponPageQuery;
import com.youlai.mall.sms.model.vo.CouponPageVO;
-import com.youlai.mall.sms.service.SmsCouponService;
-import com.youlai.mall.sms.service.SmsCouponSpuCategoryService;
-import com.youlai.mall.sms.service.SmsCouponSpuService;
+import com.youlai.mall.sms.service.CouponService;
+import com.youlai.mall.sms.service.CouponSpuCategoryService;
+import com.youlai.mall.sms.service.CouponSpuService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
@@ -35,13 +35,13 @@ import java.util.stream.Collectors;
*/
@Service
@RequiredArgsConstructor
-public class SmsCouponServiceImpl extends ServiceImpl implements SmsCouponService {
+public class CouponServiceImpl extends ServiceImpl implements CouponService {
private final CouponConverter couponConverter;
- private final SmsCouponSpuCategoryService smsCouponSpuCategoryService;
+ private final CouponSpuCategoryService couponSpuCategoryService;
- private final SmsCouponSpuService smsCouponSpuService;
+ private final CouponSpuService couponSpuService;
/**
* 优惠券分页列表
@@ -53,7 +53,7 @@ public class SmsCouponServiceImpl extends ServiceImpl getCouponPage(CouponPageQuery queryParams) {
Page page = new Page<>(queryParams.getPageNum(), queryParams.getPageSize());
// 查询数据
- List couponList = this.baseMapper.getCouponPage(page, queryParams);
+ List couponList = this.baseMapper.getCouponPage(page, queryParams);
// 实体转换
List records = couponConverter.entity2PageVO(couponList);
page.setRecords(records);
@@ -68,7 +68,7 @@ public class SmsCouponServiceImpl extends ServiceImplform
CouponForm couponForm = couponConverter.toForm(entity);
@@ -78,17 +78,17 @@ public class SmsCouponServiceImpl extends ServiceImpl couponSpuCategoryList = smsCouponSpuCategoryService.list(new LambdaQueryWrapper()
- .eq(SmsCouponSpuCategory::getCouponId, couponId)
- .select(SmsCouponSpuCategory::getCategoryId)
+ List couponSpuCategoryList = couponSpuCategoryService.list(new LambdaQueryWrapper()
+ .eq(CouponSpuCategory::getCouponId, couponId)
+ .select(CouponSpuCategory::getCategoryId)
);
List categoryIds = couponSpuCategoryList.stream().map(item -> item.getCategoryId()).collect(Collectors.toList());
couponForm.setSpuCategoryIds(categoryIds);
break;
case SPU:
- List couponSpuList = smsCouponSpuService.list(new LambdaQueryWrapper()
- .eq(SmsCouponSpu::getCouponId, couponId)
- .select(SmsCouponSpu::getSpuId)
+ List couponSpuList = couponSpuService.list(new LambdaQueryWrapper()
+ .eq(CouponSpu::getCouponId, couponId)
+ .select(CouponSpu::getSpuId)
);
List spuIds = couponSpuList.stream().map(item -> item.getSpuId()).collect(Collectors.toList());
couponForm.setSpuIds(spuIds);
@@ -106,7 +106,7 @@ public class SmsCouponServiceImpl extends ServiceImpl spuCategoryIds = couponForm.getSpuCategoryIds();
if (CollectionUtil.isNotEmpty(spuCategoryIds)) {
- List smsCouponSpuCategories = spuCategoryIds.stream()
- .map(spuCategoryId -> new SmsCouponSpuCategory().setCouponId(couponId).setCategoryId(spuCategoryId))
+ List smsCouponSpuCategories = spuCategoryIds.stream()
+ .map(spuCategoryId -> new CouponSpuCategory().setCouponId(couponId).setCategoryId(spuCategoryId))
.collect(Collectors.toList());
- smsCouponSpuCategoryService.saveBatch(smsCouponSpuCategories);
+ couponSpuCategoryService.saveBatch(smsCouponSpuCategories);
}
break;
case SPU:
List spuIds = couponForm.getSpuIds();
if (CollectionUtil.isNotEmpty(spuIds)) {
- List smsCouponSpuList = spuIds.stream()
- .map(spuId -> new SmsCouponSpu().setCouponId(couponId).setSpuId(spuId))
+ List couponSpuList = spuIds.stream()
+ .map(spuId -> new CouponSpu().setCouponId(couponId).setSpuId(spuId))
.collect(Collectors.toList());
- smsCouponSpuService.saveBatch(smsCouponSpuList);
+ couponSpuService.saveBatch(couponSpuList);
}
break;
}
@@ -152,7 +152,7 @@ public class SmsCouponServiceImpl extends ServiceImpl()
- .eq(SmsCouponSpuCategory::getCouponId, couponId)
+ couponSpuCategoryService.remove(new LambdaQueryWrapper()
+ .eq(CouponSpuCategory::getCouponId, couponId)
);
- smsCouponSpuService.remove(new LambdaQueryWrapper()
- .eq(SmsCouponSpu::getCouponId, couponId)
+ couponSpuService.remove(new LambdaQueryWrapper()
+ .eq(CouponSpu::getCouponId, couponId)
);
break;
case SPU_CATEGORY:
List spuCategoryIds = couponForm.getSpuCategoryIds();
if (CollectionUtil.isNotEmpty(spuCategoryIds)) {
- smsCouponSpuCategoryService.remove(new LambdaQueryWrapper()
- .eq(SmsCouponSpuCategory::getCouponId, couponId)
+ couponSpuCategoryService.remove(new LambdaQueryWrapper()
+ .eq(CouponSpuCategory::getCouponId, couponId)
);
- List smsCouponSpuCategories = spuCategoryIds.stream()
- .map(spuCategoryId -> new SmsCouponSpuCategory().setCouponId(couponId)
+ List smsCouponSpuCategories = spuCategoryIds.stream()
+ .map(spuCategoryId -> new CouponSpuCategory().setCouponId(couponId)
.setCategoryId(spuCategoryId))
.collect(Collectors.toList());
- smsCouponSpuCategoryService.saveBatch(smsCouponSpuCategories);
+ couponSpuCategoryService.saveBatch(smsCouponSpuCategories);
}
break;
case SPU:
List spuIds = couponForm.getSpuIds();
if (CollectionUtil.isNotEmpty(spuIds)) {
- smsCouponSpuService.remove(new LambdaQueryWrapper()
- .eq(SmsCouponSpu::getCouponId, couponId)
+ couponSpuService.remove(new LambdaQueryWrapper()
+ .eq(CouponSpu::getCouponId, couponId)
);
- List smsCouponSpuList = spuIds.stream()
- .map(spuId -> new SmsCouponSpu().setCouponId(couponId).setSpuId(spuId))
+ List couponSpuList = spuIds.stream()
+ .map(spuId -> new CouponSpu().setCouponId(couponId).setSpuId(spuId))
.collect(Collectors.toList());
- smsCouponSpuService.saveBatch(smsCouponSpuList);
+ couponSpuService.saveBatch(couponSpuList);
}
break;
}
diff --git a/mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/service/impl/CouponSpuCategoryServiceImpl.java b/mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/service/impl/CouponSpuCategoryServiceImpl.java
new file mode 100644
index 000000000..ddd06a5a6
--- /dev/null
+++ b/mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/service/impl/CouponSpuCategoryServiceImpl.java
@@ -0,0 +1,20 @@
+package com.youlai.mall.sms.service.impl;
+
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.youlai.mall.sms.model.entity.CouponSpuCategory;
+import com.youlai.mall.sms.service.CouponSpuCategoryService;
+import com.youlai.mall.sms.mapper.CouponSpuCategoryMapper;
+import org.springframework.stereotype.Service;
+
+/**
+ *
+ */
+@Service
+public class CouponSpuCategoryServiceImpl extends ServiceImpl
+implements CouponSpuCategoryService {
+
+}
+
+
+
+
diff --git a/mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/service/impl/CouponSpuServiceImpl.java b/mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/service/impl/CouponSpuServiceImpl.java
new file mode 100644
index 000000000..5ca86b25e
--- /dev/null
+++ b/mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/service/impl/CouponSpuServiceImpl.java
@@ -0,0 +1,20 @@
+package com.youlai.mall.sms.service.impl;
+
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.youlai.mall.sms.model.entity.CouponSpu;
+import com.youlai.mall.sms.service.CouponSpuService;
+import com.youlai.mall.sms.mapper.CouponSpuMapper;
+import org.springframework.stereotype.Service;
+
+/**
+ *
+ */
+@Service
+public class CouponSpuServiceImpl extends ServiceImpl
+implements CouponSpuService {
+
+}
+
+
+
+
diff --git a/mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/util/CouponUtils.java b/mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/util/CouponUtils.java
similarity index 100%
rename from mall-sms/sms-boot/src/main/java/com/youlai/mall/sms/util/CouponUtils.java
rename to mall-marketing/marketing-boot/src/main/java/com/youlai/mall/sms/util/CouponUtils.java
diff --git a/mall-sms/sms-boot/src/main/resources/bootstrap-dev.yml b/mall-marketing/marketing-boot/src/main/resources/bootstrap-dev.yml
similarity index 100%
rename from mall-sms/sms-boot/src/main/resources/bootstrap-dev.yml
rename to mall-marketing/marketing-boot/src/main/resources/bootstrap-dev.yml
diff --git a/mall-sms/sms-boot/src/main/resources/bootstrap-prod.yml b/mall-marketing/marketing-boot/src/main/resources/bootstrap-prod.yml
similarity index 100%
rename from mall-sms/sms-boot/src/main/resources/bootstrap-prod.yml
rename to mall-marketing/marketing-boot/src/main/resources/bootstrap-prod.yml
diff --git a/mall-ums/ums-boot/src/main/resources/bootstrap.yml b/mall-marketing/marketing-boot/src/main/resources/bootstrap.yml
similarity index 66%
rename from mall-ums/ums-boot/src/main/resources/bootstrap.yml
rename to mall-marketing/marketing-boot/src/main/resources/bootstrap.yml
index 5131bdfcc..8dbb58c87 100644
--- a/mall-ums/ums-boot/src/main/resources/bootstrap.yml
+++ b/mall-marketing/marketing-boot/src/main/resources/bootstrap.yml
@@ -1,5 +1,6 @@
spring:
application:
- name: mall-ums
+ name: mall-marketing
profiles:
active: dev
+
diff --git a/mall-sms/sms-boot/src/main/resources/mapper/SmsAdvertMapper.xml b/mall-marketing/marketing-boot/src/main/resources/mapper/AdvertMapper.xml
similarity index 87%
rename from mall-sms/sms-boot/src/main/resources/mapper/SmsAdvertMapper.xml
rename to mall-marketing/marketing-boot/src/main/resources/mapper/AdvertMapper.xml
index 63a6fd0ed..9838842a3 100644
--- a/mall-sms/sms-boot/src/main/resources/mapper/SmsAdvertMapper.xml
+++ b/mall-marketing/marketing-boot/src/main/resources/mapper/AdvertMapper.xml
@@ -2,10 +2,10 @@
-
+
-