123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- package com.emato.biz.service.impl;
- import java.util.List;
- import com.emato.common.utils.DateUtils;
- import org.slf4j.Logger;
- import org.slf4j.LoggerFactory;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.stereotype.Service;
- import com.emato.biz.mapper.merchant.MerchantBaseMapper;
- import com.emato.biz.domain.merchant.MerchantBase;
- import com.emato.biz.service.merchant.IMerchantBaseService;
- /**
- * 商户基本信息Service业务层处理
- *
- * @author yangbo
- * @date 2021-02-01
- */
- @Service
- public class MerchantBaseServiceImpl implements IMerchantBaseService
- {
- private static final Logger LOGGER = LoggerFactory.getLogger(MerchantBaseServiceImpl.class);
- @Autowired
- private MerchantBaseMapper merchantBaseMapper;
- /**
- * 查询商户基本信息
- *
- * @param merchSn 商户基本信息ID
- * @return 商户基本信息
- */
- @Override
- public MerchantBase selectMerchantBaseById(String merchSn)
- {
- return merchantBaseMapper.selectMerchantBaseById(merchSn);
- }
- /**
- * 查询商户基本信息列表
- *
- * @param merchantBase 商户基本信息
- * @return 商户基本信息
- */
- @Override
- public List<MerchantBase> selectMerchantBaseList(MerchantBase merchantBase)
- {
- return merchantBaseMapper.selectMerchantBaseList(merchantBase);
- }
- /**
- * 新增商户基本信息
- *
- * @param merchantBase 商户基本信息
- * @return 结果
- */
- @Override
- public int insertMerchantBase(MerchantBase merchantBase)
- {
- merchantBase.setCreateTime(DateUtils.getNowDate());
- return merchantBaseMapper.insertMerchantBase(merchantBase);
- }
- /**
- * 修改商户基本信息
- *
- * @param merchantBase 商户基本信息
- * @return 结果
- */
- @Override
- public int updateMerchantBase(MerchantBase merchantBase)
- {
- return merchantBaseMapper.updateMerchantBase(merchantBase);
- }
- /**
- * 批量删除商户基本信息
- *
- * @param merchSns 需要删除的商户基本信息ID
- * @return 结果
- */
- @Override
- public int deleteMerchantBaseByIds(String[] merchSns)
- {
- return merchantBaseMapper.deleteMerchantBaseByIds(merchSns);
- }
- /**
- * 删除商户基本信息信息
- *
- * @param merchSn 商户基本信息ID
- * @return 结果
- */
- @Override
- public int deleteMerchantBaseById(String merchSn)
- {
- return merchantBaseMapper.deleteMerchantBaseById(merchSn);
- }
- }
|