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

8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
6 months ago
8 months ago
8 months ago
6 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
  1. package com.gaotao.modules.po.controller;
  2. import com.gaotao.common.annotation.SysLog;
  3. import com.gaotao.common.utils.R;
  4. import com.gaotao.modules.po.entity.PurchaseOrderDto;
  5. import com.gaotao.modules.po.service.PoService;
  6. import com.gaotao.modules.sys.controller.AbstractController;
  7. import com.gaotao.modules.trans.entity.TransDetailDto;
  8. import org.springframework.beans.factory.annotation.Autowired;
  9. import org.springframework.web.bind.annotation.PostMapping;
  10. import org.springframework.web.bind.annotation.RequestBody;
  11. import org.springframework.web.bind.annotation.RequestMapping;
  12. import org.springframework.web.bind.annotation.RestController;
  13. import java.util.List;
  14. import java.util.Map;
  15. @RequestMapping("po")
  16. @RestController
  17. public class PoController extends AbstractController {
  18. @Autowired
  19. private PoService poService;
  20. @PostMapping("getPoList")
  21. public R getPoList(@RequestBody PurchaseOrderDto purchaseOrder){
  22. List<Map<String, Object>> list = poService.getPoList(purchaseOrder);
  23. return R.ok().put("rows",list);
  24. }
  25. @SysLog("采购订单-接收")
  26. @PostMapping("receivePo")
  27. public R receivePo(@RequestBody TransDetailDto inData){
  28. poService.saveTrans(inData);
  29. return R.ok();
  30. }
  31. }