| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416 |
- <?xml version="1.0" encoding="UTF-8" ?>
- <!DOCTYPE mapper
- PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
- "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
- <mapper namespace="com.inspur.mapper.PartyMemberManageMapper">
- <resultMap type="com.inspur.domain.partywork.PartyMemberManage" id="PartyMemberManageResult">
- <result property="id" column="id" />
- <result property="name" column="name" />
- <result property="gender" column="gender" />
- <result property="nation" column="nation" />
- <result property="birth" column="birth" />
- <result property="idNumber" column="id_number" />
- <result property="education" column="education" />
- <result property="picPath" column="pic_path" />
- <result property="nativePlace" column="native_place" />
- <result property="address" column="address" />
- <result property="partyType" column="party_type" />
- <result property="joinTime" column="join_time" />
- <result property="isExcellent" column="is_excellent" />
- <result property="isRetire" column="is_retire" />
- <result property="status" column="status" />
- <result property="mobile" column="mobile" />
- <result property="email" column="email" />
- <result property="filePath" column="file_path" />
- <result property="sort" column="sort" />
- <result property="orgId" column="org_id" />
- <result property="createTime" column="create_time" />
- <result property="createBy" column="create_by" />
- <result property="orgName" column="org_name" />
- <result property="userTableId" column="user_table_id" />
- <result property="userTableId" column="userTableId" />
- <result property="office" column="office" />
- <result property="dtId" column="dt_id" />
- <result property="dtOrgId" column="dt_org_id" />
- </resultMap>
- <sql id="selectPartyMemberManageVo">
- select id, name, gender, nation, birth, id_number, education, pic_path, native_place, address, party_type,
- join_time, is_excellent, is_retire, status, mobile, email, file_path, sort, org_id, create_time,
- create_by,user_table_id, dt_id, dt_org_id
- from party_member_manage
- </sql>
- <select id="selectPartyMemberManageList" parameterType="com.inspur.domain.partywork.PartyMemberManage" resultMap="PartyMemberManageResult">
- select b.id, b.name, b.gender, b.nation, b.birth, b.id_number, b.education, b.pic_path, b.native_place, b.address, b.party_type,
- b.join_time, b.is_excellent, b.is_retire, b.status, b.mobile, b.email, b.file_path, b.sort, b.org_id, b.create_time, b.create_by,b.org_name,b.userTableId,
- GROUP_CONCAT(b.office SEPARATOR ',') AS office
- from (select m.id, m.name, m.gender, m.nation, m.birth, m.id_number, m.education, m.pic_path, m.native_place, m.address, m.party_type,
- m.join_time, m.is_excellent, m.is_retire, m.status, m.mobile, m.email, m.file_path, m.sort, m.org_id, m.create_time, m.create_by,
- ifnull(concat(p.name, ' / ', o.name), o.name) as org_name,
- m.user_table_id as userTableId,
- a.office
- from party_member_manage m
- left join party_org_manage o on o.id = m.org_id
- left join party_org_manage p on p.id = o.pid
- left join (select rel.id, rel.post_id, pos.office, rel.member_id
- from party_post_member_rel rel
- left join party_org_post pos on rel.post_id = pos.id ) a on m.id = a.member_id) b
- <where>
- <if test="name != null and name != ''"> and b.name like concat('%', #{name}, '%')</if>
- <if test="gender != null "> and b.gender = #{gender}</if>
- <if test="nation != null "> and b.nation = #{nation}</if>
- <if test="birth != null "> and b.birth = #{birth}</if>
- <if test="idNumber != null and idNumber != ''"> and m.id_number = #{idNumber}</if>
- <if test="education != null "> and b.education = #{education}</if>
- <if test="picPath != null and picPath != ''"> and b.pic_path = #{picPath}</if>
- <if test="nativePlace != null and nativePlace != ''"> and b.native_place = #{nativePlace}</if>
- <if test="address != null and address != ''"> and b.address = #{address}</if>
- <if test="partyType != null "> and b.party_type = #{partyType}</if>
- <if test="joinTime != null "> and b.join_time = #{joinTime}</if>
- <if test="isExcellent != null "> and b.is_excellent = #{isExcellent}</if>
- <if test="isRetire != null "> and b.is_retire = #{isRetire}</if>
- <if test="status != null "> and b.status = #{status}</if>
- <if test="mobile != null and mobile != ''"> and b.mobile = #{mobile}</if>
- <if test="email != null and email != ''"> and b.email = #{email}</if>
- <if test="filePath != null and filePath != ''"> and b.file_path = #{filePath}</if>
- <if test="sort != null "> and b.sort = #{sort}</if>
- <if test="orgIds != null ">
- and b.org_id in
- <foreach collection="orgIds" item="orgId" open="(" close=")" separator=",">
- #{orgId}
- </foreach>
- </if>
- <if test="userTableId != null "> and b.userTableId = #{userTableId}</if>
- <if test="memberList == null "> and b.status = "0"</if>
- </where>
- group by b.id
- order by b.sort, b.id
- </select>
- <select id="selectPartyMemberManageById" parameterType="Long" resultMap="PartyMemberManageResult">
- <include refid="selectPartyMemberManageVo"/>
- where id = #{id}
- </select>
- <select id="selectPartyMemberManageByDtId" parameterType="String" resultMap="PartyMemberManageResult">
- <include refid="selectPartyMemberManageVo"/>
- where dt_id = #{dtId}
- </select>
- <select id="selectPartyMemberManageByDtIdAndUid" resultMap="PartyMemberManageResult">
- <include refid="selectPartyMemberManageVo"/>
- where dt_id = #{dtId} and user_table_id = #{uid}
- </select>
- <insert id="insertPartyMemberManage" parameterType="com.inspur.domain.partywork.PartyMemberManage" useGeneratedKeys="true" keyProperty="id">
- insert into party_member_manage
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="name != null">name,</if>
- <if test="gender != null">gender,</if>
- <if test="nation != null">nation,</if>
- <if test="birth != null">birth,</if>
- <if test="idNumber != null">id_number,</if>
- <if test="education != null">education,</if>
- <if test="picPath != null">pic_path,</if>
- <if test="nativePlace != null">native_place,</if>
- <if test="address != null">address,</if>
- <if test="partyType != null">party_type,</if>
- <if test="joinTime != null">join_time,</if>
- <if test="isExcellent != null">is_excellent,</if>
- <if test="isRetire != null">is_retire,</if>
- <if test="status != null">status,</if>
- <if test="mobile != null">mobile,</if>
- <if test="email != null">email,</if>
- <if test="filePath != null">file_path,</if>
- <if test="sort != null">sort,</if>
- <if test="orgId != null">org_id,</if>
- <if test="createTime != null">create_time,</if>
- <if test="createBy != null">create_by,</if>
- <if test="userTableId != null">user_table_id,</if>
- <if test="dtId != null">dt_id,</if>
- <if test="dtOrgId != null">dt_org_id,</if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="name != null">#{name},</if>
- <if test="gender != null">#{gender},</if>
- <if test="nation != null">#{nation},</if>
- <if test="birth != null">#{birth},</if>
- <if test="idNumber != null">#{idNumber},</if>
- <if test="education != null">#{education},</if>
- <if test="picPath != null">#{picPath},</if>
- <if test="nativePlace != null">#{nativePlace},</if>
- <if test="address != null">#{address},</if>
- <if test="partyType != null">#{partyType},</if>
- <if test="joinTime != null">#{joinTime},</if>
- <if test="isExcellent != null">#{isExcellent},</if>
- <if test="isRetire != null">#{isRetire},</if>
- <if test="status != null">#{status},</if>
- <if test="mobile != null">#{mobile},</if>
- <if test="email != null">#{email},</if>
- <if test="filePath != null">#{filePath},</if>
- <if test="sort != null">#{sort},</if>
- <if test="orgId != null">#{orgId},</if>
- <if test="createTime != null">#{createTime},</if>
- <if test="createBy != null">#{createBy},</if>
- <if test="userTableId != null">#{userTableId},</if>
- <if test="dtId != null">#{dtId},</if>
- <if test="dtOrgId != null">#{dtOrgId},</if>
- </trim>
- </insert>
- <update id="updatePartyMemberManage" parameterType="com.inspur.domain.partywork.PartyMemberManage">
- update party_member_manage
- <trim prefix="SET" suffixOverrides=",">
- <if test="name != null">name = #{name},</if>
- <if test="gender != null">gender = #{gender},</if>
- <if test="nation != null">nation = #{nation},</if>
- <if test="birth != null">birth = #{birth},</if>
- <if test="idNumber != null">id_number = #{idNumber},</if>
- <if test="education != null">education = #{education},</if>
- <if test="picPath != null">pic_path = #{picPath},</if>
- <if test="nativePlace != null">native_place = #{nativePlace},</if>
- <if test="address != null">address = #{address},</if>
- <if test="partyType != null">party_type = #{partyType},</if>
- <if test="joinTime != null">join_time = #{joinTime},</if>
- <if test="isExcellent != null">is_excellent = #{isExcellent},</if>
- <if test="isRetire != null">is_retire = #{isRetire},</if>
- <if test="status != null">status = #{status},</if>
- <if test="mobile != null">mobile = #{mobile},</if>
- <if test="email != null">email = #{email},</if>
- <if test="filePath != null">file_path = #{filePath},</if>
- <if test="sort != null">sort = #{sort},</if>
- <if test="orgId != null">org_id = #{orgId},</if>
- <if test="createTime != null">create_time = #{createTime},</if>
- <if test="createBy != null">create_by = #{createBy},</if>
- <if test="dtId != null">dt_id = #{dtId},</if>
- <if test="dtOrgId != null">dt_org_id = #{dtOrgId},</if>
- </trim>
- where id = #{id}
- </update>
- <delete id="deletePartyMemberManageById" parameterType="Long">
- delete from party_member_manage where id = #{id}
- </delete>
- <delete id="deletePartyMemberManageByIds" parameterType="String">
- delete from party_member_manage where id in
- <foreach item="id" collection="array" open="(" separator="," close=")">
- #{id}
- </foreach>
- </delete>
- <select id="selectPartyMemberManageListAll" parameterType="com.inspur.domain.partywork.PartyMemberManage" resultType="com.inspur.domain.partywork.OrgTreeVo">
- select id as 'value' ,name as label ,org_id as orgId from party_member_manage and user_table_id = #{userTableId} order by sort
- </select>
- <select id="selectScreenMemberListByOrgIds" resultType="com.inspur.domain.screen.ScreenMemberResultVo" parameterType="String">
- SELECT
- m.id AS userid,
- m. NAME AS username,
- m.gender AS sex,
- m.nation,
- m.birth,
- m.id_number AS card,
- m.education,
- m.pic_path,
- m.native_place,
- m.address,
- m.party_type AS party_member_type,
- m.join_time,
- m.mobile,
- m.email,
- m.org_id AS orgid,
- p.bac_office AS office
- FROM
- party_member_manage m
- LEFT JOIN party_post_member_rel r ON m.id = r.member_id
- LEFT JOIN party_org_post p ON r.post_id = p.id
- WHERE
- m.org_id in
- <foreach collection="orgIds" item="orgId" open="(" close=")" separator=",">
- #{orgId}
- </foreach>
- and m.status = 0
- order by m.sort, m.id
- </select>
- <select id="selectMemberListByIds" resultType="com.inspur.domain.screen.ScreenMemberResultVo" parameterType="Long">
- SELECT
- m.id AS userid,
- m. NAME AS username,
- m.gender AS sex,
- m.nation,
- m.birth,
- m.id_number AS card,
- m.education,
- m.pic_path,
- m.native_place,
- m.address,
- m.party_type AS party_member_type,
- m.join_time,
- m.mobile,
- m.email,
- m.org_id AS orgid,
- p.office
- FROM
- party_member_manage m
- LEFT JOIN party_post_member_rel r ON m.id = r.member_id
- LEFT JOIN party_org_post p ON r.post_id = p.id
- WHERE
- m.id in
- <foreach collection="ids" item="id" open="(" close=")" separator=",">
- #{id}
- </foreach>
- </select>
- <select id="selectOffice" resultType="java.util.LinkedHashMap" parameterType="String">
- SELECT p.bac_office as office,m.`name` from party_org_post p
- LEFT JOIN party_post_member_rel r on p.id = r.post_id
- LEFT JOIN party_member_manage m on m.id = r.member_id
- where p.org_id = #{orgId}
- </select>
- <select id="selectMaleFemale" resultType="java.util.LinkedHashMap" parameterType="Long">
- select case when a.gender =0 then 'female' else 'male' end sex,
- count(1) count from party_member_manage a
- where a.user_table_id = #{userTableId}
- GROUP BY a.gender
- </select>
- <select id="age_distribution" resultType="java.util.LinkedHashMap" parameterType="Long">
- select
- IFNULL(sum(IF((TIMESTAMPDIFF(YEAR,a.birth,CURDATE()) <20), 1, 0)), 0) AS 20岁以下,
- IFNULL(sum(IF((TIMESTAMPDIFF(YEAR,a.birth,CURDATE())>=20 and TIMESTAMPDIFF(YEAR,a.birth,CURDATE()) <30), 1, 0)), 0) AS "20-30岁",
- IFNULL(sum(IF((TIMESTAMPDIFF(YEAR,a.birth,CURDATE())>=30 and TIMESTAMPDIFF(YEAR,a.birth,CURDATE()) <40), 1, 0)), 0) AS "30-40岁",
- IFNULL(sum(IF((TIMESTAMPDIFF(YEAR,a.birth,CURDATE())>=40 and TIMESTAMPDIFF(YEAR,a.birth,CURDATE()) <50), 1, 0)), 0) AS "40-50岁",
- IFNULL(sum(IF((TIMESTAMPDIFF(YEAR,a.birth,CURDATE())>=50 and TIMESTAMPDIFF(YEAR,a.birth,CURDATE()) <=60), 1, 0)), 0) AS "50-60岁",
- IFNULL(sum(IF((TIMESTAMPDIFF(YEAR,a.birth,CURDATE())>60), 1, 0)), 0) AS "60岁以上"
- from party_member_manage a
- where a.user_table_id = #{userTableId}
- </select>
- <select id="probationary_distribution" resultType="java.util.LinkedHashMap" parameterType="Long">
- select
- ROUND(truncate(IFNULL(sum(IF((TIMESTAMPDIFF(YEAR,a.join_time,CURDATE()) <5), 1, 0)), 0)/count(1),5)*100,0) AS 5年以下,
- ROUND(truncate(IFNULL(sum(IF((TIMESTAMPDIFF(YEAR,a.join_time,CURDATE())>=5 and TIMESTAMPDIFF(YEAR,a.join_time,CURDATE()) <10), 1, 0)), 0)/count(1),5)*100,0) AS "5-10年",
- ROUND(truncate(IFNULL(sum(IF((TIMESTAMPDIFF(YEAR,a.join_time,CURDATE())>=10 and TIMESTAMPDIFF(YEAR,a.join_time,CURDATE()) <15), 1, 0)), 0)/count(1),5)*100,0) AS "10-15年",
- ROUND(truncate(IFNULL(sum(IF((TIMESTAMPDIFF(YEAR,a.join_time,CURDATE())>=15 and TIMESTAMPDIFF(YEAR,a.join_time,CURDATE()) <20), 1, 0)), 0)/count(1),5)*100,0) AS "15-20年",
- ROUND(truncate(IFNULL(sum(IF((TIMESTAMPDIFF(YEAR,a.join_time,CURDATE())>=20 and TIMESTAMPDIFF(YEAR,a.join_time,CURDATE()) <=30), 1, 0)), 0)/count(1),5)*100,0) AS "20-30年",
- ROUND(truncate(IFNULL(sum(IF((TIMESTAMPDIFF(YEAR,a.join_time,CURDATE())>30), 1, 0)), 0)/count(1),5)*100,0) AS "30年以上"
- from party_member_manage a
- where a.user_table_id = #{userTableId}
- </select>
- <select id="selectMemberNum" resultType="java.util.LinkedHashMap" parameterType="Long">
- select
- IFNULL(sum(IF((TIMESTAMPDIFF(YEAR,a.join_time,CURDATE()) <5), 1, 0)), 0) AS 5年以下,
- IFNULL(sum(IF((TIMESTAMPDIFF(YEAR,a.join_time,CURDATE())>=5 and TIMESTAMPDIFF(YEAR,a.join_time,CURDATE()) <10), 1, 0)), 0) AS "5-10年",
- IFNULL(sum(IF((TIMESTAMPDIFF(YEAR,a.join_time,CURDATE())>=10 and TIMESTAMPDIFF(YEAR,a.join_time,CURDATE()) <15), 1, 0)), 0) AS "10-15年",
- IFNULL(sum(IF((TIMESTAMPDIFF(YEAR,a.join_time,CURDATE())>=15 and TIMESTAMPDIFF(YEAR,a.join_time,CURDATE()) <20), 1, 0)), 0) AS "15-20年",
- IFNULL(sum(IF((TIMESTAMPDIFF(YEAR,a.join_time,CURDATE())>=20 and TIMESTAMPDIFF(YEAR,a.join_time,CURDATE()) <=30), 1, 0)), 0) AS "20-30年",
- IFNULL(sum(IF((TIMESTAMPDIFF(YEAR,a.join_time,CURDATE())>30), 1, 0)), 0) AS "30年以上"
- from party_member_manage a
- where a.user_table_id = #{userTableId}
- </select>
- <select id="partyMembers" resultType="java.util.LinkedHashMap" parameterType="Long">
- select b.name,
- (select count(1) from party_member_manage a where a.org_id=b.id) count,
- (select count(1) from party_member_manage a where a.user_table_id = #{userTableId}) "all"
- from party_org_manage b
- where b.user_table_id = #{orgTableId}
- order by b.sort
- </select>
- <select id="degree_distribution" resultType="java.util.LinkedHashMap" parameterType="Long">
- select
- ROUND(truncate(IFNULL(sum(IF((a.education =1 or a.education =2), 1, 0)), 0)/count(1),4)*100) '初中及以下',
- ROUND(truncate(IFNULL(sum(IF((a.education =3 or a.education =4), 1, 0)), 0)/count(1),4)*100) '高中/中专',
- ROUND(truncate(IFNULL(sum(IF(a.education =5, 1, 0)), 0)/count(1),4)*100) '大专',
- ROUND(truncate(IFNULL(sum(IF(a.education =6, 1, 0)), 0)/count(1),4)*100) '本科',
- ROUND(truncate(IFNULL(sum(IF((a.education =7 or a.education =8), 1, 0)), 0)/count(1),4)*100) '研究生及以上',
- ROUND(truncate(IFNULL(sum(IF((a.education =9), 1, 0)), 0)/count(1),4)*100) '其他'
- from party_member_manage a
- where a.user_table_id = #{userTableId}
- </select>
- <select id="degree_distribution2" resultType="java.util.LinkedHashMap" parameterType="Long">
- select
- IFNULL(sum(IF((a.education = 1 or a.education = 2), 1, 0)), 0) '初中及以下',
- IFNULL(sum(IF((a.education = 3 or a.education = 4), 1, 0)), 0) '高中/中专',
- IFNULL(sum(IF(a.education = 5, 1, 0)), 0) '大专',
- IFNULL(sum(IF(a.education = 6, 1, 0)), 0) '本科',
- IFNULL(sum(IF(a.education = 7, 1, 0)), 0) '硕士研究生',
- IFNULL(sum(IF(a.education = 8, 1, 0)), 0) '博士研究生'
- from party_member_manage a
- where a.user_table_id = #{userTableId}
- </select>
- <select id="learningpacesetter" resultType="java.util.LinkedHashMap" parameterType="Long">
- select b.org_name orgname,a.pic_path pic,a.id userid,a.name username from party_member_manage a,party_model_student b
- where a.id = b.member_id and a.user_table_id = #{userTableId}
- order by b.sort, b.create_time desc
- </select>
- <select id="selectNoBindWxList" resultMap="PartyMemberManageResult">
- <include refid="selectPartyMemberManageVo" />
- where user_table_id = #{userTableId}
- and status = '0'
- <if test="bindMemberIds != null and bindMemberIds.size != 0">
- and id not in
- <foreach collection="bindMemberIds" item="id" open="(" close=")" separator=",">
- #{id}
- </foreach>
- </if>
- </select>
- <select id="probationaryDistributionCount" parameterType="Long" resultType="java.util.LinkedHashMap">
- select
- IFNULL(sum(IF((TIMESTAMPDIFF(YEAR,a.join_time,CURDATE()) < 5), 1, 0)),0) AS "5年以下",
- IFNULL(sum(IF((TIMESTAMPDIFF(YEAR,a.join_time,CURDATE())>=5 and TIMESTAMPDIFF(YEAR,a.join_time,CURDATE()) < 10), 1, 0)),0) AS "5-10年",
- IFNULL(sum(IF((TIMESTAMPDIFF(YEAR,a.join_time,CURDATE())>=10 and TIMESTAMPDIFF(YEAR,a.join_time,CURDATE()) < 15), 1, 0)),0) AS "10-15年",
- IFNULL(sum(IF((TIMESTAMPDIFF(YEAR,a.join_time,CURDATE())>=15 and TIMESTAMPDIFF(YEAR,a.join_time,CURDATE()) < 20), 1, 0)),0) AS "15-20年",
- IFNULL(sum(IF((TIMESTAMPDIFF(YEAR,a.join_time,CURDATE())>=20 and TIMESTAMPDIFF(YEAR,a.join_time,CURDATE()) <= 30), 1, 0)),0) AS "20-30年",
- IFNULL(sum(IF((TIMESTAMPDIFF(YEAR,a.join_time,CURDATE())>30), 1, 0)),0) AS "30年以上"
- from party_member_manage a
- where a.user_table_id = #{userTableId}
- </select>
- <select id="selectCount" parameterType="Long" resultType="Integer">
- select count(1) from party_member_manage where user_table_id = #{userTableId}
- </select>
- <select id="partyOrgMembers" resultType="java.util.LinkedHashMap" parameterType="Long">
- select
- b.name,
- (select count(1) from party_member_manage a where a.org_id = b.id) as "countNum",
- (select count(1) from party_member_manage a where a.org_id = b.id and a.is_excellent = '1') as "excellentNum"
- from party_org_manage b
- where b.user_table_id = #{orgUserTableId}
- order by b.sort
- </select>
- <select id="selectWxMemberInfoVo" parameterType="Long" resultType="com.inspur.domain.app.PartyMemberInfoVo">
- SELECT m.id, m.`name`,m.gender,m.join_time as joinTime,m.pic_path as picPath,m.org_id as orgId,o.`name` as orgName,p.`name` as parentOrgName from party_member_manage m
- LEFT JOIN party_org_manage o on o.id = m.org_id
- LEFT JOIN party_org_manage p on o.pid = p.id
- where m.id = #{memeberId}
- </select>
- <select id="selectMemberManageList" parameterType="String" resultMap="PartyMemberManageResult">
- select m.id, m.name, m.gender, m.nation, m.birth, m.id_number, m.education, m.pic_path, m.native_place, m.address, m.party_type,
- m.join_time, m.is_excellent, m.is_retire, m.status, m.mobile, m.email, m.file_path, m.sort, m.org_id, m.create_time, m.create_by,o.name as org_name,m.user_table_id as userTableId from party_member_manage m left join party_org_manage o on o.id = m.org_id
- where m.org_id = #{orgId}
- order by m.sort
- </select>
- <select id="selectMyOrgMemberList" parameterType="Long" resultType="com.inspur.domain.partywork.PartyMemberManage">
- SELECT m.id, m.`name`,m.gender,m.join_time as joinTime,m.pic_path as picPath,m.org_id as orgId,IFNULL(CONCAT(p.`name`,'/',o.`name`),o.`name`) as orgName from party_member_manage m
- LEFT JOIN party_org_manage o on o.id = m.org_id
- LEFT JOIN party_org_manage p on o.pid = p.id
- where m.user_table_id = #{userTableId}
- and m.status = '0'
- order by m.sort
- </select>
- </mapper>
|