陶杰
2025-01-08 ae1471f378f399f76518539ec8992e64a3673436
src/main/java/com/mzl/flower/mapper/supplier/SupplierSubMapper.java
@@ -6,6 +6,7 @@
import com.mzl.flower.dto.response.supplier.SupplierSubVO;
import com.mzl.flower.entity.supplier.SupplierSub;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import java.util.List;
@@ -13,4 +14,11 @@
@Repository
public interface SupplierSubMapper extends BaseMapper<SupplierSub> {
    List<SupplierSubVO> querySupplierSub(@Param("dto") QuerySupplierSubDTO dto, Page page);
    @Select("select * from t_supplier_sub_info where deleted = '0' and user_id = #{id}")
    SupplierSub getCurrentSupplier(String id);
    @Select("select * from t_supplier_sub_info where deleted = '0' and supplier_id = #{supplierId}")
    List<SupplierSub> getSubSupplier(String supplierId);
}