| | |
| | | PageResult<Doc_Classification> result = new PageResult<Doc_Classification>(); |
| | | if (page.Status.HasValue) |
| | | { |
| | | result.Items = await _classificationService.GetPageListAsync(c => c.status ==page.Status && c.parent_code == page.Code,pg,c=>c.sort_id,OrderByType.Asc); |
| | | result.Items = await _classificationService.GetPageListAsync(c => c.status ==page.Status && c.parent_code == page.Code && c.is_system == false , pg,c=>c.sort_id,OrderByType.Asc); |
| | | } |
| | | else |
| | | { |
| | | result.Items = await _classificationService.GetPageListAsync(c => c.parent_code == page.Code, pg, c => c.sort_id, OrderByType.Asc); |
| | | result.Items = await _classificationService.GetPageListAsync(c => c.parent_code == page.Code && c.is_system == false , pg, c => c.sort_id, OrderByType.Asc); |
| | | } |
| | | result.TotalCount = pg.TotalCount; |
| | | result.PageIndex = pg.PageIndex; |