| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- package com.tld.controller;
- import com.tld.model.ReceiveGoods;
- import com.tld.service.ReceiveGoodsSerivce;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.web.bind.annotation.GetMapping;
- import org.springframework.web.bind.annotation.RequestMapping;
- import org.springframework.web.bind.annotation.RestController;
- import java.util.Map;
- /**
- * 线上收货
- */
- @RestController
- @RequestMapping("receiveGoods")
- public class ReceiveGoodsController {
- @Autowired
- private ReceiveGoodsSerivce receiveGoodsSerivce;
- /**
- * 查询采购单
- * @param receiveGoods 参数
- * @return 返回结果
- */
- @GetMapping("getReceiveGoods")
- public Map<String, Object> getReceiveGoods(ReceiveGoods receiveGoods){
- return receiveGoodsSerivce.getReceiveGoods(receiveGoods);
- }
- /**
- * 查询超时采购单
- * @param receiveGoods 参数
- * @return 返回结果
- */
- @GetMapping("getPastReceiveGoods")
- public Map<String, Object> getPastReceiveGoods(ReceiveGoods receiveGoods){
- return receiveGoodsSerivce.getPastReceiveGoods(receiveGoods);
- }
- /**
- * 查询采购单
- * @param receiveGoods 参数
- * @return 返回结果
- */
- @GetMapping("getPurchase")
- public Map<String, Object> getPurchase(ReceiveGoods receiveGoods){
- return receiveGoodsSerivce.getPurchase(receiveGoods);
- }
- /**
- * 查询超时采购单
- * @param receiveGoods 参数
- * @return 返回结果
- */
- @GetMapping("timeoutPurchase")
- public Map<String, Object> timeoutPurchase(ReceiveGoods receiveGoods){
- return receiveGoodsSerivce.timeoutPurchase(receiveGoods);
- }
- }
|