From 3492885ff28bbe10b390ed6b1466901b969eb433 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BD=90=E5=A4=A9=E5=A4=A7=E5=9C=A3?= <17615834396@163.com> Date: Tue, 5 Mar 2024 09:20:04 +0800 Subject: [PATCH] bug --- .../entity/ActiveOneCoupon.java | 4 ++++ .../impl/ActiveOneCouponServiceImpl.java | 9 +++++---- .../repository/mapper/MtUserGradeMapper.java | 3 +++ .../fuint/repository/model/MtUserGrade.java | 4 ++-- .../fuint/repository/model/MtUserGradeVO.java | 18 ++++++++++++++++++ .../resources/mapper/MtUserGradeMapper.xml | 3 +++ 6 files changed, 35 insertions(+), 6 deletions(-) create mode 100644 fuintBackend/fuint-repository/src/main/java/com/fuint/repository/model/MtUserGradeVO.java diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeOneCoupon/entity/ActiveOneCoupon.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeOneCoupon/entity/ActiveOneCoupon.java index 1c2e22444..e5323c305 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeOneCoupon/entity/ActiveOneCoupon.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeOneCoupon/entity/ActiveOneCoupon.java @@ -1,6 +1,9 @@ package com.fuint.business.marketingActivity.activeOneCoupon.entity; import java.util.Date; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.extension.activerecord.Model; import lombok.Data; @@ -16,6 +19,7 @@ import java.io.Serializable; @Data public class ActiveOneCoupon extends Model { //主键id + @TableId(type = IdType.AUTO) private Integer id; private Integer storeId; private String activeName; diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeOneCoupon/service/impl/ActiveOneCouponServiceImpl.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeOneCoupon/service/impl/ActiveOneCouponServiceImpl.java index be3b54008..d83b50c42 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeOneCoupon/service/impl/ActiveOneCouponServiceImpl.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeOneCoupon/service/impl/ActiveOneCouponServiceImpl.java @@ -28,6 +28,7 @@ import com.fuint.common.dto.AccountInfo; import com.fuint.common.util.TokenUtil; import com.fuint.repository.mapper.MtUserGradeMapper; import com.fuint.repository.model.MtUserGrade; +import com.fuint.repository.model.MtUserGradeVO; import org.apache.commons.lang3.ObjectUtils; import org.springframework.beans.BeanUtils; import org.springframework.stereotype.Service; @@ -73,11 +74,11 @@ public class ActiveOneCouponServiceImpl extends ServiceImpl { + + MtUserGradeVO selectByGradeId(Integer gradeId); // empty } diff --git a/fuintBackend/fuint-repository/src/main/java/com/fuint/repository/model/MtUserGrade.java b/fuintBackend/fuint-repository/src/main/java/com/fuint/repository/model/MtUserGrade.java index e5114ba46..ea4daeecf 100644 --- a/fuintBackend/fuint-repository/src/main/java/com/fuint/repository/model/MtUserGrade.java +++ b/fuintBackend/fuint-repository/src/main/java/com/fuint/repository/model/MtUserGrade.java @@ -38,9 +38,9 @@ public class MtUserGrade implements Serializable { @ApiModelProperty("等级名称") private String name; -// @ApiModelProperty("升级会员等级条件描述") +/*// @ApiModelProperty("升级会员等级条件描述") // private String catchCondition; - +*/ @ApiModelProperty("升级会员等级条件,init:默认获取;pay:付费升级;frequency:消费次数;amount:累积消费金额升级") @TableField(exist = false) private String catchType; diff --git a/fuintBackend/fuint-repository/src/main/java/com/fuint/repository/model/MtUserGradeVO.java b/fuintBackend/fuint-repository/src/main/java/com/fuint/repository/model/MtUserGradeVO.java new file mode 100644 index 000000000..9d9abf204 --- /dev/null +++ b/fuintBackend/fuint-repository/src/main/java/com/fuint/repository/model/MtUserGradeVO.java @@ -0,0 +1,18 @@ +package com.fuint.repository.model; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +@Data +public class MtUserGradeVO { + @TableId(value = "ID", type = IdType.AUTO) + private Integer id; + + @ApiModelProperty("等级") + private Integer grade; + + @ApiModelProperty("等级名称") + private String name; +} diff --git a/fuintBackend/fuint-repository/src/main/resources/mapper/MtUserGradeMapper.xml b/fuintBackend/fuint-repository/src/main/resources/mapper/MtUserGradeMapper.xml index ace48db9e..272a4983f 100644 --- a/fuintBackend/fuint-repository/src/main/resources/mapper/MtUserGradeMapper.xml +++ b/fuintBackend/fuint-repository/src/main/resources/mapper/MtUserGradeMapper.xml @@ -2,4 +2,7 @@ +