Commit 9015d39e by jiawei.su

someupdate

parent 15bb8b77
......@@ -28,15 +28,19 @@ namespace Siger.Middlelayer.AccRepository.Repositories
public bool CanTask(int projectId,int section)
{
//已经下发,并且任务完成
var taskObjs = _context.siger_automation_task_list.Where(f => f.projectId == projectId && f.send==0);
var taskObjs = _context.siger_automation_task_list.Where(f => f.projectId == projectId && f.send==0 );
if (taskObjs.Any())
{
return false;
}
else
{
var complatedData = taskObjs.Where(f => f.status < (int)TaskResultStatus.Complated);
return !complatedData.Any();
var unDolist = _context.siger_automation_task_list.Where(f => f.send==1 && f.status !=(int)TaskResultStatus.Complated).Count();
if (unDolist==0)
return true;
else
return false;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment