傅行帆 5 anni fa
parent
commit
0a09a4b976

+ 5
- 0
src/main/java/com/huiju/estateagents/bo/request/RaiseOrderRequestBO.java Vedi File

@@ -23,6 +23,11 @@ public class RaiseOrderRequestBO {
23 23
      */
24 24
     private Integer orderId;
25 25
 
26
+    /**
27
+     * 订单表ID
28
+     */
29
+    private Integer refundedOrderId;
30
+
26 31
     /**
27 32
      * 认筹单表ID
28 33
      */

+ 6
- 0
src/main/java/com/huiju/estateagents/entity/TaRaiseRecord.java Vedi File

@@ -240,4 +240,10 @@ public class TaRaiseRecord implements Serializable {
240 240
      */
241 241
     @TableField(exist = false)
242 242
     private String captcha;
243
+
244
+    /**
245
+     * 订单id
246
+     */
247
+    @TableField(exist = false)
248
+    private Integer refundedOrderId;
243 249
 }

+ 0
- 1
src/main/resources/mapper/TaHousingResourcesMapper.xml Vedi File

@@ -46,7 +46,6 @@
46 46
             AND t4.`status` = 1
47 47
         <if test = "source == 'raiseChoose'">
48 48
             AND ( t6.`status` != 0 OR t6.`status` IS NULL )
49
-            --AND (t.house_locking_status  != 'locked' OR t.house_locking_status IS NULL)
50 49
             AND t7.raise_start_time &lt;= now() AND t7.raise_end_time &gt;= now()
51 50
             <if test="personId != null and personId != ''">
52 51
                 AND (t6.person_id != #{personId} OR t6.person_id IS NULL)

+ 5
- 1
src/main/resources/mapper/TaRaiseRecordMapper.xml Vedi File

@@ -139,6 +139,7 @@
139 139
             t2.trade_no,
140 140
             t2.transaction_id,
141 141
             t4.refund_no,
142
+            t4.order_id as refunded_order_id,
142 143
             t2.total_fee
143 144
         FROM
144 145
             ta_raise_record t
@@ -154,6 +155,9 @@
154 155
             <if test = "bo.orderId != null and bo.orderId != ''">
155 156
                 AND t2.order_id = #{bo.orderId}
156 157
             </if>
158
+            <if test = "bo.refundedOrderId != null and bo.refundedOrderId != ''">
159
+                AND t4.order_id = #{bo.refundedOrderId}
160
+            </if>
157 161
             <if test = "bo.raiseRecordId != null and bo.raiseRecordId != ''">
158 162
                 AND t.raise_record_id = #{bo.raiseRecordId}
159 163
             </if>
@@ -173,7 +177,7 @@
173 177
                 AND t2.refund_no = #{bo.refundNo}
174 178
             </if>
175 179
             <if test = "bo.payStatus == 'paid'">
176
-                AND t.pay_status = #{bo.payStatus}
180
+                AND t.pay_status IN ('refunded','paid')
177 181
             </if>
178 182
             <if test = "bo.payStatus == 'refunded'">
179 183
                 AND t.pay_status IN ('refunded','change')