|
|
@@ -478,15 +478,20 @@
|
|
|
<!--generatedEnd-->
|
|
|
</set>
|
|
|
WHERE
|
|
|
- <if test="id != null and !"".equals(id)">
|
|
|
- id = #{id,jdbcType=INTEGER}
|
|
|
- </if>
|
|
|
- <if test="idStr != null and !"".equals(idStr)">
|
|
|
- id IN (${idStr})
|
|
|
- </if>
|
|
|
- <if test="orderId != null and !"".equals(orderId)">
|
|
|
- order_id = #{orderId}
|
|
|
- </if>
|
|
|
+
|
|
|
+ <choose>
|
|
|
+ <when test="id != null and !"".equals(id)">
|
|
|
+ id = #{id,jdbcType=INTEGER}
|
|
|
+ </when>
|
|
|
+ <otherwise>
|
|
|
+ <if test="idStr != null and !"".equals(idStr)">
|
|
|
+ id IN (${idStr})
|
|
|
+ </if>
|
|
|
+ <if test="orderId != null and !"".equals(orderId)">
|
|
|
+ order_id = #{orderId}
|
|
|
+ </if>
|
|
|
+ </otherwise>
|
|
|
+ </choose>
|
|
|
</update>
|
|
|
|
|
|
<select id="queryUserOrderDetailByPage" parameterType="java.util.Map"
|