| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- package com.tld.controller;
- import com.tld.model.AskGoods;
- import com.tld.model.MakeInventory;
- import com.tld.service.InventoryService;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.web.bind.annotation.*;
- import javax.servlet.http.HttpServletRequest;
- import javax.servlet.http.HttpServletResponse;
- import java.util.Map;
- /**
- * 盘点库存信息
- */
- @RestController
- @RequestMapping("inventory")
- public class InventoryController {
- @Autowired
- private InventoryService inventoryService;
- /**
- * 查询盘点主表
- * @param makeInventory 参数
- * @return 返回结果
- */
- @GetMapping("getInventoryDataList")
- public Map<String, Object> getInventoryDataList( MakeInventory makeInventory){
- return inventoryService.getInventoryDataList(makeInventory);
- }
- /**
- * 添加盘点主表
- * @param makeInventory 参数
- * @return 返回结果
- */
- @PostMapping("addInventoryPlate")
- public Map<String, Object> addInventoryPlate(@RequestBody MakeInventory makeInventory, HttpServletRequest request){
- return inventoryService.addInventoryPlate(makeInventory,request);
- }
- /**
- * 录入盘点信息
- * @param makeInventory 参数
- * @return 返回结果
- */
- @PostMapping("addInventory")
- public Map<String, Object> addInventory(@RequestBody MakeInventory makeInventory){
- return inventoryService.addInventory(makeInventory);
- }
- /**
- * 查询录入盘点信息
- * @param makeInventory 参数
- * @return 返回结果
- */
- @GetMapping("getInventory")
- public Map<String, Object> getInventory(MakeInventory makeInventory){
- return inventoryService.getInventory(makeInventory);
- }
- /**
- * 生成盘点信息(盘点子表信息)//
- * @param makeInventory 参数
- * @return 返回结果
- */
- @GetMapping("getInventoryPlate")
- public Map<String, Object> getInventoryPlate(MakeInventory makeInventory){
- return inventoryService.getInventoryPlate(makeInventory);
- }
- /**
- * 查询z盘点信息(盘点子表信息)
- * @param makeInventory 参数
- * @return 返回结果
- */
- @GetMapping("getInventoryPlates")
- public Map<String, Object> getInventoryPlates(MakeInventory makeInventory){
- return inventoryService.getInventoryPlates(makeInventory);
- }
- /**
- * 导出盘点信息
- * @param makeInventory 参数
- * @return 返回结果
- */
- @GetMapping("export")
- public void export(MakeInventory makeInventory , HttpServletResponse response){
- inventoryService.export(makeInventory,response);
- }
- }
|