Commit d16b0048 by zhiwj

查询按and

parent 22a5a237
...@@ -539,11 +539,6 @@ ...@@ -539,11 +539,6 @@
<if test="endTime != null and endTime != '' "> <if test="endTime != null and endTime != '' ">
and evaluate_time &lt;= #{endTime} and evaluate_time &lt;= #{endTime}
</if> </if>
<if test="badEvaluateStatus != null or goodEvaluateStatus != null or reviewStatus != null or topHotStatus != null or maliciousStatus != null or goodsCompute != null or storeCompute != null or serviceCompute != null ">
and
1=1 (
<if test="badEvaluateStatus != null or goodEvaluateStatus != null or reviewStatus != null or topHotStatus != null or maliciousStatus != null">
(
<if test="badEvaluateStatus != null "> <if test="badEvaluateStatus != null ">
and bad_evaluate_status = #{badEvaluateStatus} and bad_evaluate_status = #{badEvaluateStatus}
</if> </if>
...@@ -559,17 +554,7 @@ ...@@ -559,17 +554,7 @@
<if test="maliciousStatus != null "> <if test="maliciousStatus != null ">
and malicious_status = #{maliciousStatus} and malicious_status = #{maliciousStatus}
</if> </if>
)
</if>
<!-- <if test="badEvaluateStatus == null and goodEvaluateStatus == null and reviewStatus == null and topHotStatus == null and maliciousStatus == null">-->
<!-- 1=0-->
<!-- </if>-->
and (
<!-- <if test="goodsCompute == null and storeCompute == null and serviceCompute == null">-->
<!-- 1=0-->
<!-- </if>-->
1=1
<if test="goodsCompute != null or storeCompute != null or serviceCompute != null">
<if test="goodsCompute != null and goodsCompute != '' and goodsScore != null "> <if test="goodsCompute != null and goodsCompute != '' and goodsScore != null ">
and goods_score ${goodsCompute} #{goodsScore} and goods_score ${goodsCompute} #{goodsScore}
</if> </if>
...@@ -579,10 +564,7 @@ ...@@ -579,10 +564,7 @@
<if test="serviceCompute != null and serviceCompute != '' and serviceScore != null "> <if test="serviceCompute != null and serviceCompute != '' and serviceScore != null ">
and service_score ${serviceCompute} #{serviceScore} and service_score ${serviceCompute} #{serviceScore}
</if> </if>
</if>
)
)
</if>
<if test="replyStatus != null "> <if test="replyStatus != null ">
and reply_status = #{replyStatus} and reply_status = #{replyStatus}
</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