uploadflag 累减 查询的时候 != 1 倒序
查询接口新增id,updatetime,detailid,查询新增uploadflag
This commit is contained in:
1 parent
6729d5fd7d
commit
648e6b148e
4 files changed
+23
-7
No files matched your search
@@ -20,10 +20,13 @@ namespace HHWMS.Web
|
||||
{
|
||||
var _unitwork = new UnitWork(Wtm);
|
||||
|
||||
var inv = _unitwork.FindSingle<Inventory>(x => x.UploadErpFlag == 0
|
||||
&& x.TaskStatus != InventoryTaskStatusEnum.Locked
|
||||
// && !string.IsNullOrEmpty(x.ReceiptDetailId)
|
||||
);
|
||||
var inv = _unitwork.Find<Inventory>(x =>
|
||||
x.UploadErpFlag != 1
|
||||
&& x.TaskStatus != InventoryTaskStatusEnum.Locked
|
||||
// && !string.IsNullOrEmpty(x.ReceiptDetailId)
|
||||
)
|
||||
.OrderByDescending(x => x.UploadErpFlag)
|
||||
.FirstOrDefault();
|
||||
|
||||
// 使用通用的ProcessErpFinishIn方法
|
||||
var invVM = Wtm.CreateVM<InventoryVM>();
|
||||
|
||||
Reference in new issue
Block a user