package com.qianwen.smartman.modules.fms.service.impl;
|
|
import com.baomidou.mybatisplus.core.conditions.Wrapper;
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
import java.lang.invoke.SerializedLambda;
|
import java.util.List;
|
import com.qianwen.core.mp.base.BaseServiceImpl;
|
import com.qianwen.core.tool.utils.Func;
|
import com.qianwen.smartman.modules.fms.entity.FmsInstructionRecord;
|
import com.qianwen.smartman.modules.fms.mapper.FmsInstructionRecordMapper;
|
import com.qianwen.smartman.modules.fms.service.IFmsInstructionRecordService;
|
import org.springframework.stereotype.Service;
|
|
@Service
|
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/fms/service/impl/FmsInstructionRecordServiceImpl.class */
|
public class FmsInstructionRecordServiceImpl extends BaseServiceImpl<FmsInstructionRecordMapper, FmsInstructionRecord> implements IFmsInstructionRecordService {
|
private static /* synthetic */ Object $deserializeLambda$(SerializedLambda lambda) {
|
String implMethodName = lambda.getImplMethodName();
|
boolean z = true;
|
switch (implMethodName.hashCode()) {
|
case 1071464927:
|
if (implMethodName.equals("getCreateTime")) {
|
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/core/mp/base/BaseEntity") && lambda.getImplMethodSignature().equals("()Ljava/util/Date;")) {
|
return (v0) -> {
|
return v0.getCreateTime();
|
};
|
}
|
break;
|
}
|
throw new IllegalArgumentException("Invalid lambda deserialization");
|
}
|
|
@Override // org.springblade.modules.fms.service.IFmsInstructionRecordService
|
public FmsInstructionRecord getLastRecord() {
|
List<FmsInstructionRecord> list = list((Wrapper) Wrappers.lambdaQuery().orderByDesc((v0) -> {
|
return v0.getCreateTime();
|
}));
|
if (Func.isNotEmpty(list)) {
|
return list.get(0);
|
}
|
return null;
|
}
|
}
|