add增加ticket记录
This commit is contained in:
@@ -78,6 +78,18 @@ namespace Ewide.NbzsZheliban.Service
|
||||
}
|
||||
if (userinfoObj["result"].Value<int>() != 0)
|
||||
throw Oops.Oh($"ticket接口返回值有误,[{tickerRsltStr}]");
|
||||
var temp1 = db.Insertable<zjzwfwTickets>(new zjzwfwTickets
|
||||
{
|
||||
ID = Guid.NewGuid().ToString(),
|
||||
Ticket = ticket,
|
||||
IdCardNo = userinfoObj["idnum"].ToString(),
|
||||
UserName = userinfoObj["username"].ToString(),
|
||||
ExpireTime = DateTime.Now.AddHours(1),
|
||||
CreateTime = DateTime.Now,
|
||||
OriginalResponse = userinfoRsltStr
|
||||
}).ExecuteCommand();
|
||||
if (temp1 <= 0)
|
||||
throw Oops.Oh("出现异常,请联系管理员");
|
||||
return userinfoObj;
|
||||
}
|
||||
else
|
||||
@@ -102,7 +114,7 @@ namespace Ewide.NbzsZheliban.Service
|
||||
//补偿协议
|
||||
var list_bcxys = await db.Ado.SqlQueryAsync<Bcxy>("select isnull(d.CollectDecisionNoHeadName,'')+isnull(d.No1,'')+'-'+isnull(d.No2,'')+(case when (d.No3 is null or d.No3 = '') then '' else ('-'+d.No3) end ) XyNo,d.SwitchProductionWay,e.HouseAddress,d.SummationShouldCompensateMoney,e.ProjectId as PrjId from ResidentialAgreement d inner join InvestigateTable e on d.InvestigateTableId=e.ID where d.InvestigateTableID in ( " + InvestigateTableID_param + " ) union all select isnull(d.CollectDecisionNoHeadName, '') + isnull(d.No2, '') + '-' + isnull(d.No3, '') XyNo , d.SwitchProductionWay, e.HouseAddress, d.SummationShouldCompensateMoney, e.ProjectId as PrjId from NonResidentialAgreement d inner join NonResidentialInvestigateTable e on d.NonInvestigateTableID = e.ID where d.NonInvestigateTableID in ( " + InvestigateTableID_param + " ); ");
|
||||
//政策
|
||||
var list_PoliciesRegulations = await db.Queryable<PoliciesRegulations>().ToListAsync();
|
||||
var list_PoliciesRegulations = await db.Queryable<Entity.PoliciesRegulations>().ToListAsync();
|
||||
var listAreas = new List<Guid?>
|
||||
{
|
||||
Guid.Parse("B2A0291C-84C7-4D86-A6D5-CB9FCCF4A2D8")
|
||||
@@ -113,18 +125,20 @@ namespace Ewide.NbzsZheliban.Service
|
||||
p.BcxyList = list_bcxys.Where(a => a.PrjId == p.PrjId);
|
||||
listAreas.Add(Guid.Parse(p.AreaID));
|
||||
});
|
||||
var listPr = list_PoliciesRegulations.Where(a => listAreas.Contains(a.AreaID)).Select(b => new PoliciesRegulation
|
||||
{
|
||||
ID = b.ID,
|
||||
Contents = b.Contents,
|
||||
PublicTime = b.PublicTime,
|
||||
Title = b.Title,
|
||||
Area = b.Area
|
||||
}).ToList();
|
||||
H5IndexModel h5IndexModel = new()
|
||||
{
|
||||
PrjList = list_projects,
|
||||
IdCard = cardno,
|
||||
UserName = username,
|
||||
PoliciesRegulationsList = list_PoliciesRegulations.Where(a => listAreas.Contains(a.AreaID)).Select(b => new PoliciesRegulation
|
||||
{
|
||||
ID = b.ID,
|
||||
Contents = b.Contents,
|
||||
PublicTime = b.PublicTime,
|
||||
Title = b.Title
|
||||
}).ToList()
|
||||
PoliciesRegulationsLists = new Entity.Extends.PoliciesRegulations { List = listPr, TotalCount = listPr.Count }
|
||||
};
|
||||
return h5IndexModel;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user