| | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
| | | import com.zy.asrs.framework.common.R;
|
| | | import com.zy.asrs.framework.exception.CoolException;
|
| | | import com.zy.asrs.wms.asrs.entity.*;
|
| | | import com.zy.asrs.wms.asrs.entity.enums.LocAreaTypeSts;
|
| | |
| | |
|
| | | for (Integer row : direction) {
|
| | | Loc one = locService.getOne(new LambdaQueryWrapper<Loc>()
|
| | | .select(Loc::getId)
|
| | | .eq(Loc::getRow1, row)
|
| | | .eq(Loc::getBay1, loc.getBay1())
|
| | | .eq(Loc::getLev1, loc.getLev1()));
|
| | |
| | | });
|
| | | return detls;
|
| | | }
|
| | |
|
| | | /**
|
| | | * 获取所有库存数量
|
| | | * @return
|
| | | */
|
| | | @Override
|
| | | public R getAllStockQty() {
|
| | | Map<String, Double> map = new HashMap<>();
|
| | | Double allQty = this.baseMapper.getAllStock();
|
| | | map.put("allQty", allQty);
|
| | | return R.ok().add(map);
|
| | | }
|
| | | }
|