| | |
| | | package com.mes.bigstorage.controller; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; |
| | | import com.mes.bigstorage.entity.BigStorageCageDetails; |
| | | import com.mes.bigstorage.service.BigStorageCageDetailsService; |
| | | import com.mes.bigstorage.service.BigStorageCageService; |
| | | import com.mes.common.config.Const; |
| | | import com.mes.common.utils.RedisUtil; |
| | | import com.mes.utils.Result; |
| | | import io.swagger.annotations.Api; |
| | |
| | | bigStorageCageDetailsService.temperingSwitch(flag); |
| | | return Result.build(200, "修改成功", redisUtil.getCacheObject("temperingSwitch")); |
| | | } |
| | | |
| | | @ApiOperation("流程卡查询") |
| | | @PostMapping("/selectFlowCardByCache") |
| | | public Result selectFlowCardByCache() { |
| | | List<Map<String, Object>> flowCardIdCount=bigStorageCageDetailsService.listMaps( |
| | | new QueryWrapper<BigStorageCageDetails>() |
| | | .select("flow_card_id,layer,count(*) as count") |
| | | .eq("state", Const.GLASS_STATE_IN) |
| | | .eq("tempering_layout_id",0) |
| | | .groupBy("flow_card_id,layer") |
| | | ); |
| | | return Result.build(200, "查询成功", flowCardIdCount); |
| | | } |
| | | |
| | | |
| | | } |
| | | |