增加抓单类型

This commit is contained in:
余宇波 2025-11-18 11:02:53 +08:00
parent b484ce5490
commit 3baaae83fd
2 changed files with 4 additions and 3 deletions

View File

@ -35,7 +35,7 @@ namespace MyCode.Project.Repositories
FROM [JackOrders] a WITH (NOLOCK)
LEFT JOIN [dbo].[JackOrdersItem] b WITH (NOLOCK)
ON a.id = b.JackOrdersId
WHERE a.status = 0 and TradeType in (1,7) and sellCount <> 0
WHERE a.status = 0 and TradeType in (1,5,7) and sellCount <> 0
GROUP BY [shopCode],[shopName], [shopId], [warehouseName], [warehouseCode], [status], CONVERT(NVARCHAR(30),[consignTime],23) ,[goodsNo], [goodsId], [barcode] ,[warehouseId], [TradeType],Unit";
var list = this.SelectList<PushOrderListResp>(sql);
return list;

View File

@ -95,15 +95,16 @@ namespace MyCode.Project.Services.Implementation
TradeTypeList.Add(1);
TradeTypeList.Add(7);
TradeTypeList.Add(8);
TradeTypeList.Add(5);
List<TradesItem> trades = new List<TradesItem>();
TradeTypeList.ForEach(ty =>
{
requestBizData.TradeType = ty;
string lggl = JsonHelper.ToJson(requestBizData);
LogHelper.Info(lggl);
LogHelper.Info("TradeType:==" + ty.ToString() + " " + lggl);
JackyunResponse response = Call(EnumAttribute.GetAttribute(ApiEnum.TRADEFULLINFOGET).Value, "1.0", requestBizData);
string ll = JsonHelper.ToJson(response);
LogHelper.Info(ll);
LogHelper.Info("TradeType:=="+ ty.ToString() + " "+ll);
if (response.code == "200")
{