|
@@ -155,7 +155,7 @@
|
|
|
SELECT t.deptid, t.deptname, t.main_leader, t.main_leader_phone, t.leaderperson, t.leaderphone,t.workperson,t.workphone,
|
|
|
substring_index(substring_index(t.have_chnlid, ',', b.help_topic_id + 1), ',', - 1) AS chnlid
|
|
|
FROM t_dept t
|
|
|
- INNER JOIN mysql.help_topic b ON b.help_topic_id < (length(t.have_chnlid) - length(REPLACE(t.have_chnlid, ',', '')) + 1)
|
|
|
+ INNER JOIN mysql.help_topic b ON b.help_topic_id < (length(t.have_chnlid) - length(REPLACE(t.have_chnlid, ',', '')) + 1)
|
|
|
) a
|
|
|
inner JOIN column_relation c ON a.CHNLID = c.CHNLID AND c.frequency > 0
|
|
|
inner JOIN (
|