//package com.trs.project.openweb2;
//
//import com.alibaba.fastjson.JSONArray;
//import com.alibaba.fastjson.JSONObject;
//import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
//
//import com.trs.project.entity.GcNoticeandfile;
//import com.trs.project.util.RSAUtils;
//import com.trs.project.util.Result;
//import org.apache.commons.text.StringEscapeUtils;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Controller;
//import org.springframework.web.bind.annotation.*;
//import org.springframework.web.client.RestTemplate;
//
//import java.util.List;
//
//@Controller
//public class OpenController {
//
//    @Autowired
//    private RestTemplate restTemplate;
//
//
//    @RequestMapping(value = "/list",method = {RequestMethod.GET})
//    @ResponseBody
//    @CrossOrigin
//    public Object listedCompany()  {
//        for(int i = 1; i < 10 ; i++){
//            try{
//                JSONObject jsonObject = httpGetMethod("https://ggzyjy.nmg.gov.cn/adminNmg/api/down.do?platform_code=e64975be&table_name=GC_BIDPUBLICITY&page="+i+"&page_size=20&startTime=1587028822000");
//                String data = RSAUtils.decrypt(jsonObject.getString("data"));
////                String data1 = "CVHFzWsPuR+fLNjWuBXvXYNSPQQ+FXVm8XEqVlcuBfMl18wZtA5y4Vt4V8uDhb1ta/l6JJmoa/mYpmFLy8EJ0L7o8cEeaVn+dZw0TMl1w7BJECTN2jHc2R17z1avYmLB6ufHlzY6siIRvcYvLurfQ86wRzWEODUnxUe7NAdLBJY=";
////                System.out.println(RSAUtils.decrypt(data1));
//                JSONArray jsonArray = JSONArray.parseArray(data);
//                for(int j=0;j<jsonArray.size();j++){
//                    Object o = jsonArray.get(j);
//                    JSONObject jsonObject1 = JSONObject.parseObject(o.toString());
//                    String notice_content = jsonObject1.getString("NOTICE_CONTENT");
//                    String escaped = StringEscapeUtils.unescapeHtml3(notice_content);
//                    System.out.println(notice_content);
//                }
////                System.out.println(data);
//            }catch (Exception e){
//                e.printStackTrace();
//            }
//        }
//        return Result.OK(1);
//    }
//    //http方法
//    public JSONObject httpGetMethod(String uri){
//        JSONObject response = restTemplate.getForObject(uri,JSONObject.class);
//        return response;
//    }
//
//}
