|
|
@@ -84,7 +84,7 @@
|
|
|
-- 数据权限匹配
|
|
|
<choose>
|
|
|
<when test="query.manager != null and !query.manager">
|
|
|
- <if test="query.isMain == 0">
|
|
|
+ <if test="query.isMain == 1">
|
|
|
<if test="query.entList != null and query.entList.size() > 0">
|
|
|
and (
|
|
|
d.top_ent_id in
|
|
|
@@ -94,18 +94,24 @@
|
|
|
)
|
|
|
</if>
|
|
|
</if>
|
|
|
- <if test="query.isMain == 1">
|
|
|
- <if test="query.entId != null">
|
|
|
- and (d.top_ent_id = #{query.entId}
|
|
|
- )
|
|
|
+ <if test="query.isMain == 0">
|
|
|
+ <if test="query.entId != null and query.entType != null">
|
|
|
+ <if test="query.entType == 1">
|
|
|
+ and (e.top_ent_id = #{query.entId}
|
|
|
+ )
|
|
|
+ </if>
|
|
|
+ <if test="query.entType == 2">
|
|
|
+ and (d.top_ent_id = #{query.entId}
|
|
|
+ )
|
|
|
+ </if>
|
|
|
</if>
|
|
|
</if>
|
|
|
</when>
|
|
|
</choose>
|
|
|
- <if test="query.buyEntId !=null">
|
|
|
+ <if test="query.buyEntId != null">
|
|
|
and d.ent_id = #{query.buyEntId}
|
|
|
</if>
|
|
|
- <if test="query.saleEntId !=null">
|
|
|
+ <if test="query.saleEntId != null">
|
|
|
and e.ent_id = #{query.saleEntId}
|
|
|
</if>
|
|
|
<if test="query.status != null">
|