刘帅
2026-09-08 572df690f72ed4a077d934823f261dec39b3cc7d
cloud-server-activity/src/main/resources/mapper/PayHuiminMapper.xml
@@ -9,10 +9,13 @@
        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,
@@ -72,14 +75,17 @@
        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)
@@ -122,10 +128,13 @@
        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,
@@ -138,14 +147,18 @@
        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)