|
@@ -1,10 +1,17 @@
|
|
|
package com.fjhx.controller.stock;
|
|
|
|
|
|
-import com.fjhx.service.stock.StockService;
|
|
|
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
+import com.fjhx.base.Condition;
|
|
|
+import com.fjhx.service.apply.ApplyPurchaseService;
|
|
|
+import org.springblade.core.tool.api.R;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
+import java.util.Map;
|
|
|
+
|
|
|
/**
|
|
|
* 申购入库
|
|
|
*/
|
|
@@ -13,10 +20,13 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
public class ApplyInController {
|
|
|
|
|
|
@Autowired
|
|
|
- private StockService stockService;
|
|
|
-
|
|
|
-
|
|
|
+ private ApplyPurchaseService applyPurchaseService;
|
|
|
|
|
|
+ @PostMapping("/page")
|
|
|
+ public R page(@RequestBody Condition condition) {
|
|
|
+ Page<Map<String, Object>> result = applyPurchaseService.applyInPage(condition);
|
|
|
+ return R.success(result);
|
|
|
+ }
|
|
|
|
|
|
|
|
|
}
|