| | |
| | | long nextTimestamp = currentTimeMillis+nextTimeInterval*60*1000; |
| | | set.setNextTimestamp(nextTimestamp); |
| | | set.setUserId(userId); |
| | | set.setStatus(1); |
| | | set.setStatus(0); |
| | | Integer battGroupId = set.getBattGroupId(); |
| | | Long deviceId = set.getDeviceId(); |
| | | Long powerDeviceId = set.getPowerDeviceId(); |
| | |
| | | |
| | | public AlarmVoiceSet getNextTimeInterval(Long userId, int type, Long specialId, int alarmType) { |
| | | QueryWrapper<AlarmVoiceSet> query = Wrappers.query(); |
| | | query.eq("user_id",userId).eq("alarm_type",alarmType); |
| | | query.eq("user_id",userId).eq("alarm_type",alarmType).eq("status",1); |
| | | if(type == 1){ |
| | | query.eq("batt_group_id",specialId); |
| | | }else if(type ==2){ |