督查人员代码合并
This commit is contained in:
@@ -3604,6 +3604,38 @@
|
||||
return responeData.code;
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 督查人员推送
|
||||
|
||||
public static int PushInspectionBrigadeUser()
|
||||
{
|
||||
|
||||
string baseurl = "/api/InspectionBrigade/SaveInspectionBrigadeUser";
|
||||
var CollCropCode = BLL.CommonService.GetIsThisUnit()?.CollCropCode;
|
||||
var userList = from x in Funs.DB.Sys_User
|
||||
where x.IsInspectionBrigade == true
|
||||
select new Model.InspectionBrigadeUserItem()
|
||||
{
|
||||
|
||||
UserId = x.UserId,
|
||||
UserName = x.UserName,
|
||||
Sex = x.Sex,
|
||||
Account = x.Account,
|
||||
Password = x.Password,
|
||||
IdentityCard = x.IdentityCard,
|
||||
Telephone = x.Telephone,
|
||||
CollCropCode = CollCropCode
|
||||
|
||||
};
|
||||
|
||||
var resultJsonReport = JsonConvert.SerializeObject(userList.ToList());
|
||||
resultJsonReport = "{\"InspectionBrigadeUserItems\":" + resultJsonReport.Replace("}{", ",") + "}";
|
||||
var responeData = BLL.ServerService.PushCNCEC(resultJsonReport, baseurl);
|
||||
return responeData.code;
|
||||
}
|
||||
|
||||
|
||||
#endregion
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user