Browse Source

fix(app):修正订单状态判断逻辑

- 调整订单状态判断条件,确保正确更新订单状态
- 修复因状态判断错误导致的订单流程异常问题
wzq 3 weeks ago
parent
commit
af75c99581

+ 1 - 1
national-motion-module-system/national-motion-system-biz/src/main/java/org/jeecg/modules/system/app/service/impl/AppCoursesVerificationRecordServiceImpl.java

@@ -103,7 +103,7 @@ public class AppCoursesVerificationRecordServiceImpl extends ServiceImpl<AppCour
                                 appOrderMapper.updateById(appOrder);
                             }
                             List<AppOrderProInfo> proInfoList = appOrderProInfoMapper.selectList(Wrappers.<AppOrderProInfo>lambdaQuery().eq(AppOrderProInfo::getOrderId, orderId)
-                                    .eq(AppOrderProInfo::getOrderStatus, CommonConstant.ORDER_STATUS_2)
+                                    .eq(AppOrderProInfo::getOrderStatus, CommonConstant.ORDER_STATUS_1)
                                     .eq(AppOrderProInfo::getType, CommonConstant.ORDER_PRO_INFO_TYPE_5));
                             if (ObjectUtil.isEmpty(proInfoList) && Objects.equals(appOrder.getOrderStatus(), CommonConstant.ORDER_STATUS_1)) {
                                 appOrder.setOrderStatus(CommonConstant.ORDER_STATUS_2);