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