xuhy
2025-12-31 5fbf6c24a047cd345682aa1e6fa043fff2f44bd2
保险
2个文件已修改
4 ■■■■■ 已修改文件
ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/TInsuranceOrderController.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-system/src/main/resources/mapper/system/TInsuranceOrderMapper.xml 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/TInsuranceOrderController.java
@@ -33,6 +33,7 @@
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.net.URLEncoder;
import java.time.LocalDateTime;
import java.util.List;
import java.util.Objects;
@@ -101,6 +102,7 @@
        if(dto.getOfflineStatus() == 1){
            // 通过
            insuranceOrder.setOfflineVoucher(dto.getOfflineVoucher());
            insuranceOrder.setPayTime(LocalDateTime.now());
            // 修改支付状态为已退款
            insuranceOrder.setStatus(2);
        }
ruoyi-system/src/main/resources/mapper/system/TInsuranceOrderMapper.xml
@@ -73,6 +73,7 @@
                AND tio.end_time >= #{query.startTime}
                AND tio.end_time <= #{query.endTime}
            </if>
            AND ((tio.pay_type = 1 AND tio.status != 0) OR (tio.pay_type = 2))
            AND tio.disabled = ${@com.ruoyi.common.enums.DisabledEnum@NO.getCode()}
        </where>
        ORDER BY tio.create_time DESC
@@ -138,6 +139,7 @@
                AND tio.end_time &gt;= #{query.startTime}
                AND tio.end_time &lt;= #{query.endTime}
            </if>
            AND ((tio.pay_type = 1 AND tio.status != 0) OR (tio.pay_type = 2))
            AND tio.disabled = ${@com.ruoyi.common.enums.DisabledEnum@NO.getCode()}
        </where>
        ORDER BY tio.create_time DESC