<if test="param1.productStatus != null and param1.productStatus != ''"> and c.`product_status` =#{param1.productStatus} </if>
当productStatus为0时,该代码不生效。
改成
<if test="param1.productStatus != null "> and c.`productStatus` =#{param1.productStatus} </if>
去掉字符判空即可。