TGoodsMapper.java 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. package com.ruoyi.basicData.mapper;
  2. import com.ruoyi.basicData.domain.TCorps;
  3. import com.ruoyi.basicData.domain.TGoods;
  4. import org.apache.ibatis.annotations.Mapper;
  5. import org.apache.ibatis.annotations.Param;
  6. import java.util.List;
  7. import java.util.Map;
  8. /**
  9. * 商品详情Mapper接口
  10. *
  11. * @author ruoyi
  12. * @date 2020-12-11
  13. */
  14. @Mapper
  15. public interface TGoodsMapper {
  16. /**
  17. * 查询商品详情
  18. *
  19. * @param fId 商品详情ID
  20. * @return 商品详情
  21. */
  22. public TGoods selectTGoodsById(Long fId);
  23. /**
  24. * 查询商品详情列表
  25. *
  26. * @param tGoods 商品详情
  27. * @return 商品详情集合
  28. */
  29. public List<TGoods> selectTGoodsList(TGoods tGoods);
  30. /**
  31. * 新增商品详情
  32. *
  33. * @param tGoods 商品详情
  34. * @return 结果
  35. */
  36. public int insertTGoods(TGoods tGoods);
  37. /**
  38. * 修改商品详情
  39. *
  40. * @param tGoods 商品详情
  41. * @return 结果
  42. */
  43. public int updateTGoods(TGoods tGoods);
  44. /**
  45. * 删除商品详情
  46. *
  47. * @param fId 商品详情ID
  48. * @return 结果
  49. */
  50. public int deleteTGoodsById(Long fId);
  51. /**
  52. * 批量删除商品详情
  53. *
  54. * @param fIds 需要删除的数据ID
  55. * @return 结果
  56. */
  57. public int deleteTGoodsByIds(Long[] fIds);
  58. /**
  59. * 检验编号唯一
  60. * @param fNo
  61. * @return
  62. */
  63. public TGoods checkFNoUnique(String fNo);
  64. /**
  65. * 检验名称
  66. * @param fNname
  67. * @return
  68. */
  69. public TGoods checkUFNnameUnique(String fNname);
  70. /**
  71. * 获取商品名
  72. * @return
  73. */
  74. public List<Map<String,Object>> getGoodName();
  75. /**
  76. * 更具id集合查询商品集合
  77. * @param ids
  78. * @return
  79. */
  80. List<TGoods> selectByIds(@Param("ids") List<Long> ids);
  81. public TGoods getGoodsByNo(String fNo);
  82. public TGoods getGoodsByName(String fName);
  83. TGoods getById(String id);
  84. }