Commit 1b0b226e authored by hezhen's avatar hezhen

123

parent e3cf2d73
...@@ -62,7 +62,8 @@ FROM ...@@ -62,7 +62,8 @@ FROM
) AS `f` ON e.order_no = f.order_no ) AS `f` ON e.order_no = f.order_no
--> -->
SELECT wa.* FROM
(
SELECT w.*,o.commission as commission ,<!--o.type--> CASE SELECT w.*,o.commission as commission ,<!--o.type--> CASE
WHEN fcommission>0 THEN WHEN fcommission>0 THEN
(CASE (CASE
...@@ -83,11 +84,11 @@ FROM ...@@ -83,11 +84,11 @@ FROM
) o LEFT JOIN ( SELECT order_no,user_id,source_id,order_type,img,price,title,waiting,`crt_time` FROM ) o LEFT JOIN ( SELECT order_no,user_id,source_id,order_type,img,price,title,waiting,`crt_time` FROM
app_user_selling_water WHERE app_user_selling_water WHERE
id IN ( SELECT MAX( id ) FROM app_user_selling_water GROUP BY order_no)) w id IN ( SELECT MAX( id ) FROM app_user_selling_water GROUP BY order_no)) w
ON o.order_no=w.order_no ON o.order_no=w.order_no ) wa
where 1=1 where 1=1
<if test="wating!=null"> <if test="wating!=null">
and `waiting`= #{wating} and <![CDATA[ and wa.waiting= #{wating} and <![CDATA[
o.`type`<>1 ]]> wa.sellerStatus<>1 ]]>
</if> </if>
ORDER BY `crt_time` ORDER BY `crt_time`
</select> </select>
......
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