Commit eab87216 by pengjinyang

提交

parent 957b8cea
......@@ -68,7 +68,7 @@ namespace Service.TakeStock
}
isSuccess = true;
}
catch
catch(Exception ex)
{
isSuccess = false;
}
......@@ -102,7 +102,7 @@ namespace Service.TakeStock
/// <param name="id"></param>
/// <returns></returns>
[DisplayName("冻结库存, 盘点单Id:{0}")]
[Queue("FreezeStock")]
//[Queue("FreezeStock")]
public async Task<bool> FreezeStockAsync(int id)
{
var order = orderRepository.Get(id);
......@@ -160,7 +160,7 @@ namespace Service.TakeStock
/// <param name="sku"></param>
/// <returns></returns>
[DisplayName("回滚库存, 盘点单Id:{0}")]
[Queue("RollbackStock")]
//[Queue("RollbackStock")]
public async Task<bool> RollbackStockAsync(int id)
{
var order = orderRepository.Get(id);
......@@ -235,7 +235,7 @@ namespace Service.TakeStock
/// <param name="sku"></param>
/// <returns></returns>
[DisplayName("同步并启用库存, 盘点单Id:{0}")]
[Queue("SyncAndEnabledStock")]
//[Queue("SyncAndEnabledStock")]
public async Task<bool> SyncAndEnabledAsync(int id)
{
var order = orderRepository.Get(id);
......@@ -337,7 +337,7 @@ namespace Service.TakeStock
/// <param name="sku"></param>
/// <returns></returns>
[DisplayName("修改并启用库存, 盘点单Id:{0}")]
[Queue("ModifAndEnabledStock")]
//[Queue("ModifAndEnabledStock")]
public async Task<bool> ModifAndEnabledAsync(int id)
{
var order = orderRepository.Get(id);
......@@ -428,7 +428,7 @@ namespace Service.TakeStock
/// </summary>
/// <param name="scheduleId"></param>
[DisplayName("报溢报损, 盘点计划Id:{0}")]
[Queue("ModifAndEnabledStock")]
//[Queue("ModifAndEnabledStock")]
public void GainLoss(int scheduleId)
{
var schedule = scheduleRepository.Get(scheduleId);
......@@ -472,7 +472,7 @@ namespace Service.TakeStock
}
[DisplayName("远程调用报溢报损,")]
[Queue("ModifAndEnabledStock")]
//[Queue("ModifAndEnabledStock")]
public async Task<string> AddGainLoss(object obj)
{
string code = string.Empty;
......@@ -500,7 +500,7 @@ namespace Service.TakeStock
/// <param name="id"></param>
/// <returns></returns>
[DisplayName("取消盘点, 盘点单Id:{0}")]
[Queue("CancelTakeStock")]
//[Queue("CancelTakeStock")]
public async Task<bool> CancelOrder(int id)
{
var order = orderRepository.Get(id);
......@@ -549,7 +549,7 @@ namespace Service.TakeStock
/// <param name="scheduleId"></param>
/// <returns></returns>
[DisplayName("取消盘点, 盘点计划Id:{0}")]
[Queue("CancelTakeStock")]
//[Queue("CancelTakeStock")]
private async Task CancelSchedule(int scheduleId)
{
var schedule = scheduleRepository.Get(scheduleId);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment