@@ -260,6 +260,8 @@
where
sc.status = 1
<if test="dto.name != null and dto.name != ''"> and sc.name like concat('%',#{dto.name} ,'%')</if>
+ <if test="dto.companyOrgId != null"> and sc.company_org_id = #{dto.companyOrgId}</if>
+ <if test="dto.deptOrgId != null"> and sc.dept_org_id = #{dto.deptOrgId}</if>
<include refid="permissionCondition"/>
order by sc.create_date desc
</select>