|
|
|
@ -5,11 +5,7 @@ import java.util.Map;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.web.bind.annotation.PathVariable;
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
|
|
import com.bookstore.bookmall.ware.entity.PurchaseEntity;
|
|
|
|
|
import com.bookstore.bookmall.ware.service.PurchaseService;
|
|
|
|
@ -31,6 +27,26 @@ public class PurchaseController {
|
|
|
|
|
@Autowired
|
|
|
|
|
private PurchaseService purchaseService;
|
|
|
|
|
|
|
|
|
|
//合并采购需求
|
|
|
|
|
// /ware/purchase/merge
|
|
|
|
|
@PostMapping("/ware/purchase/merge")
|
|
|
|
|
//@RequiresPermissions("ware:purchase:list")
|
|
|
|
|
public R unreceivelist(@RequestParam Map<String, Object> params){
|
|
|
|
|
PageUtils page = purchaseService.queryPageUnreceivePurchase(params);
|
|
|
|
|
|
|
|
|
|
return R.ok().put("page", page);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//查询采购单
|
|
|
|
|
// /unreceive/list
|
|
|
|
|
@RequestMapping("/unreceive/list")
|
|
|
|
|
//@RequiresPermissions("ware:purchase:list")
|
|
|
|
|
public R unreceivelist(@RequestParam Map<String, Object> params){
|
|
|
|
|
PageUtils page = purchaseService.queryPageUnreceivePurchase(params);
|
|
|
|
|
|
|
|
|
|
return R.ok().put("page", page);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 列表
|
|
|
|
|
*/
|
|
|
|
|