|
@@ -150,6 +150,9 @@ public class SampleXxlJob {
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private ZfcgGongaoService zfcgGongaoService;
|
|
private ZfcgGongaoService zfcgGongaoService;
|
|
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private GcJihuaInfoService gcJihuaInfoService;
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 1、工程-招标公告与资格预审公告【GC_NOTICEANDFILE】
|
|
* 1、工程-招标公告与资格预审公告【GC_NOTICEANDFILE】
|
|
|
*/
|
|
*/
|
|
@@ -506,6 +509,14 @@ public class SampleXxlJob {
|
|
|
detailMethod(0);//1:post 0:get
|
|
detailMethod(0);//1:post 0:get
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 41、工程招标计划【GcJihuaInfo】
|
|
|
|
|
+ */
|
|
|
|
|
+ @XxlJob("task_gciihuainfo")
|
|
|
|
|
+ public void gciihuainfo() throws Exception {
|
|
|
|
|
+ detailMethod(0);//1:post 0:get
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
|
|
private void detailMethod(Integer type){
|
|
private void detailMethod(Integer type){
|
|
@@ -913,6 +924,15 @@ public class SampleXxlJob {
|
|
|
XxlJobHelper.log(param+":数据入库="+nmResultNotice.size());
|
|
XxlJobHelper.log(param+":数据入库="+nmResultNotice.size());
|
|
|
nmResultNoticeService.saveOrUpdateBatch(nmResultNotice);
|
|
nmResultNoticeService.saveOrUpdateBatch(nmResultNotice);
|
|
|
break;
|
|
break;
|
|
|
|
|
+ case "JSGC_ProjectJHInfo"://39、工程招标计划【GC_JIHUAN_INFO】
|
|
|
|
|
+ List<GcJihuaInfo> gcJihuaInfos = JSONObject.parseArray(jsonArray.toJSONString(), GcJihuaInfo.class);
|
|
|
|
|
+ for (GcJihuaInfo gcJihuaInfo : gcJihuaInfos) {
|
|
|
|
|
+ gcJihuaInfo.setDataTimestamp(Long.parseLong(simpleDateFormat.format(new Date())));
|
|
|
|
|
+ }
|
|
|
|
|
+ logger.info(param+":数据入库="+gcJihuaInfos.size());
|
|
|
|
|
+ XxlJobHelper.log(param+":数据入库="+gcJihuaInfos.size());
|
|
|
|
|
+ gcJihuaInfoService.saveOrUpdateBatch(gcJihuaInfos);
|
|
|
|
|
+ break;
|
|
|
case "ZFCG_GONGAO"://38、政府采购【ZfcgGongao】
|
|
case "ZFCG_GONGAO"://38、政府采购【ZfcgGongao】
|
|
|
List<Gongao> gongaoList = JSONObject.parseArray(jsonArray.toJSONString(), Gongao.class);
|
|
List<Gongao> gongaoList = JSONObject.parseArray(jsonArray.toJSONString(), Gongao.class);
|
|
|
List<ZfcgGongao> gongaoDbList = new ArrayList<>();
|
|
List<ZfcgGongao> gongaoDbList = new ArrayList<>();
|