==这里是规格参数视频和自己的代码,视频的代码可以查询处规格参数的数据,自己的代码查询不到相应的页面,总体排完错再来修改==
![image-20210724220239030](https://gitee.com/doudoutj111/tj/raw/master/img/image-20210724220239030.png)
![image-20210724220303798](https://gitee.com/doudoutj111/tj/raw/master/img/image-20210724220303798.png)
==排除发现后面这些是加了其他属性的,是正确的==
==应该是在规格参数的时候出现了空指针异常==
```java
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.TooManyResultsException: Expected one result (or null) to be returned by selectOne(), but found: 2
at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:96)
at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:441)
at com.sun.proxy.$Proxy97.selectOne(Unknown Source)
at org.mybatis.spring.SqlSessionTemplate.selectOne(SqlSessionTemplate.java:160)
at com.baomidou.mybatisplus.core.override.MybatisMapperMethod.execute(MybatisMapperMethod.java:89)
at com.baomidou.mybatisplus.core.override.MybatisMapperProxy$PlainMethodInvoker.invoke(MybatisMapperProxy.java:148)
at com.baomidou.mybatisplus.core.override.MybatisMapperProxy.invoke(MybatisMapperProxy.java:89)
at com.sun.proxy.$Proxy98.selectOne(Unknown Source)
```
==视频里面的pms_attr里面有value_type这一列 我的没有==
![image-20210724224040995](https://gitee.com/doudoutj111/tj/raw/master/img/image-20210724224040995.png)
![image-20210724224144186](https://gitee.com/doudoutj111/tj/raw/master/img/image-20210724224144186.png)
[全网最强电商教程《谷粒商城》对标阿里P6/P7,40-60万年薪_哔哩哔哩_bilibili](https://www.bilibili.com/video/BV1np4y1C7Yf?p=79&spm_id_from=pageDriver)