mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-10-31 18:28:43 +08:00 
			
		
		
		
	完成岗位的迁移
This commit is contained in:
		| @@ -1,54 +0,0 @@ | ||||
| package com.ruoyi.common.constant; | ||||
|  | ||||
| /** | ||||
|  * 用户常量信息 | ||||
|  * | ||||
|  * @author ruoyi | ||||
|  */ | ||||
| public class UserConstants | ||||
| { | ||||
|     /** | ||||
|      * 平台内系统用户的唯一标志 | ||||
|      */ | ||||
|     public static final String SYS_USER = "SYS_USER"; | ||||
|  | ||||
|     /** 正常状态 */ | ||||
|     public static final String NORMAL = "0"; | ||||
|  | ||||
|     /** 异常状态 */ | ||||
|     public static final String EXCEPTION = "1"; | ||||
|  | ||||
|     /** 用户封禁状态 */ | ||||
|     public static final String USER_DISABLE = "1"; | ||||
|  | ||||
|     /** 角色封禁状态 */ | ||||
|     public static final String ROLE_DISABLE = "1"; | ||||
|  | ||||
|     /** 部门正常状态 */ | ||||
|     public static final String DEPT_NORMAL = "0"; | ||||
|  | ||||
|     /** 部门停用状态 */ | ||||
|     public static final String DEPT_DISABLE = "1"; | ||||
|  | ||||
|     /** 字典正常状态 */ | ||||
|     public static final String DICT_NORMAL = "0"; | ||||
|  | ||||
|     /** 是否为系统默认(是) */ | ||||
|     public static final String YES = "Y"; | ||||
|  | ||||
|     /** 是否菜单外链(是) */ | ||||
|     public static final String YES_FRAME = "0"; | ||||
|  | ||||
|     /** 是否菜单外链(否) */ | ||||
|     public static final String NO_FRAME = "1"; | ||||
|  | ||||
|     /** Layout组件标识 */ | ||||
|     public final static String LAYOUT = "Layout"; | ||||
|  | ||||
|     /** ParentView组件标识 */ | ||||
|     public final static String PARENT_VIEW = "ParentView"; | ||||
|  | ||||
|     /** 校验返回结果码 */ | ||||
|     public final static String UNIQUE = "0"; | ||||
|     public final static String NOT_UNIQUE = "1"; | ||||
| } | ||||
| @@ -1,44 +0,0 @@ | ||||
| package com.ruoyi.common.core.controller; | ||||
|  | ||||
| import java.beans.PropertyEditorSupport; | ||||
| import java.util.Date; | ||||
| import java.util.List; | ||||
|  | ||||
| import org.slf4j.Logger; | ||||
| import org.slf4j.LoggerFactory; | ||||
| import org.springframework.web.bind.WebDataBinder; | ||||
| import org.springframework.web.bind.annotation.InitBinder; | ||||
| import com.github.pagehelper.PageHelper; | ||||
| import com.github.pagehelper.PageInfo; | ||||
| import com.ruoyi.common.constant.HttpStatus; | ||||
| import com.ruoyi.common.core.domain.AjaxResult; | ||||
| import com.ruoyi.common.core.page.PageDomain; | ||||
| import com.ruoyi.common.core.page.TableDataInfo; | ||||
| import com.ruoyi.common.core.page.TableSupport; | ||||
| import com.ruoyi.common.utils.DateUtils; | ||||
| import com.ruoyi.common.utils.StringUtils; | ||||
| import com.ruoyi.common.utils.sql.SqlUtil; | ||||
|  | ||||
| /** | ||||
|  * web层通用数据处理 | ||||
|  * | ||||
|  * @author ruoyi | ||||
|  */ | ||||
| public class BaseController { | ||||
|     protected final Logger logger = LoggerFactory.getLogger(BaseController.class); | ||||
|  | ||||
|     /** | ||||
|      * 将前台传递过来的日期格式的字符串,自动转化为Date类型 | ||||
|      */ | ||||
|     @InitBinder | ||||
|     public void initBinder(WebDataBinder binder) { | ||||
|         // Date 类型转换 | ||||
|         binder.registerCustomEditor(Date.class, new PropertyEditorSupport() { | ||||
|             @Override | ||||
|             public void setAsText(String text) { | ||||
|                 setValue(DateUtils.parseDate(text)); | ||||
|             } | ||||
|         }); | ||||
|     } | ||||
|  | ||||
| } | ||||
| @@ -1,36 +0,0 @@ | ||||
| package com.ruoyi.common.enums; | ||||
|  | ||||
| import java.util.HashMap; | ||||
| import java.util.Map; | ||||
| import org.springframework.lang.Nullable; | ||||
|  | ||||
| /** | ||||
|  * 请求方式 | ||||
|  * | ||||
|  * @author ruoyi | ||||
|  */ | ||||
| public enum HttpMethod | ||||
| { | ||||
|     GET, HEAD, POST, PUT, PATCH, DELETE, OPTIONS, TRACE; | ||||
|  | ||||
|     private static final Map<String, HttpMethod> mappings = new HashMap<>(16); | ||||
|  | ||||
|     static | ||||
|     { | ||||
|         for (HttpMethod httpMethod : values()) | ||||
|         { | ||||
|             mappings.put(httpMethod.name(), httpMethod); | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     @Nullable | ||||
|     public static HttpMethod resolve(@Nullable String method) | ||||
|     { | ||||
|         return (method != null ? mappings.get(method) : null); | ||||
|     } | ||||
|  | ||||
|     public boolean matches(String method) | ||||
|     { | ||||
|         return (this == resolve(method)); | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user
	 YunaiV
					YunaiV