| | |
| | | */ |
| | | 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 QYWX_TOKEN = "QYWX_TOKEN"; |
| | | public static final String QYWX_AGENTID = "QYWX_AGENTID"; |
| | | public static final String QYWX_JS_API_TICKET = "QYWX_JS_API_TICKET"; |
| | | public static final String JUMP_OUT_URL = "JUMP_OUT_URL"; |
| | | |
| | | |
| | | public static final String QYWX = "QYWX"; |
| | |
| | | public static final Integer FOUR = 4; |
| | | public static final Integer SIX = 6; |
| | | public static final Integer FIVE = 5; |
| | | public static final String QRCODE_URLS = "QRCODE_URLS"; |
| | | public static final String SHE_QRCODES_URL = "SHE_QRCODES_URL"; |
| | | public static final String DCA_QRCODES_URL = "DCA_QRCODES_URL"; |
| | | public static final String DBH_QRCODES_URL = "DBH_QRCODES_URL"; |
| | | public static boolean WORKORDER_SHE_EMAIL_SENDING = false; |
| | | public static boolean DEALING_COMPANY_SYNC = false ; |
| | | public static boolean DEALING_MEMBER_SYNC = false ; |
| | |
| | | public static final String WORKORDER_LOG_FILE_PATH ="WORKORDER_LOG_FILE_PATH" ; |
| | | |
| | | public static final String REDIS_TOKEN_KEY = "token_"; |
| | | public interface uploadType{ |
| | | String blob = "blob"; |
| | | String ftp = "ftp"; |
| | | } |
| | | |
| | | /** |
| | | * 缓存Key |
| | | */ |
| | | interface CacheKey { |
| | | } |
| | | |
| | | public interface RedisKeys { |
| | | public static final String IMPORTING_CATEGORY = "IMPORTING_CATEGORY"; |
| | | } |
| | | /** |
| | | * 操作类型,用于做接口验证分组 |
| | | */ |
| | |
| | | |
| | | |
| | | public enum WorkOrderStatus{ |
| | | waitConfirm( 0, "待分配WTS","{title}上报",""), |
| | | waitAllocation(1, "待分配任务","待分配任务",""), |
| | | waitDeal(2, "待处理","待处理",""), |
| | | sheClose(3, "已解决","SHE已关闭",""), |
| | | wtsClose(4, "已解决","WTS已关闭",""), |
| | | close(5, "已解决","已解决",""), |
| | | urge (6, "催促","","") |
| | | waitConfirm( 0, "待分配WTS","{title}上报","","待分配WTS" ), |
| | | waitAllocation(1, "待分配任务","待分配任务","","待分配任务"), |
| | | waitDeal(2, "待处理","待处理","","待工程师处理"), |
| | | sheClose(3, "已解决","SHE已关闭","","SHE已关闭"), |
| | | wtsClose(4, "已解决","WTS已关闭","","WTS已关闭"), |
| | | close(5, "已解决","已解决","","工程师关闭"), |
| | | urge (6, "催促","","","") |
| | | ; |
| | | |
| | | private int status; |
| | | private String statusInfo; |
| | | private String statusName; |
| | | private String logTitle; |
| | | private String noticeContent; |
| | | |
| | | // 构造方法 |
| | | WorkOrderStatus(int status, String statusInfo,String logTitle,String noticeContent ) { |
| | | WorkOrderStatus(int status, String statusInfo,String logTitle,String noticeContent,String statusName ) { |
| | | this.status = status; |
| | | this.statusInfo = statusInfo; |
| | | this.logTitle = logTitle; |
| | | this.noticeContent = noticeContent; |
| | | this.statusName = statusName; |
| | | } |
| | | public static String getName(int index) { |
| | | for (WorkOrderStatus c : WorkOrderStatus.values()) { |
| | | if (c.getKey() == index) { |
| | | return c.statusInfo; |
| | | } |
| | | } |
| | | return null; |
| | | } |
| | | public static String getStatusName(int index) { |
| | | for (WorkOrderStatus c : WorkOrderStatus.values()) { |
| | | if (c.getKey() == index) { |
| | | return c.statusName; |
| | | } |
| | | } |
| | | return null; |
| | |
| | | this.status = status; |
| | | } |
| | | |
| | | public int getStatus() { |
| | | return status; |
| | | } |
| | | |
| | | public void setStatus(int status) { |
| | | this.status = status; |
| | | } |
| | | |
| | | public String getStatusName() { |
| | | return statusName; |
| | | } |
| | | |
| | | public void setStatusName(String statusName) { |
| | | this.statusName = statusName; |
| | | } |
| | | |
| | | public String getStatusInfo() { |
| | | return statusInfo; |
| | | } |