This commit is contained in:
parent
10122c9386
commit
4c8861f67b
|
|
@ -1,4 +1,5 @@
|
|||
using Newtonsoft.Json;
|
||||
using Model;
|
||||
using Newtonsoft.Json;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
using System.Collections;
|
||||
|
|
@ -602,7 +603,16 @@ namespace BLL
|
|||
string pushContent = string.Empty;
|
||||
string contenttype = "application/json;charset=unicode";
|
||||
string url = Funs.RealNameApiUrl + "/foreignApi/baseData/getCollTeam";
|
||||
var getProjects = from x in db.RealName_Project where proCode == null || x.ProCode == proCode select x;
|
||||
List < RealName_Project > getProjects;
|
||||
if (string.IsNullOrEmpty(proCode))
|
||||
{
|
||||
List<string> proCodes = Funs.DB.Base_Project.Where(x => x.ProjectState == "1" || x.ProjectState == null).Select(x => x.ProjectCode).ToList();
|
||||
getProjects = (from x in db.RealName_Project where proCodes.Contains(x.ProCode) select x).ToList();
|
||||
}
|
||||
else
|
||||
{
|
||||
getProjects = (from x in db.RealName_Project where x.ProCode == proCode select x).ToList();
|
||||
}
|
||||
foreach (var citem in getProjects)
|
||||
{
|
||||
var getProject = new
|
||||
|
|
|
|||
Loading…
Reference in New Issue