Explorar el Código

业主购买2月13号

guojing hace 5 años
padre
commit
385854d36e
Se han modificado 1 ficheros con 1 adiciones y 3 borrados
  1. 1 3
      whepi-web/src/main/resources/mapper/BuyMapper.xml

+ 1 - 3
whepi-web/src/main/resources/mapper/BuyMapper.xml

@@ -34,9 +34,7 @@
     <select id="status" resultType="com.bofeng.entity.Buy">
     <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 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}
        ( 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>
 
 
     <select id="selectCountNum" resultType="com.bofeng.entity.Buy">
     <select id="selectCountNum" resultType="com.bofeng.entity.Buy">