自动化立体仓库 - WMS系统
zyx
2024-02-23 d16c9ca6307adde5d4b9734c540e276477940686
src/main/java/com/zy/asrs/service/impl/PlaServiceImpl.java
@@ -2,6 +2,7 @@
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.core.common.Cools;
import com.core.exception.CoolException;
@@ -147,4 +148,17 @@
    public List<Pla> selectToHistory() {
        return this.selectList(new EntityWrapper<Pla>().eq("status",GlobleParameter.PLA_STATUS_4));
    }
    @Override
    public Page<Pla> getStockStatisAll(Page<Pla> page) {
        if(Cools.isEmpty(page.getCondition().get("brand"))){
            page.setRecords(baseMapper.getStockStatisAll());
        }else {
            page.setRecords(baseMapper.getStockStatisAllByBrand(page.getCondition().get("brand").toString()));
        }
        page.setTotal(0);
        return page;
    }
}