|
@@ -442,11 +442,13 @@
|
|
|
<select id="selectOrganizationCount" resultType="java.lang.Integer">
|
|
<select id="selectOrganizationCount" resultType="java.lang.Integer">
|
|
|
select
|
|
select
|
|
|
count(0)
|
|
count(0)
|
|
|
- from department om
|
|
|
|
|
|
|
+ from department om
|
|
|
left join department dm on om.super_id = dm.id
|
|
left join department dm on om.super_id = dm.id
|
|
|
left join admin x on om.manager_id = x.id
|
|
left join admin x on om.manager_id = x.id
|
|
|
where
|
|
where
|
|
|
- om.deleted_sign='0'
|
|
|
|
|
|
|
+ om.deleted_sign = '0'
|
|
|
|
|
+ and
|
|
|
|
|
+ om.name != '平台超管中心'
|
|
|
<if test="name !=null">
|
|
<if test="name !=null">
|
|
|
AND om.name like CONCAT('%',#{name,jdbcType=VARCHAR},'%')
|
|
AND om.name like CONCAT('%',#{name,jdbcType=VARCHAR},'%')
|
|
|
</if>
|
|
</if>
|
|
@@ -458,7 +460,7 @@
|
|
|
</if>
|
|
</if>
|
|
|
<if test="depNo !=null">
|
|
<if test="depNo !=null">
|
|
|
AND om.dep_no=#{depNo,jdbcType=VARCHAR}
|
|
AND om.dep_no=#{depNo,jdbcType=VARCHAR}
|
|
|
- </if>
|
|
|
|
|
|
|
+ </if>
|
|
|
</select>
|
|
</select>
|
|
|
<select id="selectSuperId" resultType="com.goafanti.organization.bo.OrganizationListOut">
|
|
<select id="selectSuperId" resultType="com.goafanti.organization.bo.OrganizationListOut">
|
|
|
select
|
|
select
|