自动化立体仓库 - WMS系统
cl
2026-03-24 2c33a9a2967206d6167335ca178a0bce3351426c
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
46
47
48
49
50
51
52
53
54
55
package com.zy.asrs.service.impl;
 
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.core.common.Cools;
import com.zy.asrs.entity.LocMast;
import com.zy.asrs.mapper.LocMastMapper;
import com.zy.asrs.service.LocMastService;
import com.zy.asrs.service.MonitorLocMapCacheService;
import com.zy.asrs.utils.Utils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
 
import java.util.List;
 
@Service("locMastService")
public class LocMastServiceImpl extends ServiceImpl<LocMastMapper, LocMast> implements LocMastService {
 
    @Autowired
    private MonitorLocMapCacheService monitorLocMapCacheService;
 
    @Override
    public boolean updateById(LocMast entity) {
        boolean updated = super.updateById(entity);
        if (updated) {
            monitorLocMapCacheService.clearQuietly();
        }
        return updated;
    }
 
    @Override
    public boolean updateAllColumnById(LocMast entity) {
        boolean updated = super.updateAllColumnById(entity);
        if (updated) {
            monitorLocMapCacheService.clearQuietly();
        }
        return updated;
    }
 
    @Override
    public List<String> queryGroupEmptyStock(String sourceLocNo) {
        if (Cools.isEmpty(sourceLocNo)) {
            return null;
        }
        LocMast sourceStock = this.selectById(sourceLocNo);
        if (Cools.isEmpty(sourceStock)) {
            return null;
        }
        return this.baseMapper.queryGroupEmptyStock(Utils.getLev(sourceLocNo));
    }
 
    @Override
    public List<Integer> getLevList() {
        return this.baseMapper.getLevList();
    }
}