订单查询

This commit is contained in:
2025-06-17 15:53:38 +08:00
parent 53a09c1cab
commit 5f8c4fd6e6
2 changed files with 2 additions and 33 deletions

View File

@@ -33,16 +33,6 @@ public class OrderReqQuery extends BaseQueryParameterReq {
*/ */
@ApiModelProperty("微信openId") @ApiModelProperty("微信openId")
private Long openId; private Long openId;
/**
* 价格
*/
@ApiModelProperty("价格")
private BigDecimal price;
/**
* 实际支付价格
*/
@ApiModelProperty("实际支付价格")
private BigDecimal payPrice;
/** /**
* 备注 * 备注
*/ */

View File

@@ -244,7 +244,7 @@
left join scenic s on o.scenic_id = s.id left join scenic s on o.scenic_id = s.id
<where> <where>
<if test="id!= null "> <if test="id!= null ">
and o.id = #{id} and o.id LIKE CONCAT('%',#{id},'%')
</if> </if>
<if test="scenicId != null"> <if test="scenicId != null">
and o.scenic_id = #{scenicId} and o.scenic_id = #{scenicId}
@@ -253,26 +253,17 @@
and m.nickname like concat('%',#{memberNickname},'%') and m.nickname like concat('%',#{memberNickname},'%')
</if> </if>
<if test="memberId != null"> <if test="memberId != null">
and o.member_id like concat('%',#{memberId},'%') and (o.member_id like concat('%',#{memberId},'%') or m.uid like concat('%',#{memberId},'%'))
</if> </if>
<if test="memberUid!= null"> <if test="memberUid!= null">
and m.uid = #{memberUid} and m.uid = #{memberUid}
</if> </if>
<if test="price!= null ">
and o.price = #{price}
</if>
<if test="payPrice!= null ">
and pay_price = #{payPrice}
</if>
<if test="remark!= null and remark!= ''"> <if test="remark!= null and remark!= ''">
and remark like concat('%',#{remark},'%') and remark like concat('%',#{remark},'%')
</if> </if>
<if test="brokerId!= null "> <if test="brokerId!= null ">
and o.broker_id = #{brokerId} and o.broker_id = #{brokerId}
</if> </if>
<if test="promoCode!= null and promoCode!= ''">
and o.promo_code like concat('%',#{promoCode},'%')
</if>
<if test="refundReason!= null and refundReason!= ''"> <if test="refundReason!= null and refundReason!= ''">
and refund_reason like concat('%',#{refundReason},'%') and refund_reason like concat('%',#{refundReason},'%')
</if> </if>
@@ -338,12 +329,6 @@
<if test="memberUid!= null"> <if test="memberUid!= null">
and m.uid = #{memberUid} and m.uid = #{memberUid}
</if> </if>
<if test="price!= null ">
and o.price = #{price}
</if>
<if test="payPrice!= null ">
and pay_price = #{payPrice}
</if>
<if test="remark!= null and remark!= ''"> <if test="remark!= null and remark!= ''">
and remark like concat('%',#{remark},'%') and remark like concat('%',#{remark},'%')
</if> </if>
@@ -450,12 +435,6 @@
<if test="memberUid!= null"> <if test="memberUid!= null">
and m.uid = #{memberUid} and m.uid = #{memberUid}
</if> </if>
<if test="price!= null ">
and o.price = #{price}
</if>
<if test="payPrice!= null ">
and pay_price = #{payPrice}
</if>
<if test="remark!= null and remark!= ''"> <if test="remark!= null and remark!= ''">
and remark like concat('%',#{remark},'%') and remark like concat('%',#{remark},'%')
</if> </if>