| | |
| | | import com.mes.downstorage.entity.DownStorageCageDetails; |
| | | import com.mes.downstorage.service.DownStorageCageDetailsService; |
| | | import com.mes.downstorage.service.DownStorageCageService; |
| | | import com.mes.utils.Result; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | @Api(tags = "缓存") |
| | | @RestController |
| | | @RequestMapping("/api/unLoadGlass/downstorage") |
| | | public class DownStorageCageDetailsController { |
| | |
| | | return "Details added successfully"; |
| | | } |
| | | |
| | | @GetMapping("/leisure") |
| | | public List<Map> getLeisureData() { |
| | | return downStorageCageService.getCacheInfo(); |
| | | |
| | | |
| | | //查询磨边缓存理片笼内详情 |
| | | @ApiOperation("查询磨边缓存理片笼内详情") |
| | | @GetMapping("/selectStorageCage") |
| | | @ResponseBody |
| | | public Result selectEdgStorageCage () { |
| | | List<Map> list=downStorageCageService.getCacheInfo(); |
| | | return Result.build(200,"成功",list); |
| | | } |
| | | |
| | | |
| | | private static final int START_VALUE = 0; |
| | | private static final int END_VALUE = 5; |
| | | @GetMapping("/leisure2") |
| | | public List<Map> getLeisureData2() { |
| | | // 调用Service层获取数据 |
| | | return downStorageCageService.getCacheOut(START_VALUE, END_VALUE); |
| | | } |
| | | |
| | | |
| | | // |
| | | |
| | | |
| | | // Other CRUD operations can be defined here |
| | | } |