lishenao
23 小时以前 fbc53e77f994f15c3ebcd4fa07dfd23671c0ce26
src/main/java/com/ruoyi/inventory/controller/StockInController.java
@@ -12,7 +12,10 @@
import com.ruoyi.inventory.excel.StockInExcelDto;
import com.ruoyi.inventory.service.StockInService;
import com.ruoyi.inventory.pojo.StockIn;
import com.ruoyi.purchase.dto.ProductRecordDto;
import com.ruoyi.purchase.dto.PurchaseLedgerDto;
import com.ruoyi.purchase.pojo.ProductRecord;
import com.ruoyi.purchase.service.IProductRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.CollectionUtils;
import org.springframework.web.bind.annotation.*;
@@ -26,6 +29,12 @@
public class StockInController{
    @Autowired
    private StockInService stockInService;
    @Autowired
    private IProductRecordService productRecordService;
    @GetMapping("/productlist")
    public AjaxResult list(String purchaseContractNumber) {
        return AjaxResult.success(productRecordService.selectProductRecordListByPuechaserId(purchaseContractNumber));
    }
    @GetMapping("/listPage")
    public AjaxResult listPage(Page page, StockinDto stockinDto) {