| | |
| | | </sql> |
| | | <!-- resultType="com.qianwen.mdc.collect.entity.iotdb.DeviceState" --> |
| | | <select id="lastSyncedNoFeedbackPointState" resultMap="BaseResultMap"> |
| | | select <include refid="all_columns" /> FROM root.f2.aggregate_state_${workstationId} |
| | | select <include refid="all_columns" /> FROM root.f2.state_${workstationId} |
| | | where is_sync=true and is_fix_point=false and feedback_point_type=0 and is_deleted=false |
| | | order by time desc limit 1 |
| | | </select> |
| | | |
| | | <select id="firstNotSyncedNofeedbackPointState" resultMap="BaseResultMap"> |
| | | select <include refid="all_columns" /> FROM root.f2.aggregate_state_${workstationId} |
| | | select <include refid="all_columns" /> FROM root.f2.state_${workstationId} |
| | | where is_sync=false and is_fix_point=false and feedback_point_type=0 and is_deleted=false |
| | | order by time asc limit 1 |
| | | </select> |