From 0af329d7210a84c97ec071735a2d0d1d7b0b785c Mon Sep 17 00:00:00 2001 From: zhanglin8526 <852614290@qq.com> Date: 星期六, 26 八月 2023 13:58:48 +0800 Subject: [PATCH] Merge branch 'master' of http://120.76.84.145:10101/gitblit/r/java/HongRuiTang --- ruoyi-modules/ruoyi-member/src/main/java/com/ruoyi/member/service/impl/member/MemberGiftRecordServiceImpl.java | 18 +++++++++++++++++- 1 files changed, 17 insertions(+), 1 deletions(-) diff --git a/ruoyi-modules/ruoyi-member/src/main/java/com/ruoyi/member/service/impl/member/MemberGiftRecordServiceImpl.java b/ruoyi-modules/ruoyi-member/src/main/java/com/ruoyi/member/service/impl/member/MemberGiftRecordServiceImpl.java index 7f9f7fe..9395833 100644 --- a/ruoyi-modules/ruoyi-member/src/main/java/com/ruoyi/member/service/impl/member/MemberGiftRecordServiceImpl.java +++ b/ruoyi-modules/ruoyi-member/src/main/java/com/ruoyi/member/service/impl/member/MemberGiftRecordServiceImpl.java @@ -1,12 +1,14 @@ package com.ruoyi.member.service.impl.member; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.ruoyi.system.api.domain.dto.MerVerifyPrizeFinalDto; import com.ruoyi.system.api.domain.poji.member.MemberGiftRecord; import com.ruoyi.member.mapper.member.MemberGiftRecordMapper; import com.ruoyi.member.service.member.MemberGiftRecordService; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import org.springframework.stereotype.Service; +import java.util.Date; import java.util.List; /** @@ -39,6 +41,20 @@ } - + /** + * @description + * @author jqs + * @date 2023/8/10 11:54 + * @param merVerifyPrizeFinalDto + * @return void + */ + @Override + public void verifyPrize(MerVerifyPrizeFinalDto merVerifyPrizeFinalDto){ + MemberGiftRecord memberGiftRecord = this.getById(merVerifyPrizeFinalDto.getPrizeId()); + memberGiftRecord.setShopId(merVerifyPrizeFinalDto.getShopId()); + memberGiftRecord.setVerifyStatus(2); + memberGiftRecord.setVerifyTime(new Date()); + this.saveOrUpdate(memberGiftRecord); + } } -- Gitblit v1.7.1