You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
76 lines
1.9 KiB
76 lines
1.9 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using QMAPP.BLL;
|
|
using QMAPP.FJC.Entity.Basic;
|
|
using QMAPP.FJC.DAL.Basic;
|
|
using QMFrameWork.Data;
|
|
using QMAPP.FJC.Entity;
|
|
using QMAPP.FJC.BLL.Dict;
|
|
using QMAPP.Entity;
|
|
using QMFrameWork.Log;
|
|
using System.Data;
|
|
|
|
|
|
namespace QMAPP.FJC.BLL.Basic
|
|
{
|
|
/// </summary>
|
|
/// 模块名称:配置表
|
|
/// 作 者:张松男
|
|
/// 编写日期:2021年03月17日
|
|
/// </summary>
|
|
public class ScanIPConfigBLL : BaseBLL
|
|
{
|
|
|
|
#region 获取信息
|
|
/// <summary>
|
|
/// 获取信息
|
|
/// </summary>
|
|
/// <param name="">条件</param>
|
|
/// <returns>信息</returns>
|
|
public List<ScanIPConfig> Get(ScanIPConfig info)
|
|
{
|
|
try
|
|
{
|
|
return new ScanIPConfigDAL().Get(info);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
#endregion
|
|
|
|
#region 更新信息
|
|
/// <summary>
|
|
/// 更新信息
|
|
/// </summary>
|
|
/// <param name=""></param>
|
|
/// <returns>更新行数</returns>
|
|
public DataResult<int> Update(ScanIPConfig model)
|
|
{
|
|
DataResult<int> result = new DataResult<int>();
|
|
|
|
try
|
|
{
|
|
result.Result = new ScanIPConfigDAL().Update(model);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
LogManager.LogHelper.Error(new LogInfo()
|
|
{
|
|
ErrorInfo = ex,
|
|
Tag = ex.StackTrace,
|
|
Info = "逻辑层-更新信息!"
|
|
});
|
|
result.IsSuccess = false;
|
|
result.Msg = Resource.SystemException;
|
|
throw ex;
|
|
}
|
|
result.IsSuccess = true;
|
|
return result;
|
|
}
|
|
#endregion
|
|
}
|
|
}
|
|
|