添加订单状态已下发,已充值逻辑
This commit is contained in:
@ -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>
|
||||
{
|
||||
/**
|
||||
* 根据订单号查询充值记录
|
||||
|
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user