server_five_liuyunhu
ffr 2024-04-06 11:50:56 +08:00
parent 1091b79e56
commit fe7a832714
3 changed files with 11 additions and 8 deletions

View File

@ -1,12 +1,10 @@
package com.couplet.common.redis.service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.BoundSetOperations;
import org.springframework.data.redis.core.HashOperations;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.data.redis.core.ValueOperations;
import org.springframework.data.redis.core.*;
import org.springframework.stereotype.Component;
import javax.annotation.Resource;
import java.util.*;
import java.util.concurrent.TimeUnit;
@ -18,7 +16,7 @@ import java.util.concurrent.TimeUnit;
@SuppressWarnings(value = {"unchecked", "rawtypes"})
@Component
public class RedisService {
@Autowired
@Resource
public RedisTemplate redisTemplate;
/**

View File

@ -31,8 +31,6 @@ public class VehicleDetectionController {
private VehicleDetectionService vehicleDetectionService;
@Autowired
private RabbitTemplate rabbitTemplate;
@Autowired
private RedisTemplate<String, Object> redisTemplate;
private final String REDIS_LIST_KEY = "coupletMsgData";
/*
* @param :

View File

@ -18,6 +18,7 @@ import java.util.List;
public interface SysTroubleMapper extends BaseMapper<CoupletTroubleCode> {
List<CoupletTroubleCode> selectTroubleList(TroubleResp troubleReq);
List<CoupletTroubleGrade> selectTroubleListByGrade();
/**
@ -26,7 +27,13 @@ public interface SysTroubleMapper extends BaseMapper<CoupletTroubleCode> {
*/
void newFaultData(CoupletTroubleCode code);
void cleanTroubleCode();
int insertMsgResq(CoupletTroubleCode coupletTroubleCode);
void cleanTroubleCode();
// int addTrouble(TroubleAddReq troubleAddReq);
// int updateTrouble(TroubleUpdReq troubleUpdReq);
}