You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

82 lines
2.7 KiB

  1. package com.gaotao.modules.check.mapper;
  2. import com.baomidou.mybatisplus.core.mapper.BaseMapper;
  3. import com.gaotao.modules.check.entity.RfidCountSnapshot;
  4. import org.apache.ibatis.annotations.Mapper;
  5. import org.apache.ibatis.annotations.Param;
  6. /**
  7. * @Description 标签盘点快照表Mapper - rqrq
  8. * @author rqrq
  9. * @date 2026/03/04
  10. */
  11. @Mapper
  12. public interface RfidCountSnapshotMapper extends BaseMapper<RfidCountSnapshot> {
  13. /**
  14. * @Description 统计在库标签数量只统计in_stock_flag='Y'的标签- rqrq
  15. * @param site 工厂编码
  16. * @return 在库标签数量
  17. * @author rqrq
  18. * @date 2026/03/16
  19. */
  20. Integer countInStockLabels(@Param("site") String site);
  21. /**
  22. * @Description 从快照插入count_label只插入在库标签- rqrq
  23. * @param site 工厂编码
  24. * @param countNo 盘点单号
  25. * @param username 操作用户
  26. * @return 插入数量
  27. * @author rqrq
  28. * @date 2026/03/16
  29. */
  30. int insertCountLabelFromSnapshot(@Param("site") String site,
  31. @Param("countNo") String countNo,
  32. @Param("username") String username);
  33. /**
  34. * @Description 从快照插入count_pallet按托盘分组- rqrq
  35. * @param site 工厂编码
  36. * @param countNo 盘点单号
  37. * @param username 操作用户
  38. * @return 插入数量
  39. * @author rqrq
  40. * @date 2026/03/16
  41. */
  42. int insertCountPalletFromSnapshot(@Param("site") String site,
  43. @Param("countNo") String countNo,
  44. @Param("username") String username);
  45. /**
  46. * @Description 备份快照数据到历史表 - rqrq
  47. * @param site 工厂编码
  48. * @param countNo 盘点单号
  49. * @return 备份数量
  50. * @author rqrq
  51. * @date 2026/03/16
  52. */
  53. int backupSnapshotToHistory(@Param("site") String site, @Param("countNo") String countNo);
  54. /**
  55. * @Description 删除快照数据 - rqrq
  56. * @param site 工厂编码
  57. * @return 删除数量
  58. * @author rqrq
  59. * @date 2026/03/16
  60. */
  61. int deleteSnapshotBySite(@Param("site") String site);
  62. /**
  63. * @Description 从快照插入count_result盘点结果全部为OK无差异- rqrq
  64. * @param site 工厂编码
  65. * @param countNo 盘点单号
  66. * @param username 操作用户
  67. * @return 插入数量
  68. * @author rqrq
  69. * @date 2026/03/16
  70. */
  71. int insertCountResultFromSnapshot(@Param("site") String site,
  72. @Param("countNo") String countNo,
  73. @Param("username") String username);
  74. }