change - 参数配置功能添加显示标识、排序标识

main
wenjy 3 years ago
parent 9bd6fddf07
commit 3bd43a964a

@ -24,6 +24,20 @@
<input name="paramText" class="form-control" type="text"> <input name="paramText" class="form-control" type="text">
</div> </div>
</div> </div>
<div class="form-group">
<label class="col-sm-3 control-label">是否显示:</label>
<div class="col-sm-8">
<select name="visibleFlag" class="form-control m-b" th:with="type=${@dict.getType('enable_flag')}">
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">排序标识:</label>
<div class="col-sm-8">
<input name="orderFlag" class="form-control" type="text">
</div>
</div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">是否启用:</label> <label class="col-sm-3 control-label">是否启用:</label>
<div class="col-sm-8"> <div class="col-sm-8">

@ -25,6 +25,20 @@
<input name="paramText" th:field="*{paramText}" class="form-control" type="text"> <input name="paramText" th:field="*{paramText}" class="form-control" type="text">
</div> </div>
</div> </div>
<div class="form-group">
<label class="col-sm-3 control-label">是否显示:</label>
<div class="col-sm-8">
<select name="visibleFlag" class="form-control m-b" th:with="type=${@dict.getType('enable_flag')}">
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{visibleFlag}"></option>
</select>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">排序标识:</label>
<div class="col-sm-8">
<input name="orderFlag" th:field="*{orderFlag}" class="form-control" type="text">
</div>
</div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label">是否启用:</label> <label class="col-sm-3 control-label">是否启用:</label>
<div class="col-sm-8"> <div class="col-sm-8">

@ -91,6 +91,15 @@
{ {
field: 'paramText', field: 'paramText',
title: '参数说明' title: '参数说明'
},{
field: 'visibleFlag',
title: '是否显示',
formatter: function(value, row, index) {
return $.table.selectDictLabel(enableFlagDatas, value);
}
},{
field: 'orderFlag',
title: '排序标识'
}, },
{ {
field: 'enableFlag', field: 'enableFlag',

@ -34,6 +34,12 @@ public class SysParamConfig extends BaseEntity
@Excel(name = "是否启用") @Excel(name = "是否启用")
private Long enableFlag; private Long enableFlag;
/** 是否显示 */
private Integer visibleFlag;
/** 排序标识 */
private Long orderFlag;
public void setObjId(Long objId) public void setObjId(Long objId)
{ {
this.objId = objId; this.objId = objId;
@ -80,6 +86,22 @@ public class SysParamConfig extends BaseEntity
return enableFlag; return enableFlag;
} }
public Integer getVisibleFlag() {
return visibleFlag;
}
public void setVisibleFlag(Integer visibleFlag) {
this.visibleFlag = visibleFlag;
}
public Long getOrderFlag() {
return orderFlag;
}
public void setOrderFlag(Long orderFlag) {
this.orderFlag = orderFlag;
}
@Override @Override
public String toString() { public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)

@ -10,6 +10,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="paramTitle" column="Param_Title" /> <result property="paramTitle" column="Param_Title" />
<result property="paramText" column="Param_Text" /> <result property="paramText" column="Param_Text" />
<result property="enableFlag" column="Enable_Flag" /> <result property="enableFlag" column="Enable_Flag" />
<result property="visibleFlag" column="Visible_Flag" />
<result property="orderFlag" column="Order_Flag" />
<result property="createBy" column="Create_By" /> <result property="createBy" column="Create_By" />
<result property="createTime" column="Create_Time" /> <result property="createTime" column="Create_Time" />
<result property="updateBy" column="Update_By" /> <result property="updateBy" column="Update_By" />
@ -17,7 +19,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap> </resultMap>
<sql id="selectSysParamConfigVo"> <sql id="selectSysParamConfigVo">
select ObjId, Param_Type, Param_Title, Param_Text, Enable_Flag, Create_By, Create_Time, Update_By, Update_Time from sys_param_config select ObjId, Param_Type, Param_Title, Param_Text, Enable_Flag, Create_By, Create_Time, Update_By, Update_Time,Visible_Flag,Order_Flag from sys_param_config
</sql> </sql>
<select id="selectSysParamConfigList" parameterType="SysParamConfig" resultMap="SysParamConfigResult"> <select id="selectSysParamConfigList" parameterType="SysParamConfig" resultMap="SysParamConfigResult">
@ -27,6 +29,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="paramTitle != null and paramTitle != ''"> and Param_Title = #{paramTitle}</if> <if test="paramTitle != null and paramTitle != ''"> and Param_Title = #{paramTitle}</if>
<if test="paramText != null and paramText != ''"> and Param_Text = #{paramText}</if> <if test="paramText != null and paramText != ''"> and Param_Text = #{paramText}</if>
<if test="enableFlag != null "> and Enable_Flag = #{enableFlag}</if> <if test="enableFlag != null "> and Enable_Flag = #{enableFlag}</if>
<if test="visibleFlag != null "> and Visible_Flag = #{visibleFlag}</if>
</where> </where>
</select> </select>
@ -42,6 +45,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="paramTitle != null">Param_Title,</if> <if test="paramTitle != null">Param_Title,</if>
<if test="paramText != null">Param_Text,</if> <if test="paramText != null">Param_Text,</if>
<if test="enableFlag != null">Enable_Flag,</if> <if test="enableFlag != null">Enable_Flag,</if>
<if test="visibleFlag != null">Visible_Flag,</if>
<if test="orderFlag != null">Order_Flag,</if>
<if test="createBy != null">Create_By,</if> <if test="createBy != null">Create_By,</if>
<if test="createTime != null">Create_Time,</if> <if test="createTime != null">Create_Time,</if>
<if test="updateBy != null">Update_By,</if> <if test="updateBy != null">Update_By,</if>
@ -52,6 +57,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="paramTitle != null">#{paramTitle},</if> <if test="paramTitle != null">#{paramTitle},</if>
<if test="paramText != null">#{paramText},</if> <if test="paramText != null">#{paramText},</if>
<if test="enableFlag != null">#{enableFlag},</if> <if test="enableFlag != null">#{enableFlag},</if>
<if test="visibleFlag != null">#{visibleFlag},</if>
<if test="orderFlag != null">#{orderFlag},</if>
<if test="createBy != null">#{createBy},</if> <if test="createBy != null">#{createBy},</if>
<if test="createTime != null">#{createTime},</if> <if test="createTime != null">#{createTime},</if>
<if test="updateBy != null">#{updateBy},</if> <if test="updateBy != null">#{updateBy},</if>
@ -66,6 +73,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="paramTitle != null">Param_Title = #{paramTitle},</if> <if test="paramTitle != null">Param_Title = #{paramTitle},</if>
<if test="paramText != null">Param_Text = #{paramText},</if> <if test="paramText != null">Param_Text = #{paramText},</if>
<if test="enableFlag != null">Enable_Flag = #{enableFlag},</if> <if test="enableFlag != null">Enable_Flag = #{enableFlag},</if>
<if test="visibleFlag != null">Visible_Flag = #{visibleFlag},</if>
<if test="orderFlag != null">Order_Flag = #{orderFlag},</if>
<if test="createBy != null">Create_By = #{createBy},</if> <if test="createBy != null">Create_By = #{createBy},</if>
<if test="createTime != null">Create_Time = #{createTime},</if> <if test="createTime != null">Create_Time = #{createTime},</if>
<if test="updateBy != null">Update_By = #{updateBy},</if> <if test="updateBy != null">Update_By = #{updateBy},</if>

Loading…
Cancel
Save