Commit a53b41be authored by 黄奎's avatar 黄奎

页面修改

parent fa6a4a1c
......@@ -249,7 +249,7 @@ ORDER BY t.orderNum desc ";
{
StringBuilder builder = new StringBuilder();
builder.AppendFormat(@"
SELECT DISTINCT A.*
SELECT DISTINCT A.*,IFNULL(orderTab.OrderNum,0) AS OrderNum
FROM RB_Reserve_ServicePersonal AS A
INNER JOIN
(
......@@ -259,6 +259,13 @@ INNER JOIN
UNION
SELECT * FROM rb_reserve_servicepersonalproduct WHERE ServiceType=1 AND `Status`=0 AND ProductId IN({1})
) AS B ON A.ID=B.ServiceId
LEFT JOIN
(
SELECT detailB.ServicepersonalId,COUNT(1) AS OrderNum
FROM rb_goods_order AS orderA INNER JOIN rb_goods_orderdetail AS detailB ON orderA.OrderId=detailB.OrderId
WHERE 1=1 AND orderA.OrderStatus NOT IN(7)
GROUP BY detailB.ServicepersonalId
) AS orderTab ON A.ID=orderTab.OrderNum
WHERE A.Status=0 AND A.StoreId={2}
", productId, categoryIds, storeId);
return Get<RB_Reserve_ServicePersonal_Extend>(builder.ToString()).ToList();
......
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