This commit is contained in:
wyw 2025-09-23 15:45:53 +08:00
parent 48f2f46ef4
commit 59e71a0752

View File

@ -27,6 +27,12 @@ namespace APT.PF.WebApiControllers.Api.PF
{
return SafeExecute(() =>
{
var check = GetEntity<T_PF_HOME_TITLE>(e => e.ID != entity.ID && !e.IS_DELETED);
if (check != null)
{
throw new Exception("首页标题配置只能有一条数据");
}
//如果是总部 同步修改 子公司
this.UnifiedCommit(() =>
{