mirror of https://gitee.com/y_project/RuoYi.git
优化代码
parent
f3d1f0afe2
commit
70205922fc
|
@ -63,11 +63,7 @@ public class SysProfileController extends BaseController
|
||||||
public boolean checkPassword(String password)
|
public boolean checkPassword(String password)
|
||||||
{
|
{
|
||||||
SysUser user = getSysUser();
|
SysUser user = getSysUser();
|
||||||
if (passwordService.matches(user, password))
|
return passwordService.matches(user, password);
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/resetPwd")
|
@GetMapping("/resetPwd")
|
||||||
|
|
|
@ -181,7 +181,7 @@ $('#smartwizard').smartWizard({
|
||||||
enableURLhash: true, // Enable selection of the step based on url hash
|
enableURLhash: true, // Enable selection of the step based on url hash
|
||||||
transition: {
|
transition: {
|
||||||
animation: 'none', // Effect on navigation, none/fade/slide-horizontal/slide-vertical/slide-swing
|
animation: 'none', // Effect on navigation, none/fade/slide-horizontal/slide-vertical/slide-swing
|
||||||
speed: '400', // Transion animation speed
|
speed: '400', // Transition animation speed
|
||||||
easing:'' // Transition animation easing. Not supported without a jQuery easing plugin
|
easing:'' // Transition animation easing. Not supported without a jQuery easing plugin
|
||||||
},
|
},
|
||||||
toolbarSettings: {
|
toolbarSettings: {
|
||||||
|
|
|
@ -713,7 +713,7 @@ public class Convert
|
||||||
}
|
}
|
||||||
if (value instanceof Double)
|
if (value instanceof Double)
|
||||||
{
|
{
|
||||||
return new BigDecimal((Double) value);
|
return BigDecimal.valueOf((Double) value);
|
||||||
}
|
}
|
||||||
if (value instanceof Integer)
|
if (value instanceof Integer)
|
||||||
{
|
{
|
||||||
|
|
|
@ -18,6 +18,14 @@ public interface SysConfigMapper
|
||||||
*/
|
*/
|
||||||
public SysConfig selectConfig(SysConfig config);
|
public SysConfig selectConfig(SysConfig config);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 通过ID查询配置
|
||||||
|
*
|
||||||
|
* @param configId 参数ID
|
||||||
|
* @return 参数配置信息
|
||||||
|
*/
|
||||||
|
public SysConfig selectConfigById(Long configId);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询参数配置列表
|
* 查询参数配置列表
|
||||||
*
|
*
|
||||||
|
|
|
@ -59,6 +59,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
<select id="selectConfigById" parameterType="Long" resultMap="SysConfigResult">
|
||||||
|
<include refid="selectConfigVo"/>
|
||||||
|
where config_id = #{configId}
|
||||||
|
</select>
|
||||||
|
|
||||||
<select id="checkConfigKeyUnique" parameterType="String" resultMap="SysConfigResult">
|
<select id="checkConfigKeyUnique" parameterType="String" resultMap="SysConfigResult">
|
||||||
<include refid="selectConfigVo"/>
|
<include refid="selectConfigVo"/>
|
||||||
where config_key = #{configKey} limit 1
|
where config_key = #{configKey} limit 1
|
||||||
|
|
Loading…
Reference in New Issue