| | |
| | | package com.qianwen.smartman.modules.cps.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.Wrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import java.lang.invoke.SerializedLambda; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.stream.Collectors; |
| | | |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.qianwen.smartman.modules.cps.entity.ProductionCraftProcessRelatedFixture; |
| | | import com.qianwen.smartman.modules.cps.entity.TrayFixture; |
| | | import com.qianwen.smartman.modules.cps.mapper.ProductionCraftProcessRelatedFixtureMapper; |
| | | import com.qianwen.smartman.modules.cps.service.IProductionCraftProcessRelatedFixtureService; |
| | | import com.qianwen.smartman.modules.cps.service.ITrayFixtureService; |
| | | import com.qianwen.smartman.modules.cps.vo.ProductionCraftProcessRelatedFixtureVO; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | @Service |
| | | /* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/cps/service/impl/ProductionCraftProcessRelatedFixtureServiceImpl.class */ |
| | |
| | | private static final Logger log = LoggerFactory.getLogger(ProductionCraftProcessRelatedFixtureServiceImpl.class); |
| | | private final ITrayFixtureService fixtureService; |
| | | |
| | | private static /* synthetic */ Object $deserializeLambda$(SerializedLambda lambda) { |
| | | String implMethodName = lambda.getImplMethodName(); |
| | | boolean z = true; |
| | | switch (implMethodName.hashCode()) { |
| | | case -1291082392: |
| | | if (implMethodName.equals("getVersionProcessId")) { |
| | | z = false; |
| | | break; |
| | | } |
| | | break; |
| | | case 1953270362: |
| | | if (implMethodName.equals("getFixId")) { |
| | | z = true; |
| | | break; |
| | | } |
| | | break; |
| | | } |
| | | switch (z) { |
| | | case false: |
| | | if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("org/springblade/modules/cps/entity/ProductionCraftProcessRelatedFixture") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { |
| | | return (v0) -> { |
| | | return v0.getVersionProcessId(); |
| | | }; |
| | | } |
| | | break; |
| | | case true: |
| | | if (lambda.getImplMethodKind() == 5 && lambda.getFunctionalInterfaceClass().equals("com/baomidou/mybatisplus/core/toolkit/support/SFunction") && lambda.getFunctionalInterfaceMethodName().equals("apply") && lambda.getFunctionalInterfaceMethodSignature().equals("(Ljava/lang/Object;)Ljava/lang/Object;") && lambda.getImplClass().equals("org/springblade/modules/cps/entity/TrayFixture") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { |
| | | return (v0) -> { |
| | | return v0.getFixId(); |
| | | }; |
| | | } |
| | | break; |
| | | } |
| | | throw new IllegalArgumentException("Invalid lambda deserialization"); |
| | | } |
| | | |
| | | public ProductionCraftProcessRelatedFixtureServiceImpl(final ITrayFixtureService fixtureService) { |
| | | this.fixtureService = fixtureService; |
| | | } |
| | | |
| | | @Override // org.springblade.modules.cps.service.IProductionCraftProcessRelatedFixtureService |
| | | public Map<Long, List<ProductionCraftProcessRelatedFixture>> getMapBindFixture(List<Long> processIds) { |
| | | return list(Wrappers.<ProductionCraftProcessRelatedFixture>lambdaQuery() |
| | | .in(ProductionCraftProcessRelatedFixture::getVersionProcessId, processIds)) |
| | | .stream() |
| | | .collect(Collectors.groupingBy(ProductionCraftProcessRelatedFixture::getVersionProcessId)); |
| | | /* |
| | | return (Map) list((Wrapper) Wrappers.lambdaQuery().in((v0) -> { |
| | | return v0.getVersionProcessId(); |
| | | }, processIds)).stream().collect(Collectors.groupingBy((v0) -> { |
| | | return v0.getVersionProcessId(); |
| | | })); |
| | | }));*/ |
| | | } |
| | | |
| | | @Override // org.springblade.modules.cps.service.IProductionCraftProcessRelatedFixtureService |
| | | public int getFixtureBindTray(List<Long> fixtureId) { |
| | | return Math.toIntExact(this.fixtureService.count(Wrappers.<TrayFixture>lambdaQuery().in(TrayFixture::getFixId, fixtureId))); |
| | | /* |
| | | return Math.toIntExact(this.fixtureService.count((Wrapper) Wrappers.lambdaQuery().in((v0) -> { |
| | | return v0.getFixId(); |
| | | }, fixtureId))); |
| | | }, fixtureId)));*/ |
| | | } |
| | | |
| | | @Override // org.springblade.modules.cps.service.IProductionCraftProcessRelatedFixtureService |
| | | public List<ProductionCraftProcessRelatedFixtureVO> getProductionCraftProcessRelatedFixtureListByProcessId(Long processId) { |
| | | return ((ProductionCraftProcessRelatedFixtureMapper) this.baseMapper).getProductionCraftProcessRelatedFixtureListByProcessId(processId); |
| | | return this.baseMapper.getProductionCraftProcessRelatedFixtureListByProcessId(processId); |
| | | } |
| | | } |