| | |
| | | |
| | | } |
| | | |
| | | |
| | | public async Task<WebResponseContent> LockOrUpLockStockDetail(SaveModel saveModel) |
| | | { |
| | | WebResponseContent content = new WebResponseContent(); |
| | | try |
| | | { |
| | | var details = await BaseDal.QueryDataAsync(x => saveModel.DelKeys.Contains(x.Id)); |
| | | |
| | | bool flag = Convert.ToBoolean(saveModel.Extra); |
| | | |
| | | details.ForEach(x => x.Status = flag ? StockStatusEmun.鎵嬪姩鍐荤粨.ObjToInt(): StockStatusEmun.鎵嬪姩瑙i攣.ObjToInt()); |
| | | |
| | | await BaseDal.UpdateDataAsync(details); |
| | | |
| | | return content.OK(flag ? "鍐荤粨鎴愬姛!" : "瑙i攣鎴愬姛!"); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | return content.Error(ex.Message); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |