督查人员代码合并

This commit is contained in:
2025-01-14 09:40:45 +08:00
parent 766b96b2ec
commit 330402c752
11 changed files with 320 additions and 455 deletions
@@ -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
}