MerchantBaseServiceImpl.java 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. package com.emato.biz.service.impl;
  2. import java.util.List;
  3. import com.emato.common.utils.DateUtils;
  4. import org.slf4j.Logger;
  5. import org.slf4j.LoggerFactory;
  6. import org.springframework.beans.factory.annotation.Autowired;
  7. import org.springframework.stereotype.Service;
  8. import com.emato.biz.mapper.merchant.MerchantBaseMapper;
  9. import com.emato.biz.domain.merchant.MerchantBase;
  10. import com.emato.biz.service.merchant.IMerchantBaseService;
  11. /**
  12. * 商户基本信息Service业务层处理
  13. *
  14. * @author yangbo
  15. * @date 2021-02-01
  16. */
  17. @Service
  18. public class MerchantBaseServiceImpl implements IMerchantBaseService
  19. {
  20. private static final Logger LOGGER = LoggerFactory.getLogger(MerchantBaseServiceImpl.class);
  21. @Autowired
  22. private MerchantBaseMapper merchantBaseMapper;
  23. /**
  24. * 查询商户基本信息
  25. *
  26. * @param merchSn 商户基本信息ID
  27. * @return 商户基本信息
  28. */
  29. @Override
  30. public MerchantBase selectMerchantBaseById(String merchSn)
  31. {
  32. return merchantBaseMapper.selectMerchantBaseById(merchSn);
  33. }
  34. /**
  35. * 查询商户基本信息列表
  36. *
  37. * @param merchantBase 商户基本信息
  38. * @return 商户基本信息
  39. */
  40. @Override
  41. public List<MerchantBase> selectMerchantBaseList(MerchantBase merchantBase)
  42. {
  43. return merchantBaseMapper.selectMerchantBaseList(merchantBase);
  44. }
  45. /**
  46. * 新增商户基本信息
  47. *
  48. * @param merchantBase 商户基本信息
  49. * @return 结果
  50. */
  51. @Override
  52. public int insertMerchantBase(MerchantBase merchantBase)
  53. {
  54. merchantBase.setCreateTime(DateUtils.getNowDate());
  55. return merchantBaseMapper.insertMerchantBase(merchantBase);
  56. }
  57. /**
  58. * 修改商户基本信息
  59. *
  60. * @param merchantBase 商户基本信息
  61. * @return 结果
  62. */
  63. @Override
  64. public int updateMerchantBase(MerchantBase merchantBase)
  65. {
  66. return merchantBaseMapper.updateMerchantBase(merchantBase);
  67. }
  68. /**
  69. * 批量删除商户基本信息
  70. *
  71. * @param merchSns 需要删除的商户基本信息ID
  72. * @return 结果
  73. */
  74. @Override
  75. public int deleteMerchantBaseByIds(String[] merchSns)
  76. {
  77. return merchantBaseMapper.deleteMerchantBaseByIds(merchSns);
  78. }
  79. /**
  80. * 删除商户基本信息信息
  81. *
  82. * @param merchSn 商户基本信息ID
  83. * @return 结果
  84. */
  85. @Override
  86. public int deleteMerchantBaseById(String merchSn)
  87. {
  88. return merchantBaseMapper.deleteMerchantBaseById(merchSn);
  89. }
  90. }