下架改为同步执行方法

master
erzhongxmu 2022-04-18 17:41:53 +08:00
parent 964b89cb49
commit a4bf1815bc
2 changed files with 4 additions and 3 deletions

View File

@ -49,7 +49,8 @@ import io.swagger.annotations.ApiParam;
*/ */
@Controller @Controller
@RequestMapping("/wmom") @RequestMapping("/wmom")
public class wmomController { public class
wmomController {
private static final Logger logger = Logger.getLogger(wmomController.class); private static final Logger logger = Logger.getLogger(wmomController.class);
// @Autowired // @Autowired
// private UserService userService; // private UserService userService;

View File

@ -385,7 +385,7 @@ public class WmOmQmIController extends BaseController {
@RequestMapping(params = "dotowavedown") @RequestMapping(params = "dotowavedown")
@ResponseBody @ResponseBody
public AjaxJson dotowavedown(HttpServletRequest request) { public synchronized AjaxJson dotowavedown(HttpServletRequest request) {
String message = null; String message = null;
AjaxJson j = new AjaxJson(); AjaxJson j = new AjaxJson();
message = "下架成功"; message = "下架成功";
@ -444,7 +444,7 @@ public class WmOmQmIController extends BaseController {
@RequestMapping(params = "dotodown") @RequestMapping(params = "dotodown")
@ResponseBody @ResponseBody
public AjaxJson dotodown(HttpServletRequest request) { public synchronized AjaxJson dotodown(HttpServletRequest request) {
String message = null; String message = null;
AjaxJson j = new AjaxJson(); AjaxJson j = new AjaxJson();
message = "下架成功"; message = "下架成功";