@ -49,6 +49,7 @@ public class AccidentQuartz {
log.info("=================120定时任务获取token失败===============");
}
} catch (Exception e) {
e.printStackTrace();
quartzLog.setStatus(2);
} finally {
quartzLogService.save(quartzLog);
@ -25,7 +25,7 @@ public class EventClassServiceImpl extends ServiceImpl<EventClassMapper, EventCl
@Override
public EventClass findByAccidentType(String accidentType) {
QueryWrapper<EventClass> wrapper = new QueryWrapper<>();
wrapper.eq("accident_type", accidentType);
wrapper.eq("accept_type", accidentType);
return baseMapper.selectOne(wrapper);