|
@@ -82,6 +82,19 @@ public class CompanyController {
|
|
|
msg = companyService.pageList(page,keyName,companyType);
|
|
|
return msg;
|
|
|
}
|
|
|
+ /**
|
|
|
+ * 建立关联公司时的公司列表
|
|
|
+ * 参数:companyType 公司类型 0-资产方 1-生产方
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @ApiOperation("公司列表")
|
|
|
+ @RequestMapping("/relationList")
|
|
|
+ @ResponseBody
|
|
|
+ public HttpRespMsg relationList(@RequestParam(required = false)Integer companyType) {
|
|
|
+ HttpRespMsg msg = new HttpRespMsg();
|
|
|
+ msg = companyService.relationList(companyType);
|
|
|
+ return msg;
|
|
|
+ }
|
|
|
|
|
|
/**
|
|
|
* 创建模具获取的(资产方)公司列表
|
|
@@ -139,18 +152,18 @@ public class CompanyController {
|
|
|
msg = companyService.getCoutomCompanyAndMouldsByUser(userVO);
|
|
|
return msg;
|
|
|
}
|
|
|
-// /**
|
|
|
-// * 公司详情
|
|
|
-// * 参数 token 用户身份凭证
|
|
|
-// * @return
|
|
|
-// */
|
|
|
-// @ApiOperation(value = "生产方公司和公司下所属的模具")
|
|
|
-// @RequestMapping("/getCoutomCompanyAndMouldsByUser")
|
|
|
-// @ResponseBody
|
|
|
-// public HttpRespMsg getCoutomCompanyAndMouldsByUser(UserVO userVO){
|
|
|
-// HttpRespMsg msg = new HttpRespMsg();
|
|
|
-// msg = companyService.getCoutomCompanyAndMouldsByUser(userVO);
|
|
|
-// return msg;
|
|
|
-// }
|
|
|
+ /**
|
|
|
+ * 公司详情
|
|
|
+ * 参数 token 用户身份凭证
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @ApiOperation(value = "公司详情")
|
|
|
+ @RequestMapping("/detail")
|
|
|
+ @ResponseBody
|
|
|
+ public HttpRespMsg detail(UserVO userVO){
|
|
|
+ HttpRespMsg msg = new HttpRespMsg();
|
|
|
+ msg = companyService.getCoutomCompanyAndMouldsByUser(userVO);
|
|
|
+ return msg;
|
|
|
+ }
|
|
|
}
|
|
|
|