| | |
| | | |
| | | 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; |
| | |
| | | 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; |
| | | } |
| | | } |