修改上报接口

This commit is contained in:
2023-07-24 16:42:54 +08:00
parent 97207481b2
commit cdf073a097
6 changed files with 685 additions and 585 deletions
@@ -411,9 +411,8 @@ namespace BLL
/// <returns></returns>
public static int GetTrainPersonNum(string projectid)
{
DateTime date = DateTime.Now;
int result = (from x in Funs.DB.Comprehensive_InspectionPerson
where x.ProjectId == projectid && x.IsTrain == true && x.CompileDate.Value.Year == date.Year && x.CompileDate.Value.Month == date.Month && x.CompileDate.Value.Day == date.Day
where x.ProjectId == projectid && x.IsTrain == true
select x).Count();
return result;
}
@@ -423,9 +422,8 @@ namespace BLL
/// <returns></returns>
public static int GetTechnicalDisclosePersonNum(string projectid)
{
DateTime date = DateTime.Now;
var result = (from x in Funs.DB.Comprehensive_DesignDetails
where x.ProjectId == projectid && x.DetailsDate.Value.Year == date.Year && x.DetailsDate.Value.Month == date.Month && x.DetailsDate.Value.Day == date.Day
where x.ProjectId == projectid
select x.JoinPersonNum).ToList().Sum(x => x.Value);
var q = Funs.GetNewIntOrZero(result.ToString());
return q;