wuyouming666
2024-04-17 e8005cc7b6caaa85c7fc99cc87e3877516f777d9
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
40
41
42
43
44
45
package com.mes.downstorage.service.impl;
 
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
 
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mes.downstorage.entity.DownStorageCage;
import com.mes.downstorage.entity.DownStorageCageDetails;
import com.mes.downstorage.mapper.DownStorageCageDetailsMapper;
import com.mes.downstorage.mapper.DownStorageCageMapper;
import com.mes.downstorage.service.DownStorageCageDetailsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
 
import javax.annotation.Resource;
import java.util.List;
import java.util.Map;
 
@Service
public class DownStorageCageDetailsServiceImpl extends ServiceImpl<DownStorageCageDetailsMapper, DownStorageCageDetails> implements DownStorageCageDetailsService {
 
 
 
    @Override
    public void addDownStorageCageDetails(DownStorageCageDetails details) {
        this.save(details);
    }
 
 
//    @Resource
//    private DownStorageCageDetailsMapper downStorageCageDetailsMapper;
    @Override
    public List<Map<String, Object>> selectCacheLeisure() {
        QueryWrapper<DownStorageCageDetails> queryWrapper = new QueryWrapper<>();
        queryWrapper
                .apply("LEFT JOIN down_storage_cage esc ON esc.slot = down_storage_cage_details.slot")
                .isNull("down_storage_cage_details.slot");
 
        return listMaps(queryWrapper);
    }
 
 
 
 
    // Other business methods can be implemented here
}