质量bug

This commit is contained in:
2024-08-23 16:55:35 +08:00
parent ff36f85219
commit f5d86c2f95
4 changed files with 11 additions and 4 deletions

View File

@@ -54,6 +54,7 @@ namespace Tnb.QcMgr.Entities
/// </summary>
public string report_id { get; set; }
public string check_type { get; set; }
public string plan_check_type { get; set; }
public string batch { get; set; }
}

View File

@@ -504,7 +504,7 @@ namespace Tnb.QcMgr
RemarkAttribute remark = RemarkAttribute.GetRemark(enumTriggerEvent);
string type = DictionaryData.Where(p => p.FullName == remark.CheckType).First().Id;
TriggerEvent = _repository.AsSugarClient().Queryable<QcTriggerEvent>().Where(p => p.type == type && p.name == remark.CheckContent).First();
Query = Query.Where((a, b, c, d, e) => b.triggertype == "3" && b.content!.Contains(TriggerEvent.id));
Query = Query.Where((a, b, c, d, e) => b.triggertype == "3" && b.content!.Contains(TriggerEvent.id) && a.checktype==entity.plan_check_type);
}
private void Filter(List<QcCheckPlanH> QcCheckPlanHs, TriggerPlanEntity entity)
{