Commit 7b3415cb by wnb0128

车家智能数据服务开发 获取用户远程产品列表--think.wang

1 parent 97ab46d3
...@@ -12,10 +12,7 @@ import com.glsx.smart.service.SmartUserRelationService; ...@@ -12,10 +12,7 @@ import com.glsx.smart.service.SmartUserRelationService;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value; import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import java.util.List; import java.util.List;
...@@ -44,8 +41,11 @@ public class RemoteProductController { ...@@ -44,8 +41,11 @@ public class RemoteProductController {
* *
* @return 结果 * @return 结果
*/ */
@ResponseBody
@RequestMapping(value = "/getList", method = {RequestMethod.GET, RequestMethod.POST}) @RequestMapping(value = "/getList", method = {RequestMethod.GET, RequestMethod.POST})
public JSONArray getList(@RequestBody SmartUserRelation request) { public JSONArray getList(@RequestBody SmartUserRelation request) {
log.info("用户参数:{}",request);
request.setUserId(91712228L);
SmartUserRelation user = userRelationService.getSingle(request); SmartUserRelation user = userRelationService.getSingle(request);
return this.getRemoteDevice(user.getThirdId()); return this.getRemoteDevice(user.getThirdId());
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!