一键同步

This commit is contained in:
wangshuai 2024-07-22 23:20:24 +08:00
parent 6f36e1222a
commit 4083ec2b04
1 changed files with 5 additions and 10 deletions

View File

@ -46,13 +46,8 @@ public class MeituanController {
@Async @Async
@GetMapping("/refresh") @GetMapping("/refresh")
public R refresh(){ public R refresh(){
LoginUser user = SecurityUtils.getLoginUser();
if("admin".equals(user.getUsername())){
iMeituanService.getComments(null); iMeituanService.getComments(null);
}else{ iMeituanService.getReturnInfo(null);//店铺id
iMeituanService.getComments(user.getUsername());
}
iMeituanService.getReturnInfo(null);
return R.ok(); return R.ok();
} }
@ -61,8 +56,8 @@ public class MeituanController {
*/ */
@GetMapping("/getComment") @GetMapping("/getComment")
public R getComment(Long id){ public R getComment(Long id){
iMeituanService.getComment(id); iMeituanService.getComment(id);//店铺id
iMeituanService.getReturnInfo(id); iMeituanService.getReturnInfo(id);//店铺id
return R.ok(); return R.ok();
} }
@ -71,7 +66,7 @@ public class MeituanController {
*/ */
@GetMapping("/getReturnInfo") @GetMapping("/getReturnInfo")
public R getReturnInfo(){ public R getReturnInfo(){
iMeituanService.getReturnInfo(null); iMeituanService.getReturnInfo(null);//店铺id
return R.ok(); return R.ok();
} }