From a57a04dc8710842ce222ef80f569dcfbe9369192 Mon Sep 17 00:00:00 2001 From: cun-nan <19819293608@163.com> Date: Wed, 13 Mar 2024 16:18:27 +0800 Subject: [PATCH] bug --- .../service/ActiveAppletService.java | 2 + .../service/impl/ActiveAppletServiceImpl.java | 17 +++ .../service/impl/CardValueServiceImpl.java | 3 + gasStation-uni/pagesMy/invite/inviteCode.vue | 103 ++++++++++++++++++ 4 files changed, 125 insertions(+) create mode 100644 gasStation-uni/pagesMy/invite/inviteCode.vue diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeApplet/service/ActiveAppletService.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeApplet/service/ActiveAppletService.java index 0c574d939..0d6d50b91 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeApplet/service/ActiveAppletService.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeApplet/service/ActiveAppletService.java @@ -15,5 +15,7 @@ public interface ActiveAppletService extends IService { List applet(ActiveApplet activeApplet); List appletActiveByType(ActiveApplet activeApplet); + + void updateIsonline(Integer storeId,String type,Integer activeId,String isonline); } diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeApplet/service/impl/ActiveAppletServiceImpl.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeApplet/service/impl/ActiveAppletServiceImpl.java index 8a8640ac2..3d996fefd 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeApplet/service/impl/ActiveAppletServiceImpl.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/activeApplet/service/impl/ActiveAppletServiceImpl.java @@ -1,5 +1,7 @@ package com.fuint.business.marketingActivity.activeApplet.service.impl; +import cn.hutool.core.util.ObjectUtil; +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.fuint.business.marketingActivity.activeApplet.mapper.ActiveAppletMapper; import com.fuint.business.marketingActivity.activeApplet.entity.ActiveApplet; @@ -30,5 +32,20 @@ public class ActiveAppletServiceImpl extends ServiceImpl appletActiveByType(ActiveApplet activeApplet) { return activeAppletMapper.appletActiveByType(activeApplet); } + + @Override + public void updateIsonline(Integer storeId, String type, Integer activeId, String isonline) { + QueryWrapper queryWrapper = new QueryWrapper<>(); + queryWrapper.eq("store_id",storeId); + queryWrapper.eq("type",type); + queryWrapper.eq("active_id",activeId); + ActiveApplet activeApplet = baseMapper.selectOne(queryWrapper); + if (ObjectUtil.isNotEmpty(activeApplet)){ + if (isonline.equals("1")) activeApplet.setActiveStatus("2"); + if (isonline.equals("0")) activeApplet.setActiveStatus("1"); + activeApplet.setIsonline(isonline); + baseMapper.updateById(activeApplet); + } + } } diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardValue/service/impl/CardValueServiceImpl.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardValue/service/impl/CardValueServiceImpl.java index acd405645..1395058b7 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardValue/service/impl/CardValueServiceImpl.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/marketingActivity/cardValue/service/impl/CardValueServiceImpl.java @@ -423,6 +423,9 @@ public class CardValueServiceImpl extends ServiceImpl + + + + + 邀请码 + + + + + + + + + + + + + + + + + \ No newline at end of file