Commit 56a34467 authored by tangwei's avatar tangwei

修改bug

parent de91ac32
...@@ -200,7 +200,7 @@ ...@@ -200,7 +200,7 @@
'$' '$'
)</if> )</if>
AND p.is_delete = 0 AND p.is_delete = 0
and ( select COUNT(p_point_classify.id) fROM p_point_classify where p_point_classify.point_id =p.id) >0 and ( select COUNT(p_point_inputitem.id) fROM p_point_inputitem where p_point_inputitem.point_id =p.id) >0
<if test="name!=null"> AND ( p.point_no LIKE CONCAT('%', #{name},'%') <if test="name!=null"> AND ( p.point_no LIKE CONCAT('%', #{name},'%')
OR p.NAME LIKE CONCAT('%', #{name},'%')) </if> OR p.NAME LIKE CONCAT('%', #{name},'%')) </if>
<if test="query != null and query != ''"> <if test="query != null and query != ''">
...@@ -257,7 +257,7 @@ ...@@ -257,7 +257,7 @@
'$' '$'
)</if> )</if>
AND p.is_delete = 0 AND p.is_delete = 0
and ( select COUNT(p_point_classify.id) fROM p_point_classify where p_point_classify.point_id =p.id) >0 and ( select COUNT(p_point_inputitem.id) fROM p_point_inputitem where p_point_inputitem.point_id =p.id) >0
<if test="name!=null"> AND ( p.point_no LIKE CONCAT('%', #{name},'%') <if test="name!=null"> AND ( p.point_no LIKE CONCAT('%', #{name},'%')
OR p.NAME LIKE CONCAT('%', #{name},'%')) </if> OR p.NAME LIKE CONCAT('%', #{name},'%')) </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