feat 订单消费数据增加软删除
This commit is contained in:
@@ -49,15 +49,14 @@ public class OrderService : BaseOrderService, IOrderService
|
||||
//消费权限控制
|
||||
await CheckPermissionAsync(gainfo.No, request.DeviceUniqueNo);
|
||||
|
||||
var canteenUserExists = await DbContext.Queryable<GainfoMealEntity>()
|
||||
if (!await DbContext.Queryable<GainfoMealEntity>()
|
||||
.Where(x => x.UserNo == gainfo.No)
|
||||
.AnyAsync();
|
||||
|
||||
if (!canteenUserExists)
|
||||
.AnyAsync())
|
||||
{
|
||||
await DbContext.InsertAsync(new GainfoMealEntity
|
||||
{
|
||||
UserNo = gainfo.No,
|
||||
UserCode = gainfo.Code,
|
||||
Balance = 0,
|
||||
BalanceOfRecharge = 0,
|
||||
BalanceOfSubsidies = 0,
|
||||
|
||||
Reference in New Issue
Block a user