Here you can find the source of getMonthCountByBillMode(String billMode)
Parameter | Description |
---|---|
billMode | a parameter |
public static Integer getMonthCountByBillMode(String billMode)
//package com.java2s; public class Main { /**/* w w w . ja va2 s .c om*/ * Description Get month count by bill mode. * * @param billMode * @return */ public static Integer getMonthCountByBillMode(String billMode) { Integer monthCount = null; if ("Y".equals(billMode) || "A".equals(billMode)) { monthCount = 12; } else if ("S".equals(billMode)) { monthCount = 6; } else if ("Q".equals(billMode)) { monthCount = 3; } else if ("M".equals(billMode)) { monthCount = 1; } return monthCount; } }