操作日志新增状态查询&热部署重启菜单丢失修复

pull/82/head
RuoYi 2019-04-03 17:39:41 +08:00
parent 1790fceda9
commit 9312fe6dfb
6 changed files with 13 additions and 18 deletions

View File

@ -28,7 +28,6 @@
<oshi.version>3.9.1</oshi.version> <oshi.version>3.9.1</oshi.version>
<commons.io.version>2.5</commons.io.version> <commons.io.version>2.5</commons.io.version>
<commons.fileupload.version>1.3.3</commons.fileupload.version> <commons.fileupload.version>1.3.3</commons.fileupload.version>
<commons.beanutils.version>1.9.3</commons.beanutils.version>
<jsoup.version>1.11.3</jsoup.version> <jsoup.version>1.11.3</jsoup.version>
<poi.version>3.17</poi.version> <poi.version>3.17</poi.version>
<velocity.version>1.7</velocity.version> <velocity.version>1.7</velocity.version>
@ -138,13 +137,6 @@
<version>${commons.fileupload.version}</version> <version>${commons.fileupload.version}</version>
</dependency> </dependency>
<!-- 简化反射封工具类 -->
<dependency>
<groupId>commons-beanutils</groupId>
<artifactId>commons-beanutils</artifactId>
<version>${commons.beanutils.version}</version>
</dependency>
<!-- HTML解析器 --> <!-- HTML解析器 -->
<dependency> <dependency>
<groupId>org.jsoup</groupId> <groupId>org.jsoup</groupId>

View File

@ -6,7 +6,7 @@ ruoyi:
version: 3.3.0 version: 3.3.0
# 版权年份 # 版权年份
copyrightYear: 2019 copyrightYear: 2019
# 文件上传 # 文件路径
profile: D:/profile/ profile: D:/profile/
# 获取ip地址开关 # 获取ip地址开关
addressEnabled: true addressEnabled: true

View File

@ -22,6 +22,12 @@
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option> <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select> </select>
</li> </li>
<li>
<label>操作状态:</label><select name="status" th:with="type=${@dict.getType('sys_common_status')}">
<option value="">所有</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</li>
<li class="select-time"> <li class="select-time">
<label>操作时间: </label> <label>操作时间: </label>
<input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[beginTime]"/> <input type="text" class="time-input" id="startTime" placeholder="开始时间" name="params[beginTime]"/>
@ -118,7 +124,7 @@
if (value == 0) { if (value == 0) {
return '<span class="badge badge-primary">成功</span>'; return '<span class="badge badge-primary">成功</span>';
} else if (value == 1) { } else if (value == 1) {
return '<span class="badge badge-danger">异常</span>'; return '<span class="badge badge-danger">失败</span>';
} }
} }
}, },

View File

@ -59,12 +59,6 @@
<artifactId>commons-fileupload</artifactId> <artifactId>commons-fileupload</artifactId>
</dependency> </dependency>
<!-- 简化反射封工具类 -->
<dependency>
<groupId>commons-beanutils</groupId>
<artifactId>commons-beanutils</artifactId>
</dependency>
<!-- HTML解析器 --> <!-- HTML解析器 -->
<dependency> <dependency>
<groupId>org.jsoup</groupId> <groupId>org.jsoup</groupId>

View File

@ -11,7 +11,7 @@ import java.util.regex.Pattern;
* *
* @author ruoyi * @author ruoyi
*/ */
public class BeanUtils extends org.apache.commons.beanutils.BeanUtils public class BeanUtils extends org.springframework.beans.BeanUtils
{ {
/** Bean方法名中属性名开始的下标 */ /** Bean方法名中属性名开始的下标 */
private static final int BEAN_METHOD_PROP_INDEX = 3; private static final int BEAN_METHOD_PROP_INDEX = 3;
@ -32,7 +32,7 @@ public class BeanUtils extends org.apache.commons.beanutils.BeanUtils
{ {
try try
{ {
copyProperties(dest, src); copyProperties(src, dest);
} }
catch (Exception e) catch (Exception e)
{ {

View File

@ -40,6 +40,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="businessType != null"> <if test="businessType != null">
AND business_type = #{businessType} AND business_type = #{businessType}
</if> </if>
<if test="status != null">
AND status = #{status}
</if>
<if test="operName != null and operName != ''"> <if test="operName != null and operName != ''">
AND oper_name like concat('%', #{operName}, '%') AND oper_name like concat('%', #{operName}, '%')
</if> </if>