fix 覆盖保存
This commit is contained in:
@@ -91,8 +91,12 @@ public class BusinessPlaceShiftService : IBusinessPlaceShiftService
|
||||
var shiftCode = requests[0].ShiftCode;
|
||||
var shift = await CheckExistsShiftAsync(shiftCode);
|
||||
|
||||
await _dbContext.Deleteable<BusinessShiftMealRelationshipEntity>().Where(x => x.ShiftCode == shiftCode).ExecuteCommandAsync();
|
||||
|
||||
foreach (var request in requests)
|
||||
{
|
||||
request.Id = null;
|
||||
|
||||
await CheckExistsMealShiftAsync(request);
|
||||
await DuplicateTimePeriodAsync(request);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user