Commit 7df3a57a authored by 332784038@qq.com's avatar 332784038@qq.com

目的国查询sql修复

parent 02c8be92
...@@ -382,10 +382,10 @@ ...@@ -382,10 +382,10 @@
</foreach> </foreach>
</if> </if>
</if> </if>
<if test="query.objectiveId != null and query.objectiveId.size() != 0"> <if test="query.objectiveIds != null and query.objectiveIds.size() > 0">
<if test="query.objectiveIds != null and query.objectiveIds.size()==1 "> <if test="query.objectiveIds != null and query.objectiveIds.size()==1 ">
AND ob.`objective_id` = AND ob.`objective_id` =
<foreach item='objectiveId' index='index' collection='query.objectiveId'> <foreach item='objectiveId' index='index' collection='query.objectiveIds'>
#{objectiveId} #{objectiveId}
</foreach> </foreach>
</if> </if>
...@@ -986,9 +986,9 @@ ...@@ -986,9 +986,9 @@
or pb.`title_zh` = #{query.notEqProdKey} or pb.`title_en` = #{query.notEqProdKey}) or pb.`title_zh` = #{query.notEqProdKey} or pb.`title_en` = #{query.notEqProdKey})
)) ))
</if> </if>
<!-- <if test="query.objectiveId != null and query.objectiveId.size() != 0">--> <!-- <if test="query.objectiveIds != null and query.objectiveIds.size() > 0">-->
<!-- AND ob.`objective_id` in--> <!-- AND ob.`objective_id` in-->
<!-- <foreach item='orderId' index='index' collection='query.objectiveId' open='(' separator=',' close=')'>--> <!-- <foreach item='orderId' index='index' collection='query.objectiveIds' open='(' separator=',' close=')'>-->
<!-- #{orderId}--> <!-- #{orderId}-->
<!-- </foreach>--> <!-- </foreach>-->
...@@ -1927,10 +1927,10 @@ ...@@ -1927,10 +1927,10 @@
</if> </if>
</if> </if>
<if test="query.objectiveId != null and query.objectiveId.size() != 0"> <if test="query.objectiveIds != null and query.objectiveIds.size() != 0">
<if test="query.objectiveIds != null and query.objectiveIds.size()==1 "> <if test="query.objectiveIds != null and query.objectiveIds.size()==1 ">
AND ob.`objective_id` = AND ob.`objective_id` =
<foreach item='objectiveId' index='index' collection='query.objectiveId'> <foreach item='objectiveId' index='index' collection='query.objectiveIds'>
#{objectiveId} #{objectiveId}
</foreach> </foreach>
</if> </if>
...@@ -2541,10 +2541,10 @@ ...@@ -2541,10 +2541,10 @@
</if> </if>
</if> </if>
<if test="query.objectiveId != null and query.objectiveId.size() != 0"> <if test="query.objectiveIds != null and query.objectiveIds.size() != 0">
<if test="query.objectiveIds != null and query.objectiveIds.size()==1 "> <if test="query.objectiveIds != null and query.objectiveIds.size()==1 ">
AND ob.`objective_id` = AND ob.`objective_id` =
<foreach item='objectiveId' index='index' collection='query.objectiveId'> <foreach item='objectiveId' index='index' collection='query.objectiveIds'>
#{objectiveId} #{objectiveId}
</foreach> </foreach>
</if> </if>
...@@ -3296,10 +3296,10 @@ ...@@ -3296,10 +3296,10 @@
</foreach> </foreach>
</if> </if>
</if> </if>
<if test="query.objectiveId != null and query.objectiveId.size() != 0"> <if test="query.objectiveIds != null and query.objectiveIds.size() > 0">
<if test="query.objectiveIds != null and query.objectiveIds.size()==1 "> <if test="query.objectiveIds != null and query.objectiveIds.size()==1 ">
AND ob.`objective_id` = AND ob.`objective_id` =
<foreach item='objectiveId' index='index' collection='query.objectiveId'> <foreach item='objectiveId' index='index' collection='query.objectiveIds'>
#{objectiveId} #{objectiveId}
</foreach> </foreach>
</if> </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