bug
This commit is contained in:
parent
2e193072eb
commit
53627e2f41
@ -15,6 +15,7 @@ import com.fuint.api.fuyou.entity.ReturnParameter;
|
|||||||
import com.fuint.api.fuyou.service.FyPayService;
|
import com.fuint.api.fuyou.service.FyPayService;
|
||||||
import com.fuint.api.fuyou.service.MerchantConfigService;
|
import com.fuint.api.fuyou.service.MerchantConfigService;
|
||||||
import com.fuint.business.commission.entity.CommissionRecord;
|
import com.fuint.business.commission.entity.CommissionRecord;
|
||||||
|
import com.fuint.business.commission.mapper.CommissionRecordMapper;
|
||||||
import com.fuint.business.commission.service.CommissionRecordService;
|
import com.fuint.business.commission.service.CommissionRecordService;
|
||||||
import com.fuint.business.integral.entity.IntegralDetail;
|
import com.fuint.business.integral.entity.IntegralDetail;
|
||||||
import com.fuint.business.integral.service.IntegralDetailService;
|
import com.fuint.business.integral.service.IntegralDetailService;
|
||||||
@ -119,6 +120,8 @@ public class CardValueRecordServiceImpl extends ServiceImpl<CardValueRecordMappe
|
|||||||
private CardExchangeRecordService cardExchangeRecordService;
|
private CardExchangeRecordService cardExchangeRecordService;
|
||||||
@Autowired
|
@Autowired
|
||||||
private ILJStoreService storeService;
|
private ILJStoreService storeService;
|
||||||
|
@Resource
|
||||||
|
private CommissionRecordMapper commissionRecordMapper;
|
||||||
/**
|
/**
|
||||||
* 储值卡充值(新增)
|
* 储值卡充值(新增)
|
||||||
* @param cardValueRecordDTO
|
* @param cardValueRecordDTO
|
||||||
@ -761,6 +764,16 @@ public class CardValueRecordServiceImpl extends ServiceImpl<CardValueRecordMappe
|
|||||||
}
|
}
|
||||||
userBalanceService.save(userBalance1);
|
userBalanceService.save(userBalance1);
|
||||||
}
|
}
|
||||||
|
//员工提成 commissionRecordMapper
|
||||||
|
if (ObjectUtils.isNotEmpty(cardValueOrders.getAmountCommission())){
|
||||||
|
Integer staffId = cardValueOrders.getStaffId();
|
||||||
|
CommissionRecord commissionRecord = new CommissionRecord();
|
||||||
|
commissionRecord.setStoreId(cardValueOrders.getStoreId());
|
||||||
|
commissionRecord.setAmount(cardValueOrders.getAmountCommission());
|
||||||
|
commissionRecord.setStaffId(staffId);
|
||||||
|
commissionRecord.setType("3");
|
||||||
|
commissionRecord.setOrderNo(cardValueOrders.getOrderNo());
|
||||||
|
}
|
||||||
//用户余额变化记录
|
//用户余额变化记录
|
||||||
cardBalanceChange.setUserId(cardValueOrders.getMtUserId());
|
cardBalanceChange.setUserId(cardValueOrders.getMtUserId());
|
||||||
cardBalanceChange.setStoreId(cardValueOrders.getStoreId());
|
cardBalanceChange.setStoreId(cardValueOrders.getStoreId());
|
||||||
|
Loading…
Reference in New Issue
Block a user