客户会员关系代码初始化
This commit is contained in:
parent
8b253be951
commit
7253bfe232
@ -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<String> createCustomerActive(@Valid @RequestBody CustomerActiveSaveReqVO createReqVO) {
|
||||
return success(customerActiveService.createCustomerActive(createReqVO));
|
||||
}
|
||||
|
||||
@PutMapping("/update")
|
||||
@Operation(summary = "更新用户参与活动记录")
|
||||
@PreAuthorize("@ss.hasPermission('base:customer-active:update')")
|
||||
public CommonResult<Boolean> 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<Boolean> 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<CustomerActiveRespVO> 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<PageResult<CustomerActiveRespVO>> getCustomerActivePage(@Valid CustomerActivePageReqVO pageReqVO) {
|
||||
PageResult<CustomerActive> pageResult = customerActiveService.getCustomerActivePage(pageReqVO);
|
||||
return success(BeanUtils.toBean(pageResult, CustomerActiveRespVO.class));
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -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<String> createCustomerBalanceChange(@Valid @RequestBody CustomerBalanceChangeSaveReqVO createReqVO) {
|
||||
return success(customerBalanceChangeService.createCustomerBalanceChange(createReqVO));
|
||||
}
|
||||
|
||||
@PutMapping("/update")
|
||||
@Operation(summary = "更新用户积分(余额)、卡券变动记录")
|
||||
@PreAuthorize("@ss.hasPermission('base:customer-balance-change:update')")
|
||||
public CommonResult<Boolean> 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<Boolean> 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<CustomerBalanceChangeRespVO> 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<PageResult<CustomerBalanceChangeRespVO>> getCustomerBalanceChangePage(@Valid CustomerBalanceChangePageReqVO pageReqVO) {
|
||||
PageResult<CustomerBalanceChange> pageResult = customerBalanceChangeService.getCustomerBalanceChangePage(pageReqVO);
|
||||
return success(BeanUtils.toBean(pageResult, CustomerBalanceChangeRespVO.class));
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -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<String> createCustomerBalance(@Valid @RequestBody CustomerBalanceSaveReqVO createReqVO) {
|
||||
return success(customerBalanceService.createCustomerBalance(createReqVO));
|
||||
}
|
||||
|
||||
@PutMapping("/update")
|
||||
@Operation(summary = "更新用户积分(余额)")
|
||||
@PreAuthorize("@ss.hasPermission('base:customer-balance:update')")
|
||||
public CommonResult<Boolean> updateCustomerBalance(@Valid @RequestBody CustomerBalanceSaveReqVO updateReqVO) {
|
||||
customerBalanceService.updateCustomerBalance(updateReqVO);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
}
|
@ -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<String> createCustomerCoupon(@Valid @RequestBody CustomerCouponSaveReqVO createReqVO) {
|
||||
return success(customerCouponService.createCustomerCoupon(createReqVO));
|
||||
}
|
||||
|
||||
@PutMapping("/update")
|
||||
@Operation(summary = "更新用户卡券")
|
||||
@PreAuthorize("@ss.hasPermission('base:customer-coupon:update')")
|
||||
public CommonResult<Boolean> 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<Boolean> 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<CustomerCouponRespVO> 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<PageResult<CustomerCouponRespVO>> getCustomerCouponPage(@Valid CustomerCouponPageReqVO pageReqVO) {
|
||||
PageResult<CustomerCoupon> pageResult = customerCouponService.getCustomerCouponPage(pageReqVO);
|
||||
return success(BeanUtils.toBean(pageResult, CustomerCouponRespVO.class));
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -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;
|
||||
|
||||
}
|
@ -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;
|
||||
|
||||
}
|
@ -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;
|
||||
|
||||
}
|
@ -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;
|
||||
|
||||
}
|
@ -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<CustomerActive> {
|
||||
|
||||
|
||||
|
||||
}
|
@ -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<CustomerBalanceChange> {
|
||||
|
||||
|
||||
|
||||
}
|
@ -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<CustomerBalance> {
|
||||
|
||||
|
||||
}
|
@ -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<CustomerCoupon> {
|
||||
|
||||
|
||||
|
||||
}
|
@ -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<CustomerActive> {
|
||||
|
||||
/**
|
||||
* 创建用户参与活动记录
|
||||
*
|
||||
* @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<CustomerActive> getCustomerActivePage(CustomerActivePageReqVO pageReqVO);
|
||||
|
||||
}
|
@ -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<CustomerBalanceChange> {
|
||||
|
||||
/**
|
||||
* 创建用户积分(余额)、卡券变动记录
|
||||
*
|
||||
* @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<CustomerBalanceChange> getCustomerBalanceChangePage(CustomerBalanceChangePageReqVO pageReqVO);
|
||||
|
||||
}
|
@ -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<CustomerBalance> {
|
||||
|
||||
/**
|
||||
* 创建用户积分(余额)
|
||||
*
|
||||
* @param createReqVO 创建信息
|
||||
* @return 编号
|
||||
*/
|
||||
String createCustomerBalance(@Valid CustomerBalanceSaveReqVO createReqVO);
|
||||
|
||||
/**
|
||||
* 更新用户积分(余额)
|
||||
*
|
||||
* @param updateReqVO 更新信息
|
||||
*/
|
||||
void updateCustomerBalance(@Valid CustomerBalanceSaveReqVO updateReqVO);
|
||||
|
||||
|
||||
}
|
@ -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<CustomerCoupon> {
|
||||
|
||||
/**
|
||||
* 创建用户卡券
|
||||
*
|
||||
* @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<CustomerCoupon> getCustomerCouponPage(CustomerCouponPageReqVO pageReqVO);
|
||||
|
||||
}
|
@ -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<CustomerActiveMapper, CustomerActive> 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<CustomerActive> getCustomerActivePage(CustomerActivePageReqVO pageReqVO) {
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
@ -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<CustomerBalanceChangeMapper, CustomerBalanceChange> 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<CustomerBalanceChange> getCustomerBalanceChangePage(CustomerBalanceChangePageReqVO pageReqVO) {
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
@ -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<CustomerBalanceMapper, CustomerBalance> 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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
@ -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<CustomerCouponMapper, CustomerCoupon> 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<CustomerCoupon> getCustomerCouponPage(CustomerCouponPageReqVO pageReqVO) {
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
@ -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 {
|
||||
|
||||
}
|
@ -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 {
|
||||
|
||||
}
|
@ -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 {
|
||||
|
||||
|
||||
|
||||
}
|
@ -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 {
|
||||
|
||||
|
||||
|
||||
}
|
@ -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 {
|
||||
|
||||
|
||||
|
||||
}
|
@ -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 {
|
||||
|
||||
|
||||
|
||||
}
|
@ -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 {
|
||||
|
||||
|
||||
|
||||
}
|
@ -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 {
|
||||
|
||||
|
||||
|
||||
}
|
@ -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 {
|
||||
|
||||
|
||||
}
|
@ -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 {
|
||||
|
||||
|
||||
|
||||
}
|
@ -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 {
|
||||
|
||||
|
||||
}
|
@ -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 {
|
||||
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="cn.iocoder.yudao.module.custom.mapper.CustomerActiveMapper">
|
||||
|
||||
<!--
|
||||
一般情况下,尽可能使用 Mapper 进行 CRUD 增删改查即可。
|
||||
无法满足的场景,例如说多表关联查询,才使用 XML 编写 SQL。
|
||||
代码生成器暂时只生成 Mapper XML 文件本身,更多推荐 MybatisX 快速开发插件来生成查询。
|
||||
文档可见:https://www.iocoder.cn/MyBatis/x-plugins/
|
||||
-->
|
||||
|
||||
</mapper>
|
@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="cn.iocoder.yudao.module.custom.mapper.CustomerBalanceChangeMapper">
|
||||
|
||||
<!--
|
||||
一般情况下,尽可能使用 Mapper 进行 CRUD 增删改查即可。
|
||||
无法满足的场景,例如说多表关联查询,才使用 XML 编写 SQL。
|
||||
代码生成器暂时只生成 Mapper XML 文件本身,更多推荐 MybatisX 快速开发插件来生成查询。
|
||||
文档可见:https://www.iocoder.cn/MyBatis/x-plugins/
|
||||
-->
|
||||
|
||||
</mapper>
|
@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="cn.iocoder.yudao.module.custom.mapper.CustomerBalanceMapper">
|
||||
|
||||
<!--
|
||||
一般情况下,尽可能使用 Mapper 进行 CRUD 增删改查即可。
|
||||
无法满足的场景,例如说多表关联查询,才使用 XML 编写 SQL。
|
||||
代码生成器暂时只生成 Mapper XML 文件本身,更多推荐 MybatisX 快速开发插件来生成查询。
|
||||
文档可见:https://www.iocoder.cn/MyBatis/x-plugins/
|
||||
-->
|
||||
|
||||
</mapper>
|
@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="cn.iocoder.yudao.module.custom.mapper.CustomerCouponMapper">
|
||||
|
||||
<!--
|
||||
一般情况下,尽可能使用 Mapper 进行 CRUD 增删改查即可。
|
||||
无法满足的场景,例如说多表关联查询,才使用 XML 编写 SQL。
|
||||
代码生成器暂时只生成 Mapper XML 文件本身,更多推荐 MybatisX 快速开发插件来生成查询。
|
||||
文档可见:https://www.iocoder.cn/MyBatis/x-plugins/
|
||||
-->
|
||||
|
||||
</mapper>
|
Loading…
Reference in New Issue
Block a user