|
@@ -22,15 +22,12 @@ import org.springframework.data.domain.Page;
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
-import javax.servlet.http.HttpServletRequest;
|
|
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
import java.io.IOException;
|
|
import java.io.IOException;
|
|
|
-import java.time.OffsetTime;
|
|
|
|
|
import java.util.HashMap;
|
|
import java.util.HashMap;
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
import java.util.Map;
|
|
|
import java.util.Optional;
|
|
import java.util.Optional;
|
|
|
-import java.util.regex.Pattern;
|
|
|
|
|
import java.util.stream.Collectors;
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
|
|
@RestController
|
|
@RestController
|
|
@@ -160,5 +157,10 @@ public class OrderController extends BaseController {
|
|
|
public Object createResult(@RequestParam String id) {
|
|
public Object createResult(@RequestParam String id) {
|
|
|
return orderService.queryCreateOrder(id);
|
|
return orderService.queryCreateOrder(id);
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ @GetMapping("/checkLimit")
|
|
|
|
|
+ public Object checkLimit(@RequestParam Long collectionId) {
|
|
|
|
|
+ return orderService.checkLimit(collectionId, SecurityUtils.getAuthenticatedUser().getId());
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|