2025-10-23 09:54:36 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
|
|
// T4模板文件:基础接口类
|
|
|
|
|
|
// 此代码由T4模板自动生成
|
|
|
|
|
|
// 对此文件的更改可能会导致不正确的行为,并且如果重新生成代码,这些更改将会丢失。
|
|
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
|
|
using APT.Infrastructure.Core;
|
|
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using APT.Utility;
|
|
|
|
|
|
using APT.Infrastructure.Api;
|
|
|
|
|
|
using APT.BaseData.Domain.ApiModel.PF;
|
|
|
|
|
|
namespace APT.BD.WebApi.Controllers.Api
|
|
|
|
|
|
{
|
2025-09-23 15:56:16 +08:00
|
|
|
|
using APT.BaseData.Domain.Entities.BD;
|
2025-10-23 09:54:36 +08:00
|
|
|
|
#region Hmi-HMI资源表维护
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// HMI资源表维护
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[Route("api/BD/Hmi")]
|
|
|
|
|
|
public partial class HmiController : AuthorizeApiController<T_BD_HMI>
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 查询所有数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Entities")]
|
|
|
|
|
|
public JsonActionResult<IEnumerable<T_BD_HMI>> Entities([FromBody]KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitEntities(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 排序查询所有数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
|
|
|
|
|
|
[HttpPost, Route("OrderEntities")]
|
|
|
|
|
|
public JsonActionResult<IEnumerable<T_BD_HMI>> OrderEntities([FromBody]KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitOrderEntities(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 分页查询数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="pageFilter">分页过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Paged")]
|
|
|
|
|
|
public PagedActionResult<T_BD_HMI> Paged([FromBody]KeywordPageFilter pageFilter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitPaged(null, pageFilter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 排序分页查询数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="pageFilter">分页过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("OrderPaged")]
|
|
|
|
|
|
public PagedActionResult<T_BD_HMI> OrderPaged([FromBody]KeywordPageFilter pageFilter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitOrderPaged(null, pageFilter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 根据主键删除数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="id">主键ID</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpGet, Route("Delete")]
|
|
|
|
|
|
public JsonActionResult<bool> Delete(string id)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitRealDelete(id);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 更新或新增数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="entity">对象实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Update")]
|
|
|
|
|
|
public JsonActionResult<bool> Update([FromBody]T_BD_HMI entity)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitUpdate(entity);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 批量更新
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="entity">对象实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("BatchUpdate")]
|
|
|
|
|
|
public JsonActionResult<bool> BatchUpdate([FromBody] BatchUpdateModel<T_BD_HMI> entity)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitBantchUpdate(entity?.Data);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 批量删除数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="ids">id字符串(id用逗号分隔)</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpGet, Route("BatchDelete")]
|
|
|
|
|
|
public JsonActionResult<bool> BatchDelete(string ids)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitRealBatchDelete(ids);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 获得单条实体数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Get")]
|
|
|
|
|
|
public JsonActionResult<T_BD_HMI> Get([FromBody] KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitEntity(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
#region Picture-图片资源
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 图片资源
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[Route("api/BD/Picture")]
|
|
|
|
|
|
public partial class PictureController : AuthorizeApiController<T_BD_PICTURE>
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 查询所有数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Entities")]
|
|
|
|
|
|
public JsonActionResult<IEnumerable<T_BD_PICTURE>> Entities([FromBody]KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitEntities(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 排序查询所有数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
|
|
|
|
|
|
[HttpPost, Route("OrderEntities")]
|
|
|
|
|
|
public JsonActionResult<IEnumerable<T_BD_PICTURE>> OrderEntities([FromBody]KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitOrderEntities(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 分页查询数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="pageFilter">分页过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Paged")]
|
|
|
|
|
|
public PagedActionResult<T_BD_PICTURE> Paged([FromBody]KeywordPageFilter pageFilter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitPaged(null, pageFilter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 排序分页查询数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="pageFilter">分页过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("OrderPaged")]
|
|
|
|
|
|
public PagedActionResult<T_BD_PICTURE> OrderPaged([FromBody]KeywordPageFilter pageFilter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitOrderPaged(null, pageFilter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 根据主键删除数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="id">主键ID</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpGet, Route("Delete")]
|
|
|
|
|
|
public JsonActionResult<bool> Delete(string id)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitRealDelete(id);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 更新或新增数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="entity">对象实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Update")]
|
|
|
|
|
|
public JsonActionResult<bool> Update([FromBody]T_BD_PICTURE entity)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitUpdate(entity);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 批量更新
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="entity">对象实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("BatchUpdate")]
|
|
|
|
|
|
public JsonActionResult<bool> BatchUpdate([FromBody] BatchUpdateModel<T_BD_PICTURE> entity)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitBantchUpdate(entity?.Data);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 批量删除数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="ids">id字符串(id用逗号分隔)</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpGet, Route("BatchDelete")]
|
|
|
|
|
|
public JsonActionResult<bool> BatchDelete(string ids)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitRealBatchDelete(ids);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 获得单条实体数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Get")]
|
|
|
|
|
|
public JsonActionResult<T_BD_PICTURE> Get([FromBody] KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitEntity(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
#region PictureFile-资源图片文件
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 资源图片文件
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[Route("api/BD/PictureFile")]
|
|
|
|
|
|
public partial class PictureFileController : AuthorizeApiController<T_BD_PICTURE_FILE>
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 查询所有数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Entities")]
|
|
|
|
|
|
public JsonActionResult<IEnumerable<T_BD_PICTURE_FILE>> Entities([FromBody]KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitEntities(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 排序查询所有数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
|
|
|
|
|
|
[HttpPost, Route("OrderEntities")]
|
|
|
|
|
|
public JsonActionResult<IEnumerable<T_BD_PICTURE_FILE>> OrderEntities([FromBody]KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitOrderEntities(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 分页查询数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="pageFilter">分页过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Paged")]
|
|
|
|
|
|
public PagedActionResult<T_BD_PICTURE_FILE> Paged([FromBody]KeywordPageFilter pageFilter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitPaged(null, pageFilter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 排序分页查询数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="pageFilter">分页过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("OrderPaged")]
|
|
|
|
|
|
public PagedActionResult<T_BD_PICTURE_FILE> OrderPaged([FromBody]KeywordPageFilter pageFilter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitOrderPaged(null, pageFilter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 根据主键删除数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="id">主键ID</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpGet, Route("Delete")]
|
|
|
|
|
|
public JsonActionResult<bool> Delete(string id)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitRealDelete(id);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 更新或新增数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="entity">对象实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Update")]
|
|
|
|
|
|
public JsonActionResult<bool> Update([FromBody]T_BD_PICTURE_FILE entity)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitUpdate(entity);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 批量更新
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="entity">对象实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("BatchUpdate")]
|
|
|
|
|
|
public JsonActionResult<bool> BatchUpdate([FromBody] BatchUpdateModel<T_BD_PICTURE_FILE> entity)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitBantchUpdate(entity?.Data);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 批量删除数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="ids">id字符串(id用逗号分隔)</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpGet, Route("BatchDelete")]
|
|
|
|
|
|
public JsonActionResult<bool> BatchDelete(string ids)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitRealBatchDelete(ids);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 获得单条实体数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Get")]
|
|
|
|
|
|
public JsonActionResult<T_BD_PICTURE_FILE> Get([FromBody] KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitEntity(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
#region Place-区域表
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 区域表
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[Route("api/BD/Place")]
|
|
|
|
|
|
public partial class PlaceController : AuthorizeTreeApiController<T_BD_PLACE>
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 查询所有数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Entities")]
|
|
|
|
|
|
public JsonActionResult<IEnumerable<T_BD_PLACE>> Entities([FromBody]KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitEntities(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 排序查询所有数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
|
|
|
|
|
|
[HttpPost, Route("OrderEntities")]
|
|
|
|
|
|
public JsonActionResult<IEnumerable<T_BD_PLACE>> OrderEntities([FromBody]KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitOrderEntities(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 分页查询数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="pageFilter">分页过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Paged")]
|
|
|
|
|
|
public PagedActionResult<T_BD_PLACE> Paged([FromBody]KeywordPageFilter pageFilter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitPaged(null, pageFilter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 排序分页查询数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="pageFilter">分页过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("OrderPaged")]
|
|
|
|
|
|
public PagedActionResult<T_BD_PLACE> OrderPaged([FromBody]KeywordPageFilter pageFilter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitOrderPaged(null, pageFilter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 根据主键删除数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="id">主键ID</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpGet, Route("Delete")]
|
|
|
|
|
|
public JsonActionResult<bool> Delete(string id)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitRealDelete(id);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 更新或新增数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="entity">对象实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Update")]
|
|
|
|
|
|
public JsonActionResult<bool> Update([FromBody]T_BD_PLACE entity)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitUpdate(entity);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 批量更新
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="entity">对象实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("BatchUpdate")]
|
|
|
|
|
|
public JsonActionResult<bool> BatchUpdate([FromBody] BatchUpdateModel<T_BD_PLACE> entity)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitBantchUpdate(entity?.Data);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 批量删除数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="ids">id字符串(id用逗号分隔)</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpGet, Route("BatchDelete")]
|
|
|
|
|
|
public JsonActionResult<bool> BatchDelete(string ids)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitRealBatchDelete(ids);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 获得单条实体数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Get")]
|
|
|
|
|
|
public JsonActionResult<T_BD_PLACE> Get([FromBody] KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitEntity(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 获得树形实体数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter"></param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("TreeData")]
|
|
|
|
|
|
public JsonActionResult<IEnumerable<TreeNode<T_BD_PLACE>>> TreeData([FromBody] KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitTreeOrderEntities(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
#region ServerInfo-服务器信息表
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 服务器信息表
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[Route("api/BD/ServerInfo")]
|
|
|
|
|
|
public partial class ServerInfoController : AuthorizeApiController<T_BD_SERVER_INFO>
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 查询所有数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Entities")]
|
|
|
|
|
|
public JsonActionResult<IEnumerable<T_BD_SERVER_INFO>> Entities([FromBody]KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitEntities(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 排序查询所有数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
|
|
|
|
|
|
[HttpPost, Route("OrderEntities")]
|
|
|
|
|
|
public JsonActionResult<IEnumerable<T_BD_SERVER_INFO>> OrderEntities([FromBody]KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitOrderEntities(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 分页查询数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="pageFilter">分页过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Paged")]
|
|
|
|
|
|
public PagedActionResult<T_BD_SERVER_INFO> Paged([FromBody]KeywordPageFilter pageFilter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitPaged(null, pageFilter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 排序分页查询数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="pageFilter">分页过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("OrderPaged")]
|
|
|
|
|
|
public PagedActionResult<T_BD_SERVER_INFO> OrderPaged([FromBody]KeywordPageFilter pageFilter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitOrderPaged(null, pageFilter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 根据主键删除数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="id">主键ID</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpGet, Route("Delete")]
|
|
|
|
|
|
public JsonActionResult<bool> Delete(string id)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitRealDelete(id);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 更新或新增数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="entity">对象实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Update")]
|
|
|
|
|
|
public JsonActionResult<bool> Update([FromBody]T_BD_SERVER_INFO entity)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitUpdate(entity);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 批量更新
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="entity">对象实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("BatchUpdate")]
|
|
|
|
|
|
public JsonActionResult<bool> BatchUpdate([FromBody] BatchUpdateModel<T_BD_SERVER_INFO> entity)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitBantchUpdate(entity?.Data);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 批量删除数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="ids">id字符串(id用逗号分隔)</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpGet, Route("BatchDelete")]
|
|
|
|
|
|
public JsonActionResult<bool> BatchDelete(string ids)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitRealBatchDelete(ids);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 获得单条实体数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Get")]
|
|
|
|
|
|
public JsonActionResult<T_BD_SERVER_INFO> Get([FromBody] KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitEntity(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
#region SystemInfo-系统信息表
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 系统信息表
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[Route("api/BD/SystemInfo")]
|
|
|
|
|
|
public partial class SystemInfoController : AuthorizeApiController<T_BD_SYSTEM_INFO>
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 查询所有数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Entities")]
|
|
|
|
|
|
public JsonActionResult<IEnumerable<T_BD_SYSTEM_INFO>> Entities([FromBody]KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitEntities(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 排序查询所有数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
|
|
|
|
|
|
[HttpPost, Route("OrderEntities")]
|
|
|
|
|
|
public JsonActionResult<IEnumerable<T_BD_SYSTEM_INFO>> OrderEntities([FromBody]KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitOrderEntities(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 分页查询数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="pageFilter">分页过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Paged")]
|
|
|
|
|
|
public PagedActionResult<T_BD_SYSTEM_INFO> Paged([FromBody]KeywordPageFilter pageFilter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitPaged(null, pageFilter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 排序分页查询数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="pageFilter">分页过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("OrderPaged")]
|
|
|
|
|
|
public PagedActionResult<T_BD_SYSTEM_INFO> OrderPaged([FromBody]KeywordPageFilter pageFilter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitOrderPaged(null, pageFilter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 根据主键删除数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="id">主键ID</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpGet, Route("Delete")]
|
|
|
|
|
|
public JsonActionResult<bool> Delete(string id)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitRealDelete(id);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 更新或新增数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="entity">对象实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Update")]
|
|
|
|
|
|
public JsonActionResult<bool> Update([FromBody]T_BD_SYSTEM_INFO entity)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitUpdate(entity);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 批量更新
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="entity">对象实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("BatchUpdate")]
|
|
|
|
|
|
public JsonActionResult<bool> BatchUpdate([FromBody] BatchUpdateModel<T_BD_SYSTEM_INFO> entity)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitBantchUpdate(entity?.Data);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 批量删除数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="ids">id字符串(id用逗号分隔)</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpGet, Route("BatchDelete")]
|
|
|
|
|
|
public JsonActionResult<bool> BatchDelete(string ids)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitRealBatchDelete(ids);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 获得单条实体数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Get")]
|
|
|
|
|
|
public JsonActionResult<T_BD_SYSTEM_INFO> Get([FromBody] KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitEntity(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
#region WordTemplate-WORD模板维护
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// WORD模板维护
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[Route("api/BD/WordTemplate")]
|
|
|
|
|
|
public partial class WordTemplateController : AuthorizeApiController<T_BD_WORD_TEMPLATE>
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 查询所有数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Entities")]
|
|
|
|
|
|
public JsonActionResult<IEnumerable<T_BD_WORD_TEMPLATE>> Entities([FromBody]KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitEntities(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 排序查询所有数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
|
|
|
|
|
|
[HttpPost, Route("OrderEntities")]
|
|
|
|
|
|
public JsonActionResult<IEnumerable<T_BD_WORD_TEMPLATE>> OrderEntities([FromBody]KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitOrderEntities(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 分页查询数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="pageFilter">分页过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Paged")]
|
|
|
|
|
|
public PagedActionResult<T_BD_WORD_TEMPLATE> Paged([FromBody]KeywordPageFilter pageFilter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitPaged(null, pageFilter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 排序分页查询数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="pageFilter">分页过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("OrderPaged")]
|
|
|
|
|
|
public PagedActionResult<T_BD_WORD_TEMPLATE> OrderPaged([FromBody]KeywordPageFilter pageFilter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitOrderPaged(null, pageFilter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 根据主键删除数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="id">主键ID</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpGet, Route("Delete")]
|
|
|
|
|
|
public JsonActionResult<bool> Delete(string id)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitRealDelete(id);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 更新或新增数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="entity">对象实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Update")]
|
|
|
|
|
|
public JsonActionResult<bool> Update([FromBody]T_BD_WORD_TEMPLATE entity)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitUpdate(entity);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 批量更新
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="entity">对象实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("BatchUpdate")]
|
|
|
|
|
|
public JsonActionResult<bool> BatchUpdate([FromBody] BatchUpdateModel<T_BD_WORD_TEMPLATE> entity)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitBantchUpdate(entity?.Data);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 批量删除数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="ids">id字符串(id用逗号分隔)</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpGet, Route("BatchDelete")]
|
|
|
|
|
|
public JsonActionResult<bool> BatchDelete(string ids)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitRealBatchDelete(ids);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 获得单条实体数据
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="filter">过滤实体</param>
|
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
|
[HttpPost, Route("Get")]
|
|
|
|
|
|
public JsonActionResult<T_BD_WORD_TEMPLATE> Get([FromBody] KeywordFilter filter)
|
|
|
|
|
|
{
|
|
|
|
|
|
return WitEntity(null, filter);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
}
|