1、客户关联会员;2、营销活动下加上是否重复参与字段

This commit is contained in:
zhaotianfeng 2024-09-20 15:38:21 +08:00
parent 3ccf1e83d7
commit 2cd0fea776
5 changed files with 42 additions and 1 deletions

View File

@ -99,5 +99,11 @@ public class CustomerMain extends TenantBaseDO {
* 客户状态 * 客户状态
*/ */
private String status; private String status;
/**
*
* 会员表id
*
*/
private String memberLevelId;
} }

View File

@ -19,6 +19,8 @@ import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource; import javax.annotation.Resource;
import javax.validation.Valid; import javax.validation.Valid;
import java.util.List;
import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success; import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
@ -114,6 +116,15 @@ public class MemberLevelController {
Page<MemberLevelRespVO> page = new Page<>(pageNo, pageSize); Page<MemberLevelRespVO> page = new Page<>(pageNo, pageSize);
return success(levelService.queryListPage(pageReqVO,page)); return success(levelService.queryListPage(pageReqVO,page));
} }
/**
* 获取全部会员
*
**/
@GetMapping("/all")
@Operation(summary = "获得全部会员")
@PreAuthorize("@ss.hasPermission('member:level:query')")
public CommonResult<List<MemberLevel>> getLevelAll(MemberLevelPageReqVO pageReqVO) {
return success(levelService.queryListAll(pageReqVO));
}
} }

View File

@ -61,5 +61,9 @@ public class ActiveMain extends TenantBaseDO {
private String isPack; private String isPack;
/**是否关联卡券*/ /**是否关联卡券*/
private String isCoupon; private String isCoupon;
/**
* 是否重复参与
*/
private String isParticipate;
} }

View File

@ -8,6 +8,8 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService; import com.baomidou.mybatisplus.extension.service.IService;
import java.util.List;
/** /**
* 会员等级 Service 接口 * 会员等级 Service 接口
* *
@ -54,4 +56,11 @@ public interface MemberLevelService extends IService<MemberLevel> {
**/ **/
IPage<MemberLevelRespVO> queryListPage(MemberLevelPageReqVO pageReqVO, Page<MemberLevelRespVO> page); IPage<MemberLevelRespVO> queryListPage(MemberLevelPageReqVO pageReqVO, Page<MemberLevelRespVO> page);
/**
* 获取全部会员
*
**/
List<MemberLevel> queryListAll(MemberLevelPageReqVO pageReqVO);
} }

View File

@ -7,6 +7,7 @@ import cn.iocoder.yudao.module.member.service.MemberLevelService;
import cn.iocoder.yudao.module.member.vo.MemberLevelPageReqVO; import cn.iocoder.yudao.module.member.vo.MemberLevelPageReqVO;
import cn.iocoder.yudao.module.member.vo.MemberLevelRespVO; import cn.iocoder.yudao.module.member.vo.MemberLevelRespVO;
import cn.iocoder.yudao.module.member.vo.MemberLevelSaveReqVO; import cn.iocoder.yudao.module.member.vo.MemberLevelSaveReqVO;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
@ -14,6 +15,7 @@ import org.springframework.stereotype.Service;
import org.springframework.validation.annotation.Validated; import org.springframework.validation.annotation.Validated;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.List;
/** /**
* 会员等级 Service 实现类 * 会员等级 Service 实现类
@ -82,5 +84,14 @@ public class MemberLevelServiceImpl extends ServiceImpl<MemberLevelMapper, Membe
return levelMapper.selectListPage(pageReqVO,page); return levelMapper.selectListPage(pageReqVO,page);
} }
@Override
public List<MemberLevel> queryListAll(MemberLevelPageReqVO pageReqVO) {
QueryWrapper<MemberLevel> q = new QueryWrapper<>();
q.eq("status","01");
List<MemberLevel> memberLevels = this.levelMapper.selectList(q);
return memberLevels;
}
} }