WmspRestackScanResultMapper.java 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. package com.steerinfo.dil.mapper;
  2. import com.steerinfo.dil.model.WmspRestackScanResult;
  3. import com.steerinfo.framework.mapper.IBaseMapper;
  4. import org.apache.ibatis.annotations.MapKey;
  5. import org.apache.ibatis.annotations.Mapper;
  6. import org.apache.ibatis.annotations.Select;
  7. import java.math.BigDecimal;
  8. import java.util.List;
  9. import java.util.Map;
  10. @Mapper
  11. public interface WmspRestackScanResultMapper extends IBaseMapper<WmspRestackScanResult, BigDecimal> {
  12. int insertSelective(WmspRestackScanResult wmspRestackScanResult);
  13. //根据条件查找信息
  14. @MapKey("")
  15. List<Map<String,Object>> selectByLoaderId(Map<String,Object> mapval);
  16. //查询最大id
  17. @Select("select seq_WMSP_RESTACK_SCAN_RESULT.nextval from dual\n")
  18. BigDecimal selectMaxId();
  19. //稽核倒垛单信息
  20. Integer selectRestackAudit(String materialCode);
  21. int updateByPrimaryKeySelective(WmspRestackScanResult wmspRestackScanResult);
  22. //根据稽核结果统计订单数量
  23. int CountByAuditResult(Integer resultId);
  24. //根据垛位id查询垛位已堆放物资数量
  25. Integer selectNumber(Integer stackingId1);
  26. //稽核阶段,根据物资id查找物资id
  27. @MapKey("")
  28. Map<String,Object> selectListByAuditResult(Integer mateialId);
  29. //稽核阶段,根据实绩id查找物资id
  30. @MapKey("")
  31. List<Map<String,Object>> selectMaterialIdByResultId(Integer resultId);
  32. //根据实绩id查找倒垛后的仓库id和垛位id
  33. @MapKey("")
  34. Map<String,Object> selectWarehouseIdAndStakingId(Integer resultId);
  35. Integer selectGridIdByStakingNoAndGrandationnumber(Map<String,Object> map);
  36. //根据扫描结果查询是否存在
  37. Integer selectResultScanTag(String resultScanTag);
  38. //根据网格id和物资id查找主键id
  39. Integer selectGmIdByGridIdAndMaterialId(Integer gridId,Integer materialId);
  40. //根据网格id查找物资id
  41. Integer selectMaterialIdByGridId(Integer gridId);
  42. //根据物资id查找倒垛前的仓储网格
  43. Integer selectGridIdByResultId(Integer resultId);
  44. //根据实绩id查找扫描结果
  45. List<Map<String,Object>> selectTagByResultId(Integer resultId);
  46. // 判断当前的物资是否已经存在并且倒垛状态为已倒垛
  47. int getWmspRestackScanResultCount(String onlyCode);
  48. List<Map<String,Object>> getResultId(BigDecimal restackId);
  49. }