🔥 移除毛利分析数据范围过滤
This commit is contained in:
@@ -203,23 +203,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
and (i.product_amount is null or i.redline_amount is null or i.sales_amount is null)
|
||||
</when>
|
||||
</choose>
|
||||
<if test="params != null and params.dataScope != null and params.dataScope != ''">
|
||||
and exists (
|
||||
select 1
|
||||
from sys_user su
|
||||
where su.del_flag = '0'
|
||||
and (
|
||||
(p.belong_saler_code is not null and p.belong_saler_code != ''
|
||||
and (su.user_name = p.belong_saler_code collate utf8mb4_general_ci
|
||||
or su.user_id = p.belong_saler_code + 0))
|
||||
or
|
||||
(p.settlement_man_code is not null and p.settlement_man_code != ''
|
||||
and (su.user_name = p.settlement_man_code collate utf8mb4_general_ci
|
||||
or su.user_id = p.settlement_man_code + 0))
|
||||
)
|
||||
${params.dataScope}
|
||||
)
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user