|
|
@@ -31,7 +31,7 @@ namespace TVShoppingCallCenter_ZLJ.Controllers.Traffic
|
|
31
|
31
|
/// </summary>
|
|
32
|
32
|
/// <returns></returns>
|
|
33
|
33
|
[HttpGet("getall")]
|
|
34
|
|
- public async Task<IActionResult> GetALL(string code, int level = 0)
|
|
|
34
|
+ public async Task<IActionResult> GetALL(string code,int pid=0, int level = 0)
|
|
35
|
35
|
{
|
|
36
|
36
|
#region 筛选
|
|
37
|
37
|
List<IConditionalModel> conModels = new List<IConditionalModel>();
|
|
|
@@ -41,6 +41,8 @@ namespace TVShoppingCallCenter_ZLJ.Controllers.Traffic
|
|
41
|
41
|
conModels.Add(new ConditionalModel() { FieldName = "F_Level", ConditionalType = ConditionalType.LessThanOrEqual, FieldValue = level.ToString() });
|
|
42
|
42
|
if (!string.IsNullOrWhiteSpace(code))
|
|
43
|
43
|
conModels.Add(new ConditionalModel() { FieldName = "F_Code", ConditionalType = ConditionalType.LikeLeft, FieldValue = code });
|
|
|
44
|
+ if(pid>0)
|
|
|
45
|
+ conModels.Add(new ConditionalModel() { FieldName = "F_ParentId", ConditionalType = ConditionalType.Equal, FieldValue = pid.ToString() });
|
|
44
|
46
|
#endregion
|
|
45
|
47
|
var list_ModuleInfo = await _sys_areaRepository.GetListALL(conModels, "F_Code asc");
|
|
46
|
48
|
var treeList = new List<TreeModel>();
|