23
This commit is contained in:
parent
42cf4b15f8
commit
676b5efa72
@ -50,12 +50,11 @@ GROUP BY [shopCode],[shopName], [shopId], [warehouseName], [warehouseCode], [s
|
|||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public List<PushOrderListResp> GetPushReturnOrder()
|
public List<PushOrderListResp> GetPushReturnOrder()
|
||||||
{
|
{
|
||||||
string sql = $@"
|
string sql = $@" SELECT [shopCode], [shopName], [shopId], [warehouseName], [warehouseCode],
|
||||||
SELECT [shopCode], [shopName], [shopId], [warehouseName], [warehouseCode],
|
|
||||||
[status], CONVERT(NVARCHAR(30),[consignTime],23) [consignTime],
|
[status], CONVERT(NVARCHAR(30),[consignTime],23) [consignTime],
|
||||||
[goodsNo], [goodsId],SUM([sellTotal]*-1) [sellTotal],
|
[goodsNo], [goodsId],SUM([sellTotal]*-1) [sellTotal],
|
||||||
SUM([returnCount]*-1) [sellCount], SUM([ShareShouldReturnFee]*-1) AS [divideSellTotal],
|
SUM([returnCount]*-1) [sellCount], SUM([ShareShouldReturnFee]*-1) AS [divideSellTotal],
|
||||||
[barcode], [TradeType] ,[warehouseId],Unit
|
convert(nvarchar(100),barcode) as [barcode], [TradeType] ,convert(nvarchar(100),[warehouseId]) as [warehouseId],Unit
|
||||||
FROM [JackOrders] a WITH (NOLOCK)
|
FROM [JackOrders] a WITH (NOLOCK)
|
||||||
LEFT JOIN [dbo].[ReturnChangeGoodsDetail] b WITH (NOLOCK)
|
LEFT JOIN [dbo].[ReturnChangeGoodsDetail] b WITH (NOLOCK)
|
||||||
ON a.id = b.JackOrdersId
|
ON a.id = b.JackOrdersId
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user