📄 constants.java
字号:
/**
*
*/
package com.seavision.PermissionManage.help;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Timer;
/**
* @author jian.li
*/
public class Constants {
public static long APPLY_ACCOUNT_BIZCODEID = 99;
/**
* 错误提示:名称重复
*/
public static final String NAME_EXISTED = "名称重复";
/**
* 错误提示:不存在
*/
public static final String ID_NOT_EXISTED = "不存在";
/**
* 成功标志
*/
public static final String SUCCESS = "success";
/**
* 出错标志
*/
public static final String FAILURE = "failure";
/**
* 出错标志
*/
public static final String ERROR = "error";
/**
* 出错标志
*/
public static final String LOGIN_ERROR = "login_error";
/**
* messageBean在request中key值
*/
public static final String MESSAGE_BEAN_KEY = "MESSAGEBEAN";
/**
* 成功消息ID
*/
public static final int MESSAGE_SUCCESS_ID = 1;
/**
* 出错消息ID
*/
public static final int MESSAGE_FAILURE_ID = 2;
/**
* 定时器配置
*/
public static Timer timer = new Timer();
public static int ISUSED_OPEN = 0;
public static int ISUSED_CLOSE = 1;
public static int MOBILE_CREATE_TYPE_SMS = 0;
public static int MOBILE_CREATE_TYPE_SOFT = 1;
public static int MOBILE_CREATE_TYPE_REPORT = 2;
public static int MOBILE_CLOSE_TYPE_SMS = 0;
public static int MOBILE_CLOSE_TYPE_SOFT = 1;
public static int MOBILE_CLOSE_TYPE_REPORT = 2;
public static int MOBILE_CLOSE_TYPE_ACCOUNT_CLOSE = 3;
public static int MOBILE_CLOSE_TYPE_ALL = 9999;
public static int ISPAY_FALSE = 0;
public static int ISPAY_TRUE = 1;
public static int ACCOUNT_CREATE_TYPE_APPLY = 0;
public static int ACCOUNT_CREATE_TYPE_BATCH_APPLY = 1;
public static int MONTHPAY_IS_SUCCESS_FALSE = 0;
public static int MONTHPAY_IS_SUCCESS_TRUE = 1;
/**
* @param format yyyy-MM-dd HH:mm:ss.SSS 2006-12-08 16:01:24.796
* @return
*/
public static String getNowInFormat(String format) {
Date now = new Date();
SimpleDateFormat sdf = new SimpleDateFormat(format);
String yearmonth = sdf.format(now);
return yearmonth;
}
public static CheckTime ct = new CheckTime();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -