1111
parent
1091b79e56
commit
fe7a832714
|
@ -1,12 +1,10 @@
|
||||||
package com.couplet.common.redis.service;
|
package com.couplet.common.redis.service;
|
||||||
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.data.redis.core.BoundSetOperations;
|
import org.springframework.data.redis.core.*;
|
||||||
import org.springframework.data.redis.core.HashOperations;
|
|
||||||
import org.springframework.data.redis.core.RedisTemplate;
|
|
||||||
import org.springframework.data.redis.core.ValueOperations;
|
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
|
import javax.annotation.Resource;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
|
|
||||||
|
@ -18,7 +16,7 @@ import java.util.concurrent.TimeUnit;
|
||||||
@SuppressWarnings(value = {"unchecked", "rawtypes"})
|
@SuppressWarnings(value = {"unchecked", "rawtypes"})
|
||||||
@Component
|
@Component
|
||||||
public class RedisService {
|
public class RedisService {
|
||||||
@Autowired
|
@Resource
|
||||||
public RedisTemplate redisTemplate;
|
public RedisTemplate redisTemplate;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -31,8 +31,6 @@ public class VehicleDetectionController {
|
||||||
private VehicleDetectionService vehicleDetectionService;
|
private VehicleDetectionService vehicleDetectionService;
|
||||||
@Autowired
|
@Autowired
|
||||||
private RabbitTemplate rabbitTemplate;
|
private RabbitTemplate rabbitTemplate;
|
||||||
@Autowired
|
|
||||||
private RedisTemplate<String, Object> redisTemplate;
|
|
||||||
private final String REDIS_LIST_KEY = "coupletMsgData";
|
private final String REDIS_LIST_KEY = "coupletMsgData";
|
||||||
/*
|
/*
|
||||||
* @param :
|
* @param :
|
||||||
|
|
|
@ -18,6 +18,7 @@ import java.util.List;
|
||||||
public interface SysTroubleMapper extends BaseMapper<CoupletTroubleCode> {
|
public interface SysTroubleMapper extends BaseMapper<CoupletTroubleCode> {
|
||||||
List<CoupletTroubleCode> selectTroubleList(TroubleResp troubleReq);
|
List<CoupletTroubleCode> selectTroubleList(TroubleResp troubleReq);
|
||||||
|
|
||||||
|
|
||||||
List<CoupletTroubleGrade> selectTroubleListByGrade();
|
List<CoupletTroubleGrade> selectTroubleListByGrade();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -26,7 +27,13 @@ public interface SysTroubleMapper extends BaseMapper<CoupletTroubleCode> {
|
||||||
*/
|
*/
|
||||||
void newFaultData(CoupletTroubleCode code);
|
void newFaultData(CoupletTroubleCode code);
|
||||||
|
|
||||||
|
void cleanTroubleCode();
|
||||||
|
|
||||||
int insertMsgResq(CoupletTroubleCode coupletTroubleCode);
|
int insertMsgResq(CoupletTroubleCode coupletTroubleCode);
|
||||||
|
|
||||||
void cleanTroubleCode();
|
|
||||||
|
|
||||||
|
// int addTrouble(TroubleAddReq troubleAddReq);
|
||||||
|
|
||||||
|
// int updateTrouble(TroubleUpdReq troubleUpdReq);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue