fix 细节调整
This commit is contained in:
@@ -21,6 +21,7 @@ public class MiddleService : IMiddleService
|
||||
public async Task<OrderResultResponse> MiddleUploadAsync(BalanceRecordEntity entity)
|
||||
{
|
||||
entity.Id = 0;
|
||||
entity.Amount = -Math.Abs(entity.Amount);
|
||||
if (!await _dbContext.Queryable<BalanceRecordEntity>().AnyAsync(x => x.No == entity.No))
|
||||
{
|
||||
await _dbContext.InsertAsync(entity);
|
||||
|
||||
Reference in New Issue
Block a user