shiyunteng
2025-03-27 2f6bd04715eba821713b9e1492999b7e5be7fcdb
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
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;
    }
}