Commit 08595936 authored by lisong's avatar lisong

修改函数适配

parent 350a889e
...@@ -12,18 +12,19 @@ ...@@ -12,18 +12,19 @@
FROM FROM
p_point_inputitem pi p_point_inputitem pi
LEFT JOIN p_input_item ii ON ii.id = pi.input_item_id LEFT JOIN p_input_item ii ON ii.id = pi.input_item_id
LEFT JOIN p_point_classify pc ON pi.classify_ids REGEXP CONCAT( LEFT JOIN p_point_classify pc ON find_in_set(pc.id, pi.classify_ids)
'^', -- pi.classify_ids REGEXP CONCAT(
pc.id, -- '^',
',|,', -- pc.id,
pc.id, -- ',|,',
',|,', -- pc.id,
pc.id, -- ',|,',
'$', -- pc.id,
'|^', -- '$',
pc.id, -- '|^',
'$' -- pc.id,
) -- '$'
-- )
<where> <where>
<if test="pointId!=null">AND pi.point_id = #{pointId}</if> <if test="pointId!=null">AND pi.point_id = #{pointId}</if>
<if test="classifyId!=null"> AND pc.id = #{classifyId} </if> <if test="classifyId!=null"> AND pc.id = #{classifyId} </if>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment