Browse Source

人员新增类型搜索

develop
wangsixiang 9 months ago
parent
commit
0c52c579bc
  1. 2
      zc-business/src/main/java/com/zc/business/domain/DcEmployees.java
  2. 2
      zc-business/src/main/java/com/zc/business/domain/DcOrganization.java
  3. 1
      zc-business/src/main/resources/mapper/business/DcEmployeesMapper.xml

2
zc-business/src/main/java/com/zc/business/domain/DcEmployees.java

@ -50,7 +50,7 @@ public class DcEmployees extends BaseEntity
private Long parentId;
//人员类型1为路管人员2为应急人员
@Excel(name = "人员类型 1-路管人员 2-交警人员")
@Excel(name = "人员类型",readConverterExp = "1=路管人员,2=交警人员")
private Long employeesType;
//类型参数
private String type;

2
zc-business/src/main/java/com/zc/business/domain/DcOrganization.java

@ -23,7 +23,7 @@ public class DcOrganization extends TreeEntity
/** 1-运管中心2-驻点 */
@ApiModelProperty(value = "类型1-运管中心 2-驻点", required = true)
@Excel(name = "1-运管中心 2-驻点")
@Excel(name = "类型",readConverterExp = "1=运管中心,2=驻点")
private Integer organizationType;
/** 名称 */

1
zc-business/src/main/resources/mapper/business/DcEmployeesMapper.xml

@ -37,6 +37,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="postId != null and postId != ''"> and employees.post_id = #{postId}</if>
<if test="organizationId != null "> and employees.organization_id = #{organizationId}</if>
<if test="name != null and name != ''"> and CONCAT(employees.name,employees.contact_number) like concat('%', #{name}, '%')</if>
<if test="employeesType != null "> and employees.employees_type = #{employeesType}</if>
</where>
</select>

Loading…
Cancel
Save