Commit 9448ae52 by wnb0128

车家智能对象转换--think.wang

1 parent 5733ffef
package cn.com.glsx.smart.modules.controller; package cn.com.glsx.smart.modules.controller;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import cn.com.glsx.smart.modules.entity.SmartUserDevice; import cn.com.glsx.smart.modules.entity.SmartUserDevice;
import cn.com.glsx.smart.modules.entity.SmartUserRelation; import cn.com.glsx.smart.modules.entity.SmartUserRelation;
import cn.com.glsx.smart.modules.model.request.UserDeviceReq; import cn.com.glsx.smart.modules.model.request.UserDeviceReq;
...@@ -26,12 +22,10 @@ import org.apache.commons.collections.CollectionUtils; ...@@ -26,12 +22,10 @@ import org.apache.commons.collections.CollectionUtils;
import org.springframework.beans.BeanUtils; import org.springframework.beans.BeanUtils;
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.GetMapping; import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody; import java.util.ArrayList;
import org.springframework.web.bind.annotation.RequestMapping; import java.util.List;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
/** /**
* 远程产品服务controller * 远程产品服务controller
...@@ -64,7 +58,7 @@ public class RemoteProductController { ...@@ -64,7 +58,7 @@ public class RemoteProductController {
public R getList(@RequestBody UserRelationRequest relationRequest) { public R getList(@RequestBody UserRelationRequest relationRequest) {
log.info("用户参数:{}", JSON.toJSONString(relationRequest)); log.info("用户参数:{}", JSON.toJSONString(relationRequest));
SmartUserRelation request = new SmartUserRelation(); SmartUserRelation request = new SmartUserRelation();
BeanUtils.copyProperties(relationRequest, relationRequest); BeanUtils.copyProperties(relationRequest, request);
SmartUserRelation user = userRelationService.getSingle(request); SmartUserRelation user = userRelationService.getSingle(request);
if(user == null){ if(user == null){
return null; return null;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!