|
|
@ -223,7 +223,7 @@ public class PriceListAppServiceBJ : SettleAccountApplicationBase<PriceListBJ> |
|
|
|
var existsPriceBj = existsPriceBjList.Find(t => (entity.BeginDate >= t.BeginDate && entity.BeginDate < t.EndDate) || (t.BeginDate >= entity.BeginDate && t.BeginDate < entity.EndDate)); |
|
|
|
if (existsPriceBj != null) |
|
|
|
{ |
|
|
|
throw new UserFriendlyException($"无法启用!此记录启用时间区间与区间【{existsPrice.BeginTime:yyyy-MM-dd}至{existsPrice.EndTime:yyyy-MM-dd}】存在交集", "400"); |
|
|
|
throw new UserFriendlyException($"无法启用!此记录启用时间区间与区间【{existsPriceBj.BeginDate:yyyy-MM-dd}至{existsPriceBj.EndDate:yyyy-MM-dd}】存在交集", "400"); |
|
|
|
} |
|
|
|
} |
|
|
|
_settleAccountDbContext.Set<PriceListBJ>().Update(entity); |
|
|
|