fix:添加密品类型提交

pg_adapter
wangxy 8 months ago
parent 24724875d0
commit 8ee024d8d8

@ -80,6 +80,15 @@
</div> </div>
</div> </div>
</div> </div>
<div class="form-group">
<label class="col-sm-3 control-label is-required ">密品分类:</label>
<div class="col-sm-8">
<select name="secretsType" required class="form-control m-b" th:with="type=${@dict.getType('sys_secrets_type')}">
<option value="">请选择</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select>
</div>
</div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label is-required">密品数量:</label> <label class="col-sm-3 control-label is-required">密品数量:</label>
<div class="col-sm-8"> <div class="col-sm-8">

@ -87,7 +87,14 @@
</div> </div>
</div> </div>
</div> </div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">密品分类:</label>
<div class="col-sm-8">
<select name="secretsType" class="form-control m-b" th:with="type=${@dict.getType('sys_secrets_type')}">
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:field="*{secretsType}" th:value="${dict.dictValue}"></option>
</select>
</div>
</div>
<div class="form-group"> <div class="form-group">
<label class="col-sm-3 control-label is-required">密品数量:</label> <label class="col-sm-3 control-label is-required">密品数量:</label>
<div class="col-sm-8"> <div class="col-sm-8">

@ -60,6 +60,7 @@
var editFlag = [[${@permission.hasPermi('system:property:edit')}]]; var editFlag = [[${@permission.hasPermi('system:property:edit')}]];
var removeFlag = [[${@permission.hasPermi('system:property:remove')}]]; var removeFlag = [[${@permission.hasPermi('system:property:remove')}]];
var listFlag = [[${@permission.hasPermi('system:property:list')}]]; var listFlag = [[${@permission.hasPermi('system:property:list')}]];
var sysSecretsTypeDatas = [[${@dict.getType('sys_secrets_type')}]];
var prefix = ctx + "system/property"; var prefix = ctx + "system/property";
let datas = [] let datas = []
$.ajax({ $.ajax({
@ -99,6 +100,13 @@
return getCity(datas, value) return getCity(datas, value)
} }
}, },
{
field: 'secretsType',
title: '密品分类',
formatter: function(value, row, index) {
return $.table.selectDictLabel(sysSecretsTypeDatas, value);
}
},
{ {
field: 'useDepart', field: 'useDepart',
title: '使用部门' title: '使用部门'

@ -68,7 +68,7 @@ public class TdPropertyManager extends BaseEntity
private Long propertyNum; private Long propertyNum;
@Excel(name = "所属区县") @Excel(name = "密品类型" ,readConverterExp = "1=涉密信息设备,2=涉密设备")
private String secretsType; private String secretsType;
@ -182,6 +182,14 @@ public class TdPropertyManager extends BaseEntity
return propertyNum; return propertyNum;
} }
public String getSecretsType() {
return secretsType;
}
public void setSecretsType(String secretsType) {
this.secretsType = secretsType;
}
@Override @Override
public String toString() { public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
@ -197,6 +205,7 @@ public class TdPropertyManager extends BaseEntity
.append("part", getPart()) .append("part", getPart())
.append("areaId", getAreaId()) .append("areaId", getAreaId())
.append("propertyNum", getPropertyNum()) .append("propertyNum", getPropertyNum())
.append("secretsType", getSecretsType())
.toString(); .toString();
} }
} }

@ -17,10 +17,11 @@
<result property="part" column="part" /> <result property="part" column="part" />
<result property="areaId" column="area_id" /> <result property="areaId" column="area_id" />
<result property="propertyNum" column="property_num" /> <result property="propertyNum" column="property_num" />
<result property="secretsType" column="secrets_type" />
</resultMap> </resultMap>
<sql id="selectTdPropertyManagerVo"> <sql id="selectTdPropertyManagerVo">
select use_id, use_depart, user_name, use_date, framework_id, recover_depart, recover_name, recover_date, shemichengdu, part, area_id, property_num from td_property_manager select use_id, use_depart, user_name, use_date, framework_id, recover_depart, recover_name, recover_date, shemichengdu, part, area_id, property_num,secrets_type from td_property_manager
</sql> </sql>
<select id="selectTdPropertyManagerList" parameterType="TdPropertyManager" resultMap="TdPropertyManagerResult"> <select id="selectTdPropertyManagerList" parameterType="TdPropertyManager" resultMap="TdPropertyManagerResult">
@ -38,6 +39,7 @@
<if test="part != null and part != ''"> and part = #{part}</if> <if test="part != null and part != ''"> and part = #{part}</if>
<if test="areaId != null and areaId != ''"> and area_id = #{areaId}</if> <if test="areaId != null and areaId != ''"> and area_id = #{areaId}</if>
<if test="propertyNum != null "> and property_num = #{propertyNum}</if> <if test="propertyNum != null "> and property_num = #{propertyNum}</if>
<if test="secretsType != null "> and secrets_type = #{secretsType}</if>
</where> </where>
</select> </select>
@ -61,6 +63,7 @@
<if test="part != null">part,</if> <if test="part != null">part,</if>
<if test="areaId != null">area_id,</if> <if test="areaId != null">area_id,</if>
<if test="propertyNum != null">property_num,</if> <if test="propertyNum != null">property_num,</if>
<if test="secretsType != null">secrets_type,</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="useId != null">#{useId},</if> <if test="useId != null">#{useId},</if>
@ -75,6 +78,7 @@
<if test="part != null">#{part},</if> <if test="part != null">#{part},</if>
<if test="areaId != null">#{areaId},</if> <if test="areaId != null">#{areaId},</if>
<if test="propertyNum != null">#{propertyNum},</if> <if test="propertyNum != null">#{propertyNum},</if>
<if test="secretsType != null">#{secretsType},</if>
</trim> </trim>
</insert> </insert>
@ -92,6 +96,7 @@
<if test="part != null">part = #{part},</if> <if test="part != null">part = #{part},</if>
<if test="areaId != null">area_id = #{areaId},</if> <if test="areaId != null">area_id = #{areaId},</if>
<if test="propertyNum != null">property_num = #{propertyNum},</if> <if test="propertyNum != null">property_num = #{propertyNum},</if>
<if test="secretsType != null">secrets_type = #{secretsType},</if>
</trim> </trim>
where use_id = #{useId} where use_id = #{useId}
</update> </update>

Loading…
Cancel
Save