Commit 9458ae61 authored by 曹军's avatar 曹军

定义接口

parent 1a585e59
package com.bme.access.guangdong.job;
import com.bme.access.guangdong.service.EnterpriseService;
import com.bme.access.guangdong.service.InFactoryVehicleInfoService;
import com.bme.access.guangdong.service.*;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.EnableScheduling;
......@@ -18,6 +17,16 @@ public class UploadDataTask {
private EnterpriseService enterpriseService;
@Resource
private InFactoryVehicleInfoService inFactoryVehicleInfoService;
@Resource
private InAndOutDateService inAndOutDateService;
@Resource
private NoRoadVehicleInfoService noRoadVehicleInfoService;
@Resource
private ExceedEmissionVehicleService exceedEmissionVehicleService;
@Resource
private ControlMeasureService controlMeasureService;
@Resource
private PassedThroughService passedThroughService;
/**
* 上传企业信息
......@@ -34,41 +43,83 @@ public class UploadDataTask {
/**
* 进出厂车辆电子信息
* 进出厂车辆电子台账
* 一条进场,一条出场
*/
// @Scheduled(cron = "0 0/1 * * * *")
public void inAndOutInfo() {
log.info("上传进出厂车辆电子台账");
try {
inAndOutDateService.uploadInfo();
} catch (Exception e) {
log.error("上传进出厂车辆电子台账异常", e);
}
}
/**
* 厂内运输车辆电子台账
*/
// @Scheduled(cron = "0 0/1 * * * *")
public void inFactoryInfo() {
log.info("上传厂内车辆信息");
try {
inFactoryVehicleInfoService.uploadInfo();
} catch (Exception e) {
log.error("上传厂内车辆信息异常", e);
}
}
/**
* 非道路移动机械电子台账
*/
// @Scheduled(cron = "0 0/1 * * * *")
public void noNoRoadInfo() {
log.info("上传厂内车辆信息");
try {
noRoadVehicleInfoService.uploadInfo();
} catch (Exception e) {
log.error("上传厂内车辆信息异常", e);
}
}
/**
* 排放超标车辆名单表
*/
// @Scheduled(cron = "0 0/1 * * * *")
public void exceedEmissionVehicle() {
log.info("上传厂内车辆信息");
try {
exceedEmissionVehicleService.receiveInfo();
} catch (Exception e) {
log.error("上传厂内车辆信息异常", e);
}
}
/**
* 移动源管控措施表
*/
// @Scheduled(cron = "0 0/1 * * * *")
public void controlMeasure() {
log.info("上传厂内车辆信息");
try {
controlMeasureService.receiveInfo();
} catch (Exception e) {
log.error("上传厂内车辆信息异常", e);
}
}
/**
* 违规车辆通行车辆名单表
*/
/**
* 上传厂内车辆信息
*/
// @Scheduled(cron = "0 0/1 * * * *")
public void uploadInFactoryVehicleInfo() {
public void passedThrough() {
log.info("上传厂内车辆信息");
try {
inFactoryVehicleInfoService.uploadInfo();
passedThroughService.receiveInfo();
} catch (Exception e) {
log.error("上传厂内车辆信息异常", e);
}
}
}
package com.bme.access.guangdong.service;
import org.springframework.stereotype.Service;
@Service
public class ControlMeasureService {
public void receiveInfo() {
}
}
package com.bme.access.guangdong.service;
import org.springframework.stereotype.Service;
@Service
public class ExceedEmissionVehicleService {
public void receiveInfo() {
}
}
......@@ -5,4 +5,7 @@ import org.springframework.stereotype.Service;
@Service
public class InAndOutDateService {
public void uploadInfo() {
}
}
......@@ -4,4 +4,8 @@ import org.springframework.stereotype.Service;
@Service
public class NoRoadVehicleInfoService {
public void uploadInfo() {
}
}
package com.bme.access.guangdong.service;
import org.springframework.stereotype.Service;
@Service
public class PassedThroughService {
public void receiveInfo() {
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment