修改序列号拦截
This commit is contained in:
@@ -473,6 +473,15 @@ namespace BarCode.Web.Domain.Services
|
||||
/// <exception cref="NotImplementedException"></exception>
|
||||
public async Task<Result> TransferSn(TransferSNOneTwoTwoRequest dto)
|
||||
{
|
||||
|
||||
//先判断是否有存在使用的序列号,如果有的话,就报错。
|
||||
List<SerialNumbers> isUselist = await _serialNumbersRepositories.GetUseEntityListByGRIds(dto.ids);
|
||||
if(isUselist.Count>0)
|
||||
{
|
||||
return Result.ReFailure(ResultCodes.IsUseError);
|
||||
}
|
||||
|
||||
|
||||
//取出所有的生成记录
|
||||
var generateRecords = await _sGenerateRecordRepositories.GetEntityList(dto.ids, "0");
|
||||
for (int i = 0; i < generateRecords.Count; i++)
|
||||
|
||||
Reference in New Issue
Block a user