chenchen 3 сар өмнө
parent
commit
57d3488a08

+ 1 - 1
application-webadmin/src/main/java/com/tourism/webadmin/back/service/impl/TourProjectGroupPurchaseDetailServiceImpl.java

@@ -99,7 +99,7 @@ public class TourProjectGroupPurchaseDetailServiceImpl extends BaseService<TourP
     @Override
     public CallResult verifyRelatedDataBeforeDelete(TourProjectGroupPurchaseDetail tourProjectGroupPurchaseDetail) {
         TourProjectGroupPurchase tourProjectGroupPurchase = new TourProjectGroupPurchase();
-        tourProjectGroupPurchase.setCode(tourProjectGroupPurchaseDetail.getGroupPurchaseId());
+        tourProjectGroupPurchase.setCode(tourProjectGroupPurchaseDetail.getGroupPurchaseCode());
         if (tourProjectGroupPurchaseService.getCountByFilter(tourProjectGroupPurchase) > 0) {
             // NOTE: 可以根据需求修改下面方括号中的提示信息。
             return CallResult.error("数据验证失败,[TourProjectGroupPurchase] 存在关联数据!");