RulesMapper.java 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. package com.steerinfo.dil.mapper;
  2. import org.apache.ibatis.annotations.Mapper;
  3. import java.math.BigDecimal;
  4. import java.util.List;
  5. import java.util.Map;
  6. /**
  7. * 规则方法
  8. * @ author :TXF
  9. * @ time :2021/11/16 14:28
  10. */
  11. @Mapper
  12. public interface RulesMapper {
  13. //根据物资Id、门岗规则 查询门岗id (可能会查询出多个)
  14. List<Map<String, Object>> queryGatepostByMaterialId(Map<String, Object> map);
  15. //通过物资Id、计量类型(进厂、出厂、中转) 可能会有多个称
  16. List<Integer> queryTruckCalculate(Map<String, Object> map);
  17. //查询未装车实绩
  18. List<Map<String, Object>> judgeLastMaterial(BigDecimal orderId);
  19. //通过门岗ID 和 网格类型 匹配 网格主键
  20. BigDecimal getGridIdByGatepostIdAndGridType(Map<String, Object> map);
  21. //通过物资Id查询仓库是否有货 或者 是否有多个仓库有货
  22. List<Integer> getWarehouseIdByMaterialId(Integer materialId);
  23. //通过仓库Id 和 物资Id 查询垛位 层次 月台 仓库
  24. List<Map<String, Object>> getStackGradation(Map<String, Object> map);
  25. //通过月台Id 查询月台当前排队车辆数
  26. BigDecimal queueCountByPlatformId(BigDecimal platformId);
  27. //通过订单ID查询路线类型
  28. Integer getLineIsSteel(BigDecimal orderId);
  29. //查询还没有净重的计量实绩数量
  30. Integer getNoNetWeightResult(BigDecimal orderId);
  31. //查询还没有出厂门岗ID的实绩
  32. Integer getNoGatepostIdResult(BigDecimal orderId);
  33. }