| | |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="getPointCount" resultType="long"> |
| | | select count(*) |
| | | from t_da_point t1 |
| | | left join t_da_point_collect_status t2 on t2.point_no = t1.point_no |
| | | <where> |
| | | <if test="isEnable != null "> |
| | | and t1.is_enable = #{isEnable} |
| | | </if> |
| | | <if test="collectQuality != null and collectQuality != ''"> |
| | | and t2.collect_quality = #{collectQuality} |
| | | </if> |
| | | <if test="startTime != null"> |
| | | and t2.collect_time >= #{startTime} |
| | | </if> |
| | | <if test="endTime != null"> |
| | | and t2.collect_time <= #{endTime} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | </mapper> |