server_five_liuyunhu
liuyunhu 2024-04-06 11:37:22 +08:00
parent 9b0121446a
commit e885895016
5 changed files with 4 additions and 7 deletions

View File

@ -54,7 +54,7 @@ public class RemoteVehicleFallbackFactory implements FallbackFactory<RemoteVehic
@Override @Override
public Integer onOrOutLineByVIN(String params) { public Integer onOrOutLineByVIN(String params) {
log.error("车辆服务调用失败:" + cause.getMessage()); log.error("车辆服务调用失败:" + cause.getMessage());
return null; return 0;
} }
}; };
} }

View File

@ -3,7 +3,7 @@ package com.couplet.business.server.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.couplet.common.domain.CoupletTroubleCode; import com.couplet.common.domain.CoupletTroubleCode;
import com.couplet.common.domain.CoupletTroubleGrade; import com.couplet.common.domain.CoupletTroubleGrade;
import com.couplet.common.domain.CoupletTroubleType;
import com.couplet.common.domain.request.TroubleResp; import com.couplet.common.domain.request.TroubleResp;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
@ -19,7 +19,6 @@ 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<CoupletTroubleType> selectTroubleListByType();
List<CoupletTroubleGrade> selectTroubleListByGrade(); List<CoupletTroubleGrade> selectTroubleListByGrade();

View File

@ -39,9 +39,6 @@
</if> </if>
</where> </where>
</select> </select>
<select id="selectTroubleListByType" resultType="com.couplet.common.domain.CoupletTroubleType">
select * from couplet_trouble_type
</select>
<select id="selectTroubleListByGrade" resultType="com.couplet.common.domain.CoupletTroubleGrade"> <select id="selectTroubleListByGrade" resultType="com.couplet.common.domain.CoupletTroubleGrade">
select * from couplet_trouble_grade select * from couplet_trouble_grade
</select> </select>

View File

@ -23,7 +23,7 @@ import java.util.concurrent.TimeUnit;
@Component @Component
@Slf4j @Slf4j
@SuppressWarnings("all") @SuppressWarnings("all")
@RabbitListener(queues = "${mq.queueName}") @RabbitListener(queues = "queue")
public class MqConsumer { public class MqConsumer {
@Autowired @Autowired
private StringRedisTemplate redis; private StringRedisTemplate redis;

View File

@ -1 +1,2 @@
com.couplet.mq.config.RabbitMQConfig com.couplet.mq.config.RabbitMQConfig
com.couplet.mq.remote.factory.RemoteFenceFallbackFactory