From 7253bfe2320719cf72b0715076f1d98ca58357f3 Mon Sep 17 00:00:00 2001 From: PQZ Date: Fri, 20 Sep 2024 16:24:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A2=E6=88=B7=E4=BC=9A=E5=91=98=E5=85=B3?= =?UTF-8?q?=E7=B3=BB=E4=BB=A3=E7=A0=81=E5=88=9D=E5=A7=8B=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/CustomerActiveController.java | 74 ++++++++++++++++++ .../CustomerBalanceChangeController.java | 74 ++++++++++++++++++ .../admin/CustomerBalanceController.java | 41 ++++++++++ .../admin/CustomerCouponController.java | 74 ++++++++++++++++++ .../module/custom/entity/CustomerActive.java | 53 +++++++++++++ .../module/custom/entity/CustomerBalance.java | 51 +++++++++++++ .../custom/entity/CustomerBalanceChange.java | 75 ++++++++++++++++++ .../module/custom/entity/CustomerCoupon.java | 76 +++++++++++++++++++ .../custom/mapper/CustomerActiveMapper.java | 17 +++++ .../mapper/CustomerBalanceChangeMapper.java | 17 +++++ .../custom/mapper/CustomerBalanceMapper.java | 16 ++++ .../custom/mapper/CustomerCouponMapper.java | 17 +++++ .../custom/service/CustomerActiveService.java | 56 ++++++++++++++ .../service/CustomerBalanceChangeService.java | 56 ++++++++++++++ .../service/CustomerBalanceService.java | 32 ++++++++ .../custom/service/CustomerCouponService.java | 56 ++++++++++++++ .../impl/CustomerActiveServiceImpl.java | 62 +++++++++++++++ .../CustomerBalanceChangeServiceImpl.java | 62 +++++++++++++++ .../impl/CustomerBalanceServiceImpl.java | 44 +++++++++++ .../impl/CustomerCouponServiceImpl.java | 62 +++++++++++++++ .../custom/vo/CustomerActivePageReqVO.java | 15 ++++ .../custom/vo/CustomerActiveRespVO.java | 13 ++++ .../custom/vo/CustomerActiveSaveReqVO.java | 15 ++++ .../vo/CustomerBalanceChangePageReqVO.java | 17 +++++ .../vo/CustomerBalanceChangeRespVO.java | 19 +++++ .../vo/CustomerBalanceChangeSaveReqVO.java | 16 ++++ .../custom/vo/CustomerBalancePageReqVO.java | 17 +++++ .../custom/vo/CustomerBalanceRespVO.java | 19 +++++ .../custom/vo/CustomerBalanceSaveReqVO.java | 15 ++++ .../custom/vo/CustomerCouponPageReqVO.java | 22 ++++++ .../custom/vo/CustomerCouponRespVO.java | 18 +++++ .../custom/vo/CustomerCouponSaveReqVO.java | 16 ++++ .../mapper/custom/CustomerActiveMapper.xml | 12 +++ .../custom/CustomerBalanceChangeMapper.xml | 12 +++ .../mapper/custom/CustomerBalanceMapper.xml | 12 +++ .../mapper/custom/CustomerCouponMapper.xml | 12 +++ 36 files changed, 1265 insertions(+) create mode 100644 dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/controller/admin/CustomerActiveController.java create mode 100644 dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/controller/admin/CustomerBalanceChangeController.java create mode 100644 dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/controller/admin/CustomerBalanceController.java create mode 100644 dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/controller/admin/CustomerCouponController.java create mode 100644 dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/entity/CustomerActive.java create mode 100644 dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/entity/CustomerBalance.java create mode 100644 dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/entity/CustomerBalanceChange.java create mode 100644 dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/entity/CustomerCoupon.java create mode 100644 dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/mapper/CustomerActiveMapper.java create mode 100644 dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/mapper/CustomerBalanceChangeMapper.java create mode 100644 dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/mapper/CustomerBalanceMapper.java create mode 100644 dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/mapper/CustomerCouponMapper.java create mode 100644 dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/service/CustomerActiveService.java create mode 100644 dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/service/CustomerBalanceChangeService.java create mode 100644 dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/service/CustomerBalanceService.java create mode 100644 dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/service/CustomerCouponService.java create mode 100644 dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/service/impl/CustomerActiveServiceImpl.java create mode 100644 dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/service/impl/CustomerBalanceChangeServiceImpl.java create mode 100644 dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/service/impl/CustomerBalanceServiceImpl.java create mode 100644 dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/service/impl/CustomerCouponServiceImpl.java create mode 100644 dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/vo/CustomerActivePageReqVO.java create mode 100644 dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/vo/CustomerActiveRespVO.java create mode 100644 dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/vo/CustomerActiveSaveReqVO.java create mode 100644 dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/vo/CustomerBalanceChangePageReqVO.java create mode 100644 dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/vo/CustomerBalanceChangeRespVO.java create mode 100644 dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/vo/CustomerBalanceChangeSaveReqVO.java create mode 100644 dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/vo/CustomerBalancePageReqVO.java create mode 100644 dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/vo/CustomerBalanceRespVO.java create mode 100644 dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/vo/CustomerBalanceSaveReqVO.java create mode 100644 dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/vo/CustomerCouponPageReqVO.java create mode 100644 dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/vo/CustomerCouponRespVO.java create mode 100644 dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/vo/CustomerCouponSaveReqVO.java create mode 100644 dl-module-base/src/main/resources/mapper/custom/CustomerActiveMapper.xml create mode 100644 dl-module-base/src/main/resources/mapper/custom/CustomerBalanceChangeMapper.xml create mode 100644 dl-module-base/src/main/resources/mapper/custom/CustomerBalanceMapper.xml create mode 100644 dl-module-base/src/main/resources/mapper/custom/CustomerCouponMapper.xml diff --git a/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/controller/admin/CustomerActiveController.java b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/controller/admin/CustomerActiveController.java new file mode 100644 index 00000000..beaaeb1a --- /dev/null +++ b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/controller/admin/CustomerActiveController.java @@ -0,0 +1,74 @@ +package cn.iocoder.yudao.module.custom.controller.admin; + +import cn.iocoder.yudao.framework.common.pojo.CommonResult; +import cn.iocoder.yudao.framework.common.pojo.PageResult; +import cn.iocoder.yudao.framework.common.util.object.BeanUtils; +import cn.iocoder.yudao.module.custom.entity.CustomerActive; +import cn.iocoder.yudao.module.custom.service.CustomerActiveService; +import cn.iocoder.yudao.module.custom.vo.CustomerActivePageReqVO; +import cn.iocoder.yudao.module.custom.vo.CustomerActiveRespVO; +import cn.iocoder.yudao.module.custom.vo.CustomerActiveSaveReqVO; +import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.Parameter; +import io.swagger.v3.oas.annotations.tags.Tag; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.*; + +import javax.annotation.Resource; +import javax.validation.Valid; + +import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success; + +@Tag(name = "管理后台 - 用户参与活动记录") +@RestController +@RequestMapping("/base/customer-active") +@Validated +public class CustomerActiveController { + + @Resource + private CustomerActiveService customerActiveService; + + @PostMapping("/create") + @Operation(summary = "创建用户参与活动记录") + @PreAuthorize("@ss.hasPermission('base:customer-active:create')") + public CommonResult createCustomerActive(@Valid @RequestBody CustomerActiveSaveReqVO createReqVO) { + return success(customerActiveService.createCustomerActive(createReqVO)); + } + + @PutMapping("/update") + @Operation(summary = "更新用户参与活动记录") + @PreAuthorize("@ss.hasPermission('base:customer-active:update')") + public CommonResult updateCustomerActive(@Valid @RequestBody CustomerActiveSaveReqVO updateReqVO) { + customerActiveService.updateCustomerActive(updateReqVO); + return success(true); + } + + @DeleteMapping("/delete") + @Operation(summary = "删除用户参与活动记录") + @Parameter(name = "id", description = "编号", required = true) + @PreAuthorize("@ss.hasPermission('base:customer-active:delete')") + public CommonResult deleteCustomerActive(@RequestParam("id") String id) { + customerActiveService.deleteCustomerActive(id); + return success(true); + } + + @GetMapping("/get") + @Operation(summary = "获得用户参与活动记录") + @Parameter(name = "id", description = "编号", required = true, example = "1024") + @PreAuthorize("@ss.hasPermission('base:customer-active:query')") + public CommonResult getCustomerActive(@RequestParam("id") String id) { + CustomerActive customerActive = customerActiveService.getCustomerActive(id); + return success(BeanUtils.toBean(customerActive, CustomerActiveRespVO.class)); + } + + @GetMapping("/page") + @Operation(summary = "获得用户参与活动记录分页") + @PreAuthorize("@ss.hasPermission('base:customer-active:query')") + public CommonResult> getCustomerActivePage(@Valid CustomerActivePageReqVO pageReqVO) { + PageResult pageResult = customerActiveService.getCustomerActivePage(pageReqVO); + return success(BeanUtils.toBean(pageResult, CustomerActiveRespVO.class)); + } + + +} \ No newline at end of file diff --git a/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/controller/admin/CustomerBalanceChangeController.java b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/controller/admin/CustomerBalanceChangeController.java new file mode 100644 index 00000000..25a187c1 --- /dev/null +++ b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/controller/admin/CustomerBalanceChangeController.java @@ -0,0 +1,74 @@ +package cn.iocoder.yudao.module.custom.controller.admin; + +import cn.iocoder.yudao.framework.common.pojo.CommonResult; +import cn.iocoder.yudao.framework.common.pojo.PageResult; +import cn.iocoder.yudao.framework.common.util.object.BeanUtils; +import cn.iocoder.yudao.module.custom.entity.CustomerBalanceChange; +import cn.iocoder.yudao.module.custom.service.CustomerBalanceChangeService; +import cn.iocoder.yudao.module.custom.vo.CustomerBalanceChangePageReqVO; +import cn.iocoder.yudao.module.custom.vo.CustomerBalanceChangeRespVO; +import cn.iocoder.yudao.module.custom.vo.CustomerBalanceChangeSaveReqVO; +import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.Parameter; +import io.swagger.v3.oas.annotations.tags.Tag; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.*; + +import javax.annotation.Resource; +import javax.validation.Valid; + +import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success; + +@Tag(name = "管理后台 - 用户积分(余额)、卡券变动记录") +@RestController +@RequestMapping("/base/customer-balance-change") +@Validated +public class CustomerBalanceChangeController { + + @Resource + private CustomerBalanceChangeService customerBalanceChangeService; + + @PostMapping("/create") + @Operation(summary = "创建用户积分(余额)、卡券变动记录") + @PreAuthorize("@ss.hasPermission('base:customer-balance-change:create')") + public CommonResult createCustomerBalanceChange(@Valid @RequestBody CustomerBalanceChangeSaveReqVO createReqVO) { + return success(customerBalanceChangeService.createCustomerBalanceChange(createReqVO)); + } + + @PutMapping("/update") + @Operation(summary = "更新用户积分(余额)、卡券变动记录") + @PreAuthorize("@ss.hasPermission('base:customer-balance-change:update')") + public CommonResult updateCustomerBalanceChange(@Valid @RequestBody CustomerBalanceChangeSaveReqVO updateReqVO) { + customerBalanceChangeService.updateCustomerBalanceChange(updateReqVO); + return success(true); + } + + @DeleteMapping("/delete") + @Operation(summary = "删除用户积分(余额)、卡券变动记录") + @Parameter(name = "id", description = "编号", required = true) + @PreAuthorize("@ss.hasPermission('base:customer-balance-change:delete')") + public CommonResult deleteCustomerBalanceChange(@RequestParam("id") String id) { + customerBalanceChangeService.deleteCustomerBalanceChange(id); + return success(true); + } + + @GetMapping("/get") + @Operation(summary = "获得用户积分(余额)、卡券变动记录") + @Parameter(name = "id", description = "编号", required = true, example = "1024") + @PreAuthorize("@ss.hasPermission('base:customer-balance-change:query')") + public CommonResult getCustomerBalanceChange(@RequestParam("id") String id) { + CustomerBalanceChange customerBalanceChange = customerBalanceChangeService.getCustomerBalanceChange(id); + return success(BeanUtils.toBean(customerBalanceChange, CustomerBalanceChangeRespVO.class)); + } + + @GetMapping("/page") + @Operation(summary = "获得用户积分(余额)、卡券变动记录分页") + @PreAuthorize("@ss.hasPermission('base:customer-balance-change:query')") + public CommonResult> getCustomerBalanceChangePage(@Valid CustomerBalanceChangePageReqVO pageReqVO) { + PageResult pageResult = customerBalanceChangeService.getCustomerBalanceChangePage(pageReqVO); + return success(BeanUtils.toBean(pageResult, CustomerBalanceChangeRespVO.class)); + } + + +} \ No newline at end of file diff --git a/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/controller/admin/CustomerBalanceController.java b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/controller/admin/CustomerBalanceController.java new file mode 100644 index 00000000..aec8e64e --- /dev/null +++ b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/controller/admin/CustomerBalanceController.java @@ -0,0 +1,41 @@ +package cn.iocoder.yudao.module.custom.controller.admin; + +import cn.iocoder.yudao.framework.common.pojo.CommonResult; +import cn.iocoder.yudao.module.custom.service.CustomerBalanceService; +import cn.iocoder.yudao.module.custom.vo.CustomerBalanceSaveReqVO; +import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.tags.Tag; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.*; + +import javax.annotation.Resource; +import javax.validation.Valid; + +import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success; + +@Tag(name = "管理后台 - 用户积分(余额)") +@RestController +@RequestMapping("/base/customer-balance") +@Validated +public class CustomerBalanceController { + + @Resource + private CustomerBalanceService customerBalanceService; + + @PostMapping("/create") + @Operation(summary = "创建用户积分(余额)") + @PreAuthorize("@ss.hasPermission('base:customer-balance:create')") + public CommonResult createCustomerBalance(@Valid @RequestBody CustomerBalanceSaveReqVO createReqVO) { + return success(customerBalanceService.createCustomerBalance(createReqVO)); + } + + @PutMapping("/update") + @Operation(summary = "更新用户积分(余额)") + @PreAuthorize("@ss.hasPermission('base:customer-balance:update')") + public CommonResult updateCustomerBalance(@Valid @RequestBody CustomerBalanceSaveReqVO updateReqVO) { + customerBalanceService.updateCustomerBalance(updateReqVO); + return success(true); + } + +} \ No newline at end of file diff --git a/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/controller/admin/CustomerCouponController.java b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/controller/admin/CustomerCouponController.java new file mode 100644 index 00000000..de5ddfd8 --- /dev/null +++ b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/controller/admin/CustomerCouponController.java @@ -0,0 +1,74 @@ +package cn.iocoder.yudao.module.custom.controller.admin; + +import cn.iocoder.yudao.framework.common.pojo.CommonResult; +import cn.iocoder.yudao.framework.common.pojo.PageResult; +import cn.iocoder.yudao.framework.common.util.object.BeanUtils; +import cn.iocoder.yudao.module.custom.entity.CustomerCoupon; +import cn.iocoder.yudao.module.custom.service.CustomerCouponService; +import cn.iocoder.yudao.module.custom.vo.CustomerCouponPageReqVO; +import cn.iocoder.yudao.module.custom.vo.CustomerCouponRespVO; +import cn.iocoder.yudao.module.custom.vo.CustomerCouponSaveReqVO; +import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.Parameter; +import io.swagger.v3.oas.annotations.tags.Tag; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.*; + +import javax.annotation.Resource; +import javax.validation.Valid; + +import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success; + +@Tag(name = "管理后台 - 用户卡券") +@RestController +@RequestMapping("/base/customer-coupon") +@Validated +public class CustomerCouponController { + + @Resource + private CustomerCouponService customerCouponService; + + @PostMapping("/create") + @Operation(summary = "创建用户卡券") + @PreAuthorize("@ss.hasPermission('base:customer-coupon:create')") + public CommonResult createCustomerCoupon(@Valid @RequestBody CustomerCouponSaveReqVO createReqVO) { + return success(customerCouponService.createCustomerCoupon(createReqVO)); + } + + @PutMapping("/update") + @Operation(summary = "更新用户卡券") + @PreAuthorize("@ss.hasPermission('base:customer-coupon:update')") + public CommonResult updateCustomerCoupon(@Valid @RequestBody CustomerCouponSaveReqVO updateReqVO) { + customerCouponService.updateCustomerCoupon(updateReqVO); + return success(true); + } + + @DeleteMapping("/delete") + @Operation(summary = "删除用户卡券") + @Parameter(name = "id", description = "编号", required = true) + @PreAuthorize("@ss.hasPermission('base:customer-coupon:delete')") + public CommonResult deleteCustomerCoupon(@RequestParam("id") String id) { + customerCouponService.deleteCustomerCoupon(id); + return success(true); + } + + @GetMapping("/get") + @Operation(summary = "获得用户卡券") + @Parameter(name = "id", description = "编号", required = true, example = "1024") + @PreAuthorize("@ss.hasPermission('base:customer-coupon:query')") + public CommonResult getCustomerCoupon(@RequestParam("id") String id) { + CustomerCoupon customerCoupon = customerCouponService.getCustomerCoupon(id); + return success(BeanUtils.toBean(customerCoupon, CustomerCouponRespVO.class)); + } + + @GetMapping("/page") + @Operation(summary = "获得用户卡券分页") + @PreAuthorize("@ss.hasPermission('base:customer-coupon:query')") + public CommonResult> getCustomerCouponPage(@Valid CustomerCouponPageReqVO pageReqVO) { + PageResult pageResult = customerCouponService.getCustomerCouponPage(pageReqVO); + return success(BeanUtils.toBean(pageResult, CustomerCouponRespVO.class)); + } + + +} \ No newline at end of file diff --git a/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/entity/CustomerActive.java b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/entity/CustomerActive.java new file mode 100644 index 00000000..c9a89387 --- /dev/null +++ b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/entity/CustomerActive.java @@ -0,0 +1,53 @@ +package cn.iocoder.yudao.module.custom.entity; + +import cn.iocoder.yudao.framework.tenant.core.db.TenantBaseDO; +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.*; + +/** + * 用户参与活动记录 DO + * + * @author pqz + */ +@TableName("base_customer_active") +@Data +@EqualsAndHashCode(callSuper = true) +@ToString(callSuper = true) +@Builder +@NoArgsConstructor +@AllArgsConstructor +public class CustomerActive extends TenantBaseDO { + + /** + * 主键标识 + */ + @TableId(type = IdType.ASSIGN_UUID) + private String id; + /** + * 客户id + */ + private String cusId; + /** + * 用户id + */ + private Integer userId; + /** + * 参加活动id + */ + private String activeId; + /** + * 参加活动名称 + */ + private String activeName; + /** + * 参加活动类型(数据字典) + */ + private String activeType; + /** + * 描述 + */ + private String remark; + +} \ No newline at end of file diff --git a/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/entity/CustomerBalance.java b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/entity/CustomerBalance.java new file mode 100644 index 00000000..c570931b --- /dev/null +++ b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/entity/CustomerBalance.java @@ -0,0 +1,51 @@ +package cn.iocoder.yudao.module.custom.entity; + +import cn.iocoder.yudao.framework.tenant.core.db.TenantBaseDO; +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.*; + +import java.math.BigDecimal; + +/** + * 用户积分(余额) DO + * + * @author pqz + */ +@TableName("base_customer_balance") +@Data +@EqualsAndHashCode(callSuper = true) +@ToString(callSuper = true) +@Builder +@NoArgsConstructor +@AllArgsConstructor +public class CustomerBalance extends TenantBaseDO { + + /** + * 主键标识 + */ + @TableId(type = IdType.ASSIGN_UUID) + private String id; + /** + * 客户id + */ + private String cusId; + /** + * 用户id + */ + private Integer userId; + /** + * 积分余额 + */ + private BigDecimal balance; + /** + * 冻结积分 + */ + private BigDecimal forzeBalance; + /** + * 累计充值额度 + */ + private BigDecimal allBalance; + +} \ No newline at end of file diff --git a/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/entity/CustomerBalanceChange.java b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/entity/CustomerBalanceChange.java new file mode 100644 index 00000000..6fa1904b --- /dev/null +++ b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/entity/CustomerBalanceChange.java @@ -0,0 +1,75 @@ +package cn.iocoder.yudao.module.custom.entity; + +import cn.iocoder.yudao.framework.tenant.core.db.TenantBaseDO; +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.*; + +import java.math.BigDecimal; + +/** + * 用户积分(余额)、卡券变动记录 DO + * + * @author pqz + */ +@TableName("base_customer_balance_change") +@Data +@EqualsAndHashCode(callSuper = true) +@ToString(callSuper = true) +@Builder +@NoArgsConstructor +@AllArgsConstructor +public class CustomerBalanceChange extends TenantBaseDO { + + /** + * 主键标识 + */ + @TableId(type = IdType.ASSIGN_UUID) + private String id; + /** + * 客户id + */ + private String cusId; + /** + * 用户id + */ + private Integer userId; + /** + * 关联卡券id + */ + private String couponId; + /** + * 变动类型(充值、消费、退款、赠送、卡券核销) + */ + private String changeType; + /** + * 变动主体(余额、卡券) + */ + private String changeMain; + /** + * 变动规则(计次、面额) + */ + private String changeRule; + /** + * 变动金额 + */ + private BigDecimal changeBalance; + /** + * 变动次数 + */ + private Integer changeNum; + /** + * 变动后剩余积分 + */ + private BigDecimal remBalance; + /** + * 变动后剩余次数 + */ + private Integer remNum; + /** + * 变动原因 + */ + private String reason; + +} \ No newline at end of file diff --git a/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/entity/CustomerCoupon.java b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/entity/CustomerCoupon.java new file mode 100644 index 00000000..7ed56530 --- /dev/null +++ b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/entity/CustomerCoupon.java @@ -0,0 +1,76 @@ +package cn.iocoder.yudao.module.custom.entity; + +import cn.iocoder.yudao.framework.tenant.core.db.TenantBaseDO; +import lombok.*; + +import java.util.*; +import java.math.BigDecimal; +import java.math.BigDecimal; +import java.math.BigDecimal; +import java.time.LocalDateTime; +import java.time.LocalDateTime; + +import com.baomidou.mybatisplus.annotation.*; +import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO; + +/** + * 用户卡券 DO + * + * @author pqz + */ +@TableName("base_customer_coupon") +@Data +@EqualsAndHashCode(callSuper = true) +@ToString(callSuper = true) +@Builder +@NoArgsConstructor +@AllArgsConstructor +public class CustomerCoupon extends TenantBaseDO { + + /** + * 主键标识 + */ + @TableId(type = IdType.ASSIGN_UUID) + private String id; + /** + * 客户id + */ + private String cusId; + /** + * 用户id + */ + private Integer userId; + /** + * 卡券id + */ + private String couponId; + /** + * 来源活动id + */ + private String activeId; + /** + * 卡券面额 + */ + private BigDecimal amount; + /** + * 剩余额度 + */ + private BigDecimal balance; + /** + * 单价 + */ + private BigDecimal unitPrice; + /** + * 计次 + */ + private Integer useNum; + /** + * 核销方式(计次核销、面额核销、一次性核销) + */ + private String outRule; + /** + * 是否有效(0否1是) + */ + private String isValid; + +} \ No newline at end of file diff --git a/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/mapper/CustomerActiveMapper.java b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/mapper/CustomerActiveMapper.java new file mode 100644 index 00000000..6ef93737 --- /dev/null +++ b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/mapper/CustomerActiveMapper.java @@ -0,0 +1,17 @@ +package cn.iocoder.yudao.module.custom.mapper; + +import cn.iocoder.yudao.module.custom.entity.CustomerActive; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import org.apache.ibatis.annotations.Mapper; + +/** + * 用户参与活动记录 Mapper + * + * @author pqz + */ +@Mapper +public interface CustomerActiveMapper extends BaseMapper { + + + +} \ No newline at end of file diff --git a/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/mapper/CustomerBalanceChangeMapper.java b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/mapper/CustomerBalanceChangeMapper.java new file mode 100644 index 00000000..f4d04b3a --- /dev/null +++ b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/mapper/CustomerBalanceChangeMapper.java @@ -0,0 +1,17 @@ +package cn.iocoder.yudao.module.custom.mapper; + +import cn.iocoder.yudao.module.custom.entity.CustomerBalanceChange; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import org.apache.ibatis.annotations.Mapper; + +/** + * 用户积分(余额)、卡券变动记录 Mapper + * + * @author pqz + */ +@Mapper +public interface CustomerBalanceChangeMapper extends BaseMapper { + + + +} \ No newline at end of file diff --git a/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/mapper/CustomerBalanceMapper.java b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/mapper/CustomerBalanceMapper.java new file mode 100644 index 00000000..34f31769 --- /dev/null +++ b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/mapper/CustomerBalanceMapper.java @@ -0,0 +1,16 @@ +package cn.iocoder.yudao.module.custom.mapper; + +import cn.iocoder.yudao.module.custom.entity.CustomerBalance; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import org.apache.ibatis.annotations.Mapper; + +/** + * 用户积分(余额) Mapper + * + * @author pqz + */ +@Mapper +public interface CustomerBalanceMapper extends BaseMapper { + + +} \ No newline at end of file diff --git a/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/mapper/CustomerCouponMapper.java b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/mapper/CustomerCouponMapper.java new file mode 100644 index 00000000..83dfb1dd --- /dev/null +++ b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/mapper/CustomerCouponMapper.java @@ -0,0 +1,17 @@ +package cn.iocoder.yudao.module.custom.mapper; + +import cn.iocoder.yudao.module.custom.entity.CustomerCoupon; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import org.apache.ibatis.annotations.Mapper; + +/** + * 用户积分(余额) Mapper + * + * @author pqz + */ +@Mapper +public interface CustomerCouponMapper extends BaseMapper { + + + +} \ No newline at end of file diff --git a/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/service/CustomerActiveService.java b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/service/CustomerActiveService.java new file mode 100644 index 00000000..ad66c11f --- /dev/null +++ b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/service/CustomerActiveService.java @@ -0,0 +1,56 @@ +package cn.iocoder.yudao.module.custom.service; + +import cn.iocoder.yudao.framework.common.pojo.PageResult; +import cn.iocoder.yudao.module.custom.entity.CustomerActive; +import cn.iocoder.yudao.module.custom.vo.CustomerActivePageReqVO; +import cn.iocoder.yudao.module.custom.vo.CustomerActiveSaveReqVO; +import com.baomidou.mybatisplus.extension.service.IService; + +import javax.validation.Valid; + +/** + * 用户参与活动记录 Service 接口 + * + * @author pqz + */ +public interface CustomerActiveService extends IService { + + /** + * 创建用户参与活动记录 + * + * @param createReqVO 创建信息 + * @return 编号 + */ + String createCustomerActive(@Valid CustomerActiveSaveReqVO createReqVO); + + /** + * 更新用户参与活动记录 + * + * @param updateReqVO 更新信息 + */ + void updateCustomerActive(@Valid CustomerActiveSaveReqVO updateReqVO); + + /** + * 删除用户参与活动记录 + * + * @param id 编号 + */ + void deleteCustomerActive(String id); + + /** + * 获得用户参与活动记录 + * + * @param id 编号 + * @return 用户参与活动记录 + */ + CustomerActive getCustomerActive(String id); + + /** + * 获得用户参与活动记录分页 + * + * @param pageReqVO 分页查询 + * @return 用户参与活动记录分页 + */ + PageResult getCustomerActivePage(CustomerActivePageReqVO pageReqVO); + +} \ No newline at end of file diff --git a/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/service/CustomerBalanceChangeService.java b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/service/CustomerBalanceChangeService.java new file mode 100644 index 00000000..a9702b22 --- /dev/null +++ b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/service/CustomerBalanceChangeService.java @@ -0,0 +1,56 @@ +package cn.iocoder.yudao.module.custom.service; + +import cn.iocoder.yudao.framework.common.pojo.PageResult; +import cn.iocoder.yudao.module.custom.entity.CustomerBalanceChange; +import cn.iocoder.yudao.module.custom.vo.CustomerBalanceChangePageReqVO; +import cn.iocoder.yudao.module.custom.vo.CustomerBalanceChangeSaveReqVO; +import com.baomidou.mybatisplus.extension.service.IService; + +import javax.validation.Valid; + +/** + * 用户积分(余额)、卡券变动记录 Service 接口 + * + * @author pqz + */ +public interface CustomerBalanceChangeService extends IService { + + /** + * 创建用户积分(余额)、卡券变动记录 + * + * @param createReqVO 创建信息 + * @return 编号 + */ + String createCustomerBalanceChange(@Valid CustomerBalanceChangeSaveReqVO createReqVO); + + /** + * 更新用户积分(余额)、卡券变动记录 + * + * @param updateReqVO 更新信息 + */ + void updateCustomerBalanceChange(@Valid CustomerBalanceChangeSaveReqVO updateReqVO); + + /** + * 删除用户积分(余额)、卡券变动记录 + * + * @param id 编号 + */ + void deleteCustomerBalanceChange(String id); + + /** + * 获得用户积分(余额)、卡券变动记录 + * + * @param id 编号 + * @return 用户积分(余额)、卡券变动记录 + */ + CustomerBalanceChange getCustomerBalanceChange(String id); + + /** + * 获得用户积分(余额)、卡券变动记录分页 + * + * @param pageReqVO 分页查询 + * @return 用户积分(余额)、卡券变动记录分页 + */ + PageResult getCustomerBalanceChangePage(CustomerBalanceChangePageReqVO pageReqVO); + +} \ No newline at end of file diff --git a/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/service/CustomerBalanceService.java b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/service/CustomerBalanceService.java new file mode 100644 index 00000000..5279953b --- /dev/null +++ b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/service/CustomerBalanceService.java @@ -0,0 +1,32 @@ +package cn.iocoder.yudao.module.custom.service; + +import cn.iocoder.yudao.module.custom.entity.CustomerBalance; +import cn.iocoder.yudao.module.custom.vo.CustomerBalanceSaveReqVO; +import com.baomidou.mybatisplus.extension.service.IService; + +import javax.validation.Valid; + +/** + * 用户积分(余额) Service 接口 + * + * @author pqz + */ +public interface CustomerBalanceService extends IService { + + /** + * 创建用户积分(余额) + * + * @param createReqVO 创建信息 + * @return 编号 + */ + String createCustomerBalance(@Valid CustomerBalanceSaveReqVO createReqVO); + + /** + * 更新用户积分(余额) + * + * @param updateReqVO 更新信息 + */ + void updateCustomerBalance(@Valid CustomerBalanceSaveReqVO updateReqVO); + + +} \ No newline at end of file diff --git a/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/service/CustomerCouponService.java b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/service/CustomerCouponService.java new file mode 100644 index 00000000..c43b49bc --- /dev/null +++ b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/service/CustomerCouponService.java @@ -0,0 +1,56 @@ +package cn.iocoder.yudao.module.custom.service; + +import cn.iocoder.yudao.framework.common.pojo.PageResult; +import cn.iocoder.yudao.module.custom.entity.CustomerCoupon; +import cn.iocoder.yudao.module.custom.vo.CustomerCouponPageReqVO; +import cn.iocoder.yudao.module.custom.vo.CustomerCouponSaveReqVO; +import com.baomidou.mybatisplus.extension.service.IService; + +import javax.validation.Valid; + +/** + * 用户卡券 Service 接口 + * + * @author pqz + */ +public interface CustomerCouponService extends IService { + + /** + * 创建用户卡券 + * + * @param createReqVO 创建信息 + * @return 编号 + */ + String createCustomerCoupon(@Valid CustomerCouponSaveReqVO createReqVO); + + /** + * 更新用户卡券 + * + * @param updateReqVO 更新信息 + */ + void updateCustomerCoupon(@Valid CustomerCouponSaveReqVO updateReqVO); + + /** + * 删除用户卡券 + * + * @param id 编号 + */ + void deleteCustomerCoupon(String id); + + /** + * 获得用户卡券 + * + * @param id 编号 + * @return 用户卡券 + */ + CustomerCoupon getCustomerCoupon(String id); + + /** + * 获得用户卡券分页 + * + * @param pageReqVO 分页查询 + * @return 用户卡券分页 + */ + PageResult getCustomerCouponPage(CustomerCouponPageReqVO pageReqVO); + +} \ No newline at end of file diff --git a/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/service/impl/CustomerActiveServiceImpl.java b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/service/impl/CustomerActiveServiceImpl.java new file mode 100644 index 00000000..07153220 --- /dev/null +++ b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/service/impl/CustomerActiveServiceImpl.java @@ -0,0 +1,62 @@ +package cn.iocoder.yudao.module.custom.service.impl; + +import cn.iocoder.yudao.framework.common.pojo.PageResult; +import cn.iocoder.yudao.framework.common.util.object.BeanUtils; +import cn.iocoder.yudao.module.custom.entity.CustomerActive; +import cn.iocoder.yudao.module.custom.mapper.CustomerActiveMapper; +import cn.iocoder.yudao.module.custom.service.CustomerActiveService; +import cn.iocoder.yudao.module.custom.vo.CustomerActivePageReqVO; +import cn.iocoder.yudao.module.custom.vo.CustomerActiveSaveReqVO; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import org.springframework.stereotype.Service; +import org.springframework.validation.annotation.Validated; + +import javax.annotation.Resource; + +/** + * 用户参与活动记录 Service 实现类 + * + * @author pqz + */ +@Service +@Validated +public class CustomerActiveServiceImpl extends ServiceImpl implements CustomerActiveService { + + @Resource + private CustomerActiveMapper customerActiveMapper; + + @Override + public String createCustomerActive(CustomerActiveSaveReqVO createReqVO) { + // 插入 + CustomerActive customerActive = BeanUtils.toBean(createReqVO, CustomerActive.class); + customerActiveMapper.insert(customerActive); + // 返回 + return customerActive.getId(); + } + + @Override + public void updateCustomerActive(CustomerActiveSaveReqVO updateReqVO) { + // 更新 + CustomerActive updateObj = BeanUtils.toBean(updateReqVO, CustomerActive.class); + customerActiveMapper.updateById(updateObj); + } + + @Override + public void deleteCustomerActive(String id) { + // 删除 + customerActiveMapper.deleteById(id); + } + + + + @Override + public CustomerActive getCustomerActive(String id) { + return customerActiveMapper.selectById(id); + } + + @Override + public PageResult getCustomerActivePage(CustomerActivePageReqVO pageReqVO) { + return null; + } + +} \ No newline at end of file diff --git a/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/service/impl/CustomerBalanceChangeServiceImpl.java b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/service/impl/CustomerBalanceChangeServiceImpl.java new file mode 100644 index 00000000..986e8b9d --- /dev/null +++ b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/service/impl/CustomerBalanceChangeServiceImpl.java @@ -0,0 +1,62 @@ +package cn.iocoder.yudao.module.custom.service.impl; + +import cn.iocoder.yudao.framework.common.pojo.PageResult; +import cn.iocoder.yudao.framework.common.util.object.BeanUtils; +import cn.iocoder.yudao.module.custom.entity.CustomerBalanceChange; +import cn.iocoder.yudao.module.custom.mapper.CustomerBalanceChangeMapper; +import cn.iocoder.yudao.module.custom.service.CustomerBalanceChangeService; +import cn.iocoder.yudao.module.custom.vo.CustomerBalanceChangePageReqVO; +import cn.iocoder.yudao.module.custom.vo.CustomerBalanceChangeSaveReqVO; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import org.springframework.stereotype.Service; +import org.springframework.validation.annotation.Validated; + +import javax.annotation.Resource; + +/** + * 用户积分(余额)、卡券变动记录 Service 实现类 + * + * @author pqz + */ +@Service +@Validated +public class CustomerBalanceChangeServiceImpl extends ServiceImpl implements CustomerBalanceChangeService { + + @Resource + private CustomerBalanceChangeMapper customerBalanceChangeMapper; + + @Override + public String createCustomerBalanceChange(CustomerBalanceChangeSaveReqVO createReqVO) { + // 插入 + CustomerBalanceChange customerBalanceChange = BeanUtils.toBean(createReqVO, CustomerBalanceChange.class); + customerBalanceChangeMapper.insert(customerBalanceChange); + // 返回 + return customerBalanceChange.getId(); + } + + @Override + public void updateCustomerBalanceChange(CustomerBalanceChangeSaveReqVO updateReqVO) { + // 更新 + CustomerBalanceChange updateObj = BeanUtils.toBean(updateReqVO, CustomerBalanceChange.class); + customerBalanceChangeMapper.updateById(updateObj); + } + + @Override + public void deleteCustomerBalanceChange(String id) { + // 删除 + customerBalanceChangeMapper.deleteById(id); + } + + + + @Override + public CustomerBalanceChange getCustomerBalanceChange(String id) { + return customerBalanceChangeMapper.selectById(id); + } + + @Override + public PageResult getCustomerBalanceChangePage(CustomerBalanceChangePageReqVO pageReqVO) { + return null; + } + +} \ No newline at end of file diff --git a/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/service/impl/CustomerBalanceServiceImpl.java b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/service/impl/CustomerBalanceServiceImpl.java new file mode 100644 index 00000000..5ec653b6 --- /dev/null +++ b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/service/impl/CustomerBalanceServiceImpl.java @@ -0,0 +1,44 @@ +package cn.iocoder.yudao.module.custom.service.impl; + +import cn.iocoder.yudao.framework.common.util.object.BeanUtils; +import cn.iocoder.yudao.module.custom.entity.CustomerBalance; +import cn.iocoder.yudao.module.custom.mapper.CustomerBalanceMapper; +import cn.iocoder.yudao.module.custom.service.CustomerBalanceService; +import cn.iocoder.yudao.module.custom.vo.CustomerBalanceSaveReqVO; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import org.springframework.stereotype.Service; +import org.springframework.validation.annotation.Validated; + +import javax.annotation.Resource; + +/** + * 用户积分(余额) Service 实现类 + * + * @author pqz + */ +@Service +@Validated +public class CustomerBalanceServiceImpl extends ServiceImpl implements CustomerBalanceService { + + @Resource + private CustomerBalanceMapper customerBalanceMapper; + + @Override + public String createCustomerBalance(CustomerBalanceSaveReqVO createReqVO) { + // 插入 + CustomerBalance customerBalance = BeanUtils.toBean(createReqVO, CustomerBalance.class); + customerBalanceMapper.insert(customerBalance); + // 返回 + return customerBalance.getId(); + } + + @Override + public void updateCustomerBalance(CustomerBalanceSaveReqVO updateReqVO) { + // 更新 + CustomerBalance updateObj = BeanUtils.toBean(updateReqVO, CustomerBalance.class); + customerBalanceMapper.updateById(updateObj); + } + + + +} \ No newline at end of file diff --git a/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/service/impl/CustomerCouponServiceImpl.java b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/service/impl/CustomerCouponServiceImpl.java new file mode 100644 index 00000000..6d60c711 --- /dev/null +++ b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/service/impl/CustomerCouponServiceImpl.java @@ -0,0 +1,62 @@ +package cn.iocoder.yudao.module.custom.service.impl; + +import cn.iocoder.yudao.framework.common.pojo.PageResult; +import cn.iocoder.yudao.framework.common.util.object.BeanUtils; +import cn.iocoder.yudao.module.custom.entity.CustomerCoupon; +import cn.iocoder.yudao.module.custom.mapper.CustomerCouponMapper; +import cn.iocoder.yudao.module.custom.service.CustomerCouponService; +import cn.iocoder.yudao.module.custom.vo.CustomerCouponPageReqVO; +import cn.iocoder.yudao.module.custom.vo.CustomerCouponSaveReqVO; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import org.springframework.stereotype.Service; +import org.springframework.validation.annotation.Validated; + +import javax.annotation.Resource; + +/** + * 用户卡券 Service 实现类 + * + * @author pqz + */ +@Service +@Validated +public class CustomerCouponServiceImpl extends ServiceImpl implements CustomerCouponService { + + @Resource + private CustomerCouponMapper customerCouponMapper; + + @Override + public String createCustomerCoupon(CustomerCouponSaveReqVO createReqVO) { + // 插入 + CustomerCoupon customerCoupon = BeanUtils.toBean(createReqVO, CustomerCoupon.class); + customerCouponMapper.insert(customerCoupon); + // 返回 + return customerCoupon.getId(); + } + + @Override + public void updateCustomerCoupon(CustomerCouponSaveReqVO updateReqVO) { + // 更新 + CustomerCoupon updateObj = BeanUtils.toBean(updateReqVO, CustomerCoupon.class); + customerCouponMapper.updateById(updateObj); + } + + @Override + public void deleteCustomerCoupon(String id) { + // 删除 + customerCouponMapper.deleteById(id); + } + + + + @Override + public CustomerCoupon getCustomerCoupon(String id) { + return customerCouponMapper.selectById(id); + } + + @Override + public PageResult getCustomerCouponPage(CustomerCouponPageReqVO pageReqVO) { + return null; + } + +} \ No newline at end of file diff --git a/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/vo/CustomerActivePageReqVO.java b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/vo/CustomerActivePageReqVO.java new file mode 100644 index 00000000..e22e2030 --- /dev/null +++ b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/vo/CustomerActivePageReqVO.java @@ -0,0 +1,15 @@ +package cn.iocoder.yudao.module.custom.vo; + +import cn.iocoder.yudao.module.custom.entity.CustomerActive; +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; + +@Schema(description = "管理后台 - 用户参与活动记录分页 Request VO") +@Data +@EqualsAndHashCode(callSuper = true) +@ToString(callSuper = true) +public class CustomerActivePageReqVO extends CustomerActive { + +} \ No newline at end of file diff --git a/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/vo/CustomerActiveRespVO.java b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/vo/CustomerActiveRespVO.java new file mode 100644 index 00000000..8ec770fd --- /dev/null +++ b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/vo/CustomerActiveRespVO.java @@ -0,0 +1,13 @@ +package cn.iocoder.yudao.module.custom.vo; + +import cn.iocoder.yudao.module.custom.entity.CustomerActive; +import com.alibaba.excel.annotation.ExcelIgnoreUnannotated; +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Data; + +@Schema(description = "管理后台 - 用户参与活动记录 Response VO") +@Data +@ExcelIgnoreUnannotated +public class CustomerActiveRespVO extends CustomerActive { + +} \ No newline at end of file diff --git a/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/vo/CustomerActiveSaveReqVO.java b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/vo/CustomerActiveSaveReqVO.java new file mode 100644 index 00000000..e7f40a5f --- /dev/null +++ b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/vo/CustomerActiveSaveReqVO.java @@ -0,0 +1,15 @@ +package cn.iocoder.yudao.module.custom.vo; + +import cn.iocoder.yudao.module.custom.entity.CustomerActive; +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.*; +import java.util.*; +import javax.validation.constraints.*; + +@Schema(description = "管理后台 - 用户参与活动记录新增/修改 Request VO") +@Data +public class CustomerActiveSaveReqVO extends CustomerActive { + + + +} \ No newline at end of file diff --git a/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/vo/CustomerBalanceChangePageReqVO.java b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/vo/CustomerBalanceChangePageReqVO.java new file mode 100644 index 00000000..0a262eae --- /dev/null +++ b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/vo/CustomerBalanceChangePageReqVO.java @@ -0,0 +1,17 @@ +package cn.iocoder.yudao.module.custom.vo; + +import cn.iocoder.yudao.module.custom.entity.CustomerBalanceChange; +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; + +@Schema(description = "管理后台 - 用户积分(余额)、卡券变动记录分页 Request VO") +@Data +@EqualsAndHashCode(callSuper = true) +@ToString(callSuper = true) +public class CustomerBalanceChangePageReqVO extends CustomerBalanceChange { + + + +} \ No newline at end of file diff --git a/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/vo/CustomerBalanceChangeRespVO.java b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/vo/CustomerBalanceChangeRespVO.java new file mode 100644 index 00000000..19cab57d --- /dev/null +++ b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/vo/CustomerBalanceChangeRespVO.java @@ -0,0 +1,19 @@ +package cn.iocoder.yudao.module.custom.vo; + +import cn.iocoder.yudao.module.custom.entity.CustomerBalanceChange; +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.*; +import java.util.*; +import java.math.BigDecimal; +import org.springframework.format.annotation.DateTimeFormat; +import java.time.LocalDateTime; +import com.alibaba.excel.annotation.*; + +@Schema(description = "管理后台 - 用户积分(余额)、卡券变动记录 Response VO") +@Data +@ExcelIgnoreUnannotated +public class CustomerBalanceChangeRespVO extends CustomerBalanceChange { + + + +} \ No newline at end of file diff --git a/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/vo/CustomerBalanceChangeSaveReqVO.java b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/vo/CustomerBalanceChangeSaveReqVO.java new file mode 100644 index 00000000..f1994792 --- /dev/null +++ b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/vo/CustomerBalanceChangeSaveReqVO.java @@ -0,0 +1,16 @@ +package cn.iocoder.yudao.module.custom.vo; + +import cn.iocoder.yudao.module.custom.entity.CustomerBalanceChange; +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.*; +import java.util.*; +import javax.validation.constraints.*; +import java.math.BigDecimal; + +@Schema(description = "管理后台 - 用户积分(余额)、卡券变动记录新增/修改 Request VO") +@Data +public class CustomerBalanceChangeSaveReqVO extends CustomerBalanceChange { + + + +} \ No newline at end of file diff --git a/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/vo/CustomerBalancePageReqVO.java b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/vo/CustomerBalancePageReqVO.java new file mode 100644 index 00000000..c416c389 --- /dev/null +++ b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/vo/CustomerBalancePageReqVO.java @@ -0,0 +1,17 @@ +package cn.iocoder.yudao.module.custom.vo; + +import cn.iocoder.yudao.module.custom.entity.CustomerBalance; +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.ToString; + +@Schema(description = "管理后台 - 用户积分(余额)分页 Request VO") +@Data +@EqualsAndHashCode(callSuper = true) +@ToString(callSuper = true) +public class CustomerBalancePageReqVO extends CustomerBalance { + + + +} \ No newline at end of file diff --git a/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/vo/CustomerBalanceRespVO.java b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/vo/CustomerBalanceRespVO.java new file mode 100644 index 00000000..55740b74 --- /dev/null +++ b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/vo/CustomerBalanceRespVO.java @@ -0,0 +1,19 @@ +package cn.iocoder.yudao.module.custom.vo; + +import cn.iocoder.yudao.module.custom.entity.CustomerBalance; +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.*; +import java.util.*; +import java.math.BigDecimal; +import org.springframework.format.annotation.DateTimeFormat; +import java.time.LocalDateTime; +import com.alibaba.excel.annotation.*; + +@Schema(description = "管理后台 - 用户积分(余额) Response VO") +@Data +@ExcelIgnoreUnannotated +public class CustomerBalanceRespVO extends CustomerBalance { + + + +} \ No newline at end of file diff --git a/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/vo/CustomerBalanceSaveReqVO.java b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/vo/CustomerBalanceSaveReqVO.java new file mode 100644 index 00000000..96e7e648 --- /dev/null +++ b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/vo/CustomerBalanceSaveReqVO.java @@ -0,0 +1,15 @@ +package cn.iocoder.yudao.module.custom.vo; + +import cn.iocoder.yudao.module.custom.entity.CustomerBalance; +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.*; +import java.util.*; +import javax.validation.constraints.*; +import java.math.BigDecimal; + +@Schema(description = "管理后台 - 用户积分(余额)新增/修改 Request VO") +@Data +public class CustomerBalanceSaveReqVO extends CustomerBalance { + + +} \ No newline at end of file diff --git a/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/vo/CustomerCouponPageReqVO.java b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/vo/CustomerCouponPageReqVO.java new file mode 100644 index 00000000..f74f48b8 --- /dev/null +++ b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/vo/CustomerCouponPageReqVO.java @@ -0,0 +1,22 @@ +package cn.iocoder.yudao.module.custom.vo; + +import cn.iocoder.yudao.module.custom.entity.CustomerCoupon; +import lombok.*; +import java.util.*; +import io.swagger.v3.oas.annotations.media.Schema; +import cn.iocoder.yudao.framework.common.pojo.PageParam; +import java.math.BigDecimal; +import org.springframework.format.annotation.DateTimeFormat; +import java.time.LocalDateTime; + +import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND; + +@Schema(description = "管理后台 - 用户卡券分页 Request VO") +@Data +@EqualsAndHashCode(callSuper = true) +@ToString(callSuper = true) +public class CustomerCouponPageReqVO extends CustomerCoupon { + + + +} \ No newline at end of file diff --git a/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/vo/CustomerCouponRespVO.java b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/vo/CustomerCouponRespVO.java new file mode 100644 index 00000000..b4997238 --- /dev/null +++ b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/vo/CustomerCouponRespVO.java @@ -0,0 +1,18 @@ +package cn.iocoder.yudao.module.custom.vo; + +import cn.iocoder.yudao.module.custom.entity.CustomerCoupon; +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.*; +import java.util.*; +import java.math.BigDecimal; +import org.springframework.format.annotation.DateTimeFormat; +import java.time.LocalDateTime; +import com.alibaba.excel.annotation.*; + +@Schema(description = "管理后台 - 用户卡券 Response VO") +@Data +@ExcelIgnoreUnannotated +public class CustomerCouponRespVO extends CustomerCoupon { + + +} \ No newline at end of file diff --git a/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/vo/CustomerCouponSaveReqVO.java b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/vo/CustomerCouponSaveReqVO.java new file mode 100644 index 00000000..5559d89e --- /dev/null +++ b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/vo/CustomerCouponSaveReqVO.java @@ -0,0 +1,16 @@ +package cn.iocoder.yudao.module.custom.vo; + +import cn.iocoder.yudao.module.custom.entity.CustomerCoupon; +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.*; +import java.util.*; +import javax.validation.constraints.*; +import java.math.BigDecimal; + +@Schema(description = "管理后台 - 用户卡券新增/修改 Request VO") +@Data +public class CustomerCouponSaveReqVO extends CustomerCoupon { + + + +} \ No newline at end of file diff --git a/dl-module-base/src/main/resources/mapper/custom/CustomerActiveMapper.xml b/dl-module-base/src/main/resources/mapper/custom/CustomerActiveMapper.xml new file mode 100644 index 00000000..34331d34 --- /dev/null +++ b/dl-module-base/src/main/resources/mapper/custom/CustomerActiveMapper.xml @@ -0,0 +1,12 @@ + + + + + + + \ No newline at end of file diff --git a/dl-module-base/src/main/resources/mapper/custom/CustomerBalanceChangeMapper.xml b/dl-module-base/src/main/resources/mapper/custom/CustomerBalanceChangeMapper.xml new file mode 100644 index 00000000..0b6e412c --- /dev/null +++ b/dl-module-base/src/main/resources/mapper/custom/CustomerBalanceChangeMapper.xml @@ -0,0 +1,12 @@ + + + + + + + \ No newline at end of file diff --git a/dl-module-base/src/main/resources/mapper/custom/CustomerBalanceMapper.xml b/dl-module-base/src/main/resources/mapper/custom/CustomerBalanceMapper.xml new file mode 100644 index 00000000..cf0e75a2 --- /dev/null +++ b/dl-module-base/src/main/resources/mapper/custom/CustomerBalanceMapper.xml @@ -0,0 +1,12 @@ + + + + + + + \ No newline at end of file diff --git a/dl-module-base/src/main/resources/mapper/custom/CustomerCouponMapper.xml b/dl-module-base/src/main/resources/mapper/custom/CustomerCouponMapper.xml new file mode 100644 index 00000000..944035d2 --- /dev/null +++ b/dl-module-base/src/main/resources/mapper/custom/CustomerCouponMapper.xml @@ -0,0 +1,12 @@ + + + + + + + \ No newline at end of file