1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- package thyyxxk.wxservice_server.constant;
- /**
- * @description: 常量类
- * @author: DingJie
- * @create: 2021-04-30 09:26:56
- **/
- public class Constants {
- public static final String OS_NAME = "osName";
- public static final String WINDOWS_10 = "Windows 10";
- public static class Capacity {
- public static final int DEFAULT = 1;
- public static final int TWO = 2;
- public static final int ELEVEN = 11;
- }
- public static class MzClass {
- public static final String GYNAECOLOGY = "03";
- }
- public static class MzDept {
- public static final String[] PEDIATRICS =
- new String[] {"1040000","1040100","1040200","1700001","1700002"};
- public static boolean isPediatrics(String deptCode) {
- for (String pediatric : PEDIATRICS) {
- if (deptCode.equals(pediatric)) {
- return true;
- }
- }
- return false;
- }
- }
- public static class Exception {
- public static final String CONNECT_EXCEPTION = "ConnectException";
- public static final String ILLEGAL_ID_START = "K";
- }
- public static class CommonLength {
- public static final int PHONE = 11;
- public static final int ID_CARD = 18;
- }
- public static class HealthCardBatchRegister {
- public static final int SUCCESS = 1;
- public static final int INVALID_ID_NUMBER = 2;
- }
- }
|