You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.2 KiB
38 lines
1.2 KiB
package com.gaotao.modules.po.controller;
|
|
|
|
import com.gaotao.common.annotation.SysLog;
|
|
import com.gaotao.common.utils.R;
|
|
import com.gaotao.modules.po.entity.PurchaseOrderDto;
|
|
import com.gaotao.modules.po.service.PoService;
|
|
import com.gaotao.modules.sys.controller.AbstractController;
|
|
import com.gaotao.modules.trans.entity.TransDetailDto;
|
|
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.List;
|
|
import java.util.Map;
|
|
|
|
@RequestMapping("po")
|
|
@RestController
|
|
public class PoController extends AbstractController {
|
|
|
|
@Autowired
|
|
private PoService poService;
|
|
|
|
@PostMapping("getPoList")
|
|
public R getPoList(@RequestBody PurchaseOrderDto purchaseOrder){
|
|
List<Map<String, Object>> list = poService.getPoList(purchaseOrder);
|
|
return R.ok().put("rows",list);
|
|
}
|
|
|
|
@SysLog("采购订单-接收")
|
|
@PostMapping("receivePo")
|
|
public R receivePo(@RequestBody TransDetailDto inData){
|
|
poService.saveTrans(inData);
|
|
return R.ok();
|
|
}
|
|
|
|
}
|