| | |
| | | import cc.mrbird.febs.mall.service.IApiMallMemberWalletService; |
| | | import cc.mrbird.febs.rabbit.producter.AgentProducer; |
| | | import cn.hutool.core.util.ObjectUtil; |
| | | import cn.hutool.core.util.StrUtil; |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | |
| | | mallChargeMapper.updateById(mallCharge); |
| | | |
| | | if(mallCharge.getState() == YesOrNoEnum.YES.getValue()){ |
| | | agentProducer.sendBuyVipSuccessMsg(mallCharge.getId()); |
| | | if(StrUtil.isNotEmpty(mallCharge.getVipCode())){ |
| | | agentProducer.sendBuyVipSuccessMsg(mallCharge.getId()); |
| | | }else{ |
| | | agentProducer.sendChargeSuccessMsg(mallCharge.getId()); |
| | | } |
| | | } |
| | | |
| | | return new FebsResponse().success().message("操作成功"); |
| | | } |
| | | |