示例#1
0
文件: QuoteDAO.java 项目: thaond/pm2
 private Map map(String stockCode, PMDate frmDate, PMDate toDate) {
   Map paramMap = new HashMap();
   if (stockCode != null) paramMap.put("StockCode", stockCode);
   if (frmDate != null) paramMap.put("fromDate", frmDate.getIntVal());
   if (toDate != null) paramMap.put("toDate", toDate.getIntVal());
   return paramMap;
 }
示例#2
0
 public SyncStatus getSyncStat() {
   SyncStatus state = MustSync;
   PMDate today = new PMDate();
   if (getLastRunStatus()) {
     if (isInSync(today)) {
       state = InSync;
     } else if (today.before(nextRunDate())) {
       state = CanSync;
     }
   }
   return state;
 }
示例#3
0
文件: QuoteDAO.java 项目: thaond/pm2
 public EquityQuote quote(StockVO stockVO, PMDate date) {
   Map paramMap = new HashMap();
   paramMap.put("StockID", stockVO.getId());
   paramMap.put("PMDate", date.getIntVal());
   return (EquityQuote) super.queryForObject("getQuoteForStockIDDate", paramMap);
 }
示例#4
0
文件: QuoteDAO.java 项目: thaond/pm2
 public List<EquityQuote> getQuotes(PMDate date) {
   return (List<EquityQuote>) super.queryForList("getQuoteForDate", date.getIntVal());
 }
示例#5
0
文件: QuoteDAO.java 项目: thaond/pm2
 public EquityQuote getQuote(String stockCode, PMDate date) {
   Map paramMap = new HashMap();
   paramMap.put("StockCode", stockCode);
   paramMap.put("PMDate", date.getIntVal());
   return (EquityQuote) super.queryForObject("getQuoteForStockDate", paramMap);
 }