| | |
| | | private static final Logger log = LoggerFactory.getLogger(ProductionCraftProcessServiceImpl.class); |
| | | private static final Integer CHILD_PROCESS_SIZE = 2; |
| | | |
| | | private static /* synthetic */ Object $deserializeLambda$(SerializedLambda lambda) { |
| | | String implMethodName = lambda.getImplMethodName(); |
| | | boolean z = true; |
| | | switch (implMethodName.hashCode()) { |
| | | case -1416707747: |
| | | if (implMethodName.equals("getVersionId")) { |
| | | z = true; |
| | | break; |
| | | } |
| | | break; |
| | | case -1291082392: |
| | | if (implMethodName.equals("getVersionProcessId")) { |
| | | z = true; |
| | | break; |
| | | } |
| | | break; |
| | | case -1130621541: |
| | | if (implMethodName.equals("getYCoordinate")) { |
| | | z = true; |
| | | break; |
| | | } |
| | | break; |
| | | case -470739956: |
| | | if (implMethodName.equals("getSourceId")) { |
| | | z = true; |
| | | break; |
| | | } |
| | | break; |
| | | case -75145708: |
| | | if (implMethodName.equals("getSort")) { |
| | | z = true; |
| | | break; |
| | | } |
| | | break; |
| | | case 98245393: |
| | | if (implMethodName.equals("getId")) { |
| | | z = true; |
| | | break; |
| | | } |
| | | break; |
| | | case 147927115: |
| | | if (implMethodName.equals("getMainSequenceId")) { |
| | | z = true; |
| | | break; |
| | | } |
| | | break; |
| | | case 474985501: |
| | | if (implMethodName.equals("getHeight")) { |
| | | z = true; |
| | | break; |
| | | } |
| | | break; |
| | | case 666329818: |
| | | if (implMethodName.equals("getXCoordinate")) { |
| | | z = true; |
| | | break; |
| | | } |
| | | break; |
| | | case 1635948546: |
| | | if (implMethodName.equals("getTargetId")) { |
| | | z = false; |
| | | 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/ProductionCraftProcess") && lambda.getImplMethodSignature().equals("()Ljava/lang/String;")) { |
| | | return (v0) -> { |
| | | return v0.getTargetId(); |
| | | }; |
| | | } |
| | | 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/ProductionCraftProcess") && lambda.getImplMethodSignature().equals("()Ljava/lang/String;")) { |
| | | return (v0) -> { |
| | | return v0.getTargetId(); |
| | | }; |
| | | } |
| | | 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/ProductionCraftProcess") && lambda.getImplMethodSignature().equals("()Ljava/lang/String;")) { |
| | | return (v0) -> { |
| | | return v0.getTargetId(); |
| | | }; |
| | | } |
| | | 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/ProductionCraftProcess") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { |
| | | return (v0) -> { |
| | | return v0.getSort(); |
| | | }; |
| | | } |
| | | 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/ProductionCraftProcess") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { |
| | | return (v0) -> { |
| | | return v0.getSort(); |
| | | }; |
| | | } |
| | | 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/ProductionCraftProcess") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { |
| | | return (v0) -> { |
| | | return v0.getSort(); |
| | | }; |
| | | } |
| | | 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/ProductionCraftProcess") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { |
| | | return (v0) -> { |
| | | return v0.getSort(); |
| | | }; |
| | | } |
| | | 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/ProductionCraftProcess") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { |
| | | return (v0) -> { |
| | | return v0.getSort(); |
| | | }; |
| | | } |
| | | 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/ProductionCraftProcess") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { |
| | | return (v0) -> { |
| | | return v0.getSort(); |
| | | }; |
| | | } |
| | | 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/ProductionCraftProcess") && lambda.getImplMethodSignature().equals("()Ljava/lang/Integer;")) { |
| | | return (v0) -> { |
| | | return v0.getHeight(); |
| | | }; |
| | | } |
| | | 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/ProductionCraftProcess") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { |
| | | return (v0) -> { |
| | | return v0.getVersionId(); |
| | | }; |
| | | } |
| | | 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/ProductionCraftProcess") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { |
| | | return (v0) -> { |
| | | return v0.getVersionId(); |
| | | }; |
| | | } |
| | | 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/ProductionCraftProcess") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { |
| | | return (v0) -> { |
| | | return v0.getVersionId(); |
| | | }; |
| | | } |
| | | 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/ProductionCraftProcess") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { |
| | | return (v0) -> { |
| | | return v0.getVersionId(); |
| | | }; |
| | | } |
| | | 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/ProductionCraftProcess") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { |
| | | return (v0) -> { |
| | | return v0.getVersionId(); |
| | | }; |
| | | } |
| | | 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/ProductionCraftProcess") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { |
| | | return (v0) -> { |
| | | return v0.getVersionId(); |
| | | }; |
| | | } |
| | | 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/ProductionCraftProcess") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { |
| | | return (v0) -> { |
| | | return v0.getVersionId(); |
| | | }; |
| | | } |
| | | 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/ProductionCraftProcess") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { |
| | | return (v0) -> { |
| | | return v0.getVersionId(); |
| | | }; |
| | | } |
| | | 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/ProductionCraftProcess") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { |
| | | return (v0) -> { |
| | | return v0.getVersionId(); |
| | | }; |
| | | } |
| | | 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/ProductionCraftProcessRelatedFixture") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { |
| | | return (v0) -> { |
| | | return v0.getVersionProcessId(); |
| | | }; |
| | | } |
| | | 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(); |
| | | }; |
| | | } |
| | | 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/ProductionCraftProcessFile") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { |
| | | return (v0) -> { |
| | | return v0.getVersionProcessId(); |
| | | }; |
| | | } |
| | | 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(); |
| | | }; |
| | | } |
| | | 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/ProductionCraftProcessRelatedTool") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { |
| | | return (v0) -> { |
| | | return v0.getVersionProcessId(); |
| | | }; |
| | | } |
| | | 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/ProductionCraftProcessFile") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { |
| | | return (v0) -> { |
| | | return v0.getVersionProcessId(); |
| | | }; |
| | | } |
| | | 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/ProductionCraftProcessRelatedTool") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { |
| | | return (v0) -> { |
| | | return v0.getVersionProcessId(); |
| | | }; |
| | | } |
| | | 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 RegionCache.VILLAGE_LEVEL /* 5 */: |
| | | 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/ProductionCraftProcess") && lambda.getImplMethodSignature().equals("()Ljava/lang/String;")) { |
| | | return (v0) -> { |
| | | return v0.getYCoordinate(); |
| | | }; |
| | | } |
| | | 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/ProductionCraftProcess") && lambda.getImplMethodSignature().equals("()Ljava/lang/String;")) { |
| | | return (v0) -> { |
| | | return v0.getYCoordinate(); |
| | | }; |
| | | } |
| | | 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/ProductionCraftProcess") && lambda.getImplMethodSignature().equals("()Ljava/lang/String;")) { |
| | | return (v0) -> { |
| | | return v0.getYCoordinate(); |
| | | }; |
| | | } |
| | | 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/ProductionCraftProcess") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { |
| | | return (v0) -> { |
| | | return v0.getMainSequenceId(); |
| | | }; |
| | | } |
| | | 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/ProductionCraftProcess") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { |
| | | return (v0) -> { |
| | | return v0.getMainSequenceId(); |
| | | }; |
| | | } |
| | | 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/ProductionCraftProcess") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { |
| | | return (v0) -> { |
| | | return v0.getMainSequenceId(); |
| | | }; |
| | | } |
| | | 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/ProductionCraftProcess") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { |
| | | return (v0) -> { |
| | | return v0.getMainSequenceId(); |
| | | }; |
| | | } |
| | | 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/ProductionCraftProcess") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { |
| | | return (v0) -> { |
| | | return v0.getMainSequenceId(); |
| | | }; |
| | | } |
| | | 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/core/mp/base/BaseEntity") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { |
| | | return (v0) -> { |
| | | return v0.getId(); |
| | | }; |
| | | } |
| | | 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/core/mp/base/BaseEntity") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { |
| | | return (v0) -> { |
| | | return v0.getId(); |
| | | }; |
| | | } |
| | | 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/core/mp/base/BaseEntity") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { |
| | | return (v0) -> { |
| | | return v0.getId(); |
| | | }; |
| | | } |
| | | 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/core/mp/base/BaseEntity") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { |
| | | return (v0) -> { |
| | | return v0.getId(); |
| | | }; |
| | | } |
| | | 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/core/mp/base/BaseEntity") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { |
| | | return (v0) -> { |
| | | return v0.getId(); |
| | | }; |
| | | } |
| | | 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/core/mp/base/BaseEntity") && lambda.getImplMethodSignature().equals("()Ljava/lang/Long;")) { |
| | | return (v0) -> { |
| | | return v0.getId(); |
| | | }; |
| | | } |
| | | 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/ProductionCraftProcess") && lambda.getImplMethodSignature().equals("()Ljava/lang/String;")) { |
| | | return (v0) -> { |
| | | return v0.getSourceId(); |
| | | }; |
| | | } |
| | | 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/ProductionCraftProcess") && lambda.getImplMethodSignature().equals("()Ljava/lang/String;")) { |
| | | return (v0) -> { |
| | | return v0.getSourceId(); |
| | | }; |
| | | } |
| | | 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/ProductionCraftProcess") && lambda.getImplMethodSignature().equals("()Ljava/lang/String;")) { |
| | | return (v0) -> { |
| | | return v0.getSourceId(); |
| | | }; |
| | | } |
| | | 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/ProductionCraftProcess") && lambda.getImplMethodSignature().equals("()Ljava/lang/String;")) { |
| | | return (v0) -> { |
| | | return v0.getXCoordinate(); |
| | | }; |
| | | } |
| | | 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/ProductionCraftProcess") && lambda.getImplMethodSignature().equals("()Ljava/lang/String;")) { |
| | | return (v0) -> { |
| | | return v0.getXCoordinate(); |
| | | }; |
| | | } |
| | | 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/ProductionCraftProcess") && lambda.getImplMethodSignature().equals("()Ljava/lang/String;")) { |
| | | return (v0) -> { |
| | | return v0.getXCoordinate(); |
| | | }; |
| | | } |
| | | break; |
| | | } |
| | | throw new IllegalArgumentException("Invalid lambda deserialization"); |
| | | } |
| | | |
| | | public ProductionCraftProcessServiceImpl(final IProductionCraftProcessFileService processFileService, final IProductionCraftProcessRelatedToolService relatedToolService, final IProductionCraftProcessRelatedFixtureService relatedFixtureService) { |
| | | this.processFileService = processFileService; |
| | | this.relatedToolService = relatedToolService; |
| | |
| | | validFixVersion(versionId); |
| | | List<ProductionCraftProcess> craftProcessList = saveAll(versionId, processList); |
| | | if (Func.isNotEmpty(processList)) { |
| | | Map<Integer, List<Integer>> sortMap = (Map) processList.stream().map((v0) -> { |
| | | Map<Integer, List<Integer>> sortMap = processList.stream().map((v0) -> { |
| | | return v0.getSort(); |
| | | }).filter((v0) -> { |
| | | return Func.notNull(v0); |
| | |
| | | |
| | | @Override // org.springblade.modules.cps.service.IProductionCraftProcessService |
| | | public List<ProductionCraftProcess> listProcessByVersion(Long id) { |
| | | return list((Wrapper) ((LambdaQueryWrapper) Wrappers.lambdaQuery(ProductionCraftProcess.class).eq((v0) -> { |
| | | return v0.getVersionId(); |
| | | }, id)).orderByAsc((v0) -> { |
| | | return v0.getSort(); |
| | | })); |
| | | return list(Wrappers.lambdaQuery(ProductionCraftProcess.class) |
| | | .eq(ProductionCraftProcess::getVersionId, id) |
| | | .orderByAsc(ProductionCraftProcess::getSort)); |
| | | |
| | | } |
| | | |
| | | @Override // org.springblade.modules.cps.service.IProductionCraftProcessService |
| | | public boolean useSameFixture(ProductionCraftProcess currentProcess, ProductionCraftProcess nextProcess) { |
| | | List<ProductionCraftProcessRelatedFixture> currentFixture = this.relatedFixtureService.list(Wrappers.lambdaQuery(ProductionCraftProcessRelatedFixture.class) |
| | | .eq(ProductionCraftProcessRelatedFixture::getVersionProcessId, currentProcess.getId())); |
| | | List<ProductionCraftProcessRelatedFixture> nextFixture = this.relatedFixtureService.list(Wrappers.lambdaQuery(ProductionCraftProcessRelatedFixture.class) |
| | | .eq(ProductionCraftProcessRelatedFixture::getVersionProcessId, nextProcess.getId())); |
| | | |
| | | /* |
| | | List<ProductionCraftProcessRelatedFixture> currentFixture = this.relatedFixtureService.list((Wrapper) Wrappers.lambdaQuery(ProductionCraftProcessRelatedFixture.class).eq((v0) -> { |
| | | return v0.getVersionProcessId(); |
| | | }, currentProcess.getId())); |
| | | List<ProductionCraftProcessRelatedFixture> nextFixture = this.relatedFixtureService.list((Wrapper) Wrappers.lambdaQuery(ProductionCraftProcessRelatedFixture.class).eq((v0) -> { |
| | | return v0.getVersionProcessId(); |
| | | }, nextProcess.getId())); |
| | | */ |
| | | int currentSize = currentFixture.size(); |
| | | int nextSize = nextFixture.size(); |
| | | if (currentSize != nextSize) { |
| | | return false; |
| | | } |
| | | Set<Long> currentIds = (Set) currentFixture.stream().map((v0) -> { |
| | | Set<Long> currentIds = currentFixture.stream().map((v0) -> { |
| | | return v0.getFixtureId(); |
| | | }).collect(Collectors.toSet()); |
| | | Set<Long> nextIds = (Set) nextFixture.stream().map((v0) -> { |
| | | Set<Long> nextIds = nextFixture.stream().map((v0) -> { |
| | | return v0.getFixtureId(); |
| | | }).collect(Collectors.toSet()); |
| | | return currentIds.containsAll(nextIds); |
| | |
| | | |
| | | @Override // org.springblade.modules.cps.service.IProductionCraftProcessService |
| | | public Boolean updateSort(ProductionCraftProcessUpdateSortVO productionCraftProcessUpdateSortVO) { |
| | | List<ProductionCraftProcess> list = (List) productionCraftProcessUpdateSortVO.getProcessList().stream().map(i -> { |
| | | List<ProductionCraftProcess> list = productionCraftProcessUpdateSortVO.getProcessList().stream().map(i -> { |
| | | ProductionCraftProcess productionCraftProcess = new ProductionCraftProcess(); |
| | | productionCraftProcess.setId(i.getId()); |
| | | productionCraftProcess.setSort(i.getSort()); |
| | |
| | | ProductionCraftProcessDetailVO vo = ProductionCraftProcessConvert.INSTANCE.convertDetailVO(process); |
| | | Long mainSequenceId = process.getMainSequenceId(); |
| | | vo.setParentId(Long.valueOf(mainSequenceId == null ? 1024L : mainSequenceId.longValue())); |
| | | List<ProductionCraftProcessFile> processFiles = this.processFileService.list((Wrapper) Wrappers.lambdaQuery(ProductionCraftProcessFile.class).eq((v0) -> { |
| | | List<ProductionCraftProcessFile> processFiles = this.processFileService.list(Wrappers.lambdaQuery(ProductionCraftProcessFile.class).eq((v0) -> { |
| | | return v0.getVersionProcessId(); |
| | | }, id)); |
| | | List<ProductionCraftProcessFileVO> fileList = ProductionCraftProcessFileConvert.INSTANCE.convert(processFiles); |
| | | vo.setFiles(fileList); |
| | | List<ProductionCraftProcessRelatedFixture> fixtures = this.relatedFixtureService.list((Wrapper) Wrappers.lambdaQuery(ProductionCraftProcessRelatedFixture.class).eq((v0) -> { |
| | | List<ProductionCraftProcessRelatedFixture> fixtures = this.relatedFixtureService.list(Wrappers.lambdaQuery(ProductionCraftProcessRelatedFixture.class).eq((v0) -> { |
| | | return v0.getVersionProcessId(); |
| | | }, id)); |
| | | List<ProductionCraftProcessRelatedFixtureVO> fixtureList = ProductionCraftProcessRelatedFixtureConvert.INSTANCE.convert(fixtures); |
| | | vo.setFixtures(fixtureList); |
| | | List<ProductionCraftProcessRelatedTool> tools = this.relatedToolService.list((Wrapper) Wrappers.lambdaQuery(ProductionCraftProcessRelatedTool.class).eq((v0) -> { |
| | | List<ProductionCraftProcessRelatedTool> tools = this.relatedToolService.list( Wrappers.lambdaQuery(ProductionCraftProcessRelatedTool.class).eq((v0) -> { |
| | | return v0.getVersionProcessId(); |
| | | }, id)); |
| | | List<ProductionCraftProcessRelatedToolVO> toolList = ProductionCraftProcessRelatedToolConvert.INSTANCE.convert(tools); |
| | |
| | | removeProcessAssociation(Lists.newArrayList(new Long[]{versionProcessId})); |
| | | List<ProductionCraftProcessDeleteVO> voList = vo.getProductionCraftProcessDeleteVOList(); |
| | | if (Func.isNotEmpty(voList)) { |
| | | List<ProductionCraftProcess> list = (List) voList.stream().filter(c -> { |
| | | List<ProductionCraftProcess> list = voList.stream().filter(c -> { |
| | | return !versionProcessId.equals(c.getId()); |
| | | }).map(i -> { |
| | | ProductionCraftProcess productionCraftProcess = new ProductionCraftProcess(); |
| | |
| | | Long id = productionCraftProcess.getId(); |
| | | ProductionCraftProcess process = (ProductionCraftProcess) getById(id); |
| | | if (Func.isNull(process.getMainSequenceId())) { |
| | | List<ProductionCraftProcess> list = list(Lambda.eq(ProductionCraftProcess::getSort, sort) |
| | | .ne(ProductionCraftProcess::getId, vo.getId()) |
| | | .eq(ProductionCraftProcess::getVersionId, versionId)); |
| | | /* |
| | | List<ProductionCraftProcess> list = list((Wrapper) ((ExtraLambdaQueryWrapper) Lambda.eq((v0) -> { |
| | | return v0.getSort(); |
| | | }, sort).ne((v0) -> { |
| | | return v0.getId(); |
| | | }, vo.getId())).eq((v0) -> { |
| | | return v0.getVersionId(); |
| | | }, versionId)); |
| | | }, versionId));*/ |
| | | if (Func.isNotEmpty(list)) { |
| | | throw new ServiceException(MessageUtils.message("cps.production.craft.process.same.sort", new Object[0])); |
| | | } |
| | |
| | | |
| | | @Override // org.springblade.modules.cps.service.IProductionCraftProcessService |
| | | public List<ProductionCraftProcessVO> listProcess(Long versionId) { |
| | | List<ProductionCraftProcess> list = list((Wrapper) Wrappers.lambdaQuery(ProductionCraftProcess.class).eq((v0) -> { |
| | | List<ProductionCraftProcess> list = list(Wrappers.lambdaQuery(ProductionCraftProcess.class).eq((v0) -> { |
| | | return v0.getVersionId(); |
| | | }, versionId)); |
| | | return ProductionCraftProcessConvert.INSTANCE.convert(list); |
| | |
| | | List<ProductionCraftProcess> list = list(Lambda.eq((v0) -> { |
| | | return v0.getVersionId(); |
| | | }, versionId)); |
| | | List<VersionProcessTreeVO> vos = (List) list.stream().map(this::convert).collect(Collectors.toList()); |
| | | List<VersionProcessTreeVO> vos = list.stream().map(this::convert).collect(Collectors.toList()); |
| | | List<VersionProcessTreeVO> result = ForestNodeMerger.merge(vos); |
| | | result.sort(Comparator.comparing((v0) -> { |
| | | return v0.getSort(); |
| | |
| | | process.setProcessCode(vo.getProcessCode()); |
| | | process.setProcessName(vo.getProcessName()); |
| | | process.setSort(vo.getSort()); |
| | | return Boolean.valueOf(updateById(process) && ((LambdaUpdateChainWrapper) ((LambdaUpdateChainWrapper) Lambda.updateWrapper(this.baseMapper).set((v0) -> { |
| | | return v0.getSort(); |
| | | }, vo.getSort())).eq((v0) -> { |
| | | return v0.getMainSequenceId(); |
| | | }, vo.getId())).update()); |
| | | return Boolean.valueOf(updateById(process) && (Lambda.updateWrapper(this.baseMapper).set(ProductionCraftProcess::getSort, vo.getSort()) |
| | | .eq(ProductionCraftProcess::getMainSequenceId, vo.getId())).update()); |
| | | } |
| | | |
| | | @Override // org.springblade.modules.cps.service.IProductionCraftProcessService |
| | |
| | | List<ProductionCraftProcessVO> res = Lists.newArrayList(); |
| | | List<Integer> sorts = Lists.newArrayList(); |
| | | if (Func.isNotEmpty(normalProcessList)) { |
| | | List<Integer> sortList = (List) normalProcessList.stream().map((v0) -> { |
| | | List<Integer> sortList = normalProcessList.stream().map((v0) -> { |
| | | return v0.getSort(); |
| | | }).filter((v0) -> { |
| | | return Func.notNull(v0); |
| | |
| | | } |
| | | List<ParallelProVO> parallelProcessList = vo.getParallelProcessList(); |
| | | if (Func.isNotEmpty(parallelProcessList)) { |
| | | List<Integer> sortList2 = (List) parallelProcessList.stream().map((v0) -> { |
| | | List<Integer> sortList2 = parallelProcessList.stream().map((v0) -> { |
| | | return v0.getSort(); |
| | | }).filter((v0) -> { |
| | | return Func.notNull(v0); |
| | |
| | | ProductionCraftProcess mainProcess = saveMainProcess(build); |
| | | res.add(ProductionCraftProcessConvert.INSTANCE.convert(mainProcess)); |
| | | List<VersionProcessAddVO> childProcessList = ppl.getChildProcessList(); |
| | | Map<Integer, List<VersionProcessAddVO>> collect = (Map) childProcessList.stream().collect(Collectors.groupingBy((v0) -> { |
| | | Map<Integer, List<VersionProcessAddVO>> collect = childProcessList.stream().collect(Collectors.groupingBy((v0) -> { |
| | | return v0.getProcessType(); |
| | | })); |
| | | if (collect.size() > 1) { |
| | |
| | | res.addAll(ProductionCraftProcessConvert.INSTANCE.convert(craftProcessList2)); |
| | | }); |
| | | } |
| | | Map<Integer, List<Integer>> collect = (Map) sorts.stream().collect(Collectors.groupingBy(c -> { |
| | | Map<Integer, List<Integer>> collect = sorts.stream().collect(Collectors.groupingBy(c -> { |
| | | return c; |
| | | })); |
| | | if (collect.size() != sorts.size()) { |
| | |
| | | @Override // org.springblade.modules.cps.service.IProductionCraftProcessService |
| | | public List<ProductionCraftProcess> childProcessSave(ChildProcessVO vo) { |
| | | List<VersionProcessAddVO> childProcess = vo.getChildProcess(); |
| | | Map<Integer, List<VersionProcessAddVO>> typeMap = (Map) childProcess.stream().collect(Collectors.groupingBy((v0) -> { |
| | | Map<Integer, List<VersionProcessAddVO>> typeMap = childProcess.stream().collect(Collectors.groupingBy((v0) -> { |
| | | return v0.getProcessType(); |
| | | })); |
| | | if (typeMap.size() > 1) { |
| | |
| | | } |
| | | Long mainId = vo.getMainId(); |
| | | Long versionId = vo.getVersionId(); |
| | | List<ProductionCraftProcess> list = list((Wrapper) Lambda.eq((v0) -> { |
| | | return v0.getMainSequenceId(); |
| | | }, mainId).eq((v0) -> { |
| | | return v0.getVersionId(); |
| | | }, versionId)); |
| | | List<ProductionCraftProcess> list = list(Lambda.eq(ProductionCraftProcess::getMainSequenceId, mainId).eq(ProductionCraftProcess::getVersionId, versionId)); |
| | | if (Func.isNotEmpty(list)) { |
| | | list.stream().map((v0) -> { |
| | | return v0.getProcessType(); |
| | |
| | | |
| | | @Override // org.springblade.modules.cps.service.IProductionCraftProcessService |
| | | public Boolean childProcessRemove(String mainId, String childId) { |
| | | return Boolean.valueOf(remove(Lambda.eq(ProductionCraftProcess::getMainSequenceId, mainId) |
| | | .eq(ProductionCraftProcess::getId, childId))); |
| | | /* |
| | | return Boolean.valueOf(remove((Wrapper) Lambda.eq((v0) -> { |
| | | return v0.getMainSequenceId(); |
| | | }, mainId).eq((v0) -> { |
| | | return v0.getId(); |
| | | }, childId))); |
| | | }, childId)));*/ |
| | | } |
| | | |
| | | @Override // org.springblade.modules.cps.service.IProductionCraftProcessService |
| | |
| | | updateNormalInfo(versionId, np, res); |
| | | }); |
| | | mainProcess.forEach(mp -> { |
| | | boolean update = Lambda.updateWrapper(this.baseMapper).set(ProductionCraftProcess::getSort, mp.getSort()) |
| | | .set(ProductionCraftProcess::getTargetId, mp.getTargetId()) |
| | | .set(ProductionCraftProcess::getSourceId, mp.getSourceId()) |
| | | .set(ProductionCraftProcess::getXCoordinate, mp.getXCoordinate()) |
| | | .set(ProductionCraftProcess::getYCoordinate, mp.getYCoordinate()) |
| | | .set(ProductionCraftProcess::getHeight, mp.getHeight()) |
| | | .eq(ProductionCraftProcess::getId, mp.getId()) |
| | | .eq(ProductionCraftProcess::getVersionId, versionId).update(); |
| | | /* |
| | | boolean update = ((LambdaUpdateChainWrapper) ((LambdaUpdateChainWrapper) ((LambdaUpdateChainWrapper) ((LambdaUpdateChainWrapper) ((LambdaUpdateChainWrapper) ((LambdaUpdateChainWrapper) ((LambdaUpdateChainWrapper) ((LambdaUpdateChainWrapper) Lambda.updateWrapper(this.baseMapper).set((v0) -> { |
| | | return v0.getSort(); |
| | | }, mp.getSort())).set((v0) -> { |
| | |
| | | }, mp.getId())).eq((v0) -> { |
| | | return v0.getVersionId(); |
| | | }, versionId)).update(); |
| | | */ |
| | | res.add(Boolean.valueOf(update)); |
| | | List<ProcessNmUpdateDTO> childList = mp.getChildList(); |
| | | childList.forEach(mcl -> { |
| | |
| | | } |
| | | |
| | | private void updateNormalInfo(Long versionId, ProcessNmUpdateDTO np, List<Boolean> res) { |
| | | boolean update = Lambda.updateWrapper(this.baseMapper).set(ProductionCraftProcess::getSort, np.getSort()) |
| | | .set(ProductionCraftProcess::getTargetId, np.getTargetId()) |
| | | .set(ProductionCraftProcess::getSourceId, np.getSourceId()) |
| | | .set(ProductionCraftProcess::getXCoordinate, np.getXCoordinate()) |
| | | .set(ProductionCraftProcess::getYCoordinate, np.getYCoordinate()) |
| | | .set(ProductionCraftProcess::getMainSequenceId, null) |
| | | .eq(ProductionCraftProcess::getId, np.getId()).eq(ProductionCraftProcess::getVersionId, versionId).update(); |
| | | /* |
| | | boolean update = ((LambdaUpdateChainWrapper) ((LambdaUpdateChainWrapper) ((LambdaUpdateChainWrapper) ((LambdaUpdateChainWrapper) ((LambdaUpdateChainWrapper) ((LambdaUpdateChainWrapper) ((LambdaUpdateChainWrapper) ((LambdaUpdateChainWrapper) Lambda.updateWrapper(this.baseMapper).set((v0) -> { |
| | | return v0.getSort(); |
| | | }, np.getSort())).set((v0) -> { |
| | |
| | | return v0.getId(); |
| | | }, np.getId())).eq((v0) -> { |
| | | return v0.getVersionId(); |
| | | }, versionId)).update(); |
| | | }, versionId)).update();*/ |
| | | res.add(Boolean.valueOf(update)); |
| | | } |
| | | |
| | | private void updateChildInfo(Long versionId, ProcessNmUpdateDTO np, List<Boolean> res) { |
| | | boolean update = Lambda.updateWrapper(this.baseMapper).set(ProductionCraftProcess::getSort, np.getSort()) |
| | | .set(ProductionCraftProcess::getTargetId, np.getTargetId()) |
| | | .set(ProductionCraftProcess::getSourceId, np.getSourceId()) |
| | | .set(ProductionCraftProcess::getXCoordinate, np.getXCoordinate()) |
| | | .set(ProductionCraftProcess::getYCoordinate, np.getYCoordinate()) |
| | | .eq(ProductionCraftProcess::getId, np.getId()) |
| | | .eq(ProductionCraftProcess::getVersionId, versionId).update(); |
| | | /* |
| | | boolean update = ((LambdaUpdateChainWrapper) ((LambdaUpdateChainWrapper) ((LambdaUpdateChainWrapper) ((LambdaUpdateChainWrapper) ((LambdaUpdateChainWrapper) ((LambdaUpdateChainWrapper) ((LambdaUpdateChainWrapper) Lambda.updateWrapper(this.baseMapper).set((v0) -> { |
| | | return v0.getSort(); |
| | | }, np.getSort())).set((v0) -> { |
| | |
| | | }, np.getId())).eq((v0) -> { |
| | | return v0.getVersionId(); |
| | | }, versionId)).update(); |
| | | */ |
| | | res.add(Boolean.valueOf(update)); |
| | | } |
| | | |
| | | /* JADX WARN: Removed duplicated region for block: B:7:0x0017 */ |
| | | /* |
| | | Code decompiled incorrectly, please refer to instructions dump. |
| | | To view partially-correct code enable 'Show inconsistent code' option in preferences |
| | | */ |
| | | private void checkChildSize(java.util.List<org.springblade.modules.cps.dto.ProcessMainUpdateDTO> r6) { |
| | | /* |
| | | r5 = this; |
| | | r0 = r6 |
| | | boolean r0 = org.springblade.core.tool.utils.Func.isNotEmpty(r0) |
| | | if (r0 == 0) goto L53 |
| | | r0 = r6 |
| | | java.util.Iterator r0 = r0.iterator() |
| | | r7 = r0 |
| | | Le: |
| | | r0 = r7 |
| | | boolean r0 = r0.hasNext() |
| | | if (r0 == 0) goto L53 |
| | | r0 = r7 |
| | | java.lang.Object r0 = r0.next() |
| | | org.springblade.modules.cps.dto.ProcessMainUpdateDTO r0 = (org.springblade.modules.cps.dto.ProcessMainUpdateDTO) r0 |
| | | r8 = r0 |
| | | r0 = r8 |
| | | java.util.List r0 = r0.getChildList() |
| | | r9 = r0 |
| | | r0 = r9 |
| | | boolean r0 = org.springblade.core.tool.utils.Func.isEmpty(r0) |
| | | if (r0 != 0) goto L3f |
| | | r0 = r9 |
| | | int r0 = r0.size() |
| | | java.lang.Integer r1 = org.springblade.modules.cps.service.impl.ProductionCraftProcessServiceImpl.CHILD_PROCESS_SIZE |
| | | int r1 = r1.intValue() |
| | | if (r0 >= r1) goto L50 |
| | | L3f: |
| | | org.springblade.core.log.exception.ServiceException r0 = new org.springblade.core.log.exception.ServiceException |
| | | r1 = r0 |
| | | java.lang.String r2 = "cps.production.craft.child.process.size.less" |
| | | r3 = 0 |
| | | java.lang.Object[] r3 = new java.lang.Object[r3] |
| | | java.lang.String r2 = org.springblade.common.utils.MessageUtils.message(r2, r3) |
| | | r1.<init>(r2) |
| | | throw r0 |
| | | L50: |
| | | goto Le |
| | | L53: |
| | | return |
| | | */ |
| | | throw new UnsupportedOperationException("Method not decompiled: org.springblade.modules.cps.service.impl.ProductionCraftProcessServiceImpl.checkChildSize(java.util.List):void"); |
| | | } |
| | | private void checkChildSize(List<ProcessMainUpdateDTO> mainProcess) { |
| | | if (Func.isNotEmpty(mainProcess)) |
| | | for (ProcessMainUpdateDTO process : mainProcess) { |
| | | List<ProcessNmUpdateDTO> childList = process.getChildList(); |
| | | if (Func.isEmpty(childList) || childList.size() < CHILD_PROCESS_SIZE.intValue()) |
| | | throw new ServiceException(MessageUtils.message("cps.production.craft.child.process.size.less", new Object[0])); |
| | | } |
| | | } |
| | | |
| | | |
| | | private boolean removeChildProcess(Long versionId, List<Long> ids) { |
| | | return Func.isEmpty(ids) || remove((Wrapper) Lambda.eq((v0) -> { |
| | | return v0.getVersionId(); |
| | | }, versionId).in((v0) -> { |
| | | return v0.getId(); |
| | | }, ids)); |
| | | return (Func.isEmpty(ids) || remove(Lambda.eq(ProductionCraftProcess::getVersionId, versionId).in(ProductionCraftProcess::getId, ids))); |
| | | |
| | | } |
| | | |
| | | private List<ProductionCraftProcess> saveAll(Long versionId, List<VersionProcessAddVO> processList) { |
| | |
| | | } |
| | | |
| | | private Boolean updateChildProcess(ProductionCraftProcess mainProcess, List<ProcessParallelVO> childProcess) { |
| | | List<ProductionCraftProcess> craftProcesses = (List) childProcess.stream().map(pro -> { |
| | | List<ProductionCraftProcess> craftProcesses = childProcess.stream().map(pro -> { |
| | | ProductionCraftProcess process = new ProductionCraftProcess().setMainSequenceId(mainProcess.getId()).setWhetherParallel(MainProcessEnum.MAIN_PROCESS.getCode()).setSort(mainProcess.getSort()); |
| | | process.setId(pro.getVersionProcessId()); |
| | | return process; |
| | |
| | | } |
| | | |
| | | private void checkProcessType(List<ProcessParallelVO> childProcess) { |
| | | Map<Integer, List<ProcessParallelVO>> typeMap = (Map) childProcess.stream().collect(Collectors.groupingBy((v0) -> { |
| | | Map<Integer, List<ProcessParallelVO>> typeMap = childProcess.stream().collect(Collectors.groupingBy((v0) -> { |
| | | return v0.getProcessType(); |
| | | })); |
| | | if (typeMap.size() > 1) { |
| | |
| | | |
| | | private void saveFileToolFixtures(Long versionProcessId, List<ProductionCraftProcessFileVO> files, List<ProductionCraftProcessRelatedToolVO> tools, List<ProductionCraftProcessRelatedFixtureVO> fixtures, List<ProductionCraftProcessFile> fileList, List<ProductionCraftProcessRelatedTool> toolList, List<ProductionCraftProcessRelatedFixture> fixtureList) { |
| | | if (Func.isNotEmpty(files)) { |
| | | fileList.addAll((Collection) files.stream().map(c -> { |
| | | fileList.addAll(files.stream().map(c -> { |
| | | ProductionCraftProcessFile file = ProductionCraftProcessFileConvert.INSTANCE.convert(c); |
| | | file.setVersionProcessId(versionProcessId); |
| | | return file; |
| | | }).collect(Collectors.toList())); |
| | | } |
| | | if (Func.isNotEmpty(tools)) { |
| | | toolList.addAll((Collection) tools.stream().map(c2 -> { |
| | | toolList.addAll( tools.stream().map(c2 -> { |
| | | return new ProductionCraftProcessRelatedTool().setToolId(c2.getToolId()).setVersionProcessId(versionProcessId).setToolCode(c2.getToolCode()).setToolModelName(c2.getToolModelName()).setToolCategoryName(c2.getToolCategoryName()); |
| | | }).collect(Collectors.toList())); |
| | | } |
| | | if (Func.isNotEmpty(fixtures)) { |
| | | fixtureList.addAll((Collection) fixtures.stream().map(c3 -> { |
| | | fixtureList.addAll(fixtures.stream().map(c3 -> { |
| | | return new ProductionCraftProcessRelatedFixture().setFixtureId(c3.getFixtureId()).setVersionProcessId(versionProcessId).setFixtureGroupName(c3.getFixtureGroupName()).setFixtureCode(c3.getFixtureCode()).setFixtureName(c3.getFixtureName()); |
| | | }).collect(Collectors.toList())); |
| | | } |