|
@@ -7,6 +7,7 @@ import com.trade.common.core.domain.ResponseResult;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
+import java.util.ArrayList;
|
|
|
import java.util.List;
|
|
|
|
|
|
/**
|
|
@@ -24,13 +25,26 @@ public class PurchaseInvoiceApiController {
|
|
|
@Resource
|
|
|
private CustomerUserService customerUserService;
|
|
|
|
|
|
- @PostMapping("/pullInvoiceDetail")
|
|
|
- public ResponseResult<Boolean> pullInvoiceDetail(@RequestBody List<Long> orderIds) {
|
|
|
- purchaseInvoiceSchedule.pullInvoiceDetail(orderIds);
|
|
|
+ @PostMapping("/pullInvoiceFile")
|
|
|
+ public ResponseResult<Boolean> pullInvoiceFile(@RequestBody List<String> orderIds) {
|
|
|
+ List<Long> ids = new ArrayList<>();
|
|
|
+ for (String orderId : orderIds) {
|
|
|
+ ids.add(Long.valueOf(orderId));
|
|
|
+ }
|
|
|
+ purchaseInvoiceSchedule.pullInvoiceDetail(ids);
|
|
|
return ResponseResult.success(true);
|
|
|
}
|
|
|
+
|
|
|
@GetMapping("/getCustomerUser")
|
|
|
public ResponseResult<CustomerUserDto> getCustomerUser(String userId) {
|
|
|
return customerUserService.getCustomerUser(userId);
|
|
|
}
|
|
|
+
|
|
|
+ @GetMapping("/pullPurchaseInvoice")
|
|
|
+ public ResponseResult<Boolean> pullPurchaseInvoice(String orderIds, Integer source) {
|
|
|
+ List<Long> ids = new ArrayList<>();
|
|
|
+ ids.add(Long.valueOf(orderIds));
|
|
|
+ purchaseInvoiceSchedule.pullPurchaseInvoice(ids, source);
|
|
|
+ return ResponseResult.success(true);
|
|
|
+ }
|
|
|
}
|