郑永安
2023-06-19 2fcd97552d16718cc7997629fd637a73a5a4483f
src/main/java/com/gk/firework/Service/ServiceImpl/ProductPriceServiceImpl.java
对比新文件
@@ -0,0 +1,32 @@
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);
    }
}