|
|
@@ -379,32 +379,32 @@
|
|
|
</select>
|
|
|
|
|
|
<select id="findByPosition" parameterType="java.util.Map" resultMap="PartyEmployee">
|
|
|
- select <include refid="columns"/> from IBPS_PARTY_EMPLOYEE b
|
|
|
- where b.POSITIONS_ in
|
|
|
- (
|
|
|
- select id_ from ibps_party_entity
|
|
|
- <where>
|
|
|
- <if test="@o.Ognl@isNotEmpty(whereSql)">
|
|
|
- AND ${whereSql}
|
|
|
- </if>
|
|
|
- </where>
|
|
|
- <!--where PATH_ like #{position}-->
|
|
|
- )
|
|
|
+ select <include refid="columns"/> from IBPS_PARTY_EMPLOYEE
|
|
|
+ left join ( select ID_ USER_ID_,ACCOUNT_,IS_SUPER_ from IBPS_PARTY_USER ) A on USER_ID_ = ID_
|
|
|
+ left join ( select ID_ ORG_ID_,NAME_ ORG_NAME_ from IBPS_PARTY_ORG )B on ORG_ID_ = GROUP_ID_
|
|
|
+ where ID_ != '-1'
|
|
|
+ AND STATUS_ != 'deleted'
|
|
|
+ <if test="@o.Ognl@isNotEmpty(whereSql)">
|
|
|
+ AND ${whereSql}
|
|
|
+ </if>
|
|
|
+ <if test="@o.Ognl@isNotEmpty(position)">
|
|
|
+ AND POSITIONS_ in(select id_ from ibps_party_entity where PATH_ like #{position} )
|
|
|
+ </if>
|
|
|
ORDER BY CREATE_TIME_ DESC
|
|
|
</select>
|
|
|
|
|
|
<select id="findIdsByPositionId" parameterType="java.util.Map" resultMap="PartyEmployee">
|
|
|
- select ID_ from IBPS_PARTY_EMPLOYEE b
|
|
|
- where b.POSITIONS_ in
|
|
|
- (
|
|
|
- select id_ from ibps_party_entity
|
|
|
- <where>
|
|
|
- <if test="@o.Ognl@isNotEmpty(whereSql)">
|
|
|
- AND ${whereSql}
|
|
|
- </if>
|
|
|
- </where>
|
|
|
- <!--where PATH_ like #{position}-->
|
|
|
- )
|
|
|
+ select ID_ from IBPS_PARTY_EMPLOYEE
|
|
|
+ left join ( select ID_ USER_ID_,ACCOUNT_,IS_SUPER_ from IBPS_PARTY_USER ) A on USER_ID_ = ID_
|
|
|
+ left join ( select ID_ ORG_ID_,NAME_ ORG_NAME_ from IBPS_PARTY_ORG )B on ORG_ID_ = GROUP_ID_
|
|
|
+ where ID_ != '-1'
|
|
|
+ AND STATUS_ != 'deleted'
|
|
|
+ <if test="@o.Ognl@isNotEmpty(whereSql)">
|
|
|
+ AND ${whereSql}
|
|
|
+ </if>
|
|
|
+ <if test="@o.Ognl@isNotEmpty(position)">
|
|
|
+ AND POSITIONS_ in(select id_ from ibps_party_entity where PATH_ like #{position} )
|
|
|
+ </if>
|
|
|
ORDER BY CREATE_TIME_ DESC
|
|
|
</select>
|
|
|
|