|  |  | 
 |  |  |         INNER JOIN rm_intake_amount_day riad ON riad.intake_id = inta.id | 
 |  |  |         WHERE inta.deleted = 0 and riad.dt >= #{timeStart} AND riad.dt <= #{timeStop} | 
 |  |  |         GROUP BY inta.id | 
 |  |  |         HAVING value > #{value} | 
 |  |  |         HAVING valueInt > #{value} | 
 |  |  |         ) c | 
 |  |  |     </select> | 
 |  |  |     <!--指定时间段内取水次数超过指定值的取水口--> | 
 |  |  | 
 |  |  |         INNER JOIN rm_intake_amount_day riad ON riad.intake_id = inta.id | 
 |  |  |         WHERE inta.deleted = 0 and riad.dt >= #{timeStart} AND riad.dt <= #{timeStop} | 
 |  |  |         GROUP BY inta.id | 
 |  |  |         HAVING value > #{value} | 
 |  |  |         HAVING valueInt > #{value} | 
 |  |  |         ORDER BY inta.id | 
 |  |  |         <trim prefix="limit " > | 
 |  |  |             <if test="start != null and count != null"> |