yangys
2024-03-27 e48aa2ac8dea1be5db11c63edf0b912c4ad5ce65
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
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 com.qianwen.smartman.modules.cps.entity.ProductionCraftProcessRelatedFixture;
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 */
public class ProductionCraftProcessRelatedFixtureServiceImpl extends ServiceImpl<ProductionCraftProcessRelatedFixtureMapper, ProductionCraftProcessRelatedFixture> implements IProductionCraftProcessRelatedFixtureService {
    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 (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((Wrapper) Wrappers.lambdaQuery().in((v0) -> {
            return v0.getFixId();
        }, fixtureId)));
    }
 
    @Override // org.springblade.modules.cps.service.IProductionCraftProcessRelatedFixtureService
    public List<ProductionCraftProcessRelatedFixtureVO> getProductionCraftProcessRelatedFixtureListByProcessId(Long processId) {
        return ((ProductionCraftProcessRelatedFixtureMapper) this.baseMapper).getProductionCraftProcessRelatedFixtureListByProcessId(processId);
    }
}