|
@@ -3,8 +3,10 @@ package com.fdkankan.feign;
|
|
import com.fdkankan.common.user.SSOUser;
|
|
import com.fdkankan.common.user.SSOUser;
|
|
import com.fdkankan.goods.entity.Camera;
|
|
import com.fdkankan.goods.entity.Camera;
|
|
import com.fdkankan.goods.entity.CameraDetail;
|
|
import com.fdkankan.goods.entity.CameraDetail;
|
|
|
|
+import com.fdkankan.goods.entity.Company;
|
|
import com.fdkankan.goods.service.ICameraDetailService;
|
|
import com.fdkankan.goods.service.ICameraDetailService;
|
|
import com.fdkankan.goods.service.ICameraService;
|
|
import com.fdkankan.goods.service.ICameraService;
|
|
|
|
+import com.fdkankan.goods.service.ICompanyService;
|
|
import com.fdkankan.user.service.IUserService;
|
|
import com.fdkankan.user.service.IUserService;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
@@ -25,6 +27,8 @@ public class platformFeign {
|
|
private ICameraDetailService cameraDetailService;
|
|
private ICameraDetailService cameraDetailService;
|
|
@Autowired
|
|
@Autowired
|
|
private IUserService userService;
|
|
private IUserService userService;
|
|
|
|
+ @Autowired
|
|
|
|
+ private ICompanyService companyService;
|
|
|
|
|
|
@PostMapping("/getCameraByChildName")
|
|
@PostMapping("/getCameraByChildName")
|
|
public Camera getCameraByChildName(@RequestParam(value = "childName", required = false) String childName) {
|
|
public Camera getCameraByChildName(@RequestParam(value = "childName", required = false) String childName) {
|
|
@@ -50,5 +54,9 @@ public class platformFeign {
|
|
public SSOUser getSSOUserByUserId(@RequestParam(value = "userId", required = false) Long userId) {
|
|
public SSOUser getSSOUserByUserId(@RequestParam(value = "userId", required = false) Long userId) {
|
|
return userService.getSSOUserByUserId(userId);
|
|
return userService.getSSOUserByUserId(userId);
|
|
}
|
|
}
|
|
|
|
+ @PostMapping("/getCompanyById")
|
|
|
|
+ public Company getCompanyById(@RequestParam(value = "companyId", required = false) Long companyId) {
|
|
|
|
+ return companyService.getById(companyId);
|
|
|
|
+ }
|
|
|
|
|
|
}
|
|
}
|