Commit c8575570 authored by 吴春's avatar 吴春

提交代码

parent 809a0469
...@@ -56,6 +56,7 @@ LEFT JOIN rb_tenant as e on e.TenantId = a.TenantId where 1=1"); ...@@ -56,6 +56,7 @@ LEFT JOIN rb_tenant as e on e.TenantId = a.TenantId where 1=1");
builder.Append($" AND a.{nameof(RB_ERP_Authorize_Extend.ERPGroupId)}={query.ERPGroupId}"); builder.Append($" AND a.{nameof(RB_ERP_Authorize_Extend.ERPGroupId)}={query.ERPGroupId}");
} }
} }
builder.Append($" order by a.{nameof(RB_WarehouseOut_Apply_Extend.ID)} desc");
return GetPage<RB_ERP_Authorize_Extend>(pageIndex, pageSize, out rowCount, builder.ToString()).ToList(); return GetPage<RB_ERP_Authorize_Extend>(pageIndex, pageSize, out rowCount, builder.ToString()).ToList();
} }
......
...@@ -54,12 +54,14 @@ LEFT JOIN (SELECT ApplyId,COUNT(*) as Delivered from rb_warehouseout_goods where ...@@ -54,12 +54,14 @@ LEFT JOIN (SELECT ApplyId,COUNT(*) as Delivered from rb_warehouseout_goods where
{ {
builder.Append($" AND a.{nameof(RB_WarehouseOut_Apply_Extend.ApplyStatus)}={query.ApplyStatus}"); builder.Append($" AND a.{nameof(RB_WarehouseOut_Apply_Extend.ApplyStatus)}={query.ApplyStatus}");
} }
if (query.OutStatus > 0) if (query.OutStatus > -1)
{ {
builder.Append($" AND a.{nameof(RB_WarehouseOut_Apply_Extend.OutStatus)}={query.OutStatus}"); builder.Append($" AND a.{nameof(RB_WarehouseOut_Apply_Extend.OutStatus)}={query.OutStatus}");
} }
} }
builder.Append($" order by a.{nameof(RB_WarehouseOut_Apply_Extend.ID)} desc");
return GetPage<RB_WarehouseOut_Apply_Extend>(pageIndex, pageSize, out rowCount, builder.ToString()).ToList(); return GetPage<RB_WarehouseOut_Apply_Extend>(pageIndex, pageSize, out rowCount, builder.ToString()).ToList();
} }
...@@ -95,7 +97,7 @@ LEFT JOIN (SELECT ApplyId,COUNT(*) as Delivered from rb_warehouseout_goods where ...@@ -95,7 +97,7 @@ LEFT JOIN (SELECT ApplyId,COUNT(*) as Delivered from rb_warehouseout_goods where
{ {
builder.Append($" AND a.{nameof(RB_WarehouseOut_Apply_Extend.ApplyStatus)}={query.ApplyStatus}"); builder.Append($" AND a.{nameof(RB_WarehouseOut_Apply_Extend.ApplyStatus)}={query.ApplyStatus}");
} }
} }
return Get<RB_WarehouseOut_Apply_Extend>(builder.ToString()).ToList(); return Get<RB_WarehouseOut_Apply_Extend>(builder.ToString()).ToList();
} }
......
...@@ -44,7 +44,10 @@ namespace Property.Repository ...@@ -44,7 +44,10 @@ namespace Property.Repository
{ {
where += " and sm." + nameof(RB_Supplies_Material.Name) + " like '%" + dmodel.SuppliesName.Trim() + "%'"; where += " and sm." + nameof(RB_Supplies_Material.Name) + " like '%" + dmodel.SuppliesName.Trim() + "%'";
} }
if (dmodel.Id > 0)
{
where += " and ss." + nameof(RB_Supplies_StockOut_Extend.Id) + "=" + dmodel.Id;
}
if (dmodel.WarehouseId > 0) { if (dmodel.WarehouseId > 0) {
where += " and ss." + nameof(RB_Supplies_StockOut_Extend.WarehouseId) + "=" + dmodel.WarehouseId; where += " and ss." + nameof(RB_Supplies_StockOut_Extend.WarehouseId) + "=" + dmodel.WarehouseId;
} }
......
...@@ -296,7 +296,7 @@ namespace Property.WebApi.Controllers.Mall ...@@ -296,7 +296,7 @@ namespace Property.WebApi.Controllers.Mall
RB_Supplies_StockOut_Extend demodel = new RB_Supplies_StockOut_Extend();//出库申请表,等会儿组装 RB_Supplies_StockOut_Extend demodel = new RB_Supplies_StockOut_Extend();//出库申请表,等会儿组装
demodel.WarehouseId = applyModel.WarehouseId; demodel.WarehouseId = applyModel.WarehouseId;
demodel.EmployeeId = applyModel.CreateBy; demodel.EmployeeId = oldModel.CreateBy;
demodel.CreateBy = userInfo.EmployeeId; demodel.CreateBy = userInfo.EmployeeId;
demodel.StockOutDate = NowStr; demodel.StockOutDate = NowStr;
demodel.StockOutState = REBORN.Common.Enum.StockOutStatusEnum.StockOut; demodel.StockOutState = REBORN.Common.Enum.StockOutStatusEnum.StockOut;
......
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