1.删除无效的vip历史信息
Showing
1 changed file
with
0 additions
and
30 deletions
| 1 | package com.topdraw.business.module.member.viphistory.service.impl; | ||
| 2 | |||
| 3 | import com.topdraw.business.module.member.domain.Member; | ||
| 4 | import com.topdraw.business.module.member.viphistory.domain.MemberVipHistory; | ||
| 5 | |||
| 6 | import java.time.LocalDateTime; | ||
| 7 | |||
| 8 | /** | ||
| 9 | * @author : | ||
| 10 | * @description: | ||
| 11 | * @function : | ||
| 12 | * @date :Created in 2022/3/8 13:25 | ||
| 13 | * @version: : | ||
| 14 | * @modified By: | ||
| 15 | * @since : modified in 2022/3/8 13:25 | ||
| 16 | */ | ||
| 17 | public class MemberVipHistoryBuilder { | ||
| 18 | |||
| 19 | |||
| 20 | public static MemberVipHistory build(Long memberId , int oldVip , int status , LocalDateTime vipExpireTime, int vip){ | ||
| 21 | MemberVipHistory memberVipHistory = new MemberVipHistory(); | ||
| 22 | memberVipHistory.setBeforeVip(oldVip); | ||
| 23 | memberVipHistory.setVipExpireTime(vipExpireTime); | ||
| 24 | memberVipHistory.setMemberId(memberId); | ||
| 25 | memberVipHistory.setStatus(status); | ||
| 26 | memberVipHistory.setVip(vip); | ||
| 27 | return memberVipHistory; | ||
| 28 | } | ||
| 29 | |||
| 30 | } |
-
Please register or sign in to post a comment