|
|
|
@ -144,5 +144,25 @@ public class CodeFormSetService : IFormSetService
|
|
|
|
|
}
|
|
|
|
|
return DataResult.Successed("删除成功!", MultiLanguageConst.DataDelSuccess);
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 表单设置公共标识
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="req"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
public DataResult SetPublicFormSet(CodeFormSetPublicStatusReq req)
|
|
|
|
|
{
|
|
|
|
|
var tenantDb = saasService.GetBizDbScopeById(user.TenantId);
|
|
|
|
|
var info = tenantDb.Queryable<CodeFormSet>().Where(x => x.Id == req.Id).First();
|
|
|
|
|
|
|
|
|
|
if (info.IsNotNull())
|
|
|
|
|
{
|
|
|
|
|
return DataResult.Failed("表单设置不存在!", MultiLanguageConst.FormSetNotExist);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
info.IsPublic = req.IsPublic;
|
|
|
|
|
|
|
|
|
|
tenantDb.Updateable(info).UpdateColumns(x => new { x.IsPublic }).ExecuteCommand();
|
|
|
|
|
return DataResult.Successed("更新成功!", MultiLanguageConst.DataUpdateSuccess);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|