|
@@ -9,6 +9,7 @@ import com.lightinit.hsdataplatform.service.admin.IApiPublishService;
|
|
|
import com.lightinit.hsdataplatform.service.admin.IRelationshipManageService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
+import org.springframework.util.ObjectUtils;
|
|
|
import org.springframework.web.bind.annotation.PathVariable;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
@@ -104,7 +105,8 @@ public class RelationshipManageController extends BaseController {
|
|
|
public ModelAndView detal(@PathVariable("id") long id, @PathVariable("resourceType") String resourceType) {
|
|
|
ModelAndView modelAndView = new ModelAndView("admin/relationshipManage/detal");
|
|
|
RelationshipManageViewModel model = relationshipManageService.detal(id,resourceType);
|
|
|
- if(model.getInterfaceId()!=null) {
|
|
|
+// if(!ObjectUtils.isEmpty(model.getInterfaceId())) {
|
|
|
+ if(model != null) {
|
|
|
List<ResourceAPIRegisterAddAPIInterfaceInputModel> listIn =relationshipManageService.queryInterfaceIn(model.getInterfaceId());
|
|
|
List<ResourceAPIRegisterAddAPIInterfaceOutputModel> listOut =relationshipManageService.queryInterfaceOut(model.getInterfaceId());
|
|
|
modelAndView.addObject("listIn",listIn);
|