package com.qianwen.smartman.modules.fms.service.impl;
|
|
import java.util.List;
|
|
import org.springframework.stereotype.Service;
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
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;
|
|
@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 {
|
|
|
@Override // org.springblade.modules.fms.service.IFmsInstructionRecordService
|
public FmsInstructionRecord getLastRecord() {
|
List<FmsInstructionRecord> list = list(Wrappers.<FmsInstructionRecord>lambdaQuery().orderByDesc(FmsInstructionRecord::getCreateTime));
|
/*
|
List<FmsInstructionRecord> list = list((Wrapper) Wrappers.lambdaQuery().orderByDesc((v0) -> {
|
return v0.getCreateTime();
|
}));*/
|
if (Func.isNotEmpty(list)) {
|
return list.get(0);
|
}
|
return null;
|
}
|
}
|