hongjli
2025-05-16 7cd52b112a2e7da06aa8cfebf19a337be858762f
aps-modules/aps-core/src/main/java/com/aps/core/controller/basicData/ApsMaterialStorageManagementController.java
@@ -1,26 +1,19 @@
package com.aps.core.controller.basicData;
import java.util.List;
import com.aps.core.service.IApsMaterialStorageManagementService;
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.aps.common.core.utils.poi.ExcelUtil;
import com.aps.common.core.web.controller.BaseController;
import com.aps.common.core.web.domain.AjaxResult;
import com.aps.common.core.web.page.TableDataInfo;
import com.aps.common.log.annotation.Log;
import com.aps.common.log.enums.BusinessType;
import com.aps.common.security.annotation.RequiresPermissions;
import com.aps.core.domain.ApsMaterialStorageManagement;
import com.aps.common.core.web.controller.BaseController;
import com.aps.common.core.web.domain.AjaxResult;
import com.aps.common.core.utils.poi.ExcelUtil;
import com.aps.common.core.web.page.TableDataInfo;
import com.aps.core.service.IApsMaterialStorageManagementService;
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
 * 物料库存管理Controller
@@ -102,4 +95,18 @@
    {
        return toAjax(apsMaterialStorageManagementService.deleteApsMaterialStorageManagementByIds(ids));
    }
    @PostMapping("/setStorageDataToRedis")
    public void setStorageDataToRedis()
    {
        apsMaterialStorageManagementService.setStorageDataToRedis("FORTUNA");
    }
    @PostMapping("/test")
    public void test()
    {
        apsMaterialStorageManagementService.setStorageDataToRedis("FORTUNA");
//        apsMaterialStorageManagementService.getRdsStorage("FORTUNA", "A1501-001362");
    }
}