Commit f4f52056 by 潘诗林

宁波财资接入优加:去掉优加单笔转账单笔查证定时任务

1 parent ee90b518
package cn.com.glsx.dj.financial.job;
import cn.com.glsx.dj.financial.constants.CommonConstants;
import cn.com.glsx.dj.financial.enums.NbCbCustEnum;
import cn.com.glsx.dj.financial.service.nb.NbCbTransferService;
import com.dangdang.ddframe.job.api.ShardingContext;
import com.dangdang.ddframe.job.api.simple.SimpleJob;
import lombok.extern.slf4j.Slf4j;
import org.oreframework.boot.autoconfigure.elasticjob.annotation.ElasticJobConf;
import org.springframework.beans.factory.annotation.Autowired;
/**
* 优加-定时调用宁波银行单笔转账单笔查证
*/
@Slf4j
@ElasticJobConf(name = "NbCbYJQueryTransferJob", cron = "0 0/5 * * * ?", description = "优加-定时调用宁波银行单笔转账单笔查证", overwrite = false)
public class NbCbYJQueryTransferJob implements SimpleJob {
@Autowired
private NbCbTransferService transferService;
@Override
public void execute(ShardingContext shardingContext) {
log.info("----------------优加-定时调用宁波银行单笔转账单笔查证任务开始-----------------");
try {
transferService.queryTransfer(shardingContext.getJobParameter(), CommonConstants.MIDDLE_WARE, NbCbCustEnum.YJ_CUST.getCustType());
} catch (Exception e) {
log.error(e.getMessage(), e);
}
log.info("----------------优加-定时调用宁波银行单笔转账单笔查证任务结束-----------------");
}
}
//package cn.com.glsx.dj.financial.job;
//
//import cn.com.glsx.dj.financial.constants.CommonConstants;
//import cn.com.glsx.dj.financial.enums.NbCbCustEnum;
//import cn.com.glsx.dj.financial.service.nb.NbCbTransferService;
//import com.dangdang.ddframe.job.api.ShardingContext;
//import com.dangdang.ddframe.job.api.simple.SimpleJob;
//import lombok.extern.slf4j.Slf4j;
//import org.oreframework.boot.autoconfigure.elasticjob.annotation.ElasticJobConf;
//import org.springframework.beans.factory.annotation.Autowired;
//
///**
// * 优加-定时调用宁波银行单笔转账单笔查证
// */
//@Slf4j
//@ElasticJobConf(name = "NbCbYJQueryTransferJob", cron = "0 0/5 * * * ?", description = "优加-定时调用宁波银行单笔转账单笔查证", overwrite = false)
//public class NbCbYJQueryTransferJob implements SimpleJob {
//
// @Autowired
// private NbCbTransferService transferService;
//
//
// @Override
// public void execute(ShardingContext shardingContext) {
// log.info("----------------优加-定时调用宁波银行单笔转账单笔查证任务开始-----------------");
// try {
// transferService.queryTransfer(shardingContext.getJobParameter(), CommonConstants.MIDDLE_WARE, NbCbCustEnum.YJ_CUST.getCustType());
// } catch (Exception e) {
// log.error(e.getMessage(), e);
// }
// log.info("----------------优加-定时调用宁波银行单笔转账单笔查证任务结束-----------------");
//
// }
//}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!