新怎表单部门编号字段

This commit is contained in:
wanggeng 2021-10-11 18:17:21 +08:00
parent 56b936ede3
commit 7c20e834e1
9 changed files with 124 additions and 31 deletions

View File

@ -16,6 +16,7 @@ public class DepartmentSimpleDTO implements Serializable {
private String departmentParentId; private String departmentParentId;
private String departmentName; private String departmentName;
private String departmentCode; private String departmentCode;
private String departmentNo;
public String getDepartmentId() { public String getDepartmentId() {
return departmentId == null ? "" : departmentId.trim(); return departmentId == null ? "" : departmentId.trim();
@ -48,4 +49,12 @@ public class DepartmentSimpleDTO implements Serializable {
public void setDepartmentCode(String departmentCode) { public void setDepartmentCode(String departmentCode) {
this.departmentCode = departmentCode; this.departmentCode = departmentCode;
} }
public String getDepartmentNo() {
return departmentNo == null ? "" : departmentNo.trim();
}
public void setDepartmentNo(String departmentNo) {
this.departmentNo = departmentNo;
}
} }

View File

@ -29,6 +29,8 @@ public class DepartmentPO implements Serializable {
private String departmentName; private String departmentName;
@ApiModelProperty(name = "departmentNameEn", value = "组织部门名称(英文)") @ApiModelProperty(name = "departmentNameEn", value = "组织部门名称(英文)")
private String departmentNameEn; private String departmentNameEn;
@ApiModelProperty(name = "departmentNo", value = "组织编号")
private String departmentNo;
@ApiModelProperty(name = "departmentNameOther", value = "组织部门名称(其他类型)") @ApiModelProperty(name = "departmentNameOther", value = "组织部门名称(其他类型)")
private String departmentNameOther; private String departmentNameOther;
@ApiModelProperty(name = "departmentCode", value = "组织部门编码") @ApiModelProperty(name = "departmentCode", value = "组织部门编码")
@ -148,6 +150,14 @@ public class DepartmentPO implements Serializable {
this.departmentNameOther = departmentNameOther; this.departmentNameOther = departmentNameOther;
} }
public String getDepartmentNo() {
return departmentNo == null ? "" : departmentNo.trim();
}
public void setDepartmentNo(String departmentNo) {
this.departmentNo = departmentNo;
}
public String getDepartmentCode() { public String getDepartmentCode() {
return departmentCode == null ? "" : departmentCode; return departmentCode == null ? "" : departmentCode;
} }
@ -403,6 +413,8 @@ public class DepartmentPO implements Serializable {
.append(departmentName).append('\"'); .append(departmentName).append('\"');
sb.append(",\"departmentNameEn\":\"") sb.append(",\"departmentNameEn\":\"")
.append(departmentNameEn).append('\"'); .append(departmentNameEn).append('\"');
sb.append(",\"departmentNo\":\"")
.append(departmentNo).append('\"');
sb.append(",\"departmentNameOther\":\"") sb.append(",\"departmentNameOther\":\"")
.append(departmentNameOther).append('\"'); .append(departmentNameOther).append('\"');
sb.append(",\"departmentCode\":\"") sb.append(",\"departmentCode\":\"")

View File

@ -0,0 +1,18 @@
package ink.wgink.properties.cms;
/**
* @ClassName: CmsProperties
* @Description: 内容管理
* @Author: wanggeng
* @Date: 2021/9/30 2:56 下午
* @Version: 1.0
*/
public class CmsProperties {
/**
* 静态地址
*/
private String staticPath;
private String containerPath;
}

View File

@ -25,6 +25,8 @@ public class DepartmentVO {
private String departmentNameEn; private String departmentNameEn;
@ApiModelProperty(name = "departmentNameOther", value = "组织部门名称(其他类型)") @ApiModelProperty(name = "departmentNameOther", value = "组织部门名称(其他类型)")
private String departmentNameOther; private String departmentNameOther;
@ApiModelProperty(name = "departmentNo", value = "组织部门编号")
private String departmentNo;
@ApiModelProperty(name = "departmentType", value = "组织部门类型,1:机构,2:部门") @ApiModelProperty(name = "departmentType", value = "组织部门类型,1:机构,2:部门")
@CheckNumberAnnotation(name = "组织部门类型", types = {"1", "2"}) @CheckNumberAnnotation(name = "组织部门类型", types = {"1", "2"})
private Integer departmentType; private Integer departmentType;
@ -93,6 +95,14 @@ public class DepartmentVO {
this.departmentNameOther = departmentNameOther; this.departmentNameOther = departmentNameOther;
} }
public String getDepartmentNo() {
return departmentNo == null ? "" : departmentNo.trim();
}
public void setDepartmentNo(String departmentNo) {
this.departmentNo = departmentNo;
}
public Integer getDepartmentType() { public Integer getDepartmentType() {
return departmentType; return departmentType;
} }
@ -232,6 +242,8 @@ public class DepartmentVO {
.append(departmentNameEn).append('\"'); .append(departmentNameEn).append('\"');
sb.append(",\"departmentNameOther\":\"") sb.append(",\"departmentNameOther\":\"")
.append(departmentNameOther).append('\"'); .append(departmentNameOther).append('\"');
sb.append(",\"departmentNo\":\"")
.append(departmentNo).append('\"');
sb.append(",\"departmentType\":") sb.append(",\"departmentType\":")
.append(departmentType); .append(departmentType);
sb.append(",\"departmentState\":") sb.append(",\"departmentState\":")
@ -248,16 +260,16 @@ public class DepartmentVO {
.append(departmentMaster).append('\"'); .append(departmentMaster).append('\"');
sb.append(",\"departmentDuty\":\"") sb.append(",\"departmentDuty\":\"")
.append(departmentDuty).append('\"'); .append(departmentDuty).append('\"');
sb.append(",\"departmentArea1Id\":\"") sb.append(",\"departmentArea1Id\":")
.append(departmentArea1Id).append('\"'); .append(departmentArea1Id);
sb.append(",\"departmentArea2Id\":\"") sb.append(",\"departmentArea2Id\":")
.append(departmentArea2Id).append('\"'); .append(departmentArea2Id);
sb.append(",\"departmentArea3Id\":\"") sb.append(",\"departmentArea3Id\":")
.append(departmentArea3Id).append('\"'); .append(departmentArea3Id);
sb.append(",\"departmentArea4Id\":\"") sb.append(",\"departmentArea4Id\":")
.append(departmentArea4Id).append('\"'); .append(departmentArea4Id);
sb.append(",\"departmentArea5Id\":\"") sb.append(",\"departmentArea5Id\":")
.append(departmentArea5Id).append('\"'); .append(departmentArea5Id);
sb.append(",\"departmentLongitude\":\"") sb.append(",\"departmentLongitude\":\"")
.append(departmentLongitude).append('\"'); .append(departmentLongitude).append('\"');
sb.append(",\"departmentLatitude\":\"") sb.append(",\"departmentLatitude\":\"")

View File

@ -13,6 +13,7 @@
<result property="departmentCode" column="department_code"/> <result property="departmentCode" column="department_code"/>
<result property="departmentNameEn" column="department_name_en"/> <result property="departmentNameEn" column="department_name_en"/>
<result property="departmentNameOther" column="department_name_other"/> <result property="departmentNameOther" column="department_name_other"/>
<result property="departmentNo" column="department_no"/>
<result property="departmentSummary" column="department_summary"/> <result property="departmentSummary" column="department_summary"/>
<result property="departmentLogo" column="department_logo"/> <result property="departmentLogo" column="department_logo"/>
<result property="departmentLogoHover" column="department_logo_hover"/> <result property="departmentLogoHover" column="department_logo_hover"/>
@ -54,6 +55,7 @@
<result property="departmentCode" column="department_code"/> <result property="departmentCode" column="department_code"/>
<result property="departmentNameEn" column="department_name_en"/> <result property="departmentNameEn" column="department_name_en"/>
<result property="departmentNameOther" column="department_name_other"/> <result property="departmentNameOther" column="department_name_other"/>
<result property="departmentNo" column="department_no"/>
<result property="departmentSummary" column="department_summary"/> <result property="departmentSummary" column="department_summary"/>
<result property="departmentLogo" column="department_logo"/> <result property="departmentLogo" column="department_logo"/>
<result property="departmentLogoHover" column="department_logo_hover"/> <result property="departmentLogoHover" column="department_logo_hover"/>
@ -100,6 +102,7 @@
`department_name` varchar(255) DEFAULT NULL COMMENT '机构名称', `department_name` varchar(255) DEFAULT NULL COMMENT '机构名称',
`department_name_en` varchar(255) DEFAULT NULL COMMENT '部门名称(英文)', `department_name_en` varchar(255) DEFAULT NULL COMMENT '部门名称(英文)',
`department_name_other` varchar(255) DEFAULT NULL COMMENT '部门名称(其他)', `department_name_other` varchar(255) DEFAULT NULL COMMENT '部门名称(其他)',
`department_no` varchar(255) DEFAULT NULL COMMENT '部门编号',
`department_summary` text COMMENT '部门简介', `department_summary` text COMMENT '部门简介',
`department_code` varchar(255) DEFAULT NULL COMMENT '部门编码', `department_code` varchar(255) DEFAULT NULL COMMENT '部门编码',
`department_logo` char(36) DEFAULT NULL COMMENT '部门logo', `department_logo` char(36) DEFAULT NULL COMMENT '部门logo',
@ -147,6 +150,7 @@
department_name, department_name,
department_name_en, department_name_en,
department_name_other, department_name_other,
department_no,
department_summary, department_summary,
department_code, department_code,
department_logo, department_logo,
@ -187,6 +191,7 @@
#{departmentName}, #{departmentName},
#{departmentNameEn}, #{departmentNameEn},
#{departmentNameOther}, #{departmentNameOther},
#{departmentNo},
#{departmentSummary}, #{departmentSummary},
#{departmentCode}, #{departmentCode},
#{departmentLogo}, #{departmentLogo},
@ -253,6 +258,9 @@
<if test="departmentNameOther != null"> <if test="departmentNameOther != null">
department_name_other = #{departmentNameOther}, department_name_other = #{departmentNameOther},
</if> </if>
<if test="departmentNo != null">
department_no = #{departmentNo},
</if>
<if test="departmentSummary != null"> <if test="departmentSummary != null">
department_summary = #{departmentSummary}, department_summary = #{departmentSummary},
</if> </if>
@ -286,35 +294,35 @@
<if test="departmentDuty != null"> <if test="departmentDuty != null">
department_duty = #{departmentDuty}, department_duty = #{departmentDuty},
</if> </if>
department_area1_id = #{departmentArea1Id}, department_area1_id = #{departmentArea1Id},
<if test="departmentArea1Code != null"> <if test="departmentArea1Code != null">
department_area1_code = #{departmentArea1Code}, department_area1_code = #{departmentArea1Code},
</if> </if>
<if test="departmentArea1Name != null"> <if test="departmentArea1Name != null">
department_area1_name = #{departmentArea1Name}, department_area1_name = #{departmentArea1Name},
</if> </if>
department_area2_id = #{departmentArea2Id}, department_area2_id = #{departmentArea2Id},
<if test="departmentArea2Code != null"> <if test="departmentArea2Code != null">
department_area2_code = #{departmentArea2Code}, department_area2_code = #{departmentArea2Code},
</if> </if>
<if test="departmentArea2Name != null"> <if test="departmentArea2Name != null">
department_area2_name = #{departmentArea2Name}, department_area2_name = #{departmentArea2Name},
</if> </if>
department_area3_id = #{departmentArea3Id}, department_area3_id = #{departmentArea3Id},
<if test="departmentArea3Code != null"> <if test="departmentArea3Code != null">
department_area3_code = #{departmentArea3Code}, department_area3_code = #{departmentArea3Code},
</if> </if>
<if test="departmentArea3Name != null"> <if test="departmentArea3Name != null">
department_area3_name = #{departmentArea3Name}, department_area3_name = #{departmentArea3Name},
</if> </if>
department_area4_id = #{departmentArea4Id}, department_area4_id = #{departmentArea4Id},
<if test="departmentArea4Code != null"> <if test="departmentArea4Code != null">
department_area4_code = #{departmentArea4Code}, department_area4_code = #{departmentArea4Code},
</if> </if>
<if test="departmentArea4Name != null"> <if test="departmentArea4Name != null">
department_area4_name = #{departmentArea4Name}, department_area4_name = #{departmentArea4Name},
</if> </if>
department_area5_id = #{departmentArea5Id}, department_area5_id = #{departmentArea5Id},
<if test="departmentArea5Code != null"> <if test="departmentArea5Code != null">
department_area5_code = #{departmentArea5Code}, department_area5_code = #{departmentArea5Code},
</if> </if>
@ -387,6 +395,7 @@
department_name, department_name,
department_name_en, department_name_en,
department_name_other, department_name_other,
department_no,
department_summary, department_summary,
department_code, department_code,
department_logo, department_logo,
@ -428,6 +437,7 @@
department_name, department_name,
department_name_en, department_name_en,
department_name_other, department_name_other,
department_no,
department_summary, department_summary,
department_code, department_code,
department_logo, department_logo,
@ -474,6 +484,10 @@
AND AND
department_code LIKE CONCAT(#{departmentCode}, '%') department_code LIKE CONCAT(#{departmentCode}, '%')
</if> </if>
<if test="departmentNo != null and departmentNo != ''">
AND
department_no LIKE CONCAT(#{departmentNo}, '%')
</if>
<if test="departmentIds != null and departmentIds.size > 0"> <if test="departmentIds != null and departmentIds.size > 0">
AND AND
department_id IN department_id IN
@ -646,6 +660,7 @@
department_name, department_name,
department_name_en, department_name_en,
department_name_other, department_name_other,
department_no,
department_summary, department_summary,
department_code, department_code,
department_logo, department_logo,
@ -698,6 +713,7 @@
department_name, department_name,
department_name_en, department_name_en,
department_name_other, department_name_other,
department_no,
department_summary, department_summary,
department_code, department_code,
department_logo, department_logo,
@ -739,6 +755,10 @@
AND AND
department_code LIKE CONCAT(#{departmentCode}, '%') department_code LIKE CONCAT(#{departmentCode}, '%')
</if> </if>
<if test="departmentNo != null and departmentNo != ''">
AND
department_no LIKE CONCAT(#{departmentNo}, '%')
</if>
<if test="departmentIds != null and departmentIds.size > 0"> <if test="departmentIds != null and departmentIds.size > 0">
AND AND
department_id IN department_id IN
@ -800,6 +820,10 @@
AND AND
department_name = #{departmentName} department_name = #{departmentName}
</if> </if>
<if test="departmentNo != null and departmentNo != ''">
AND
department_no LIKE CONCAT(#{departmentNo}, '%')
</if>
<if test="noDepartmentId != null and noDepartmentId != ''"> <if test="noDepartmentId != null and noDepartmentId != ''">
AND AND
department_id != #{noDepartmentId} department_id != #{noDepartmentId}

View File

@ -15,7 +15,7 @@
<body> <body>
<div class="layui-fluid layui-anim layui-anim-fadein"> <div class="layui-fluid layui-anim layui-anim-fadein">
<div class="layui-row layui-col-space15"> <div class="layui-row layui-col-space15">
<div class="layui-col-md2 layui-col-sm2 layui-col-xs2"> <div class="layui-col-md2 layui-col-sm2 layui-col-xs2" style="padding-right: 0px;">
<div class="layui-card"> <div class="layui-card">
<div class="layui-card-body left-tree-wrap"> <div class="layui-card-body left-tree-wrap">
<div id="leftTreeWrap"> <div id="leftTreeWrap">
@ -24,7 +24,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="layui-col-md10 layui-col-sm10 layui-col-xs10"> <div class="layui-col-md10 layui-col-sm10 layui-col-xs10" style="padding-left: 0px;">
<div class="layui-card"> <div class="layui-card">
<div id="listContentWrap" class="layui-card-body"> <div id="listContentWrap" class="layui-card-body">
<iframe id="listContent" frameborder="0" class="layadmin-iframe"></iframe> <iframe id="listContent" frameborder="0" class="layadmin-iframe"></iframe>

View File

@ -97,6 +97,7 @@
{field:'departmentName', width:180, title: '组织机构名称', align:'center',}, {field:'departmentName', width:180, title: '组织机构名称', align:'center',},
{field:'departmentSummary', width:180, title: '组织说明', align:'center',}, {field:'departmentSummary', width:180, title: '组织说明', align:'center',},
{field:'departmentCode', width:100, title: '组织编码', align:'center',}, {field:'departmentCode', width:100, title: '组织编码', align:'center',},
{field:'departmentCode', width:100, title: '组织编号', align:'center',},
{field:'departmentType', width:100, title: '组织类型', align:'center', {field:'departmentType', width:100, title: '组织类型', align:'center',
templet: function(item) { templet: function(item) {
var value; var value;

View File

@ -45,7 +45,7 @@
</div> </div>
</div> </div>
<div class="layui-row"> <div class="layui-row">
<div class="layui-col-md6 layui-col-sm6 layui-col-xs12"> <div class="layui-col-md4 layui-col-sm4 layui-col-xs12">
<div class="layui-form-item"> <div class="layui-form-item">
<label class="layui-form-label">名称(英文)</label> <label class="layui-form-label">名称(英文)</label>
<div class="layui-input-block"> <div class="layui-input-block">
@ -53,7 +53,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="layui-col-md6 layui-col-sm6 layui-col-xs12"> <div class="layui-col-md4 layui-col-sm4 layui-col-xs12">
<div class="layui-form-item"> <div class="layui-form-item">
<label class="layui-form-label">名称(其他)</label> <label class="layui-form-label">名称(其他)</label>
<div class="layui-input-block"> <div class="layui-input-block">
@ -61,6 +61,14 @@
</div> </div>
</div> </div>
</div> </div>
<div class="layui-col-md4 layui-col-sm4 layui-col-xs12">
<div class="layui-form-item">
<label class="layui-form-label">编号</label>
<div class="layui-input-block">
<input id="departmentNo" type="text" name="departmentNo" lay-verify="required" placeholder="请输入组织编号" class="layui-input" maxlength="50">
</div>
</div>
</div>
</div> </div>
<div class="layui-row"> <div class="layui-row">
<div class="layui-col-md12 layui-col-sm12 layui-col-xs12"> <div class="layui-col-md12 layui-col-sm12 layui-col-xs12">
@ -83,16 +91,16 @@
</select> </select>
</div> </div>
</div> </div>
<div class="layui-col-md6 layui-col-sm6 layui-col-xs12"> </div>
<div class="layui-form-item"> <div class="layui-col-md6 layui-col-sm6 layui-col-xs12">
<label class="layui-form-label">组织状态 *</label> <div class="layui-form-item">
<div class="layui-input-block"> <label class="layui-form-label">组织状态 *</label>
<select name="departmentState" lay-verify="required"> <div class="layui-input-block">
<option value="1" selected>正常</option> <select name="departmentState" lay-verify="required">
<option value="2"></option> <option value="1" selected></option>
<option value="3">停用</option> <option value="2">异常</option>
</select> <option value="3">停用</option>
</div> </select>
</div> </div>
</div> </div>
</div> </div>

View File

@ -45,7 +45,7 @@
</div> </div>
</div> </div>
<div class="layui-row"> <div class="layui-row">
<div class="layui-col-md6 layui-col-sm6 layui-col-xs12"> <div class="layui-col-md4 layui-col-sm4 layui-col-xs12">
<div class="layui-form-item"> <div class="layui-form-item">
<label class="layui-form-label">名称(英文)</label> <label class="layui-form-label">名称(英文)</label>
<div class="layui-input-block"> <div class="layui-input-block">
@ -53,7 +53,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="layui-col-md6 layui-col-sm6 layui-col-xs12"> <div class="layui-col-md4 layui-col-sm4 layui-col-xs12">
<div class="layui-form-item"> <div class="layui-form-item">
<label class="layui-form-label">名称(其他)</label> <label class="layui-form-label">名称(其他)</label>
<div class="layui-input-block"> <div class="layui-input-block">
@ -61,6 +61,14 @@
</div> </div>
</div> </div>
</div> </div>
<div class="layui-col-md4 layui-col-sm4 layui-col-xs12">
<div class="layui-form-item">
<label class="layui-form-label">编号</label>
<div class="layui-input-block">
<input id="departmentNo" type="text" name="departmentNo" lay-verify="required" placeholder="请输入组织编号" class="layui-input" maxlength="50">
</div>
</div>
</div>
</div> </div>
<div class="layui-row"> <div class="layui-row">
<div class="layui-col-md12 layui-col-sm12 layui-col-xs12"> <div class="layui-col-md12 layui-col-sm12 layui-col-xs12">
@ -373,6 +381,7 @@
departmentName: data.departmentName, departmentName: data.departmentName,
departmentNameEn: data.departmentNameEn, departmentNameEn: data.departmentNameEn,
departmentNameOther: data.departmentNameOther, departmentNameOther: data.departmentNameOther,
departmentNo: data.departmentNo,
departmentSummary: data.departmentSummary, departmentSummary: data.departmentSummary,
departmentCode: data.departmentCode, departmentCode: data.departmentCode,
departmentType: data.departmentType +'', departmentType: data.departmentType +'',