|
@@ -182,6 +182,10 @@ public class SampleXxlJob {
|
|
|
private MarginReturnCeService marginReturnCeService;
|
|
private MarginReturnCeService marginReturnCeService;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private ZcBidpublicityService zcBidpublicityService;
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 1、工程-招标公告与资格预审公告【GC_NOTICEANDFILE】
|
|
* 1、工程-招标公告与资格预审公告【GC_NOTICEANDFILE】
|
|
|
*/
|
|
*/
|
|
@@ -691,6 +695,11 @@ public class SampleXxlJob {
|
|
|
detailMethod(1);//1:post 0:get
|
|
detailMethod(1);//1:post 0:get
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ @XxlJob("task_ZC_BIDPUBLICITY")
|
|
|
|
|
+ public void ZC_BIDPUBLICITY() throws Exception {
|
|
|
|
|
+ detailMethod(1);//1:post 0:get
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
|
|
|
private void detailMethod(Integer type){
|
|
private void detailMethod(Integer type){
|
|
|
System.out.println("进来了==================");
|
|
System.out.println("进来了==================");
|
|
@@ -1235,6 +1244,12 @@ public class SampleXxlJob {
|
|
|
XxlJobHelper.log(param+":数据入库="+nmResultNotice.size());
|
|
XxlJobHelper.log(param+":数据入库="+nmResultNotice.size());
|
|
|
nmResultNoticeService.saveOrUpdateBatch(nmResultNotice);
|
|
nmResultNoticeService.saveOrUpdateBatch(nmResultNotice);
|
|
|
break;
|
|
break;
|
|
|
|
|
+ case "ZC_BIDPUBLICITY"://政府采购
|
|
|
|
|
+ List<ZcBidpublicity> zcBidpublicityList = JSONObject.parseArray(jsonArray.toJSONString(), ZcBidpublicity.class);
|
|
|
|
|
+ logger.info(param+":数据入库="+zcBidpublicityList.size());
|
|
|
|
|
+ XxlJobHelper.log(param+":数据入库="+zcBidpublicityList.size());
|
|
|
|
|
+ zcBidpublicityService.saveOrUpdateBatch(zcBidpublicityList);
|
|
|
|
|
+ break;
|
|
|
case "JSGC_ProjectJHInfo"://39、工程招标计划【GC_JIHUAN_INFO】
|
|
case "JSGC_ProjectJHInfo"://39、工程招标计划【GC_JIHUAN_INFO】
|
|
|
List<GcJihuaInfo> gcJihuaInfos = JSONObject.parseArray(jsonArray.toJSONString(), GcJihuaInfo.class);
|
|
List<GcJihuaInfo> gcJihuaInfos = JSONObject.parseArray(jsonArray.toJSONString(), GcJihuaInfo.class);
|
|
|
for (GcJihuaInfo gcJihuaInfo : gcJihuaInfos) {
|
|
for (GcJihuaInfo gcJihuaInfo : gcJihuaInfos) {
|
|
@@ -1356,7 +1371,7 @@ public class SampleXxlJob {
|
|
|
String announcementCode = jsonArray.getJSONObject(j).getString("NOTICE_CODE");//公告编号
|
|
String announcementCode = jsonArray.getJSONObject(j).getString("NOTICE_CODE");//公告编号
|
|
|
String announcementTitle = jsonArray.getJSONObject(j).getString("NOTICE_NAME");//公告标题
|
|
String announcementTitle = jsonArray.getJSONObject(j).getString("NOTICE_NAME");//公告标题
|
|
|
String announcementContent = jsonArray.getJSONObject(j).getString("ANNOUNCEMENT_CONNECT");//公告内容
|
|
String announcementContent = jsonArray.getJSONObject(j).getString("ANNOUNCEMENT_CONNECT");//公告内容
|
|
|
- String regionCode = "";//地区代码
|
|
|
|
|
|
|
+ String regionCode = jsonArray.getJSONObject(j).getString("REGION_CODE");//地区代码
|
|
|
Long issueTime = jsonArray.getJSONObject(j).getLong("NOTICE_SEND_TIME");//发布时间
|
|
Long issueTime = jsonArray.getJSONObject(j).getLong("NOTICE_SEND_TIME");//发布时间
|
|
|
String unifiedDealCode = jsonArray.getJSONObject(j).getString("UNIFIED_DEAL_CODE");//统一交易编码
|
|
String unifiedDealCode = jsonArray.getJSONObject(j).getString("UNIFIED_DEAL_CODE");//统一交易编码
|
|
|
String platformCode = jsonArray.getJSONObject(j).getString("PLATFORM_CODE");//平台编码
|
|
String platformCode = jsonArray.getJSONObject(j).getString("PLATFORM_CODE");//平台编码
|
|
@@ -1375,7 +1390,7 @@ public class SampleXxlJob {
|
|
|
String announcementCode = jsonArray.getJSONObject(j).getString("NOTICE_CODE");//公告编号
|
|
String announcementCode = jsonArray.getJSONObject(j).getString("NOTICE_CODE");//公告编号
|
|
|
String announcementTitle = jsonArray.getJSONObject(j).getString("NOTICE_NAME");//公告标题
|
|
String announcementTitle = jsonArray.getJSONObject(j).getString("NOTICE_NAME");//公告标题
|
|
|
String announcementContent = jsonArray.getJSONObject(j).getString("ANNOUNCEMENT_CONNECT");//公告内容
|
|
String announcementContent = jsonArray.getJSONObject(j).getString("ANNOUNCEMENT_CONNECT");//公告内容
|
|
|
- String regionCode = "";//地区代码
|
|
|
|
|
|
|
+ String regionCode = jsonArray.getJSONObject(j).getString("REGION_CODE");//地区代码
|
|
|
Long issueTime = jsonArray.getJSONObject(j).getLong("NOTICE_SEND_TIME");//发布时间
|
|
Long issueTime = jsonArray.getJSONObject(j).getLong("NOTICE_SEND_TIME");//发布时间
|
|
|
String unifiedDealCode = jsonArray.getJSONObject(j).getString("UNIFIED_DEAL_CODE");//统一交易编码
|
|
String unifiedDealCode = jsonArray.getJSONObject(j).getString("UNIFIED_DEAL_CODE");//统一交易编码
|
|
|
String platformCode = jsonArray.getJSONObject(j).getString("PLATFORM_CODE");//平台编码
|
|
String platformCode = jsonArray.getJSONObject(j).getString("PLATFORM_CODE");//平台编码
|
|
@@ -1394,7 +1409,7 @@ public class SampleXxlJob {
|
|
|
String announcementCode = jsonArray.getJSONObject(j).getString("NOTICE_NO");//公告编号
|
|
String announcementCode = jsonArray.getJSONObject(j).getString("NOTICE_NO");//公告编号
|
|
|
String announcementTitle = jsonArray.getJSONObject(j).getString("NOTICE_NAME");//公告标题
|
|
String announcementTitle = jsonArray.getJSONObject(j).getString("NOTICE_NAME");//公告标题
|
|
|
String announcementContent = jsonArray.getJSONObject(j).getString("NOTICE_CONTENT");//公告内容
|
|
String announcementContent = jsonArray.getJSONObject(j).getString("NOTICE_CONTENT");//公告内容
|
|
|
- String regionCode = "ZONE";//地区代码
|
|
|
|
|
|
|
+ String regionCode = jsonArray.getJSONObject(j).getString("REGION_CODE");//地区代码
|
|
|
Long issueTime = jsonArray.getJSONObject(j).getLong("ISSUE_TIME");//发布时间
|
|
Long issueTime = jsonArray.getJSONObject(j).getLong("ISSUE_TIME");//发布时间
|
|
|
String unifiedDealCode = jsonArray.getJSONObject(j).getString("UNIFIED_DEAL_CODE");//统一交易编码
|
|
String unifiedDealCode = jsonArray.getJSONObject(j).getString("UNIFIED_DEAL_CODE");//统一交易编码
|
|
|
String platformCode = jsonArray.getJSONObject(j).getString("PLATFORM_CODE");//平台编码
|
|
String platformCode = jsonArray.getJSONObject(j).getString("PLATFORM_CODE");//平台编码
|
|
@@ -1413,7 +1428,7 @@ public class SampleXxlJob {
|
|
|
String announcementCode = jsonArray.getJSONObject(j).getString("NOTICE_NO");//公告编号
|
|
String announcementCode = jsonArray.getJSONObject(j).getString("NOTICE_NO");//公告编号
|
|
|
String announcementTitle = jsonArray.getJSONObject(j).getString("NOTICE_NAME");//公告标题
|
|
String announcementTitle = jsonArray.getJSONObject(j).getString("NOTICE_NAME");//公告标题
|
|
|
String announcementContent = jsonArray.getJSONObject(j).getString("NOTICE_CONTENT");//公告内容
|
|
String announcementContent = jsonArray.getJSONObject(j).getString("NOTICE_CONTENT");//公告内容
|
|
|
- String regionCode = "ZONE";//地区代码
|
|
|
|
|
|
|
+ String regionCode = jsonArray.getJSONObject(j).getString("REGION_CODE");//地区代码
|
|
|
Long issueTime = jsonArray.getJSONObject(j).getLong("ISSUE_TIME");//发布时间
|
|
Long issueTime = jsonArray.getJSONObject(j).getLong("ISSUE_TIME");//发布时间
|
|
|
String unifiedDealCode = jsonArray.getJSONObject(j).getString("UNIFIED_DEAL_CODE");//统一交易编码
|
|
String unifiedDealCode = jsonArray.getJSONObject(j).getString("UNIFIED_DEAL_CODE");//统一交易编码
|
|
|
String platformCode = jsonArray.getJSONObject(j).getString("PLATFORM_CODE");//平台编码
|
|
String platformCode = jsonArray.getJSONObject(j).getString("PLATFORM_CODE");//平台编码
|
|
@@ -1587,7 +1602,9 @@ public class SampleXxlJob {
|
|
|
zrzySupple.setAnnouncementCode(announcementCode);
|
|
zrzySupple.setAnnouncementCode(announcementCode);
|
|
|
zrzySupple.setAnnouncementTitle(announcementTitle);
|
|
zrzySupple.setAnnouncementTitle(announcementTitle);
|
|
|
zrzySupple.setAnnouncementContent(announcementContent);
|
|
zrzySupple.setAnnouncementContent(announcementContent);
|
|
|
- zrzySupple.setRegionCode(regionCode);
|
|
|
|
|
|
|
+ if(null != regionCode && !"".equals(regionCode)){
|
|
|
|
|
+ zrzySupple.setRegionCode(regionCode);
|
|
|
|
|
+ }
|
|
|
zrzySupple.setIssueTime(issueTime);
|
|
zrzySupple.setIssueTime(issueTime);
|
|
|
zrzySupple.setUnifiedDealCode(unifiedDealCode);
|
|
zrzySupple.setUnifiedDealCode(unifiedDealCode);
|
|
|
zrzySupple.setPlatformCode(platformCode);
|
|
zrzySupple.setPlatformCode(platformCode);
|