| | |
| | | package com.qianwen.smartman.modules.cps.service; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.Wrapper; |
| | | import com.baomidou.mybatisplus.extension.conditions.update.LambdaUpdateChainWrapper; |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import java.lang.invoke.SerializedLambda; |
| | | import java.util.List; |
| | | import java.util.concurrent.atomic.AtomicInteger; |
| | | |
| | | import org.springframework.cache.annotation.CacheEvict; |
| | | import org.springframework.cache.annotation.Cacheable; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.qianwen.smartman.common.constant.ExtCacheConstant; |
| | | import com.qianwen.smartman.common.enums.GlobalWcsTypeEnum; |
| | | import com.qianwen.smartman.common.utils.Lambda; |
| | | import com.qianwen.smartman.modules.cps.entity.GlobalWcs; |
| | | import com.qianwen.smartman.modules.cps.vo.WcsAchievementsUpdateVO; |
| | | import com.qianwen.smartman.modules.cps.vo.WcsAndAchievementsVO; |
| | | import org.springframework.cache.annotation.CacheEvict; |
| | | import org.springframework.cache.annotation.Cacheable; |
| | | |
| | | /* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/cps/service/IGlobalWcsService.class */ |
| | | public interface IGlobalWcsService extends IService<GlobalWcs> { |
| | | @Cacheable(cacheNames = {ExtCacheConstant.GLOBAL_WCS}, key = "'list:type:'+#globalWcsTypeEnum.type") |
| | | List<GlobalWcs> getGlobalWcsList(GlobalWcsTypeEnum globalWcsTypeEnum); |
| | |
| | | @CacheEvict(cacheNames = {ExtCacheConstant.GLOBAL_WCS}, allEntries = true) |
| | | default boolean removeByCode(String code, GlobalWcsTypeEnum typeEnum) { |
| | | return remove(Lambda.eq(GlobalWcs::getCode, code).eq(GlobalWcs::getType, typeEnum.getType())); |
| | | /* |
| | | return remove((Wrapper) Lambda.eq((v0) -> { |
| | | return v0.getCode(); |
| | | }, code).eq((v0) -> { |
| | | return v0.getType(); |
| | | }, typeEnum.getType()));*/ |
| | | } |
| | | |
| | | @CacheEvict(cacheNames = {ExtCacheConstant.GLOBAL_WCS}, allEntries = true) |