| | |
| | | thc.huiMinName, |
| | | thc.huiMinType, |
| | | tph.salesMoney, |
| | | tph.paymentType, |
| | | thc.operatorId, |
| | | thc.storeIds, |
| | | tph.appUserId, |
| | | tph.paymentTime, |
| | | tph.refundTime, |
| | | tph.refundStatus, |
| | | tph.endTime, |
| | | tph.studentId, |
| | | thc.id as carId, |
| | |
| | | LEFT JOIN t_huimin_card thc ON tph.cardId = thc.id |
| | | <where> |
| | | tph.id IS NOT NULL |
| | | <if test="query.giftPaymentType != null"> |
| | | AND (tph.paymentType IS NULL OR tph.paymentType != #{query.giftPaymentType}) |
| | | </if> |
| | | <if test="query.huiMinName !=null and query.huiMinName != ''"> |
| | | AND thc.huiMinName LIKE CONCAT('%',#{query.huiMinName},'%') |
| | | </if> |
| | | <if test="query.huiMinType !=null and query.huiMinType != ''"> |
| | | AND thc.huiMinType = #{query.huiMinType} |
| | | </if> |
| | | <if test="query.operatorId !=null and query.operatorId != ''"> |
| | | AND thc.huiMinType = #{query.huiMinType} |
| | | <if test="query.operatorId !=null"> |
| | | AND thc.operatorId = #{query.operatorId} |
| | | </if> |
| | | <if test="query.useId !=null and query.useId != ''"> |
| | | AND FIND_IN_SET(#{query.useId},thc.useIds) |
| | |
| | | thc.huiMinName, |
| | | thc.huiMinType, |
| | | tph.salesMoney, |
| | | tph.paymentType, |
| | | thc.operatorId, |
| | | thc.storeIds, |
| | | tph.appUserId, |
| | | tph.paymentTime, |
| | | tph.refundTime, |
| | | tph.refundStatus, |
| | | tph.endTime, |
| | | tph.studentId, |
| | | tph.status, |
| | |
| | | LEFT JOIN t_huimin_card thc ON tph.cardId = thc.id |
| | | LEFT JOIN t_huimin_record thr ON tph.appUserId= thr.appUserId AND tph.cardId= thr.huiminCardId |
| | | <where> |
| | | tph.id IS NOT NULL |
| | | <if test="query.giftPaymentType != null"> |
| | | AND (tph.paymentType IS NULL OR tph.paymentType != #{query.giftPaymentType}) |
| | | </if> |
| | | <if test="query.huiMinName !=null and query.huiMinName != ''"> |
| | | AND thc.huiMinName LIKE CONCAT('%',#{query.huiMinName},'%') |
| | | </if> |
| | | <if test="query.huiMinType !=null and query.huiMinType != ''"> |
| | | AND thc.huiMinType = #{query.huiMinType} |
| | | </if> |
| | | <if test="query.operatorId !=null and query.operatorId != ''"> |
| | | AND thc.huiMinType = #{query.huiMinType} |
| | | <if test="query.operatorId !=null"> |
| | | AND thc.operatorId = #{query.operatorId} |
| | | </if> |
| | | <if test="query.useId !=null and query.useId != ''"> |
| | | AND FIND_IN_SET(#{query.useId},thc.useIds) |