|
|
@@ -2,9 +2,7 @@ package com.usoftchina.saas.document.api;
|
|
|
|
|
|
import com.usoftchina.saas.auth.client.interceptor.ServiceFeignInterceptor;
|
|
|
import com.usoftchina.saas.base.Result;
|
|
|
-import com.usoftchina.saas.document.dto.ProductDTO;
|
|
|
import com.usoftchina.saas.document.dto.ProductUploadDTO;
|
|
|
-import com.usoftchina.saas.page.PageRequest;
|
|
|
import org.springframework.cloud.openfeign.FeignClient;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
@@ -16,15 +14,6 @@ import java.util.List;
|
|
|
@FeignClient(name = "document-server", configuration = ServiceFeignInterceptor.class)
|
|
|
public interface ProductApi {
|
|
|
|
|
|
- /**
|
|
|
- * 查询Products
|
|
|
- * @param page
|
|
|
- * @param condition
|
|
|
- * @return
|
|
|
- */
|
|
|
- /* @GetMapping("/api/document/product/getProductsByCondition")
|
|
|
- public List<ProductDTO> getProductsByCondition(@RequestParam(value = "page") PageRequest page, @RequestParam(value = "condition") String condition);*/
|
|
|
-
|
|
|
/**
|
|
|
* @Description
|
|
|
* 更新最新采购单价
|
|
|
@@ -40,8 +29,8 @@ public interface ProductApi {
|
|
|
* 获取需要上传的物料数据
|
|
|
* @return
|
|
|
*/
|
|
|
- @GetMapping("/b2b/upload/data")
|
|
|
- Result<List<ProductUploadDTO>> getUploadData();
|
|
|
+ @GetMapping("/product/b2b/upload/data")
|
|
|
+ Result<List<ProductUploadDTO>> getUploadData(@RequestParam("companyId") Long companyId);
|
|
|
|
|
|
/**
|
|
|
* 批量更新物料上传状态
|
|
|
@@ -49,6 +38,6 @@ public interface ProductApi {
|
|
|
* @param status
|
|
|
* @return
|
|
|
*/
|
|
|
- @PostMapping("/b2b/status/update")
|
|
|
+ @PostMapping("/product/b2b/status/update")
|
|
|
Result updateStatus(@RequestParam("ids") String ids, @RequestParam("status") String status);
|
|
|
}
|