Administrator
2023-06-19 49588f5a462ae7425e7eb030438a35fd80c246fa
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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);
    }
}