package com.gk.firework.Service.ServiceImpl;
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import com.gk.firework.Domain.ProductCodeInfo;
|
import com.gk.firework.Mapper.ProductCodeInfoMapper;
|
import com.gk.firework.Service.ProductCodeService;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.stereotype.Service;
|
|
import java.util.List;
|
|
@Service("ProductCodeService")
|
public class ProductCodeServiceImpl extends ServiceImpl<ProductCodeInfoMapper, ProductCodeInfo> implements ProductCodeService {
|
@Autowired
|
ProductCodeInfoMapper productCodeInfoMapper;
|
|
|
@Override
|
public ProductCodeInfo selectByFourteen(String fourteen,String date) {
|
return productCodeInfoMapper.selectByFourteen(fourteen,date);
|
}
|
|
@Override
|
public void insertBatch(List<ProductCodeInfo> productCodeInfoList) {
|
productCodeInfoMapper.insertBatch(productCodeInfoList);
|
}
|
|
@Override
|
public List<ProductCodeInfo> selectByOrderCode(String ordercode) {
|
return productCodeInfoMapper.selectByOrderCode(ordercode);
|
}
|
|
@Override
|
public ProductCodeInfo selectByOriginalCode(String code) {
|
LambdaQueryWrapper<ProductCodeInfo> wrapper = new LambdaQueryWrapper<>();
|
wrapper.eq(ProductCodeInfo::getOriginalcode,code);
|
return productCodeInfoMapper.selectOne(wrapper);
|
}
|
|
@Override
|
public List<ProductCodeInfo> selectByItemCode(String directionCode) {
|
LambdaQueryWrapper<ProductCodeInfo> wrapper = new LambdaQueryWrapper<>();
|
wrapper.likeRight(ProductCodeInfo::getOriginalcode,directionCode);
|
return productCodeInfoMapper.selectList(wrapper);
|
}
|
}
|