自动化立体仓库 - WMS系统
cl
2026-03-24 2c33a9a2967206d6167335ca178a0bce3351426c
src/main/java/com/zy/asrs/service/impl/LocMastServiceImpl.java
@@ -5,7 +5,8 @@
import com.zy.asrs.entity.LocMast;
import com.zy.asrs.mapper.LocMastMapper;
import com.zy.asrs.service.LocMastService;
import com.zy.asrs.service.RowLastnoService;
import com.zy.asrs.service.MonitorLocMapCacheService;
import com.zy.asrs.utils.Utils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@@ -15,11 +16,24 @@
public class LocMastServiceImpl extends ServiceImpl<LocMastMapper, LocMast> implements LocMastService {
    @Autowired
    private RowLastnoService rowLastnoService;
    private MonitorLocMapCacheService monitorLocMapCacheService;
    @Override
    public LocMast queryFreeLocMast(Integer row, Short locType1) {
        return this.baseMapper.queryFreeLocMast(row, locType1);
    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
@@ -31,6 +45,11 @@
        if (Cools.isEmpty(sourceStock)) {
            return null;
        }
        return this.baseMapper.queryGroupEmptyStock(sourceStock.getCrnNo());
        return this.baseMapper.queryGroupEmptyStock(Utils.getLev(sourceLocNo));
    }
    @Override
    public List<Integer> getLevList() {
        return this.baseMapper.getLevList();
    }
}