@@ -22,11 +22,11 @@
<select id="selectList" parameterType="com.poyee.domain.Spu" resultMap="spuMap">
select id,category,sub_category,spu_name,num,main_image,carousel_image,status,create_time,create_by,properties from spu
<where>
- <if test="spu.name!=null and spu.name!=''">
- name like concat('%',#{spu.name},'%')
+ <if test="spu.spuName!=null and spu.spuName!=''">
+ and spu_name like concat('%',#{spu.spuName},'%')
</if>
<if test="spu.status!=null">
- status=#{spu.status}
+ and status=#{spu.status}
</where>
</select>
@@ -65,7 +65,7 @@ mybatis-plus:
global-config:
db-config:
column-underline: false
- mapper-locations: classpath*:mapper/**/*Mapper.xml
+
# knife4j 配置