Commit 607bb70c authored by libin's avatar libin

佣金明细

parent c9f16ff3
...@@ -44,11 +44,11 @@ FROM ...@@ -44,11 +44,11 @@ FROM
IFNULL(auswt.status,0) AS `isShow` IFNULL(auswt.status,0) AS `isShow`
FROM FROM
( SELECT * FROM `app_user_selling_water` WHERE STATUS = 0 AND `user_id`=#{userId} <if test="wating!=null"> ( SELECT * FROM `app_user_selling_water` WHERE STATUS = 0 AND `user_id`=#{userId} <if test="wating!=null">
AND `waiting`=#{wating} AND `waiting`=#{wating} <!--AND `status`=0-->
</if>) AS `ausw` </if>) AS `ausw`
LEFT JOIN ( SELECT * FROM `app_user_selling_water` WHERE STATUS = 1 AND `user_id`=#{userId} <if LEFT JOIN ( SELECT * FROM `app_user_selling_water` WHERE STATUS = 1 AND `user_id`=#{userId} <if
test="wating!=null"> test="wating!=null">
AND `waiting`=#{wating} AND `waiting`=#{wating} <!--AND `status`=0-->
</if>) AS `auswt` ON auswt.order_no = ausw.order_no </if>) AS `auswt` ON auswt.order_no = ausw.order_no
) AS `auswres` ) AS `auswres`
ORDER BY crt_time DESC ORDER BY crt_time DESC
......
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