| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- /*-------------------------------------------------------------------------
- * 功能描述:SystemCheckResultBll
- * 作者:xulisong
- * 创建时间: 2019/3/1 8:45:17
- * 版本号:v1.0
- * -------------------------------------------------------------------------*/
- using System;
- using System.Collections;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using Saga.Framework.DB;
- using SAGA.MBIAssistData.Model;
- namespace SAGA.MBIAssistData
- {
- public class SystemCheckResultBll : Bll<SystemCheckResult>
- {
- public SystemCheckResultBll()
- {
- Init(this.GetType().FullName, this.GetType().Assembly.FullName);
- }
- public List<SystemCheckResult> FindResults(string reportId)
- {
- this.CheckDAL();
- string condion = string.Format("ReportId='{0}'", reportId);
- return Find(condion);
- }
- public bool UpdateMisinformationFlag(bool misinformationFlag, string key)
- {
- this.CheckDAL();
- Hashtable hastable = new Hashtable();
- hastable.Add("IsMisinformation", misinformationFlag);
- return Update(hastable, key);
- }
- public bool UpdateCorrectedFlag(bool correctedFlag, string key)
- {
- Hashtable hastable = new Hashtable();
- hastable.Add("IsCorrected", correctedFlag);
- return Update(hastable, key);
- }
- }
- }
|