server_five_liuyunhu
lijiayao 2024-04-02 21:36:23 +08:00
parent a9977b44a9
commit 00369a6052
3 changed files with 11 additions and 16 deletions

View File

@ -22,26 +22,10 @@ import java.util.List;
@RequestMapping("/incident")
public class IncidentController extends BaseController {
/**
*
*/
static List<String> list=new ArrayList<>(){
{
add("breakdown");
add("electronic-fence");
add("real-time-data");
add("stored-event");
}
};
/**
*
*/
@Autowired
private IncidentService incidentService;
}

View File

@ -10,5 +10,9 @@ import org.apache.ibatis.annotations.Mapper;
*/
@Mapper
public interface IncidentMapper {
/**
*
* @param coupletMsgData
*/
public void reportMapper(CoupletMsgData coupletMsgData);
}

View File

@ -2,6 +2,8 @@ package com.couplet.analyze.msg.service.impl;
import com.couplet.analyze.msg.domain.CoupletMsgData;
import com.couplet.analyze.msg.service.IncidentService;
import com.couplet.common.log.annotation.Log;
import lombok.extern.log4j.Log4j2;
import org.springframework.stereotype.Service;
/**
@ -10,6 +12,7 @@ import org.springframework.stereotype.Service;
* @Description:
*/
@Service("breakdown")
@Log4j2
public class BreakdownServiceImpl implements IncidentService {
/**
*
@ -19,6 +22,10 @@ public class BreakdownServiceImpl implements IncidentService {
@Override
public void incident(CoupletMsgData coupletMsgData) {
log.info("故障事件开始.....");
log.info("故障事件结束.....");
}
/**