package com.example.erp.service.sd;
|
|
import com.baomidou.dynamic.datasource.annotation.DS;
|
import com.example.erp.entity.sd.Product;
|
import com.example.erp.mapper.sd.ProductMapper;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.stereotype.Service;
|
|
import java.util.List;
|
|
@Service
|
@DS("sd")
|
public class ProductService {
|
@Autowired
|
ProductMapper productMapper;
|
public List<Product> defaultDateProduct(Integer pageNum,Integer pageSize,List<String> glassType,Product product) {
|
Integer offset = (pageNum-1)*pageSize;
|
String glassTypeId = null;
|
if(glassType.size()>1){
|
glassTypeId = glassType.get(1);
|
}
|
return productMapper.defaultProduct(offset,pageSize,glassTypeId,product);
|
}
|
}
|