|
@@ -34,9 +34,7 @@
|
|
|
<select id="status" resultType="com.bofeng.entity.Buy">
|
|
|
SELECT a.tg_status, a.tg_price, IFNULL(( SELECT SUM(b.buy_count) FROM jm_buy b WHERE a.jm_id = b.jm_id AND buy_status = 1 ), 0 ) AS count,
|
|
|
( SELECT phone FROM sys_user_role aa INNER JOIN sys_uptown_home bb ON aa.property_id = bb.house_id WHERE aa.role_id = 1 AND aa.user_id = #{userId}
|
|
|
- LIMIT 1 ) AS phone FROM jm_tuangou a WHERE a.jm_id = #{jmId}
|
|
|
- AND a.user_id = #{userId}
|
|
|
- LIMIT 1
|
|
|
+ LIMIT 1 ) AS phone FROM jm_tuangou a WHERE a.jm_id = #{jmId} LIMIT 1
|
|
|
</select>
|
|
|
|
|
|
<select id="selectCountNum" resultType="com.bofeng.entity.Buy">
|