瀏覽代碼

AGV点位管理

shengtang
747575620@qq.com 1 年之前
父節點
當前提交
55b28bd99c
共有 7 個檔案被更改,包括 875 行新增0 行删除
  1. +381
    -0
      backend/BPA.MES.Base.Application/BPA.MES.Base.Application.xml
  2. +95
    -0
      backend/BPA.MES.Base.Application/Services/AGVService/Dtos/AgvLineDto.cs
  3. +83
    -0
      backend/BPA.MES.Base.Application/Services/AGVService/Dtos/AgvPointDto.cs
  4. +115
    -0
      backend/BPA.MES.Base.Application/Services/AGVService/Services/AgvLineService.cs
  5. +115
    -0
      backend/BPA.MES.Base.Application/Services/AGVService/Services/AgvPointService.cs
  6. +43
    -0
      backend/BPA.MES.Base.Application/Services/AGVService/Services/IAgvLineService.cs
  7. +43
    -0
      backend/BPA.MES.Base.Application/Services/AGVService/Services/IAgvPointService.cs

+ 381
- 0
backend/BPA.MES.Base.Application/BPA.MES.Base.Application.xml 查看文件

@@ -1209,6 +1209,387 @@
工单状态(信息系统 --> 中控系统)
</summary>
</member>
<member name="T:BPA.MES.Base.Application.Services.AgvLineDto">
<summary>
名 称 :
创 建 人 :yangxiao
创建时间 : 2023/8/7 9:59:47
描 述 :
</summary>
</member>
<member name="P:BPA.MES.Base.Application.Services.AgvLineDto.Code">
<summary>
自定义编码
</summary>
</member>
<member name="P:BPA.MES.Base.Application.Services.AgvLineDto.Name">
<summary>
线路名称
</summary>
</member>
<member name="P:BPA.MES.Base.Application.Services.AgvLineDto.StartPointId">
<summary>
开始点位
</summary>
</member>
<member name="P:BPA.MES.Base.Application.Services.AgvLineDto.EndPointId">
<summary>
结束点位
</summary>
</member>
<member name="P:BPA.MES.Base.Application.Services.AgvLineDto.Description">
<summary>
描述
</summary>
</member>
<member name="T:BPA.MES.Base.Application.Services.AgvLineAddInput">
<summary>
增加
</summary>
</member>
<member name="T:BPA.MES.Base.Application.Services.AgvLineUpdateInput">
<summary>
修改
</summary>
</member>
<member name="P:BPA.MES.Base.Application.Services.AgvLineUpdateInput.Id">
<summary>
主键
</summary>
</member>
<member name="T:BPA.MES.Base.Application.Services.AgvLineDelInput">
<summary>
刪除
</summary>
</member>
<member name="P:BPA.MES.Base.Application.Services.AgvLineDelInput.Id">
<summary>
主键
</summary>
</member>
<member name="T:BPA.MES.Base.Application.Services.AgvLineQueryInput">
<summary>
普通查询条件
</summary>
</member>
<member name="P:BPA.MES.Base.Application.Services.AgvLineQueryInput.Id">
<summary>
主键
</summary>
</member>
<member name="T:BPA.MES.Base.Application.Services.AgvLineQueryPageInput">
<summary>
分页查询条件
</summary>
</member>
<member name="P:BPA.MES.Base.Application.Services.AgvLineQueryPageInput.Name">
<summary>
名称
</summary>
</member>
<member name="P:BPA.MES.Base.Application.Services.AgvLineQueryPageInput.Code">
<summary>
编码
</summary>
</member>
<member name="T:BPA.MES.Base.Application.Services.AgvLineOutput">
<summary>
输出
</summary>
</member>
<member name="P:BPA.MES.Base.Application.Services.AgvLineOutput.Id">
<summary>
主键
</summary>
</member>
<member name="T:BPA.MES.Base.Application.Services.AgvPointDto">
<summary>
名 称 :
创 建 人 :yangxiao
创建时间 : 2023/8/7 10:00:01
描 述 :
</summary>
</member>
<member name="P:BPA.MES.Base.Application.Services.AgvPointDto.Name">
<summary>
点位名称
</summary>
</member>
<member name="P:BPA.MES.Base.Application.Services.AgvPointDto.Code">
<summary>
点位编码
</summary>
</member>
<member name="T:BPA.MES.Base.Application.Services.AgvPointAddInput">
<summary>
增加
</summary>
</member>
<member name="T:BPA.MES.Base.Application.Services.AgvPointUpdateInput">
<summary>
修改
</summary>
</member>
<member name="P:BPA.MES.Base.Application.Services.AgvPointUpdateInput.Id">
<summary>
主键
</summary>
</member>
<member name="T:BPA.MES.Base.Application.Services.AgvPointDelInput">
<summary>
刪除
</summary>
</member>
<member name="P:BPA.MES.Base.Application.Services.AgvPointDelInput.Id">
<summary>
主键
</summary>
</member>
<member name="T:BPA.MES.Base.Application.Services.AgvPointQueryInput">
<summary>
普通查询条件
</summary>
</member>
<member name="P:BPA.MES.Base.Application.Services.AgvPointQueryInput.Id">
<summary>
主键
</summary>
</member>
<member name="T:BPA.MES.Base.Application.Services.AgvPointQueryPageInput">
<summary>
分页查询条件
</summary>
</member>
<member name="P:BPA.MES.Base.Application.Services.AgvPointQueryPageInput.Name">
<summary>
名称
</summary>
</member>
<member name="P:BPA.MES.Base.Application.Services.AgvPointQueryPageInput.Code">
<summary>
编码
</summary>
</member>
<member name="T:BPA.MES.Base.Application.Services.AgvPointOutput">
<summary>
输出
</summary>
</member>
<member name="P:BPA.MES.Base.Application.Services.AgvPointOutput.Id">
<summary>
主键
</summary>
</member>
<member name="T:BPA.MES.Base.Application.Services.AGVService.Services.AgvLineService">
<summary>
名 称 :AGV线路管理
创 建 人 :yangxiao
创建时间 : 2023/8/7 10:03:21
描 述 :
</summary>
</member>
<member name="M:BPA.MES.Base.Application.Services.AGVService.Services.AgvLineService.Add(BPA.MES.Base.Application.Services.AgvLineAddInput)">
<summary>
增加
</summary>
<param name="input"></param>
<returns></returns>
</member>
<member name="M:BPA.MES.Base.Application.Services.AGVService.Services.AgvLineService.Del(BPA.MES.Base.Application.Services.AgvLineDelInput)">
<summary>
删除
</summary>
<param name="input"></param>
<returns></returns>
<exception cref="T:System.NotImplementedException"></exception>
</member>
<member name="M:BPA.MES.Base.Application.Services.AGVService.Services.AgvLineService.Detail(System.String)">
<summary>
详情
</summary>
<param name="Id"></param>
<returns></returns>
<exception cref="T:System.NotImplementedException"></exception>
</member>
<member name="M:BPA.MES.Base.Application.Services.AGVService.Services.AgvLineService.List(BPA.MES.Base.Application.Services.AgvLineQueryInput)">
<summary>
列表
</summary>
<returns></returns>
<exception cref="T:System.NotImplementedException"></exception>
</member>
<member name="M:BPA.MES.Base.Application.Services.AGVService.Services.AgvLineService.PagedList(BPA.MES.Base.Application.Services.AgvLineQueryPageInput)">
<summary>
分页
</summary>
<param name="input"></param>
<returns></returns>
</member>
<member name="M:BPA.MES.Base.Application.Services.AGVService.Services.AgvLineService.SelectList">
<summary>
下拉
</summary>
<returns></returns>
<exception cref="T:System.NotImplementedException"></exception>
</member>
<member name="M:BPA.MES.Base.Application.Services.AGVService.Services.AgvLineService.Update(BPA.MES.Base.Application.Services.AgvLineUpdateInput)">
<summary>
更新
</summary>
<param name="input"></param>
<returns></returns>
<exception cref="T:System.NotImplementedException"></exception>
</member>
<member name="T:BPA.MES.Base.Application.Services.AgvPointService">
<summary>
名 称 :AGV点位管理
创 建 人 :yangxiao
创建时间 : 2023/8/7 10:03:37
描 述 :
</summary>
</member>
<member name="M:BPA.MES.Base.Application.Services.AgvPointService.Add(BPA.MES.Base.Application.Services.AgvPointAddInput)">
<summary>
增加
</summary>
<param name="input"></param>
<returns></returns>
</member>
<member name="M:BPA.MES.Base.Application.Services.AgvPointService.Del(BPA.MES.Base.Application.Services.AgvPointDelInput)">
<summary>
删除
</summary>
<param name="input"></param>
<returns></returns>
<exception cref="T:System.NotImplementedException"></exception>
</member>
<member name="M:BPA.MES.Base.Application.Services.AgvPointService.Detail(System.String)">
<summary>
详情
</summary>
<param name="Id"></param>
<returns></returns>
<exception cref="T:System.NotImplementedException"></exception>
</member>
<member name="M:BPA.MES.Base.Application.Services.AgvPointService.List(BPA.MES.Base.Application.Services.AgvPointQueryInput)">
<summary>
列表
</summary>
<returns></returns>
<exception cref="T:System.NotImplementedException"></exception>
</member>
<member name="M:BPA.MES.Base.Application.Services.AgvPointService.PagedList(BPA.MES.Base.Application.Services.AgvPointQueryPageInput)">
<summary>
分页
</summary>
<param name="input"></param>
<returns></returns>
</member>
<member name="M:BPA.MES.Base.Application.Services.AgvPointService.SelectList">
<summary>
下拉
</summary>
<returns></returns>
<exception cref="T:System.NotImplementedException"></exception>
</member>
<member name="M:BPA.MES.Base.Application.Services.AgvPointService.Update(BPA.MES.Base.Application.Services.AgvPointUpdateInput)">
<summary>
更新
</summary>
<param name="input"></param>
<returns></returns>
<exception cref="T:System.NotImplementedException"></exception>
</member>
<member name="T:BPA.MES.Base.Application.Services.IAgvLineService">
<summary>
名 称 :
创 建 人 :yangxiao
创建时间 : 2023/8/7 10:02:54
描 述 :
</summary>
</member>
<member name="M:BPA.MES.Base.Application.Services.IAgvLineService.Add(BPA.MES.Base.Application.Services.AgvLineAddInput)">
<summary>
增加
</summary>
<returns></returns>
</member>
<member name="M:BPA.MES.Base.Application.Services.IAgvLineService.Del(BPA.MES.Base.Application.Services.AgvLineDelInput)">
<summary>
移除
</summary>
<returns></returns>
</member>
<member name="M:BPA.MES.Base.Application.Services.IAgvLineService.Update(BPA.MES.Base.Application.Services.AgvLineUpdateInput)">
<summary>
更新
</summary>
<returns></returns>
</member>
<member name="M:BPA.MES.Base.Application.Services.IAgvLineService.List(BPA.MES.Base.Application.Services.AgvLineQueryInput)">
<summary>
不分页列表
</summary>
<returns></returns>
</member>
<member name="M:BPA.MES.Base.Application.Services.IAgvLineService.PagedList(BPA.MES.Base.Application.Services.AgvLineQueryPageInput)">
<summary>
分页列表
</summary>
<returns></returns>
</member>
<member name="M:BPA.MES.Base.Application.Services.IAgvLineService.Detail(System.String)">
<summary>
查询单条
</summary>
<param name="Id"></param>
<returns></returns>
</member>
<member name="T:BPA.MES.Base.Application.Services.IAgvPointService">
<summary>
名 称 :AVG点位
创 建 人 :yangxiao
创建时间 : 2023/8/7 10:03:06
描 述 :
</summary>
</member>
<member name="M:BPA.MES.Base.Application.Services.IAgvPointService.Add(BPA.MES.Base.Application.Services.AgvPointAddInput)">
<summary>
增加
</summary>
<returns></returns>
</member>
<member name="M:BPA.MES.Base.Application.Services.IAgvPointService.Del(BPA.MES.Base.Application.Services.AgvPointDelInput)">
<summary>
移除
</summary>
<returns></returns>
</member>
<member name="M:BPA.MES.Base.Application.Services.IAgvPointService.Update(BPA.MES.Base.Application.Services.AgvPointUpdateInput)">
<summary>
更新
</summary>
<returns></returns>
</member>
<member name="M:BPA.MES.Base.Application.Services.IAgvPointService.List(BPA.MES.Base.Application.Services.AgvPointQueryInput)">
<summary>
不分页列表
</summary>
<returns></returns>
</member>
<member name="M:BPA.MES.Base.Application.Services.IAgvPointService.PagedList(BPA.MES.Base.Application.Services.AgvPointQueryPageInput)">
<summary>
分页列表
</summary>
<returns></returns>
</member>
<member name="M:BPA.MES.Base.Application.Services.IAgvPointService.Detail(System.String)">
<summary>
查询单条
</summary>
<param name="Id"></param>
<returns></returns>
</member>
<member name="T:BPA.MES.Base.Application.Services.BaseService">
<summary>
名 称 :


