|
@@ -153,6 +153,9 @@ public class SampleXxlJob {
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private GcJihuaInfoService gcJihuaInfoService;
|
|
private GcJihuaInfoService gcJihuaInfoService;
|
|
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private GcTenderbidfilepublicityService gcTenderbidfilepublicityService;
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 1、工程-招标公告与资格预审公告【GC_NOTICEANDFILE】
|
|
* 1、工程-招标公告与资格预审公告【GC_NOTICEANDFILE】
|
|
|
*/
|
|
*/
|
|
@@ -541,6 +544,14 @@ public class SampleXxlJob {
|
|
|
// detailMethod(0);//1:post 0:get
|
|
// detailMethod(0);//1:post 0:get
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 42、招标文件预公示【GcTenderbidfilepublicity】
|
|
|
|
|
+ */
|
|
|
|
|
+ @XxlJob("task_gcTenderbidfilepublicity")
|
|
|
|
|
+ public void gcTenderbidfilepublicity() throws Exception {
|
|
|
|
|
+ detailMethod(1);//1:post 0:get
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
|
|
private void detailMethod(Integer type){
|
|
private void detailMethod(Integer type){
|
|
@@ -1079,6 +1090,15 @@ public class SampleXxlJob {
|
|
|
XxlJobHelper.log(param+":数据入库="+gcJihuaInfos.size());
|
|
XxlJobHelper.log(param+":数据入库="+gcJihuaInfos.size());
|
|
|
gcJihuaInfoService.saveOrUpdateBatchSelective(gcJihuaInfos);
|
|
gcJihuaInfoService.saveOrUpdateBatchSelective(gcJihuaInfos);
|
|
|
break;
|
|
break;
|
|
|
|
|
+ case "GC_TENDERBIDFILEPUBLICITY"://39、工程招标计划【GC_JIHUAN_INFO】
|
|
|
|
|
+ List<GcTenderbidfilepublicity> gcTenderbidfilepublicitiesList = JSONObject.parseArray(jsonArray.toJSONString(), GcTenderbidfilepublicity.class);
|
|
|
|
|
+ for (GcTenderbidfilepublicity gcTenderbidfilepublicity : gcTenderbidfilepublicitiesList) {
|
|
|
|
|
+ gcTenderbidfilepublicity.setDataTimestamp(Long.parseLong(simpleDateFormat.format(new Date())));
|
|
|
|
|
+ }
|
|
|
|
|
+ logger.info(param+":数据入库="+gcTenderbidfilepublicitiesList.size());
|
|
|
|
|
+ XxlJobHelper.log(param+":数据入库="+gcTenderbidfilepublicitiesList.size());
|
|
|
|
|
+ gcTenderbidfilepublicityService.saveOrUpdateBatchSelective(gcTenderbidfilepublicitiesList);
|
|
|
|
|
+ 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<>();
|