修改刷卡记录、充值记录、充值、灌溉记录、用户充值卡信息的权限;取消充值时对用户卡是否存在的验证
This commit is contained in:
@ -105,10 +105,10 @@ public class NgUserRechargeRecordsServiceImpl implements INgUserRechargeRecordsS
|
||||
public int insertNgUserRechargeRecordsWeChat(WeChatRecharge rechargecardUser) {
|
||||
// 根据id查询用户充值卡信息
|
||||
UserRechargeCards info = userRechargeCardsMapper.selectUserRechargeCardsByCardnumber(String.valueOf(rechargecardUser.getCardnumber()));
|
||||
if (info == null) {
|
||||
/*if (info == null) {
|
||||
// 如果没有找到对应的记录,返回0或者一个错误码
|
||||
throw new ServiceException("卡号不存在!");
|
||||
}
|
||||
}*/
|
||||
NgUserRechargeRecords ngUserRechargeRecords=new NgUserRechargeRecords();
|
||||
if(info.getUserId()!=null)
|
||||
{
|
||||
|
@ -215,10 +215,10 @@ public class UserConsumptionDetailsServiceImpl implements IUserConsumptionDetail
|
||||
userConsumptionDetails.setCardNumber(String.valueOf(recharge.getCardnumber()));
|
||||
// 根据id查询用户充值卡信息
|
||||
UserRechargeCards info = userRechargeCardsMapper.selectUserRechargeCardsByCardnumber(String.valueOf(recharge.getCardnumber()));
|
||||
if (info == null) {
|
||||
/*if (info == null) {
|
||||
// 如果没有找到对应的记录,返回0或者一个错误码
|
||||
throw new ServiceException("卡号不存在!");
|
||||
}
|
||||
}*/
|
||||
if(info.getUserId()!=null)
|
||||
{
|
||||
userConsumptionDetails.setUserId(info.getUserId());
|
||||
|
@ -224,10 +224,10 @@ public class UserRechargeCardsServiceImpl implements IUserRechargeCardsService
|
||||
|
||||
// 根据id查询用户充值卡信息
|
||||
UserRechargeCards info = userRechargeCardsMapper.selectUserRechargeCardsByCardnumber(String.valueOf(rechargecardUser.getCardnumber()));
|
||||
if (info == null) {
|
||||
/*if (info == null) {
|
||||
// 如果没有找到对应的记录,返回0或者一个错误码
|
||||
throw new ServiceException("卡号不存在!");
|
||||
}
|
||||
}*/
|
||||
|
||||
UserConsumptionDetails userConsumptionDetails=new UserConsumptionDetails();
|
||||
userConsumptionDetails.setUserId(info.getUserId());
|
||||
|
Reference in New Issue
Block a user