+ 95
- 0
backend/BPA.MES.Base.Application/Services/AGVService/Dtos/AgvLineDto.cs 查看文件

@@ -0,0 +1,95 @@
namespace BPA.MES.Base.Application.Services
{
/// <summary>
/// 名 称 :
/// 创 建 人 :yangxiao
/// 创建时间 : 2023/8/7 9:59:47
/// 描 述 :
/// </summary>
public class AgvLineDto
{
/// <summary>
/// 自定义编码
/// </summary>
public string Code { get; set; }
/// <summary>
/// 线路名称
/// </summary>
public string Name { get; set; }
/// <summary>
/// 开始点位
/// </summary>
public string StartPointId { get; set; }
/// <summary>
/// 结束点位
/// </summary>
public string EndPointId { get; set; }
/// <summary>
/// 描述
/// </summary>
public string Description { get; set; }
}
/// <summary>
/// 增加
/// </summary>
public class AgvLineAddInput : AgvLineDto
{

}
/// <summary>
/// 修改
/// </summary>
public class AgvLineUpdateInput : AgvLineDto
{
/// <summary>
/// 主键
/// </summary>
public string Id { get; set; }
}
/// <summary>
/// 刪除
/// </summary>
public class AgvLineDelInput
{
/// <summary>
/// 主键
/// </summary>
public string Id { get; set; }
}
/// <summary>
/// 普通查询条件
/// </summary>
public class AgvLineQueryInput
{
/// <summary>
/// 主键
/// </summary>
public string Id { get; set; }
}
/// <summary>
/// 分页查询条件
/// </summary>
public class AgvLineQueryPageInput : RequestPage
{

/// <summary>
/// 名称
/// </summary>
public string Name { get; set; }
/// <summary>
/// 编码
/// </summary>
public string Code { get; set; }
}
/// <summary>
/// 输出
/// </summary>
public class AgvLineOutput : AgvLineDto
{
/// <summary>
/// 主键
/// </summary>
public string Id { get; set; }
//下面增加多的数据
}
}

