| | |
| | | * Created by vincent on 2020/8/6 |
| | | */ |
| | | @Slf4j |
| | | @Service("ctuMainService") |
| | | @Service |
| | | @Transactional |
| | | @Data |
| | | public class CtuMainServiceImpl implements CtuMainService { |
| | |
| | | @Value("${ctu.sendTask}") |
| | | private String sendTask; |
| | | |
| | | private String code ="code"; |
| | | private String code = "code"; |
| | | |
| | | private String dataCode ="data"; |
| | | private String dataCode = "data"; |
| | | |
| | | private Integer codeValue =200; |
| | | private Integer codeValue = 200; |
| | | |
| | | private Integer timeout = 1200; |
| | | |
| | |
| | | } |
| | | log.info("未返回站点状态:{}", staNo); |
| | | } else { |
| | | log.error("调用下发任务接口报错,响应码:{},响应内容:{}", jsonObject.getInteger("code"), response); |
| | | throw new CoolException("调用下发任务接口报错,响应码:" + jsonObject.getInteger("code")); |
| | | log.error("调用下发任务接口报错,响应码:{},响应内容:{}", jsonObject.getInteger(code), response); |
| | | throw new CoolException("调用下发任务接口报错,响应码:" + jsonObject.getInteger(code)); |
| | | } |
| | | } catch (CoolException e) { |
| | | log.error("调用站点状态接口异常", e); |
| | |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | |
| | | } |