Commit e6141d87 authored by tianbo's avatar tianbo

feat(tzs): 增加企业信息查询和用户信息查询功能

- 在 TzBaseEnterpriseInfoMapper.xml 中增加了对 regulatoryLabels 字段的特殊处理逻辑 - 在 TzsUserInfoMapper.xml 中添加了对用户岗位名称和权限状态的查询条件
parent 3fe57b20
......@@ -130,8 +130,15 @@
test="tzBaseEnterpriseInfoDto.address!=null and tzBaseEnterpriseInfoDto.address!='' ">
AND address LIKE CONCAT('%',#{tzBaseEnterpriseInfoDto.address},'%')
</if>
<if test="tzBaseEnterpriseInfoDto.regulatoryLabels!=null and tzBaseEnterpriseInfoDto.regulatoryLabels!='' ">
AND regulatory_labels LIKE CONCAT('%',#{tzBaseEnterpriseInfoDto.regulatoryLabels},'%')
<if test="tzBaseEnterpriseInfoDto.regulatoryLabels != null and tzBaseEnterpriseInfoDto.regulatoryLabels != ''">
<choose>
<when test='tzBaseEnterpriseInfoDto.regulatoryLabels != "0"'>
AND regulatory_labels LIKE CONCAT('%', #{tzBaseEnterpriseInfoDto.regulatoryLabels}, '%')
</when>
<otherwise>
AND regulatory_labels IS NULL
</otherwise>
</choose>
</if>
<if test="orgCodeList != null and !orgCodeList.isEmpty()">
......
......@@ -310,6 +310,7 @@
u.certificate_num,
u.identification as identificationStr,
e.use_unit,
u.post_name,
u.sub_post_name,
u.new_post as post,
u.sequence_nbr as uid,
......@@ -358,6 +359,9 @@
<if test="filter.fullAddress != null and filter.fullAddress != ''">
and (a.fullAddress like concat('%',#{filter.fullAddress},'%'))
</if>
<if test="filter.permissionStatus != null and filter.permissionStatus != ''">
and (a.permissionStatus like concat('%',#{filter.permissionStatus},'%'))
</if>
</where>
order by
<if test="sort != null">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment