package com.pj.tb_purchaser_address;

import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.pj.utils.so.SoMap;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Service: tb_purchaser_address -- 收购商个人地址管理表
 *
 * @author qzy
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class TbPurchaserAddressService extends ServiceImpl<TbPurchaserAddressMapper, TbPurchaserAddress> implements IService<TbPurchaserAddress> {

    /**
     * 底层 Mapper 对象
     */
    @Autowired
    TbPurchaserAddressMapper tbPurchaserAddressMapper;


    /** 查集合 - 根据条件（参数为空时代表忽略指定条件） */
    List<TbPurchaserAddress> getList(SoMap so) {
        return tbPurchaserAddressMapper.getList(so);
    }

    boolean deleteByIdAndUserId(TbPurchaserAddress address) {
        return tbPurchaserAddressMapper.deleteByIdAndUserId(address);
    }

}
