| | |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Getter; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.*; |
| | | |
| | | /** |
| | |
| | | */ |
| | | public class Constants { |
| | | |
| | | public static final String AZURE_BLOB ="AZURE_BLOB" ; |
| | | public static final String AZURE_BLOB_ACCESSNAME ="AZURE_BLOB_ACCESSNAME" ; |
| | | public static final String AZURE_BLOB_ACCESSKEY ="AZURE_BLOB_ACCESSKEY" ; |
| | | public static final String AZURE_BLOB_ENDPOINT ="AZURE_BLOB_ENDPOINT" ; |
| | | public static final String AZURE_BLOB_CONTAINER ="AZURE_BLOB_CONTAINER" ; |
| | | public static final String FTP ="FTP" ; |
| | | public static final String FTP_HOST ="FTP_HOST" ; |
| | | public static final String FTP_PORT ="FTP_PORT" ; |
| | | public static final String FTP_USERNAME ="FTP_USERNAME" ; |
| | | public static final String FTP_PWD ="FTP_PWD" ; |
| | | public static final String FTP_RESOURCE_PATH ="FTP_RESOURCE_PATH" ; |
| | | public static final String FTP_LOCAL_RESOURCE_PATH ="FTP_LOCAL_RESOURCE_PATH" ; |
| | | public static final String HWY_OBS ="HWY_OBS" ; |
| | | public static final String HWY_OBS_ACCESSID ="HWY_OBS_ACCESSID" ; |
| | | public static final String HWY_OBS_ACCESSKEY ="HWY_OBS_ACCESSKEY" ; |
| | | public static final String HWY_OBS_ENDPOINT ="HWY_OBS_ENDPOINT" ; |
| | | public static final String HWY_OBS_BUCKET ="HWY_OBS_BUCKET" ; |
| | | public static final String RESOURCE_PATH ="RESOURCE_PATH" ; |
| | | public static final String QYWX_CORPID = "QYWX_CORPID"; |
| | | public static final String QYWX_SECRET = "QYWX_SECRET"; |
| | | public static final String QYWX_TOKEN = "QYWX_TOKEN"; |
| | |
| | | public static final Integer FOUR = 4; |
| | | public static final Integer SIX = 6; |
| | | public static final Integer FIVE = 5; |
| | | public static final String INENTITY_FILES = "INENTITY_FILES"; |
| | | public static final String MEMBER_FILES = "MEMBER_FILES"; |
| | | public static final String CATEGORY_FILES = "CATEGORY_FILES"; |
| | | public static boolean WORKORDER_SHE_EMAIL_SENDING = false; |
| | | public static boolean DEALING_COMPANY_SYNC = false ; |
| | | public static boolean DEALING_MEMBER_SYNC = false ; |
| | |
| | | d = 0; |
| | | } |
| | | return d.intValue(); |
| | | } |
| | | public static double getFormatMoney(Long d) { |
| | | BigDecimal r = new BigDecimal(formatLongNum(d)); |
| | | r = r.divide(new BigDecimal(100),2,BigDecimal.ROUND_HALF_UP); |
| | | |
| | | return r.doubleValue(); |
| | | } |
| | | |
| | | public static long formatLongNum(Long d) { |
| | |
| | | this.noticeContent = noticeContent; |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 用户收支业务类型 |
| | | * 变动类型:0=用工单收入;1=货运单收入;2=供餐单收入;3=提现申请; |
| | | */ |
| | | @Getter |
| | | public enum RevenueType { |
| | | |
| | | YGD_INCOME( 0, "用工单收入","用工单收入" ,0), |
| | | HYD_INCOME( 1, "货运单收入","货运单收入" ,0), |
| | | GCD_INCOME(2, "供餐单收入","供餐单收入" ,0), |
| | | WITHDRAW_APPLY(3, "提现申请","提现申请" ,0), |
| | | REFUND( 4, "提现申请退回","提现申请退回" ,0) |
| | | ; |
| | | |
| | | private int key; |
| | | private String name; |
| | | private String info; |
| | | private int navIndex; |
| | | |
| | | RevenueType(int key, String name, String info,int navIndex) { |
| | | this.info = info; |
| | | this.key = key; |
| | | this.name = name; |
| | | this.navIndex = navIndex; |
| | | } |
| | | public static RevenueType getObj(int index) { |
| | | for (RevenueType c : RevenueType.values()) { |
| | | if (c.getKey() == index) { |
| | | return c; |
| | | } |
| | | } |
| | | return null; |
| | | } |
| | | public static String getObjName(int index) { |
| | | for (RevenueType c : RevenueType.values()) { |
| | | if (c.getKey() == index) { |
| | | return c.getName(); |
| | | } |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | |
| | | } |
| | | } |