+ 83
- 0
backend/BPA.MES.Base.Application/Services/AGVService/Dtos/AgvPointDto.cs 查看文件

@@ -0,0 +1,83 @@
namespace BPA.MES.Base.Application.Services
{
/// <summary>
/// 名 称 :
/// 创 建 人 :yangxiao
/// 创建时间 : 2023/8/7 10:00:01
/// 描 述 :
/// </summary>
public class AgvPointDto
{
/// <summary>
/// 点位名称
/// </summary>
public string Name { get; set; }
/// <summary>
/// 点位编码
/// </summary>
public string Code { get; set; }
}
/// <summary>
/// 增加
/// </summary>
public class AgvPointAddInput : AgvPointDto
{

}
/// <summary>
/// 修改
/// </summary>
public class AgvPointUpdateInput : AgvPointDto
{
/// <summary>
/// 主键
/// </summary>
public string Id { get; set; }
}
/// <summary>
/// 刪除
/// </summary>
public class AgvPointDelInput
{
/// <summary>
/// 主键
/// </summary>
public string Id { get; set; }
}
/// <summary>
/// 普通查询条件
/// </summary>
public class AgvPointQueryInput
{
/// <summary>
/// 主键
/// </summary>
public string Id { get; set; }
}
/// <summary>
/// 分页查询条件
/// </summary>
public class AgvPointQueryPageInput : RequestPage
{

/// <summary>
/// 名称
/// </summary>
public string Name { get; set; }
/// <summary>
/// 编码
/// </summary>
public string Code { get; set; }
}
/// <summary>
/// 输出
/// </summary>
public class AgvPointOutput : AgvPointDto
{
/// <summary>
/// 主键
/// </summary>
public string Id { get; set; }
//下面增加多的数据
}
}

