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> 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(); } }