|
|
@ -1,9 +1,6 @@ |
|
|
|
package com.wh.controller.purchasenew; |
|
|
|
|
|
|
|
import com.wh.pojo.purchasenew.PurchasenewDetailsVo; |
|
|
|
import com.wh.pojo.purchasenew.PurchasenewDto; |
|
|
|
import com.wh.pojo.purchasenew.PurchasenewQuery; |
|
|
|
import com.wh.pojo.purchasenew.PurchasenewVo; |
|
|
|
import com.wh.pojo.purchasenew.*; |
|
|
|
import com.wh.service.purchasenew.PurchasenewService; |
|
|
|
import com.yxt.common.core.query.PagerQuery; |
|
|
|
import com.yxt.common.core.result.ResultBean; |
|
|
@ -12,6 +9,8 @@ import io.swagger.annotations.ApiOperation; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
@RestController |
|
|
|
@CrossOrigin |
|
|
|
@RequestMapping("/purchasenew") |
|
|
@ -26,6 +25,13 @@ public class PurchasenewController { |
|
|
|
PagerVo<PurchasenewVo> pv = purchasenewService.listPageVo(pq); |
|
|
|
return rb.success().setData(pv); |
|
|
|
} |
|
|
|
@ApiOperation("获取所有的采购订单") |
|
|
|
@PostMapping("/listAll") |
|
|
|
public ResultBean<List<Purchasenew>> listAll(){ |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
List<Purchasenew> list = purchasenewService.list(); |
|
|
|
return rb.success().setData(list); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("新增或修改") |
|
|
|
@PostMapping("/save") |
|
|
|