lxw
2023-08-15 160e150009b51a39fa95d9462c3798ba28d51a09
src/main/java/com/whyc/service/AlarmVoiceSetService.java
@@ -29,7 +29,7 @@
        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();
@@ -113,7 +113,7 @@
    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){