peixue-dev/Archive/peidu-temp-files/scripts/verify_backend_compilation.bat

40 lines
1.0 KiB
Batchfile
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@echo off
chcp 65001 >nul
echo ========================================
echo 后端编译验证脚本
echo ========================================
echo.
echo 📋 检查后端源代码...
echo.
cd /d "%~dp0backend\src\main\java\com\peidu\service\impl"
if exist ReviewServiceImpl.java (
echo ✅ 找到 ReviewServiceImpl.java
echo.
echo 🔍 检查状态验证逻辑...
findstr /C:"order.getStatus() != 3 && order.getStatus() != 4" ReviewServiceImpl.java >nul
if %errorlevel% == 0 (
echo ✅ 代码已正确修改允许状态3和4
) else (
echo ❌ 代码可能未正确修改
)
) else (
echo ❌ 未找到 ReviewServiceImpl.java
)
echo.
echo ========================================
echo 📋 下一步操作
echo ========================================
echo.
echo 1. 在 IDEA 中点击Build → Rebuild Project
echo 2. 等待编译完成(看到 BUILD SUCCESS
echo 3. 重启后端服务
echo 4. 刷新前端并测试
echo.
echo ========================================
pause