| | |
| | | |
| | | alarmVoiceSetService.delete(nextTimeIntervalSet.getId()); |
| | | }else{ //默认5分钟 |
| | | addedTimeMillis = 5*60*1000; |
| | | //addedTimeMillis = 1*60*1000; |
| | | //addedTimeMillis = 5*60*1000; |
| | | addedTimeMillis = 1*60*1000; |
| | | } |
| | | String readableVoiceTimeWithWavNew = currentTimeMillis+addedTimeMillis+".wav"; |
| | | //文件下次播放时间确定新的文件名 |
| | |
| | | |
| | | 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){ |