|
@@ -12,17 +12,17 @@
|
|
left join t_user u on o.user_id = u.id
|
|
left join t_user u on o.user_id = u.id
|
|
<include refid="commonWhere"></include>
|
|
<include refid="commonWhere"></include>
|
|
<if test="param.customerType!=null or param.payMethod!=null or param.useType!=null">
|
|
<if test="param.customerType!=null or param.payMethod!=null or param.useType!=null">
|
|
- o.rec_status = 'ABC'
|
|
|
|
|
|
+ and o.rec_status = 'ABC'
|
|
</if>
|
|
</if>
|
|
union all
|
|
union all
|
|
SELECT o.*,u.user_name,u.nick_name ,'线下'as payMethod from t_increment_order_mg o
|
|
SELECT o.*,u.user_name,u.nick_name ,'线下'as payMethod from t_increment_order_mg o
|
|
left join t_user u on o.user_id = u.id
|
|
left join t_user u on o.user_id = u.id
|
|
<include refid="commonWhere"></include>
|
|
<include refid="commonWhere"></include>
|
|
<if test="param.customerType!=null">
|
|
<if test="param.customerType!=null">
|
|
- o.customer_type = #{param.customerType}
|
|
|
|
|
|
+ and o.customer_type = #{param.customerType}
|
|
</if>
|
|
</if>
|
|
<if test="param.useType!=null">
|
|
<if test="param.useType!=null">
|
|
- o.use_type = #{param.useType}
|
|
|
|
|
|
+ and o.use_type = #{param.useType}
|
|
</if>
|
|
</if>
|
|
order by create_time desc
|
|
order by create_time desc
|
|
</select>
|
|
</select>
|