添加项目文件。
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
|
||||
using BarCode.Web.Core.Dto.Login;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BarCode.Web.Domain.Infrastructure
|
||||
{
|
||||
public interface IAllFielRepositories<Request>
|
||||
{
|
||||
/// <summary>
|
||||
/// 全字段导出接口
|
||||
/// </summary>
|
||||
/// <param name="dto"></param>
|
||||
/// <returns></returns>
|
||||
//Task<(object obj, int total)> GetListAllField(Request dto, int companyId);
|
||||
|
||||
/// <summary>
|
||||
/// 列表字段导出接口
|
||||
/// </summary>
|
||||
/// <param name="dto"></param>
|
||||
/// <param name="loginInfo"></param>
|
||||
/// <returns></returns>
|
||||
Task<(object obj, int total)> GetListField(Request dto, LoginInDto loginInfo);
|
||||
}
|
||||
}
|
||||
93
src/BarCode.Web.Domain/Infrastructure/IBasicsRepositories.cs
Normal file
93
src/BarCode.Web.Domain/Infrastructure/IBasicsRepositories.cs
Normal file
@@ -0,0 +1,93 @@
|
||||
using Microsoft.EntityFrameworkCore.Storage;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using BarCode.Web.Core.Dto.SingleData;
|
||||
|
||||
namespace BarCode.Web.Domain.Infrastructure
|
||||
{
|
||||
/// <summary>
|
||||
/// 基础数据
|
||||
/// </summary>
|
||||
public interface IBasicsRepositories
|
||||
{
|
||||
/// <summary>
|
||||
/// 根据用户精确搜索用户
|
||||
/// </summary>
|
||||
/// <param name="name"></param>
|
||||
/// <returns></returns>
|
||||
Task<List<int>> GetUserIdsAsync(string name, int companyId);
|
||||
/// <summary>
|
||||
/// 获取所有人员-根据主体
|
||||
/// </summary>
|
||||
/// <param name="CompanyId"></param>
|
||||
/// <returns></returns>
|
||||
Task<List<SysStaffResponse>> GetStaffListAsync(int CompanyId);
|
||||
/// <summary>
|
||||
/// 根据仓库获取子仓库
|
||||
/// </summary>
|
||||
/// <param name="id">仓库id</param>
|
||||
/// <returns></returns>
|
||||
Task<List<UcStockResponse>> GetSubUcStockAsync(int stockId);
|
||||
|
||||
/// <summary>
|
||||
/// 获取仓位:根据name模糊,和系统code和公司
|
||||
/// </summary>
|
||||
/// <param name="systemCode"></param>
|
||||
/// <param name="name"></param>
|
||||
/// <param name="companyId"></param>
|
||||
/// <returns></returns>
|
||||
Task<List<UcSubStockResponse>> GetSubUcStockAsync(string systemCode, string name, int companyId);
|
||||
|
||||
/// <summary>
|
||||
/// 获取仓位详情:根据仓位ID和公司ID
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <param name="companyId"></param>
|
||||
/// <returns></returns>
|
||||
Task<UcSubStockResponse> GetSubUcStockAsync(int id, int companyId);
|
||||
|
||||
/// <summary>
|
||||
/// 获取仓位集合:根据仓位ID集合和公司ID
|
||||
/// </summary>
|
||||
/// <param name="ids"></param>
|
||||
/// <param name="companyId"></param>
|
||||
/// <returns></returns>
|
||||
Task<List<UcSubStockResponse>> GetSubUcStockAsync(List<int> ids, int companyId);
|
||||
|
||||
/// <summary>
|
||||
/// 获取仓位详情:根据仓位ID和公司ID
|
||||
/// </summary>
|
||||
/// <param name="code"></param>
|
||||
/// <param name="companyId"></param>
|
||||
/// <returns></returns>
|
||||
Task<UcSubStockResponse> GetSubUcStockAsync(string code, int companyId);
|
||||
|
||||
/// <summary>
|
||||
/// 获取仓位集合:根据仓位编码集合和公司ID
|
||||
/// </summary>
|
||||
/// <param name="codes"></param>
|
||||
/// <param name="companyId"></param>
|
||||
/// <returns></returns>
|
||||
Task<List<UcSubStockResponse>> GetSubUcStockAsync(List<string> codes, int companyId);
|
||||
|
||||
/// <summary>
|
||||
/// 获取仓库
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
Task<List<UcStockResponse>> GetUcStockAsync(string systemCode,string name, int companyId);
|
||||
|
||||
/// <summary>
|
||||
/// 获取事务 用来处理即时库存
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
IDbContextTransaction GetTransaction();
|
||||
|
||||
/// <summary>
|
||||
/// 获取事务 用来处理即时库存
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
bool CommitTransaction(bool isRollback, IDbContextTransaction transaction);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using BarCode.Web.Core.Dto;
|
||||
using BarCode.Web.Core.Dto.Login;
|
||||
using BarCode.Web.Domain.Entitys;
|
||||
|
||||
namespace BarCode.Web.Domain.Infrastructure
|
||||
{
|
||||
/// <summary>
|
||||
/// 箱唛-仓储接口
|
||||
/// </summary>
|
||||
public interface IBoxMarkRepositories
|
||||
{
|
||||
/// <summary>
|
||||
/// 列表分页
|
||||
/// </summary>
|
||||
/// <param name="dto"></param>
|
||||
/// <param name="loginInfo"></param>
|
||||
/// <returns></returns>
|
||||
Task<(List<BoxMarkQueryResponse> list, int total)> GetPagedList(BoxMarkQueryRequest dto, LoginInDto loginInfo);
|
||||
|
||||
/// <summary>
|
||||
/// 添加
|
||||
/// </summary>
|
||||
/// <param name="entity"></param>
|
||||
/// <param name="isTransaction"></param>
|
||||
/// <returns></returns>
|
||||
Task<BoxMark> Add(BoxMark entity, bool isTransaction = true);
|
||||
|
||||
/// <summary>
|
||||
/// 详情-根据最新的ID
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
Task<BoxMark> GetBy();
|
||||
|
||||
/// <summary>
|
||||
/// 列表-详情信息列表
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <param name="companyId"></param>
|
||||
/// <returns></returns>
|
||||
Task<List<BoxMarkQueryResponse>> GetListInfoBy(int id, int companyId);
|
||||
|
||||
/// <summary>
|
||||
/// 获取最新的编号实体
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
Task<BoxMarkBillNo> GetLastBillNo();
|
||||
|
||||
/// <summary>
|
||||
/// 批量删除
|
||||
/// </summary>
|
||||
/// <param name="ids"></param>
|
||||
/// <param name="isTransaction"></param>
|
||||
/// <returns></returns>
|
||||
Task<bool> DeleteRange(List<int> ids, bool isTransaction = true);
|
||||
}
|
||||
}
|
||||
47
src/BarCode.Web.Domain/Infrastructure/IBoxRepositories.cs
Normal file
47
src/BarCode.Web.Domain/Infrastructure/IBoxRepositories.cs
Normal file
@@ -0,0 +1,47 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using BarCode.Web.Core.Dto;
|
||||
using BarCode.Web.Core.Dto.Box;
|
||||
using BarCode.Web.Core.Dto.Login;
|
||||
using BarCode.Web.Core.Dto.SerialNumbers;
|
||||
using BarCode.Web.Domain.Entitys;
|
||||
|
||||
namespace BarCode.Web.Domain.Infrastructure
|
||||
{
|
||||
/// <summary>
|
||||
/// 老ops箱信息
|
||||
/// </summary>
|
||||
public interface IBoxRepositories
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取列表
|
||||
/// </summary>
|
||||
/// <param name="dto"></param>
|
||||
/// <param name="loginInfo"></param>
|
||||
/// <returns></returns>
|
||||
Task<(List<BoxInfoResponse> list, int total)> GetListAsync(BoxQueryRequest dto, LoginInDto loginInfo);
|
||||
Task<Box?> Get(int id);
|
||||
Task<Box?> GetByNo(string billNo);
|
||||
//根据箱号搜索 用来比对确定是否箱号信息是否存在
|
||||
Task<List<string>> GetByNos(List<string> billNos);
|
||||
//编辑
|
||||
Task<Box> Edit(Box entity, bool isTransaction = true);
|
||||
//批量修改
|
||||
Task<bool> EditEntityList(List<Box> entitys, bool isTransaction = true);
|
||||
/// <summary>
|
||||
/// 批量添加
|
||||
/// </summary>
|
||||
/// <param name="entitys"></param>
|
||||
/// <param name="isTransaction"></param>
|
||||
/// <returns></returns>
|
||||
Task<bool> AddRange(List<Box> entitys, bool isTransaction = true);
|
||||
/// 查询实体集合
|
||||
Task<List<Box>> GetEntityList(List<int> ids);
|
||||
|
||||
Task<List<Box>> GetEntityListByNos(List<string> billNos);
|
||||
/// 查询实体集合
|
||||
Task<(List<Box>, int tota)> GetEntityByWmsList(WmsBoxRequest dto);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
using BarCode.Web.Domain.Entitys;
|
||||
using BarCode.Web.Domain.Values;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BarCode.Web.Domain.Infrastructure
|
||||
{
|
||||
/// <summary>
|
||||
/// 生成数据管理
|
||||
/// </summary>
|
||||
public interface ICenerateDataRepositories
|
||||
{
|
||||
///获取最新一次更新时间
|
||||
Task<CenerateData> Get(CenerateDataType type);
|
||||
///定时任务执行后更新时间
|
||||
Task<CenerateData> Edit(CenerateData entity, bool isTransaction = true);
|
||||
///定时任务执行后创建
|
||||
Task<CenerateData> Add(CenerateData entity, bool isTransaction = true);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using BarCode.Web.Core.Dto;
|
||||
using BarCode.Web.Core.Dto.Login;
|
||||
using BarCode.Web.Domain.Entitys;
|
||||
|
||||
namespace BarCode.Web.Domain.Infrastructure
|
||||
{
|
||||
public interface IFileDownManagerRepositories
|
||||
{
|
||||
/// <summary>
|
||||
/// 保存
|
||||
/// </summary>
|
||||
/// <param name="entity"></param>
|
||||
/// <returns></returns>
|
||||
Task<FileDownManager> Add(FileDownManager entity);
|
||||
/// <summary>
|
||||
/// 编辑
|
||||
/// </summary>
|
||||
/// <param name="entity"></param>
|
||||
/// <returns></returns>
|
||||
Task<FileDownManager> Edit(FileDownManager entity);
|
||||
/// <summary>
|
||||
/// 获取销售列表
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
Task<FileDownManagerResponse> GetList(FileDownManagerRequest dto, LoginInDto loginInfo);
|
||||
}
|
||||
}
|
||||
24
src/BarCode.Web.Domain/Infrastructure/ILoginRepositories.cs
Normal file
24
src/BarCode.Web.Domain/Infrastructure/ILoginRepositories.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
using BarCode.Web.Core.Dto.Login;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace BarCode.Web.Domain.Infrastructure
|
||||
{
|
||||
public interface ILoginRepositories
|
||||
{
|
||||
/// <summary>
|
||||
/// 公司Id
|
||||
/// </summary>
|
||||
int CompanyId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 员工ID
|
||||
/// </summary>
|
||||
int StaffId { get; set; }
|
||||
/// <summary>
|
||||
/// 登录用户信息
|
||||
/// </summary>
|
||||
LoginInDto loginInfo { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,77 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using BarCode.Web.Domain.Entitys;
|
||||
|
||||
namespace BarCode.Web.Domain.Infrastructure
|
||||
{
|
||||
/// <summary>
|
||||
/// 物料仓储接口
|
||||
/// </summary>
|
||||
public interface IMaterialsRepositories
|
||||
{
|
||||
/// <summary>
|
||||
/// 物料添加
|
||||
/// </summary>
|
||||
/// <param name="entitys"></param>
|
||||
/// <param name="isTransaction"></param>
|
||||
/// <returns></returns>
|
||||
Task<bool> AddRange(List<Materials> entitys, bool isTransaction = true);
|
||||
|
||||
/// <summary>
|
||||
/// 列表
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
Task<List<Materials>> GetEntityList(int? orgId = null);
|
||||
|
||||
/// <summary>
|
||||
/// 物料
|
||||
/// </summary>
|
||||
/// <param name="mid"></param>
|
||||
/// <returns></returns>
|
||||
Task<Materials> Get(int mid);
|
||||
|
||||
/// <summary>
|
||||
/// 物料
|
||||
/// </summary>
|
||||
/// <param name="code"></param>
|
||||
/// <param name="orgId"></param>
|
||||
/// <returns></returns>
|
||||
Task<Materials> Get(string code, int orgId);
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
Task<List<string>> GetAllNumbers();
|
||||
|
||||
/// <summary>
|
||||
/// 列表
|
||||
/// </summary>
|
||||
/// <param name="materNumbers"></param>
|
||||
/// <param name="isBatchManage"></param>
|
||||
/// <returns></returns>
|
||||
Task<List<Materials>> GetEntityList(List<string> materNumbers, bool isBatchManage);
|
||||
|
||||
/// <summary>
|
||||
/// 列表(获取所有没有id32进制的物料)
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
Task<List<Materials>> GetEntityListByNoBar();
|
||||
|
||||
/// <summary>
|
||||
/// 修改物料
|
||||
/// </summary>
|
||||
/// <param name="entitys"></param>
|
||||
/// <param name="isTransaction"></param>
|
||||
/// <returns></returns>
|
||||
Task<bool> UpdateRange(List<Materials> entitys, bool isTransaction = true);
|
||||
/// <summary>
|
||||
/// 集合
|
||||
/// </summary>
|
||||
/// <param name="materNumbers"></param>
|
||||
/// <returns></returns>
|
||||
Task<List<Materials>> GetEntityList(List<string> materNumbers);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
using BarCode.Web.Core.Dto.Login;
|
||||
using BarCode.Web.Core.Dto.SerialNumbers;
|
||||
using BarCode.Web.Domain.Entitys;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BarCode.Web.Domain.Infrastructure
|
||||
{
|
||||
public interface ISGenerateRecordRepositories
|
||||
{
|
||||
// 获取列表
|
||||
Task<(List<SGenerateRecordInfoResponse> list, int total)> GetListAsync(SGenerateRecordQueryRequest dto, LoginInDto loginInfo);
|
||||
// 新增
|
||||
Task<SerialNumberGenerateRecord> Add(SerialNumberGenerateRecord entity, bool isTransaction = true);
|
||||
//编辑
|
||||
Task<SerialNumberGenerateRecord> Edit(SerialNumberGenerateRecord entity, bool isTransaction = true);
|
||||
/// <summary>
|
||||
/// 批量添加
|
||||
/// </summary>
|
||||
/// <param name="entitys"></param>
|
||||
/// <param name="isTransaction"></param>
|
||||
/// <returns></returns>
|
||||
Task<bool> AddRange(List<SerialNumberGenerateRecord> entitys, bool isTransaction = true);
|
||||
/// 修改实体集合
|
||||
Task<bool> EditEntityList(List<SerialNumberGenerateRecord> entitys, bool isTransaction = true);
|
||||
/// 查询实体集合
|
||||
Task<List<SerialNumberGenerateRecord?>> GetEntityList(List<int> ids);
|
||||
/// 查询实体
|
||||
Task<SerialNumberGenerateRecord?> GetEntity(int id);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
using BarCode.Web.Core.Dto.Login;
|
||||
using BarCode.Web.Core.Dto.SecurityNumbers;
|
||||
using BarCode.Web.Core.Dto.SerialNumbers;
|
||||
using BarCode.Web.Domain.Entitys;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BarCode.Web.Domain.Infrastructure
|
||||
{
|
||||
/// <summary>
|
||||
/// 防伪码生成记录
|
||||
/// </summary>
|
||||
public interface ISecurityGenerateRecordRepositories
|
||||
{
|
||||
/// 获取列表
|
||||
Task<(List<SecurityGenerateRecordInfoResponse> list, int total)> GetListAsync(SecurityGenerateRecordQueryRequest dto, LoginInDto loginInfo);
|
||||
/// 新增
|
||||
Task<SecurityNumberGenerateRecord> Add(SecurityNumberGenerateRecord entity, bool isTransaction = true);
|
||||
///编辑
|
||||
Task<SecurityNumberGenerateRecord> Edit(SecurityNumberGenerateRecord entity, bool isTransaction = true);
|
||||
/// 批量添加
|
||||
Task<bool> AddRange(List<SecurityNumberGenerateRecord> entitys, bool isTransaction = true);
|
||||
/// 修改实体集合
|
||||
Task<bool> EditEntityList(List<SecurityNumberGenerateRecord> entitys, bool isTransaction = true);
|
||||
/// 查询实体集合
|
||||
Task<List<SecurityNumberGenerateRecord>> GetEntityList(List<int> ids);
|
||||
/// 查询实体
|
||||
Task<SecurityNumberGenerateRecord?> GetEntity(int id);
|
||||
/// 获取当天生成记录条数
|
||||
Task<int> GetGenerateRecordDayCount();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
using BarCode.Web.Core.Dto.Login;
|
||||
using BarCode.Web.Core.Dto.SecurityNumbers;
|
||||
using BarCode.Web.Domain.Entitys;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BarCode.Web.Domain.Infrastructure
|
||||
{
|
||||
/// <summary>
|
||||
/// 防伪码
|
||||
/// </summary>
|
||||
public interface ISecurityNumbersRepositories
|
||||
{
|
||||
/// 获取列表
|
||||
Task<(List<SecurityNumberInfoResponse> list, int total)> GetListAsync(SecurityNumberQueryRequest dto, LoginInDto loginInfo);
|
||||
|
||||
/// 批量添加
|
||||
Task<bool> AddRange(List<SecurityNumbers> entitys, bool isTransaction = true);
|
||||
/// 修改实体集合
|
||||
Task<bool> EditEntityList(List<SecurityNumbers> entitys, bool isTransaction = true);
|
||||
/// 查询实体集合
|
||||
Task<List<SecurityNumbers>> GetEntityList(List<string> SecurityNumbers);
|
||||
/// 根据生成记录id查询序列码
|
||||
Task<List<SecurityNumbers>> GetEntityListByGRIds(List<int> gRIds);
|
||||
/// 根据生成记录id查询序列码
|
||||
Task<List<SecurityNumbers>> GetEntityListByGRId(int gRId);
|
||||
/// 查询实体
|
||||
Task<SecurityNumbers> GetEntity(string securityNumbers);
|
||||
/// 修改实体
|
||||
Task<SecurityNumbers> Edit(SecurityNumbers entity, bool isTransaction = true);
|
||||
|
||||
/// <summary>
|
||||
/// 下载反写 执行sql语句
|
||||
/// </summary>
|
||||
/// <param name="ids"></param>
|
||||
/// <returns></returns>
|
||||
Task<bool> DownLoad(List<int> ids, bool isTransaction = true);
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
using BarCode.Web.Core.Dto.Login;
|
||||
using BarCode.Web.Core.Dto.SerialNumbers;
|
||||
using BarCode.Web.Domain.Entitys;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Org.BouncyCastle.Bcpg.OpenPgp;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BarCode.Web.Domain.Infrastructure
|
||||
{
|
||||
/// <summary>
|
||||
/// 序列码
|
||||
/// </summary>
|
||||
public interface ISerialNumbersRepositories
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取列表
|
||||
/// </summary>
|
||||
/// <param name="dto"></param>
|
||||
/// <param name="loginInfo"></param>
|
||||
/// <returns></returns>
|
||||
Task<(List<SerialNumberInfoResponse> list, int total)> GetListAsync(SerialNumberQueryRequest dto, LoginInDto loginInfo);
|
||||
/// <summary>
|
||||
/// 批量添加
|
||||
/// </summary>
|
||||
/// <param name="entitys"></param>
|
||||
/// <param name="isTransaction"></param>
|
||||
/// <returns></returns>
|
||||
Task<bool> AddRange(List<SerialNumbers> entitys, bool isTransaction = true);
|
||||
/// 修改实体集合
|
||||
Task<bool> EditEntityList(List<SerialNumbers> entitys, bool isTransaction = true);
|
||||
/// 查询实体集合
|
||||
Task<List<SerialNumbers>> GetEntityList(List<string> serialNumbers);
|
||||
/// 查询实体集合
|
||||
Task<List<SerialNumbers>> GetEntityListContainNumber(List<string> serialNumbers);
|
||||
/// 根据箱Id查询序列码
|
||||
Task<List<SerialNumbers>> GetEntityListByBoxIds(List<int> boxIds);
|
||||
/// 根据生成记录id查询序列码
|
||||
Task<List<SerialNumbers>> GetEntityListBySuitNumber(string suitNumber);
|
||||
/// 根据套装码查询序列码
|
||||
Task<List<SerialNumbers>> GetEntityListByGRIds(List<int> gRIds);
|
||||
/// 根据生成记录id查询序列码
|
||||
Task<List<SerialNumbers>> GetEntityListByGRId(int gRId);
|
||||
/// 根据箱号查询序列码
|
||||
Task<(List<SerialNumbersResponse> list, int total)> GetEntityListByBoxId(SerialNumberByBoxIdQueryRequest dto);
|
||||
/// 查询实体
|
||||
Task<SerialNumbersResponse?> GetEntity(string serialNumber, string orgCode, LoginInDto loginInfo);
|
||||
/// 查询实体
|
||||
Task<List<SerialNumbersResponse>> GetEntityList(string serialNumber, string orgCode, LoginInDto loginInfo);
|
||||
/// WMS查询实体
|
||||
Task<SerialNumbers> GetEntityWms(string serialNumbers);
|
||||
/// <summary>
|
||||
/// 根据序列号搜索信息
|
||||
/// </summary>
|
||||
/// <param name="serialNumber"></param>
|
||||
/// <returns></returns>
|
||||
Task<SerialNumbersExternalResponse> GetExternal(string serialNumber);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
using Microsoft.EntityFrameworkCore.Storage;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace BarCode.Web.Domain.Infrastructure
|
||||
{
|
||||
public interface ITransactionRepositories
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取事务 用来处理即时库存
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
IDbContextTransaction GetTransaction();
|
||||
|
||||
/// <summary>
|
||||
/// 获取事务 用来处理即时库存
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
bool CommitTransaction(bool isRollback, IDbContextTransaction transaction);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user