Przeglądaj źródła

成果需求删除

wanghui 7 lat temu
rodzic
commit
204c6ef841

+ 2 - 2
src/main/java/com/goafanti/achievement/controller/UserAchievementApiController.java

@@ -396,13 +396,13 @@ public class UserAchievementApiController extends CertifyApiController {
 		if (ids == null || ids.length != 1) {
 			res.getError().add(buildError(ErrorConstants.PARAM_ERROR, "", ""));
 		} else {
-			List<AchievementOrder> list = achievementOrderService.selectAchievementOrderByAchievementId(ids[0]);
+			/*List<AchievementOrder> list = achievementOrderService.selectAchievementOrderByAchievementId(ids[0]);
 			for (AchievementOrder order : list) {
 				if (!AchievementOrderStatus.UNPAYED.getCode().equals(order.getStatus())) {
 					res.getError().add(buildError("", "当前科技成果有订单,无法删除!"));
 					return res;
 				}
-			}
+			}*/
 			res.setData(achievementService.deleteByPrimaryKey(Arrays.asList(ids)));
 		}
 		return res;

+ 2 - 2
src/main/java/com/goafanti/demand/controller/UserDemandApiController.java

@@ -301,13 +301,13 @@ public class UserDemandApiController extends CertifyApiController {
 		if (ids == null || ids.length != 1) {
 			res.getError().add(buildError(ErrorConstants.PARAM_ERROR, "", ""));
 		} else {
-			List<DemandOrder> list = demandOrderService.selectDemandOrderByDemandId(ids[0]);
+			/*	List<DemandOrder> list = demandOrderService.selectDemandOrderByDemandId(ids[0]);
 			for (DemandOrder order : list){
 				if (!DemandOrderStatus.CREATE.getCode().equals(order.getStatus())){
 					res.getError().add(buildError("", "当前科技需求有订单,无法删除!"));
 					return res;
 				}
-			}
+			}*/
 			res.setData(demandService.deleteByPrimaryKey(Arrays.asList(ids)));
 		}
 		return res;