This commit is contained in:
路 范
2021-09-28 17:49:56 +08:00
parent 44d5f8e72b
commit cb9dc1d9a4
5 changed files with 3 additions and 1 deletions

View File

@@ -147,7 +147,7 @@ namespace Ewide.NbzsZheliban.Service
{
p.FhpgList = list_fhpgs.Where(a => a.PrjId == p.PrjId).ToList();
var bcxy = list_bcxys.Where(a => a.PrjId == p.PrjId).ToList();
bcxy.ForEach(a => a.countValue = list_fhpgs.Where(b => b.dcbId == a.dcbId).First().countValue);
bcxy.ForEach(a => a.countValue = list_fhpgs.Where(b => b.dcbId == a.dcbId).FirstOrDefault()?.countValue);
p.BcxyList = bcxy;
listAreas.Add(Guid.Parse(p.AreaID));
});
@@ -398,6 +398,8 @@ namespace Ewide.NbzsZheliban.Service
//非住宅
jzlrModel = db.Ado.SqlQuery<FHPG>("select b.HouseAddress,a.ValuationMethod,a.AssessmentNo,a.HousingAssessmentValue,a.countValue,a.AttachedAssessedValue,a.DecorateAssessedValue,a.Remark,a.ExceedLandMoney,2 Type from NonInvestigateTable_Assessment a inner join NonResidentialInvestigateTable b on a.NonInvestigateTableID=b.ID where a.ID=@ID", new { ID = id }).FirstOrDefault();
}
if (jzlrModel == null)
throw Oops.Oh("ID有误");
switch (jzlrModel.ValuationMethod)
{
case 0: