示例#1
0
 // 根据周期参数,返回相应的整形周期
 private Integer getCycle(Client client) {
   String paymentcycle = client.getPaymentcycle();
   if ("PayCyc_001".equals(paymentcycle)) {
     return MONTH;
   } else if ("PayCyc_002".equals(paymentcycle)) {
     return QUARTER;
   } else if ("PayCyc_003".equals(paymentcycle)) {
     return HALFAYEAR;
   } else if ("PayCyc_004".equals(paymentcycle)) {
     return YEAR;
   } else if ("PayCyc_005".equals(paymentcycle)) {
     return ONEOFF;
   } else {
     return null;
   }
 }