添加订单状态已下发,已充值逻辑

This commit is contained in:
蒾酒
2024-12-31 13:45:02 +08:00
parent 84ee4f046f
commit 48b18a9e8b
3 changed files with 33 additions and 3 deletions

View File

@ -1,6 +1,8 @@
package com.fastbee.rechargecard.mapper;
import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fastbee.rechargecard.domain.NgUserRechargeRecords;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
@ -12,7 +14,7 @@ import org.apache.ibatis.annotations.Select;
* @date 2024-12-19
*/
@Mapper
public interface NgUserRechargeRecordsMapper
public interface NgUserRechargeRecordsMapper extends BaseMapper<NgUserRechargeRecords>
{
/**
* 根据订单号查询充值记录

View File

@ -174,11 +174,13 @@ public class UserRechargeCardsServiceImpl implements IUserRechargeCardsService
param.put("data",data);
try{
pubMqttClient.publish(1,true,topic, JSONUtil.toJsonStr(param));
}catch (Exception e)
{
throw new ServiceException("消息发布失败");
}
ngUserRechargeRecords.setStatus(2);//状态更改为已下发
userRechargeRecordsMapper.updateNgUserRechargeRecords(ngUserRechargeRecords);
// int i = userRechargeCardsMapper.updateUserRechargeCards(info);
return 1;
}