fix 消费恢复为余额表
This commit is contained in:
@@ -26,9 +26,10 @@ public class MiddleService : IMiddleService
|
||||
if (!await _dbContext.Queryable<BalanceRecordEntity>().AnyAsync(x => x.No == entity.No))
|
||||
{
|
||||
await _dbContext.InsertAsync(entity);
|
||||
await _balanceRepository.CalculateBalanceAsync(entity.UserCode);
|
||||
}
|
||||
|
||||
var balance = await _balanceRepository.GetBalanceAsync(entity.UserCode, string.Empty);
|
||||
var balance = await _balanceRepository.GetBalanceAsync(entity.UserCode);
|
||||
|
||||
//获取人员余额
|
||||
return await _dbContext.Queryable<GainfoEntity>()
|
||||
|
||||
Reference in New Issue
Block a user