fix 取值异常

This commit is contained in:
yubaolee 2023-09-28 10:22:02 +08:00
parent 5c77b0a407
commit 16d4d10a43

View File

@ -87,13 +87,8 @@ namespace OpenAuth.App
/// <returns></returns>
public IEnumerable<SysPrinterPlan> LoadPrinterPlans(string moduleId)
{
var elementIds = _revelanceApp.Get(Define.MODULEPRINTERPLAN, true, moduleId);
var query = UnitWork.Find<SysPrinterPlan>(u => elementIds.Contains(u.Id));
if (!string.IsNullOrEmpty(moduleId))
{
query = query.Where(u => u.Id == moduleId);
}
var planids = _revelanceApp.Get(Define.MODULEPRINTERPLAN, true, moduleId);
var query = UnitWork.Find<SysPrinterPlan>(u => planids.Contains(u.Id));
return query;
}