公司部门岗位增加代码模糊查询
This commit is contained in:
@@ -95,6 +95,14 @@ public class Company extends TreeEntity<Company> {
|
||||
this.viewCode = viewCode;
|
||||
}
|
||||
|
||||
public String getViewCode_like() {
|
||||
return sqlMap().getWhere().getValue("view_code", QueryType.LIKE);
|
||||
}
|
||||
|
||||
public void setViewCode_like(String viewCode) {
|
||||
sqlMap().getWhere().and("view_code", QueryType.LIKE, viewCode);
|
||||
}
|
||||
|
||||
@NotBlank(message="公司名称不能为空")
|
||||
@Size(min=0, max=200, message="公司名称长度不能超过 200 个字符")
|
||||
public String getCompanyName() {
|
||||
|
||||
@@ -114,7 +114,15 @@ public class Office extends TreeEntity<Office> {
|
||||
public void setViewCode(String viewCode) {
|
||||
this.viewCode = viewCode;
|
||||
}
|
||||
|
||||
|
||||
public String getViewCode_like() {
|
||||
return sqlMap().getWhere().getValue("view_code", QueryType.LIKE);
|
||||
}
|
||||
|
||||
public void setViewCode_like(String viewCode) {
|
||||
sqlMap().getWhere().and("view_code", QueryType.LIKE, viewCode);
|
||||
}
|
||||
|
||||
@NotBlank(message="机构名称不能为空")
|
||||
@Size(min=0, max=100, message="机构名称长度不能超过 100 个字符")
|
||||
public String getOfficeName() {
|
||||
|
||||
@@ -65,7 +65,15 @@ public class Post extends DataEntity<Post> {
|
||||
public void setViewCode(String viewCode) {
|
||||
this.viewCode = viewCode;
|
||||
}
|
||||
|
||||
|
||||
public String getViewCode_like() {
|
||||
return sqlMap().getWhere().getValue("view_code", QueryType.LIKE);
|
||||
}
|
||||
|
||||
public void setViewCode_like(String viewCode) {
|
||||
sqlMap().getWhere().and("view_code", QueryType.LIKE, viewCode);
|
||||
}
|
||||
|
||||
@NotBlank(message="岗位名称不能为空")
|
||||
@Size(min=0, max=100, message="岗位名称长度不能超过 100 个字符")
|
||||
public String getPostName() {
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
<div class="form-group">
|
||||
<label class="control-label">${text('公司代码')}:</label>
|
||||
<div class="control-inline">
|
||||
<#form:input path="viewCode" maxlength="100" class="form-control width-90"/>
|
||||
<#form:input path="viewCode_like" maxlength="100" class="form-control width-90"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
<div class="form-group">
|
||||
<label class="control-label">${text('机构代码')}:</label>
|
||||
<div class="control-inline">
|
||||
<#form:input path="viewCode" maxlength="100" class="form-control width-90"/>
|
||||
<#form:input path="viewCode_like" maxlength="100" class="form-control width-90"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
<div class="form-group">
|
||||
<label class="control-label">${text('岗位代码')}:</label>
|
||||
<div class="control-inline">
|
||||
<#form:input path="viewCode" maxlength="64" class="form-control width-120"/>
|
||||
<#form:input path="viewCode_like" maxlength="64" class="form-control width-120"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
|
||||
Reference in New Issue
Block a user