This commit is contained in:
2021-06-09 16:34:42 +08:00
parent b37e3a403f
commit 760797ea56
7 changed files with 42 additions and 11 deletions

View File

@@ -224,7 +224,7 @@ namespace Ewide.Application
/// <summary>
/// 竣工验收备案
/// </summary>
public string CompletedRecord { get; set; }
public string CompletionRecord { get; set; }
/// <summary>
/// 监理资料

View File

@@ -224,7 +224,7 @@ namespace Ewide.Application
/// <summary>
/// 竣工验收备案
/// </summary>
public string CompletedRecord { get; set; }
public string CompletionRecord { get; set; }
/// <summary>
/// 监理资料
@@ -248,7 +248,7 @@ namespace Ewide.Application
/// </summary>
public string FacadePhoto { get; set; }
#endregion
public int State { get; set; }
#region unit
/// <summary>
/// 调查登记机构

View File

@@ -55,20 +55,22 @@ namespace Ewide.Application.Service.HouseSafety.HouseInfo
if(houseEntity == null)
{
houseInfo.Id = Guid.NewGuid().ToString();
houseInfo.State = 0;
houseInfo.State = 3;
await houseInfo.InsertAsync();
}
else
{
houseInfo.Id = houseEntity.Id;
await houseInfo.UpdateExcludeAsync(new[] { nameof(BsHouseInfo.State) }, true) ;
houseInfo.State = houseEntity.State;
await houseInfo.UpdateExcludeAsync(new[] { nameof(BsHouseInfo.HouseGrade) }, true) ;
}
if(houseInfo.State != 6)
{
var houseTask = input.PatrolInfo.Adapt<BsHouseTask>();
houseTask.HouseCodeId = input.houseCode.Id;
await houseTask.UpdateExcludeAsync(new string[] { }, ignoreNullValues: true);
houseTask.Status = 1;
await houseTask.UpdateExcludeAsync(new string[] { nameof(BsHouseTask.TaskType) }, ignoreNullValues: true);
}
}