|
|
@@ -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;
|