+ 115
- 0
backend/BPA.MES.Base.Application/Services/AGVService/Services/AgvLineService.cs 查看文件

@@ -0,0 +1,115 @@
namespace BPA.MES.Base.Application.Services.AGVService.Services
{
/// <summary>
/// 名 称 :AGV线路管理
/// 创 建 人 :yangxiao
/// 创建时间 : 2023/8/7 10:03:21
/// 描 述 :
/// </summary>
[ApiDescriptionSettings("AGV管理", Name = "AgvLine", Tag = "AGV线路", KeepName = true, SplitCamelCase = true, KeepVerb = true)]
public class AgvLineService : IAgvLineService, ITransient, IDynamicApiController
{
private readonly ISqlSugarClient _dbContext;
public AgvLineService(ISqlSugarClient db)
{
_dbContext = db;
}
/// <summary>
/// 增加
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
[HttpPost]
public async Task<bool> Add(AgvLineAddInput input)
{
var r_entity = await _dbContext.Queryable<AgvLineEntity>().FirstAsync(x => x.Name == input.Name);
if (r_entity != null)
{
throw Oops.Bah("名称已存在!");
}
AgvLineEntity entity = input.Adapt<AgvLineEntity>();
return await _dbContext.Insertable(entity).IgnoreColumns(ignoreNullColumn: true).ExecuteCommandIdentityIntoEntityAsync();
}
/// <summary>
/// 删除
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
/// <exception cref="NotImplementedException"></exception>
[HttpPost]
public async Task<bool> Del(AgvLineDelInput input)
{
var res = await _dbContext.Deleteable<AgvLineEntity>().Where(x => x.Id == input.Id).ExecuteCommandHasChangeAsync();
return res;
}
/// <summary>
/// 详情
/// </summary>
/// <param name="Id"></param>
/// <returns></returns>
/// <exception cref="NotImplementedException"></exception>
[HttpGet]
public async Task<AgvLineOutput> Detail(string Id)
{
var entity = await _dbContext.Queryable<AgvLineEntity>().FirstAsync(x => x.Id == Id);
AgvLineOutput output = entity.Adapt<AgvLineOutput>();
return output;
}
/// <summary>
/// 列表
/// </summary>
/// <returns></returns>
/// <exception cref="NotImplementedException"></exception>
[HttpPost]
public async Task<List<AgvLineOutput>> List(AgvLineQueryInput input)
{
var entity = await _dbContext.Queryable<AgvLineEntity>().ToListAsync();
List<AgvLineOutput> output = entity.Adapt<List<AgvLineOutput>>();
return output;
}
/// <summary>
/// 分页
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
[HttpPost]
public async Task<SqlSugarPagedList<AgvLineOutput>> PagedList(AgvLineQueryPageInput input)
{
var entity = await _dbContext.Queryable<AgvLineEntity>()
.WhereIF(!string.IsNullOrEmpty(input.Name), x => x.Name.Contains(input.Name))
.WhereIF(!string.IsNullOrEmpty(input.Code), x => x.Code.Contains(input.Code))
.ToPagedListAsync(input.PageIndex, input.PageSize);
SqlSugarPagedList<AgvLineOutput> output = entity.Adapt<SqlSugarPagedList<AgvLineOutput>>();
return output;
}
/// <summary>
/// 下拉
/// </summary>
/// <returns></returns>
/// <exception cref="NotImplementedException"></exception>
[HttpGet]
public async Task<dynamic> SelectList()
{
var entity = await _dbContext.Queryable<AgvLineEntity>().Select(x => new
{
key = x.Id,
value = x.Name
}).ToListAsync();
return entity;
}
/// <summary>
/// 更新
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
/// <exception cref="NotImplementedException"></exception>
[HttpPost]
public async Task<bool> Update(AgvLineUpdateInput input)
{
var entity = await _dbContext.Queryable<AgvLineEntity>().Where(x => x.Id == input.Id).FirstAsync();
entity = input.Adapt<AgvLineEntity>();
var res = await _dbContext.Updateable(entity).IgnoreColumns(true).ExecuteCommandHasChangeAsync();
return res;
}
}
}

