Commit edb2014f authored by 黄奎's avatar 黄奎

页面修改

parent 7deae418
......@@ -347,16 +347,20 @@ ORDER BY t.orderNum desc ";
{
StringBuilder builder = new StringBuilder();
builder.AppendFormat(@"
SELECT DISTINCT A.*,IFNULL(orderTab.OrderNum,0) AS OrderNum
FROM RB_Reserve_ServicePersonal AS A
INNER JOIN
(
SELECT * FROM rb_reserve_servicepersonalproduct WHERE ServiceType=3 AND `Status`=0
UNION
SELECT * FROM rb_reserve_servicepersonalproduct WHERE ServiceType=2 AND `Status`=0 AND ProductId={0}
UNION
SELECT * FROM rb_reserve_servicepersonalproduct WHERE ServiceType=1 AND `Status`=0 AND ProductId IN({1})
) AS B ON A.ID=B.ServiceId
SELECT DISTINCT A.*,IFNULL(orderTab.OrderNum,0) AS OrderNum
FROM(
SELECT A.*
FROM RB_Reserve_ServicePersonal AS A
WHERE A.Status=0 AND A.ServiceType=3
UNION ALL
SELECT A.*
FROM RB_Reserve_ServicePersonal AS A INNER JOIN rb_reserve_servicepersonalproduct AS C ON A.ServiceType=C.ServiceType AND C.`Status`=0 AND C.ProductId={0}
WHERE A.Status=0 AND A.ServiceType=2
UNION ALL
SELECT A.*
FROM RB_Reserve_ServicePersonal AS A INNER JOIN rb_reserve_servicepersonalproduct AS D ON A.ServiceType=D.ServiceType AND D.`Status`=0 AND D.ProductId IN({1})
WHERE A.Status=0 AND A.ServiceType=1
) AS A
LEFT JOIN
(
SELECT detailB.ServicepersonalId,COUNT(1) AS OrderNum
......@@ -364,7 +368,7 @@ LEFT JOIN
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}
WHERE A.Status=0 AND A.storeId={2}
", productId, categoryIds, storeId);
if (servicePersionId > 0)
{
......
......@@ -68,7 +68,8 @@ namespace Mall.WebApi.Controllers.Reserve
{
CurrentPosition = position,
Id = storeId,
MallBaseId = parms.MallBaseId
MallBaseId = parms.MallBaseId,
OrderByType=3,
}, isFirst: true)?.FirstOrDefault();
var consumptionObj = new object();
if (userInfo != null && userInfo.UserId > 0)
......
{
"ConnectionStrings": {
"DefaultConnection": "server=192.168.1.214;user id=reborn;password=Reborn@2018;database=test_reborn_mall_3;CharSet=utf8mb4; Convert Zero Datetime=true; ",
"DefaultConnection": "server=192.168.1.214;user id=reborn;password=Reborn@2018;database=reborn_mall;CharSet=utf8mb4; Convert Zero Datetime=true; ",
"DefaultConnectionPName": "MySql.Data.MySqlClient",
"FinanceConnection": "server=192.168.1.214;user id=reborn;password=Reborn@2018;database=reborn_finance;CharSet=utf8mb4; Convert Zero Datetime=true; ",
"FinanceConnectionPName": "MySql.Data.MySqlClient",
......
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