test 数据检查
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
using Dlhis.Basic.Api;
|
||||
using Dlhis.Basic.Api.Request;
|
||||
using Dlhis.Basic.Api.Request;
|
||||
using Dlhis.Entity.Canteen.Entities;
|
||||
using Dlhis.Entity.Canteen.Enums;
|
||||
using Dlhis.ScheduledTask.Common.Request;
|
||||
@@ -23,7 +22,7 @@ public class HangfireController : ControllerBase
|
||||
private readonly IHangfireService _hangfireService;
|
||||
private readonly IDbContext _dbContext;
|
||||
|
||||
public HangfireController(IHangfireService hangfireService , IDbContext dbContext)
|
||||
public HangfireController(IHangfireService hangfireService, IDbContext dbContext)
|
||||
{
|
||||
_hangfireService = hangfireService;
|
||||
_dbContext = dbContext;
|
||||
@@ -58,8 +57,8 @@ public class HangfireController : ControllerBase
|
||||
{
|
||||
_hangfireService.GeneratePermissions(request);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
[IgnoreTenant]
|
||||
[HttpPost("recalc")]
|
||||
public async Task<object> ReCalc()
|
||||
@@ -77,6 +76,11 @@ public class HangfireController : ControllerBase
|
||||
.Having(x => SqlFunc.IsNull(x.Remark, "") != "" && SqlFunc.AggregateCount(1) > 1 && x.Remark != "用户取消" && x.Remark != "正常发放")
|
||||
.ToListAsync();
|
||||
|
||||
return ls.Count;
|
||||
var row = ls.First();
|
||||
var code = row.UserCode;
|
||||
|
||||
var data = _dbContext.Queryable<BalanceRecordEntity>().Where(x => x.UserCode == code).Where(x => x.Remark == row.Remark);
|
||||
|
||||
return data;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user