59 lines
1.4 KiB
Java
59 lines
1.4 KiB
Java
package com.ruoyi.api.controller;
|
|
|
|
import com.ruoyi.api.service.IToErpService;
|
|
import com.ruoyi.bas.BasCustomer.domain.BasCustomer;
|
|
import com.ruoyi.bas.BasProduct.domain.BasProduct;
|
|
import com.ruoyi.bas.BasSupplier.domain.BasSupplier;
|
|
import com.ruoyi.common.core.domain.AjaxResult;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
/**
|
|
* 作业统计 Controller
|
|
*/
|
|
@RestController
|
|
@RequestMapping("/api2erp")
|
|
public class ToErpApiController {
|
|
|
|
@Autowired
|
|
private IToErpService toErpService;
|
|
|
|
/**
|
|
* 接收物料信息
|
|
*/
|
|
@GetMapping("/receiveProduct")
|
|
public AjaxResult receiveProduct() {
|
|
return toErpService.receiveProduct();
|
|
}
|
|
/**
|
|
* 接收客户信息
|
|
*/
|
|
@GetMapping("/receiveCustomer")
|
|
public AjaxResult receiveCustomer() {
|
|
return toErpService.receiveCustomer();
|
|
}
|
|
|
|
/**
|
|
* 接收供应商信息
|
|
*/
|
|
@GetMapping("/receiveSupplier")
|
|
public AjaxResult receiveSupplier() {
|
|
return toErpService.receiveSupplier();
|
|
}
|
|
|
|
/**
|
|
* 接收出库单信息
|
|
*/
|
|
@GetMapping("/outStockList")
|
|
public AjaxResult outStockList(){
|
|
return toErpService.receiveOutStockList();
|
|
}
|
|
|
|
|
|
@PostMapping("/login")
|
|
public AjaxResult login() {
|
|
toErpService.login();
|
|
return AjaxResult.success();
|
|
}
|
|
}
|