java110
2020-10-24 82eb6782bd9264798bea70220d4199d559759dcb
java110-db/src/main/resources/mapper/user/OrgStaffRelServiceDaoImplMapper.xml
@@ -76,9 +76,10 @@
    <!-- 查询组织员工关系信息 add by wuxw 2018-07-03 -->
    <select id="getOrgStaffRelInfo" parameterType="Map" resultType="Map">
        select t.rel_id,t.rel_id relId,t.status_cd,t.status_cd statusCd,t.store_id,t.store_id storeId,t.b_id,t.b_id
        bId,t.org_id,t.org_id orgId,t.staff_id,t.staff_id staffId,t.rel_cd,t.rel_cd relCd
        from u_org_staff_rel t
        where 1 =1
        bId,t.org_id,t.org_id orgId,t.staff_id,t.staff_id staffId,t.rel_cd,t.rel_cd relCd,uo.parent_org_id parentOrgId
        from u_org_staff_rel t,u_org uo
        where t.org_id = uo.org_id
        and uo.status_cd = '0'
        <if test="relId !=null and relId != ''">
            and t.rel_id= #{relId}
        </if>
@@ -138,8 +139,9 @@
    <!-- 查询组织员工关系数量 add by wuxw 2018-07-03 -->
    <select id="queryOrgStaffRelsCount" parameterType="Map" resultType="Map">
        select count(1) count
        from u_org_staff_rel t
        where 1 =1
        from u_org_staff_rel t,u_org uo
        where t.org_id = uo.org_id
        and uo.status_cd = '0'
        <if test="relId !=null and relId != ''">
            and t.rel_id= #{relId}
        </if>