+ 115
- 0
backend/BPA.MES.Base.Application/Services/AGVService/Services/AgvPointService.cs 查看文件

@@ -0,0 +1,115 @@
namespace BPA.MES.Base.Application.Services
{
/// <summary>
/// 名 称 :AGV点位管理
/// 创 建 人 :yangxiao
/// 创建时间 : 2023/8/7 10:03:37
/// 描 述 :
/// </summary>
[ApiDescriptionSettings("AGV管理", Name = "AgvPoint", Tag = "AGV点位", KeepName = true, SplitCamelCase = true, KeepVerb = true)]
public class AgvPointService : IAgvPointService, ITransient, IDynamicApiController
{
private readonly ISqlSugarClient _dbContext;
public AgvPointService(ISqlSugarClient db)
{
_dbContext = db;
}
/// <summary>
/// 增加
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
[HttpPost]
public async Task<bool> Add(AgvPointAddInput input)
{
var r_entity = await _dbContext.Queryable<AgvPointEntity>().FirstAsync(x => x.Name == input.Name);
if (r_entity != null)
{
throw Oops.Bah("名称已存在!");
}
AgvPointEntity entity = input.Adapt<AgvPointEntity>();
return await _dbContext.Insertable(entity).IgnoreColumns(ignoreNullColumn: true).ExecuteCommandIdentityIntoEntityAsync();
}
/// <summary>
/// 删除
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
/// <exception cref="NotImplementedException"></exception>
[HttpPost]
public async Task<bool> Del(AgvPointDelInput input)
{
var res = await _dbContext.Deleteable<AgvPointEntity>().Where(x => x.Id == input.Id).ExecuteCommandHasChangeAsync();
return res;
}
/// <summary>
/// 详情
/// </summary>
/// <param name="Id"></param>
/// <returns></returns>
/// <exception cref="NotImplementedException"></exception>
[HttpGet]
public async Task<AgvPointOutput> Detail(string Id)
{
var entity = await _dbContext.Queryable<AgvPointEntity>().FirstAsync(x => x.Id == Id);
AgvPointOutput output = entity.Adapt<AgvPointOutput>();
return output;
}
/// <summary>
/// 列表
/// </summary>
/// <returns></returns>
/// <exception cref="NotImplementedException"></exception>
[HttpPost]
public async Task<List<AgvPointOutput>> List(AgvPointQueryInput input)
{
var entity = await _dbContext.Queryable<AgvPointEntity>().ToListAsync();
List<AgvPointOutput> output = entity.Adapt<List<AgvPointOutput>>();
return output;
}
/// <summary>
/// 分页
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
[HttpPost]
public async Task<SqlSugarPagedList<AgvPointOutput>> PagedList(AgvPointQueryPageInput input)
{
var entity = await _dbContext.Queryable<AgvPointEntity>()
.WhereIF(!string.IsNullOrEmpty(input.Name), x => x.Name.Contains(input.Name))
.WhereIF(!string.IsNullOrEmpty(input.Code), x => x.Code.Contains(input.Code))
.ToPagedListAsync(input.PageIndex, input.PageSize);
SqlSugarPagedList<AgvPointOutput> output = entity.Adapt<SqlSugarPagedList<AgvPointOutput>>();
return output;
}
/// <summary>
/// 下拉
/// </summary>
/// <returns></returns>
/// <exception cref="NotImplementedException"></exception>
[HttpGet]
public async Task<dynamic> SelectList()
{
var entity = await _dbContext.Queryable<AgvPointEntity>().Select(x => new
{
key = x.Id,
value = x.Name
}).ToListAsync();
return entity;
}
/// <summary>
/// 更新
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
/// <exception cref="NotImplementedException"></exception>
[HttpPost]
public async Task<bool> Update(AgvPointUpdateInput input)
{
var entity = await _dbContext.Queryable<AgvPointEntity>().Where(x => x.Id == input.Id).FirstAsync();
entity = input.Adapt<AgvPointEntity>();
var res = await _dbContext.Updateable(entity).IgnoreColumns(true).ExecuteCommandHasChangeAsync();
return res;
}
}
}

