package com.gk.firework.Service.ServiceImpl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.gk.firework.Domain.Exception.BusinessException; import com.gk.firework.Domain.ProductPriceInfo; import com.gk.firework.Domain.Utils.StringUtils; import com.gk.firework.Mapper.ProductPriceInfoMapper; import com.gk.firework.Service.ProductPriceService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.List; @Service("ProductPriceService") public class ProductPriceServiceImpl extends ServiceImpl implements ProductPriceService { @Autowired ProductPriceInfoMapper productPriceInfoMapper; @Override public ProductPriceInfo selectByCode(String companynumber, String directionCode) { return productPriceInfoMapper.selectByCode(companynumber,directionCode); } @Override public List selectByCodes(String companynumber, List direction10CodesList) { if (StringUtils.isBlank(companynumber) || direction10CodesList == null || direction10CodesList.size() == 0) { throw new BusinessException("系统入参为空"); } return productPriceInfoMapper.selectByCodes(companynumber, direction10CodesList); } }