申请应用领域分词
This commit is contained in:
parent
05ad116e04
commit
db8319022e
|
@ -46,7 +46,9 @@
|
||||||
</select>
|
</select>
|
||||||
<select id="selectDeptApplyCount" resultType="java.util.Map">
|
<select id="selectDeptApplyCount" resultType="java.util.Map">
|
||||||
SELECT
|
SELECT
|
||||||
COUNT( DISTINCT tda.attr_value ),
|
COUNT(
|
||||||
|
DISTINCT any_value (
|
||||||
|
SUBSTRING_INDEX( SUBSTRING_INDEX( tda.attr_value, ';', b.help_topic_id + 1 ), ';',- 1 ))) AS value_,
|
||||||
any_value ( temp.dept_id ) dept_id
|
any_value ( temp.dept_id ) dept_id
|
||||||
FROM
|
FROM
|
||||||
(
|
(
|
||||||
|
@ -69,6 +71,7 @@
|
||||||
AND tda.attr_type = '应用领域'
|
AND tda.attr_type = '应用领域'
|
||||||
AND tda.del_flag = 0
|
AND tda.del_flag = 0
|
||||||
AND temp.approve_status = '通过'
|
AND temp.approve_status = '通过'
|
||||||
|
JOIN mysql.help_topic b ON b.help_topic_id < ( LENGTH( tda.attr_value ) - LENGTH( REPLACE ( tda.attr_value, ';', '' ) ) + 1 )
|
||||||
GROUP BY
|
GROUP BY
|
||||||
temp.dept_id
|
temp.dept_id
|
||||||
LIMIT #{n}
|
LIMIT #{n}
|
||||||
|
|
Loading…
Reference in New Issue