+ 43
- 0
backend/BPA.MES.Base.Application/Services/AGVService/Services/IAgvLineService.cs 查看文件

@@ -0,0 +1,43 @@
namespace BPA.MES.Base.Application.Services
{
/// <summary>
/// 名 称 :
/// 创 建 人 :yangxiao
/// 创建时间 : 2023/8/7 10:02:54
/// 描 述 :
/// </summary>
public interface IAgvLineService
{
/// <summary>
/// 增加
/// </summary>
/// <returns></returns>
Task<bool> Add(AgvLineAddInput input);
/// <summary>
/// 移除
/// </summary>
/// <returns></returns>
Task<bool> Del(AgvLineDelInput input);
/// <summary>
/// 更新
/// </summary>
/// <returns></returns>
Task<bool> Update(AgvLineUpdateInput input);
/// <summary>
/// 不分页列表
/// </summary>
/// <returns></returns>
Task<List<AgvLineOutput>> List(AgvLineQueryInput input);
/// <summary>
/// 分页列表
/// </summary>
/// <returns></returns>
Task<SqlSugarPagedList<AgvLineOutput>> PagedList(AgvLineQueryPageInput input);
/// <summary>
/// 查询单条
/// </summary>
/// <param name="Id"></param>
/// <returns></returns>
Task<AgvLineOutput> Detail(string Id);
}
}

