对比新文件 |
| | |
| | | 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<ProductPriceInfoMapper, ProductPriceInfo> implements ProductPriceService { |
| | | @Autowired |
| | | ProductPriceInfoMapper productPriceInfoMapper; |
| | | |
| | | |
| | | @Override |
| | | public ProductPriceInfo selectByCode(String companynumber, String directionCode) { |
| | | return productPriceInfoMapper.selectByCode(companynumber,directionCode); |
| | | } |
| | | |
| | | @Override |
| | | public List<ProductPriceInfo> selectByCodes(String companynumber, List<String> direction10CodesList) { |
| | | if (StringUtils.isBlank(companynumber) || direction10CodesList == null || direction10CodesList.size() == 0) { |
| | | throw new BusinessException("系统入参为空"); |
| | | } |
| | | return productPriceInfoMapper.selectByCodes(companynumber, direction10CodesList); |
| | | } |
| | | } |