✨ 应收账单接入角色数据权限并同步在线缓存
This commit is contained in:
@@ -66,6 +66,12 @@
|
||||
<include refid="columns"/>
|
||||
where create_by = #{createBy}
|
||||
and status in ('WAITING', 'RUNNING', 'CANCEL_REQUESTED')
|
||||
<if test="params.dataScope != null and params.dataScope != ''">
|
||||
and exists (
|
||||
select 1 from ar_bill b where b.ar_bill_id = ar_bill_generate_task.ar_bill_id
|
||||
<include refid="com.bms.ar.mapper.ArBillMapper.customerDataScope"><property name="customerIdColumn" value="b.customer_id"/></include>
|
||||
)
|
||||
</if>
|
||||
order by create_time desc, task_id desc
|
||||
</select>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user