+ 43
- 0
backend/BPA.MES.Base.Application/Services/AGVService/Services/IAgvPointService.cs 查看文件

@@ -0,0 +1,43 @@
namespace BPA.MES.Base.Application.Services
{
/// <summary>
/// 名 称 :AVG点位
/// 创 建 人 :yangxiao
/// 创建时间 : 2023/8/7 10:03:06
/// 描 述 :
/// </summary>
public interface IAgvPointService
{
/// <summary>
/// 增加
/// </summary>
/// <returns></returns>
Task<bool> Add(AgvPointAddInput input);
/// <summary>
/// 移除
/// </summary>
/// <returns></returns>
Task<bool> Del(AgvPointDelInput input);
/// <summary>
/// 更新
/// </summary>
/// <returns></returns>
Task<bool> Update(AgvPointUpdateInput input);
/// <summary>
/// 不分页列表
/// </summary>
/// <returns></returns>
Task<List<AgvPointOutput>> List(AgvPointQueryInput input);
/// <summary>
/// 分页列表
/// </summary>
/// <returns></returns>
Task<SqlSugarPagedList<AgvPointOutput>> PagedList(AgvPointQueryPageInput input);
/// <summary>
/// 查询单条
/// </summary>
/// <param name="Id"></param>
/// <returns></returns>
Task<AgvPointOutput> Detail(string Id);
}
}

Loading…
取消
儲存