Exemple #1
0
 private Record changeToRecord(Meta meta) {
   Record record = new Record();
   record.setBank(meta.getBank());
   // TODO:要增加一个帐号管理,这里只是帐号的尾号
   record.setAccount(meta.getAccount());
   smsDateCalendar.setTime(meta.getSmsDate());
   record.setDateTime(
       dateAdapter.analysis(smsDateCalendar.get(Calendar.YEAR), meta.getDatetime()));
   String content = meta.getType();
   record.setDetail(content);
   BigDecimal money = new BigDecimal(meta.getSum());
   record.setMoney(money);
   record.setMoneyType(contentAdapter.analysis(content));
   return record;
 }