|
|
@@ -91,14 +91,30 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="refundMoney != null "> and lop.refund_money = #{refundMoney}</if>
|
|
|
<if test="refundTime != null "> and lop.refund_time = #{refundTime}</if>
|
|
|
<if test="storeId != null "> and lop.store_id = #{storeId}</if>
|
|
|
- <if test="companyId != null "> and lop.company_id = #{companyId}</if>
|
|
|
- <if test="companyUserId != null "> and lop.company_user_id = #{companyUserId}</if>
|
|
|
+ <if test="companyId != null "> and lo.company_id = #{companyId}</if>
|
|
|
+ <if test="companyUserId != null "> and lo.company_user_id = #{companyUserId}</if>
|
|
|
<if test="businessCode != null and businessCode != ''"> and lop.business_code = #{businessCode}</if>
|
|
|
<if test="payMode != null and payMode != ''"> and lop.pay_mode = #{payMode}</if>
|
|
|
<if test="shareStatus != null "> and lop.share_status = #{shareStatus}</if>
|
|
|
<if test="shareCode != null and shareCode != ''"> and lop.share_code = #{shareCode}</if>
|
|
|
<if test="shareMoney != null "> and lop.share_money = #{shareMoney}</if>
|
|
|
<if test="isShare != null "> and lop.is_share = #{isShare}</if>
|
|
|
+ <!-- 订单号查询(支持businessCode和orderCode) -->
|
|
|
+ <if test="orderCode != null and orderCode != ''"> and (lop.business_code = #{orderCode} or lo.order_code = #{orderCode})</if>
|
|
|
+ <!-- 手机号查询 -->
|
|
|
+ <if test="mobile != null and mobile != ''"> and lo.user_phone like concat('%',#{mobile},'%')</if>
|
|
|
+ <if test="userPhone != null and userPhone != ''"> and lo.user_phone like concat('%',#{userPhone},'%')</if>
|
|
|
+ <!-- 员工姓名查询 -->
|
|
|
+ <if test="companyUserNickName != null and companyUserNickName != ''"> and cu.nick_name like concat('%',#{companyUserNickName},'%')</if>
|
|
|
+ <!-- 提交时间范围查询 -->
|
|
|
+ <if test="createBeginTime != null and createBeginTime != ''"> and date_format(lop.create_time,'%y%m%d') >= date_format(#{createBeginTime},'%y%m%d')</if>
|
|
|
+ <if test="createEndTime != null and createEndTime != ''"> and date_format(lop.create_time,'%y%m%d') <= date_format(#{createEndTime},'%y%m%d')</if>
|
|
|
+ <!-- 支付时间范围查询 -->
|
|
|
+ <if test="beginTime != null and beginTime != ''"> and date_format(lop.pay_time,'%y%m%d') >= date_format(#{beginTime},'%y%m%d')</if>
|
|
|
+ <if test="endTime != null and endTime != ''"> and date_format(lop.pay_time,'%y%m%d') <= date_format(#{endTime},'%y%m%d')</if>
|
|
|
+ <!-- 退款时间范围查询 -->
|
|
|
+ <if test="refundBeginTime != null and refundBeginTime != ''"> and date_format(lop.refund_time,'%y%m%d') >= date_format(#{refundBeginTime},'%y%m%d')</if>
|
|
|
+ <if test="refundEndTime != null and refundEndTime != ''"> and date_format(lop.refund_time,'%y%m%d') <= date_format(#{refundEndTime},'%y%m%d')</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
<select id="selectLiveOrderPaymentByPaymentIdNew" resultType="com.fs.live.vo.LiveOrderPaymentVo">
|