package com.by4cloud.platformx.device.service.impl;
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import com.by4cloud.platformx.device.entity.Device;
|
import com.by4cloud.platformx.device.entity.DeviceLeasingLedger;
|
import com.by4cloud.platformx.device.mapper.DeviceLeasingLedgerMapper;
|
import com.by4cloud.platformx.device.mapper.DeviceMapper;
|
import com.by4cloud.platformx.device.service.DeviceLeasingLedgerService;
|
import lombok.AllArgsConstructor;
|
import org.springframework.stereotype.Service;
|
|
import java.util.List;
|
|
/**
|
* 设备租赁台账
|
*
|
* @author syt
|
* @date 2025-03-27 09:30:29
|
*/
|
@Service
|
@AllArgsConstructor
|
public class DeviceLeasingLedgerServiceImpl extends ServiceImpl<DeviceLeasingLedgerMapper, DeviceLeasingLedger> implements DeviceLeasingLedgerService {
|
|
private final DeviceMapper deviceMapper;
|
|
@Override
|
public List<DeviceLeasingLedger> getSelectList() {
|
QueryWrapper<DeviceLeasingLedger> queryWrapper = new QueryWrapper<>();
|
List<DeviceLeasingLedger> list = baseMapper.selectList(queryWrapper);
|
return list;
|
}
|
|
@Override
|
public List<Device> getDeviceSelectList(Long ledgerId) {
|
List<Device> list = deviceMapper.getDeviceSelectListByLedgerId(ledgerId);
|
return list;
|
}
|
}
|