|
|
|
@ -118,7 +118,21 @@ public class CodeFormSetService : IFormSetService
|
|
|
|
|
.First();
|
|
|
|
|
return DataResult<CodeFormSetRes>.Success(data, MultiLanguageConst.DataQuerySuccess);
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 根据权限模块获取表单设置列表
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="permissionId"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
|
|
|
|
public async Task<DataResult<List<CodeFormSetRes>>> GetFormSetListByModule(string permissionId)
|
|
|
|
|
{
|
|
|
|
|
var tenantDb = saasService.GetBizDbScopeById(user.TenantId);
|
|
|
|
|
var data = await tenantDb.Queryable<CodeFormSet>()
|
|
|
|
|
.Where(x => x.PermissionId == long.Parse(permissionId) && x.Status == StatusEnum.Enable)
|
|
|
|
|
.Select<CodeFormSetRes>()
|
|
|
|
|
.ToListAsync();
|
|
|
|
|
return await Task.FromResult(DataResult<List<CodeFormSetRes>>.Success(data, MultiLanguageConst.DataQuerySuccess));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public DataResult BatchDelFormSet(IdModel req)
|
|
|
|
|
{
|
|
|
|
|