fix
songhuangfeng123
2022-09-20 f1f506172a3edff8d31e4db77b8940f115660919
emergency/emergency-service/src/main/java/com/gkhy/safePlatform/emergency/controller/Test.java
@@ -1,10 +1,8 @@
package com.gkhy.safePlatform.emergency.controller;
import com.gkhy.safePlatform.account.rpc.apimodel.UserAccountService;
import com.gkhy.safePlatform.emergency.service.DemoService;
import com.gkhy.safePlatform.account.rpc.apimodel.AccountAuthService;
import com.gkhy.safePlatform.account.rpc.apimodel.AccountAuthService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.apache.log4j.LogManager;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
@@ -15,19 +13,19 @@
public class Test {
    @DubboReference(check = false)
    private UserAccountService userAccountService;
    private AccountAuthService accountAuthService;
    @Autowired
    private DemoService demoService;
    @RequestMapping(value = "/t/rpc",method = RequestMethod.GET)
    public Object testRpc(String id){
        String resp = userAccountService.sayName(id);
        return resp;
    }
    @RequestMapping(value = "/t/get",method = RequestMethod.GET)
    public Object testEmergencyGetById(Long id){
        return demoService.getById(id);
    }
//    @Autowired
//    private DemoService demoService;
//
//    @RequestMapping(value = "/t/rpc",method = RequestMethod.GET)
//    public Object testRpc(String id){
//        String resp = userAccountService.sayName(id);
//        return resp;
//    }
//
//    @RequestMapping(value = "/t/get",method = RequestMethod.GET)
//    public Object testEmergencyGetById(Long id){
//        return demoService.getById(id);
//    }
}