bug
This commit is contained in:
@@ -632,38 +632,38 @@ public class DepartmentService : IDepartmentService, IDynamicApiController, ITra
|
||||
if (dictionary.TryGetValue("roweqp", out var value))
|
||||
{
|
||||
List<EqpEquipment> eqpEquipments = JsonConvert.DeserializeObject<List<EqpEquipment>>(JsonConvert.SerializeObject(value));
|
||||
return new AuthResponse(200, "", new Dictionary<string,object>()
|
||||
return new Dictionary<string, object>()
|
||||
{
|
||||
["list"] = eqpEquipments.Select(x=>new
|
||||
["list"] = eqpEquipments.Select(x => new
|
||||
{
|
||||
id = x.id,
|
||||
code = x.code,
|
||||
name = x.name
|
||||
}).ToList(),
|
||||
});
|
||||
};
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (dictionary.TryGetValue("rowprocess", out var value))
|
||||
{
|
||||
List<BasProcess> eqpEquipments = JsonConvert.DeserializeObject<List<BasProcess>>(JsonConvert.SerializeObject(value));
|
||||
return new AuthResponse(200, "", new Dictionary<string,object>()
|
||||
List<BasProcess> processes = JsonConvert.DeserializeObject<List<BasProcess>>(JsonConvert.SerializeObject(value));
|
||||
return new Dictionary<string,object>()
|
||||
{
|
||||
["list"] = eqpEquipments.Select(x=>new
|
||||
["list"] = processes.Select(x=>new
|
||||
{
|
||||
id = x.id,
|
||||
code = x.process_code,
|
||||
name = x.process_name
|
||||
}).ToList(),
|
||||
});
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
return new AuthResponse(200, "", new Dictionary<string,object>()
|
||||
return new Dictionary<string,object>()
|
||||
{
|
||||
["list"] = Enumerable.Empty<int>()
|
||||
});
|
||||
};
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
Reference in New Issue
Block a user