| | |
| | | import com.gkhy.fourierSpecialGasMonitor.commons.domain.Result; |
| | | import com.gkhy.fourierSpecialGasMonitor.commons.enums.ForeignResultCode; |
| | | import com.gkhy.fourierSpecialGasMonitor.commons.enums.ResultCode; |
| | | import com.gkhy.fourierSpecialGasMonitor.commons.enums.SystemCacheKeyEnum; |
| | | import com.gkhy.fourierSpecialGasMonitor.commons.exception.DataReceiveException; |
| | | import com.gkhy.fourierSpecialGasMonitor.decorator.WarningThresholdUpdateEvent; |
| | | import com.gkhy.fourierSpecialGasMonitor.entity.*; |
| | |
| | | |
| | | |
| | | private void execDataCountAndPush(UploadGasConcentrationReqDTO reqDto){ |
| | | RBucket<List<GasCategory>> bucket = redissonClient.getBucket("gas_category_cache_info"); |
| | | RBucket<List<GasCategory>> bucket = redissonClient.getBucket(SystemCacheKeyEnum.KEY_GAS_CATEGORY.getKey()); |
| | | List<GasCategory> gasCategoryCache = bucket.get(); |
| | | if (CollectionUtils.isEmpty(gasCategoryCache)){ |
| | | gasCategoryCache = gasCategoryService.list(); |