|
|
@ -1,5 +1,9 @@ |
|
|
|
package com.wh.controller.purchasenew; |
|
|
|
|
|
|
|
import com.wh.feign.enterpriseinformation.WhEnterpriseInformation; |
|
|
|
import com.wh.feign.enterpriseinformation.WhEnterpriseInformationFeign; |
|
|
|
import com.wh.feign.enterpriseinformation.WhEnterpriseInformationQuery; |
|
|
|
import com.wh.feign.enterpriseinformation.WhEnterpriseInformationVo; |
|
|
|
import com.wh.pojo.purchasenew.*; |
|
|
|
import com.wh.service.purchasenew.PurchasenewService; |
|
|
|
import com.yxt.common.core.query.PagerQuery; |
|
|
@ -18,6 +22,9 @@ public class PurchasenewController { |
|
|
|
@Autowired |
|
|
|
private PurchasenewService purchasenewService; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private WhEnterpriseInformationFeign whEnterpriseInformationFeign; |
|
|
|
|
|
|
|
@ApiOperation("根据条件分页查询数据的列表") |
|
|
|
@PostMapping("/listPage") |
|
|
|
public ResultBean<PagerVo<PurchasenewVo>> listPage(@RequestBody PagerQuery<PurchasenewQuery> pq){ |
|
|
@ -59,4 +66,11 @@ public class PurchasenewController { |
|
|
|
} |
|
|
|
return rb.success().setData(vo); |
|
|
|
} |
|
|
|
@ApiOperation("获取所有的企业信息") |
|
|
|
@GetMapping("/fetchEntList") |
|
|
|
public ResultBean<List<WhEnterpriseInformationVo>> fetchDetailsBySid(){ |
|
|
|
ResultBean<List<WhEnterpriseInformationVo>> enterpriseBySid = whEnterpriseInformationFeign.EnterpriseList(); |
|
|
|
return enterpriseBySid; |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|