| | |
| | | thc.huiMinType, |
| | | thc.salesMoney, |
| | | thc.operatorId, |
| | | thc.storeId, |
| | | thc.storeIds, |
| | | tph.appUserId, |
| | | tph.paymentTime, |
| | | thc.endTime, |
| | |
| | | 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.huiMinName !=null and query.huiMinName != ''"> |
| | | AND thc.huiMinName LIKE CONCAT('%',#{query.huiMinName},'%') |
| | | </if> |
| | |
| | | </choose> |
| | | </if> |
| | | </where> |
| | | GROUP BY tph.id |
| | | ORDER BY tph.insertTime DESC |
| | | </select> |
| | | </mapper> |