Package cputils

Examples of cputils.CPHMTBService


  }
 
  @Override
  public void run() {
    //synchronized(CPHMService.class){
    CPHMTBService service = new CPHMTBService();
    try {
      service.writeTaobaoHMData(issueNo,userName, onsale);
    } catch (InterruptedException e) {
      e.printStackTrace();
    } catch (ExecutionException e) {
      e.printStackTrace();
    }
View Full Code Here


   * @throws IOException
   * @throws DocumentException
   */
  public static void main(String[] args) throws IOException, DocumentException {
    String issueNo = "2014043";
    CPHMTBService tService = new CPHMTBService();
    Map<String, Map<Integer, Integer>> tMap = tService.tjHM4Taobao(issueNo);
    System.out.println("TB");
    System.out.println(tMap);
    System.out.println("------------------------");
    CPHMWYService wService = new CPHMWYService();
    Map<String, Map<Integer, Integer>> wMap = wService.stat(issueNo);
View Full Code Here

  public static String[] gameNo = {"101","201"};
  public static List<String> issueList = null;
 
  public static void main(String[] args) {
    XmlUtils utils = new XmlUtils();
    CPHMTBService service = new CPHMTBService();
    Calendar c = Calendar.getInstance();
    //c.setTime(new SimpleDateFormat("yyyy-MM-dd").parse("2014-03-16"));
    int week = c.get(Calendar.DAY_OF_WEEK);
    String game = "DLT";
    String gameNo = "201";
    if (week == 1 || week == 3 || week == 5) {
      game = "SSQ";
      gameNo = "101";
    }
    Map<String, Object> infomMap = service.lastIssuoInfo(game);
    issueList = (List<String>) infomMap.get("issueList");
    help();
    String onsaleIssueNo = (String) infomMap.get("onsaleIssueNo");
    System.out.println(new SimpleDateFormat("yyyy-MM-dd E").format(c.getTime())
        +" "+game+" onsaleIssueNo:"+onsaleIssueNo);
View Full Code Here

TOP

Related Classes of cputils.CPHMTBService

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.