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("erp_sd") public class ProductService { @Autowired ProductMapper productMapper; public List defaultDateProduct() { return productMapper.defaultProduct(); } }