Browse Source

关联节点 加字段: 领域, 部门, 要求, 依据

v2
蟑螂恶霸 2 years ago
parent
commit
f52c8c4318
  1. 24
      lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/code/linkage/add.html
  2. 41
      lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/domain/LinkageDict.java
  3. 18
      lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/resources/mapper/LinkageDictMapper.xml

24
lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/code/linkage/add.html

@ -34,6 +34,30 @@
<input class="form-control" type="text" placeholder="请输入值" name="value" id="value" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">领域:</label>
<div class="col-sm-8">
<input class="form-control" type="text" placeholder="请输入领域" name="domain" id="domain">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">部门:</label>
<div class="col-sm-8">
<input class="form-control" type="text" placeholder="请输入部门" name="dept" id="dept">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">要求:</label>
<div class="col-sm-8">
<input class="form-control" type="text" placeholder="请输入要求" name="demand" id="demand">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">依据:</label>
<div class="col-sm-8">
<input class="form-control" type="text" placeholder="请输入依据" name="basis" id="basis">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">状态:</label>
<div class="col-sm-8">

41
lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/java/com/zdxt/code/domain/LinkageDict.java

@ -38,6 +38,15 @@ public class LinkageDict extends BaseDomain
/** 状态(0:正常,1:停用) */
private Integer status;
/** 领域 */
private String domain;
/** 部门 */
private String dept;
/** 要求 */
private String demand;
/** 依据 */
private String basis;
public void setId(String id)
{
this.id = id;
@ -110,6 +119,38 @@ public class LinkageDict extends BaseDomain
return status;
}
public String getDomain() {
return domain;
}
public void setDomain(String domain) {
this.domain = domain;
}
public String getDept() {
return dept;
}
public void setDept(String dept) {
this.dept = dept;
}
public String getDemand() {
return demand;
}
public void setDemand(String demand) {
this.demand = demand;
}
public String getBasis() {
return basis;
}
public void setBasis(String basis) {
this.basis = basis;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)

18
lib/EmergencyService/zdxtLawEnforcementCodeService/src/main/resources/mapper/LinkageDictMapper.xml

@ -12,6 +12,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="desc" column="desc" />
<result property="srot" column="srot" />
<result property="status" column="status" />
<result property="domain" column="domain" />
<result property="dept" column="dept" />
<result property="demand" column="demand" />
<result property="basis" column="basis" />
<result property="creator" column="creator" />
<result property="createTime" column="create_time" />
<result property="updator" column="updator" />
@ -19,7 +23,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap>
<sql id="selectLinkageDictVo">
select id, title, `value`, parent_id, `desc`, srot, `status`, creator, create_time, updator, update_time from linkage_dict
select id, title, `value`, parent_id, `desc`, srot, `status`, `domain`, dept, demand, basis, creator, create_time, updator, update_time from linkage_dict
</sql>
<select id="selectLinkageDictList" parameterType="LinkageDict" resultMap="LinkageDictResult">
@ -56,6 +60,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="desc != null and desc != ''">`desc`,</if>
<if test="srot != null ">srot,</if>
<if test="status != null ">`status`,</if>
<if test="domain != null and domain != ''">`domain`,</if>
<if test="dept != null and dept != ''">`dept`,</if>
<if test="demand != null and demand != ''">`demand`,</if>
<if test="basis != null and basis != ''">`basis`,</if>
<if test="creator != null and creator != ''">creator,</if>
<if test="createTime != null ">create_time,</if>
<if test="updator != null and updator != ''">updator,</if>
@ -69,6 +77,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="desc != null and desc != ''">#{desc},</if>
<if test="srot != null ">#{srot},</if>
<if test="status != null ">#{status},</if>
<if test="domain != null and domain != ''">#{domain},</if>
<if test="dept != null and dept != ''">#{dept},</if>
<if test="demand != null and demand != ''">#{demand},</if>
<if test="basis != null and basis != ''">#{basis},</if>
<if test="creator != null and creator != ''">#{creator},</if>
<if test="createTime != null ">#{createTime},</if>
<if test="updator != null and updator != ''">#{updator},</if>
@ -85,6 +97,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="desc != null and desc != ''">`desc` = #{desc},</if>
<if test="srot != null ">srot = #{srot},</if>
<if test="status != null ">`status` = #{status},</if>
<if test="domain != null and domain != ''">`domain` = #{domain},</if>
<if test="dept != null and dept != ''">`dept` = #{dept},</if>
<if test="demand != null and demand != ''">`demand` = #{demand},</if>
<if test="basis != null and basis != ''">`basis` = #{basis},</if>
<if test="creator != null and creator != ''">creator = #{creator},</if>
<if test="createTime != null ">create_time = #{createTime},</if>
<if test="updator != null and updator != ''">updator = #{updator},</if>

Loading…
Cancel
Save