|
@@ -16,9 +16,9 @@ import org.springframework.stereotype.Component;
|
|
|
*
|
|
|
*/
|
|
|
@Slf4j
|
|
|
-@Component
|
|
|
+// @Component
|
|
|
public class RecycleDownload {
|
|
|
- @Value("${recycledownc}")
|
|
|
+/* @Value("${recycledownc}")
|
|
|
private String recycledownc = "";
|
|
|
@Value("${recyclefkdownc}")
|
|
|
private String recyclefkdownc = "";
|
|
@@ -33,7 +33,7 @@ public class RecycleDownload {
|
|
|
@Autowired
|
|
|
RecycleAssignLogic recycleAssignLogic;
|
|
|
@Autowired
|
|
|
- RecycleAcquisitionLogic recycleAcquisitionLogic;
|
|
|
+ RecycleAcquisitionLogic recycleAcquisitionLogic;*/
|
|
|
|
|
|
|
|
|
/** 未同步->已同步反馈明细->已同步采集数据->同步到业务表->已同步
|
|
@@ -42,7 +42,7 @@ public class RecycleDownload {
|
|
|
* 记录表中的任务号每单独一个任务号;本次拉取数据批次号相同
|
|
|
* @throws Exception
|
|
|
*/
|
|
|
- @Scheduled(fixedDelayString = "${recycledown}")
|
|
|
+/* @Scheduled(fixedDelayString = "${recycledown}")
|
|
|
public void download() throws Exception {
|
|
|
if (recycledownc.equals(TaskConfigEnum.FALSE.getCode())){
|
|
|
return;
|
|
@@ -56,7 +56,7 @@ public class RecycleDownload {
|
|
|
recycleAssignParamBean.setPage("1");
|
|
|
recycleAssignParamBean.setPageSize("100");
|
|
|
recycleAssignLogic.assign(recycleAssignParamBean);
|
|
|
- }
|
|
|
+ }*/
|
|
|
|
|
|
/**
|
|
|
* 2:从总部获取工单的反馈明细数据 - 只确认刚下载的(SynStatus=greeStatSynStatus=0) 有业务处理过的回收工单不做与总部的确认动作
|
|
@@ -65,7 +65,7 @@ public class RecycleDownload {
|
|
|
* 失败时 记录表、过程反馈、明细表,状态记录 SynStatus=99
|
|
|
* @throws Exception
|
|
|
*/
|
|
|
- @Scheduled(fixedDelayString = "${recyclefkdown}")
|
|
|
+/* @Scheduled(fixedDelayString = "${recyclefkdown}")
|
|
|
private void updateFkmx() throws Exception {
|
|
|
if (recyclefkdownc.equals(TaskConfigEnum.FALSE.getCode())){
|
|
|
return;
|
|
@@ -74,7 +74,7 @@ public class RecycleDownload {
|
|
|
// 获取工单的反馈明细数据 记录表状态改为44
|
|
|
// 失败时最多重复10次
|
|
|
recycleAssignLogic.updateFeedback();
|
|
|
- }
|
|
|
+ }*/
|
|
|
|
|
|
/**
|
|
|
* 3:从总部获取回收工单对应的采集数据、附件数据、条码明细数据 - 只获取已成功获取反馈明细的工单 (SynStatus=44 greeStatSynStatus=0)
|
|
@@ -82,7 +82,7 @@ public class RecycleDownload {
|
|
|
* 失败 三个表与记录表状态 SynStatus=99
|
|
|
* @throws Exception
|
|
|
*/
|
|
|
- @Scheduled(fixedDelayString = "${recyclecjdown}")
|
|
|
+/* @Scheduled(fixedDelayString = "${recyclecjdown}")
|
|
|
private void updateAcquisition() {
|
|
|
if (recyclecjdownc.equals(TaskConfigEnum.FALSE.getCode())){
|
|
|
return;
|
|
@@ -91,7 +91,7 @@ public class RecycleDownload {
|
|
|
// 下载回收工单采集表数据、附件数据、条码明细数据 记录表及三表状态为66
|
|
|
// 失败时 SynStatus=99 下次也不再同步 最好加上 99 的及次数
|
|
|
recycleAcquisitionLogic.updateAcquisition();
|
|
|
- }
|
|
|
+ }*/
|
|
|
|
|
|
/**
|
|
|
* 4:与总部进行确认下载完成 - 只确认成功获取采集数据的工单 (SynStatus=66 greeStatSynStatus=0)
|
|
@@ -104,7 +104,7 @@ public class RecycleDownload {
|
|
|
* 回收明细表 改状态 gree_stat_syn_status = 99
|
|
|
* @throws Exception
|
|
|
*/
|
|
|
- @Scheduled(fixedDelayString = "${recycleverifydown}")
|
|
|
+/* @Scheduled(fixedDelayString = "${recycleverifydown}")
|
|
|
private void updateExtend() throws Exception {
|
|
|
if (recycleverifydownc.equals(TaskConfigEnum.FALSE.getCode())){
|
|
|
return;
|
|
@@ -112,20 +112,20 @@ public class RecycleDownload {
|
|
|
|
|
|
// 与总部进行确认
|
|
|
recycleAssignLogic.updateExtend();
|
|
|
- }
|
|
|
+ }*/
|
|
|
|
|
|
/**
|
|
|
* 5:同步到业务表
|
|
|
* @throws Exception
|
|
|
*/
|
|
|
- @Scheduled(fixedDelayString = "${recyclein}")
|
|
|
+/* @Scheduled(fixedDelayString = "${recyclein}")
|
|
|
private void updateRecycleAssignDownloadEntity2Business() {
|
|
|
if (recycleinc.equals(TaskConfigEnum.FALSE.getCode())){
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
recycleAssignLogic.processBusiness();
|
|
|
- }
|
|
|
+ }*/
|
|
|
|
|
|
|
|
|
}
|