The query selects various fields from the t_activity_info table and joins it with the t_activity_project_info and tb_bic_vallist tables. The WHERE clause filters the results to only include rows where the IS_ENABLE field is '1'. Additionally, if the orgIds parameter is not null or empty, the query includes a subquery to filter the results based on whether the orgIds value is present in the PROXY_CODE field of the t_activity_proxy_info table for the given activity.

SELECT AACTIVITY_ID AS activityId APROJECT_CODE AS projectCode BPROJECT_ID AS projectId BPROJECT_NAME AS projectName AACTIVITY_CODE AS activityCode AACTIVITY_

原文地址: http://www.cveoy.top/t/topic/bVUt 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录