|
|
@ -226,7 +226,7 @@ public class PriceListAppServiceBJ : SettleAccountApplicationBase<PriceListBJ> |
|
|
|
throw new UserFriendlyException($"无法启用!此记录启用时间区间与区间【{existPriceBj.BeginDate:yyyy-MM-dd}至{existPriceBj.EndDate:yyyy-MM-dd}】存在交集", "400"); |
|
|
|
} |
|
|
|
} |
|
|
|
_settleAccountDbContext.Set<PriceListBJ>().Update(entity); |
|
|
|
await _settleAccountDbContext.SaveChangesAsync().ConfigureAwait(false); |
|
|
|
var dto = ObjectMapper.Map<PriceListBJ, PriceListBJDto>(entity); |
|
|
|
return dto; |
|
|
|
} |
|
|
|