优化接口
This commit is contained in:
@@ -58,7 +58,7 @@ namespace WMS.Web.Domain.Infrastructure
|
||||
/// <param name="entity"></param>
|
||||
/// <param name="isTransaction"></param>
|
||||
/// <returns></returns>
|
||||
Task<InStock> Update(InStock entity, bool isTransaction = true);
|
||||
Task<bool> Update(InStock entity, bool isTransaction = true);
|
||||
|
||||
/// <summary>
|
||||
/// 批量修改
|
||||
|
||||
@@ -794,7 +794,7 @@ namespace WMS.Web.Domain.Services
|
||||
}
|
||||
//最好一条一条执行,否则执行失败 但是金蝶那边又同步成功 就会造成数据比价乱
|
||||
var isSuccess = await sc_InStockRepositories.Update(entity, true);
|
||||
if (entity == null) return Result.ReFailure(ResultCodes.DateWriteError);
|
||||
if (!isSuccess) return Result.ReFailure(ResultCodes.DateWriteError);
|
||||
return Result.ReSuccess();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user