87 lines
2.7 KiB
C#
87 lines
2.7 KiB
C#
|
using HL_FristAidPlatform_DataBase;
|
|||
|
using HL_FristAidPlatform_Help;
|
|||
|
using HL_FristAidPlatform_IDataBase;
|
|||
|
using HL_FristAidPlatform_Models;
|
|||
|
|
|||
|
namespace HL_FristAidPlatform_Bussiness
|
|||
|
{
|
|||
|
public class T_Base_CountyBLL
|
|||
|
{
|
|||
|
private IT_Base_County IService = new T_Base_CountyDB();
|
|||
|
|
|||
|
public MessageModel<T_Base_County> Add(T_Base_County county)
|
|||
|
{
|
|||
|
if (IService.Add(county))
|
|||
|
{
|
|||
|
return new MessageModel<T_Base_County> { Success = true, Msg = "操作成功" };
|
|||
|
}
|
|||
|
else
|
|||
|
{
|
|||
|
return new MessageModel<T_Base_County> { Success = false, Msg = "操作失败" };
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
public MessageModel<T_Base_County> Dels(dynamic[] guids)
|
|||
|
{
|
|||
|
if (IService.Dels(guids))
|
|||
|
{
|
|||
|
return new MessageModel<T_Base_County> { Success = true, Msg = "操作成功" };
|
|||
|
}
|
|||
|
else
|
|||
|
{
|
|||
|
return new MessageModel<T_Base_County> { Success = false, Msg = "操作失败" };
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
public MessageModel<T_Base_County> Update(T_Base_County county)
|
|||
|
{
|
|||
|
if (IService.Update(county))
|
|||
|
{
|
|||
|
return new MessageModel<T_Base_County> { Success = true, Msg = "操作成功" };
|
|||
|
}
|
|||
|
else
|
|||
|
{
|
|||
|
return new MessageModel<T_Base_County> { Success = false, Msg = "操作失败" };
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
public T_Base_County Get(string guid)
|
|||
|
{
|
|||
|
return IService.Get(guid);
|
|||
|
}
|
|||
|
|
|||
|
public TableModel<T_Base_County> GetPageList(int pageIndex, int pageSize)
|
|||
|
{
|
|||
|
return IService.GetPageList(pageIndex, pageSize);
|
|||
|
}
|
|||
|
|
|||
|
public ProvinceCityCounty GetAllList()
|
|||
|
{
|
|||
|
return IService.GetAllList();
|
|||
|
}
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 获取列表-无分页
|
|||
|
/// </summary>
|
|||
|
/// <param name="cityCode">所属市级代码</param>
|
|||
|
/// <returns></returns>
|
|||
|
public TableModel<T_Base_County> GetList(string cityCode)
|
|||
|
{
|
|||
|
return IService.GetList(cityCode);
|
|||
|
}
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 获取当前辖区下的县/区
|
|||
|
/// </summary>
|
|||
|
/// <param name="pageIndex">起始页</param>
|
|||
|
/// <param name="pageSize">每页大小</param>
|
|||
|
/// <param name="cityCode">所属市级代码</param>
|
|||
|
/// <param name="keyWord">关键词</param>
|
|||
|
/// <returns></returns>
|
|||
|
public TableModel<T_Base_CountyModel> GetPageListByCityCode(int pageIndex, int pageSize, string cityCode, string keyWord)
|
|||
|
{
|
|||
|
return IService.GetPageListByCityCode(pageIndex, pageSize, cityCode, keyWord);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|