Examples of CarPhoneRandomNumber


Examples of org.luke.ct.model.CarPhoneRandomNumber

        log.info("該CarPhoneRandomNumber尚未到期");
        return list.get(0);
      } else {
        // 先檢查是否有相同的關結
        boolean notOnly = true;
        CarPhoneRandomNumber cprn = null;
        int count = 0;
        do {
          cprn = new CarPhoneRandomNumber();
          cprn.setCarID(carID);
          filter = String.format("randomID=='%s'", cprn.getRandomID());
          list = cprn_service.getPaginationData(filter, "deadTime desc").getResultList();
          if (null == list || list.size() == 0) {
            cprn_service.add(cprn);
            log.info("產生新的CarPhoneRandomNumber:" + JSON.toJSONString(cprn));
            notOnly = false;
View Full Code Here

Examples of org.luke.ct.model.CarPhoneRandomNumber

      log.info("使用randomID進行連結:" + randomID);
      String filter = String.format("randomID=='%s'", randomID);
      List<CarPhoneRandomNumber> list = cprn_service.getPaginationData(filter, "deadTime desc").getResultList();
      if (null != list && list.size() > 0) {
        log.info("找到配對的randomID:" + randomID);
        CarPhoneRandomNumber cprn = list.get(0);
        String carID = cprn.getCarID();

        // 清除使用亂數配對的記錄
        cprn_service.delete(cprn.getKey());

        filter = String.format("phoneID=='%s' && carID=='%s'", phoneID, carID);
        List<CarPhoneRelation> cpr_list = cpr_service.getPaginationData(filter).getResultList();
        CarPhoneRelation cpr = null;
        if (null != cpr_list && cpr_list.size() > 1) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.