|
@@ -3,15 +3,12 @@ package com.yh.saas.plugin.yiliangyiyun.controller;
|
|
|
|
|
|
import com.baomidou.mybatisplus.plugins.Page;
|
|
|
import com.yh.saas.plugin.yiliangyiyun.entity.ContractManagementInfo;
|
|
|
+import com.yh.saas.plugin.yiliangyiyun.entity.WarehouseBaseInfo;
|
|
|
import com.yh.saas.plugin.yiliangyiyun.entity.WarehouseInventoryCountInfo;
|
|
|
import com.yh.saas.plugin.yiliangyiyun.service.IContractManagementInfoService;
|
|
|
import com.yh.saas.plugin.yiliangyiyun.service.IWarehouseInventoryCountInfoService;
|
|
|
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.RequestParam;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
/**
|
|
|
* <p>
|
|
@@ -39,13 +36,21 @@ public class WarehouseInventoryCountInfoController {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 盘损
|
|
|
+ * 根据货名查累计量
|
|
|
*/
|
|
|
@GetMapping("/getInfo")
|
|
|
public WarehouseInventoryCountInfo getInfo(WarehouseInventoryCountInfo warehouseInventoryCountInfo) {
|
|
|
return warehouseInventoryCountInfoService.getInfo(warehouseInventoryCountInfo);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 盘损
|
|
|
+ */
|
|
|
+ @PostMapping("/addInventory")
|
|
|
+ public String addInventory(@RequestBody WarehouseInventoryCountInfo warehouseInventoryCountInfo) {
|
|
|
+ return warehouseInventoryCountInfoService.addInventory(warehouseInventoryCountInfo);
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
}
|
|
|
|