一键同步
This commit is contained in:
parent
6f36e1222a
commit
4083ec2b04
|
@ -46,13 +46,8 @@ public class MeituanController {
|
|||
@Async
|
||||
@GetMapping("/refresh")
|
||||
public R refresh(){
|
||||
LoginUser user = SecurityUtils.getLoginUser();
|
||||
if("admin".equals(user.getUsername())){
|
||||
iMeituanService.getComments(null);
|
||||
}else{
|
||||
iMeituanService.getComments(user.getUsername());
|
||||
}
|
||||
iMeituanService.getReturnInfo(null);
|
||||
iMeituanService.getComments(null);
|
||||
iMeituanService.getReturnInfo(null);//店铺id
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
|
@ -61,8 +56,8 @@ public class MeituanController {
|
|||
*/
|
||||
@GetMapping("/getComment")
|
||||
public R getComment(Long id){
|
||||
iMeituanService.getComment(id);
|
||||
iMeituanService.getReturnInfo(id);
|
||||
iMeituanService.getComment(id);//店铺id
|
||||
iMeituanService.getReturnInfo(id);//店铺id
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
|
@ -71,7 +66,7 @@ public class MeituanController {
|
|||
*/
|
||||
@GetMapping("/getReturnInfo")
|
||||
public R getReturnInfo(){
|
||||
iMeituanService.getReturnInfo(null);
|
||||
iMeituanService.getReturnInfo(null);//店铺id
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue