linhui.li 1 долоо хоног өмнө
parent
commit
937281714b

+ 3 - 3
py-goods/src/main/resources/mapper/SpuMapper.xml

@@ -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}
             </if>
         </where>
     </select>

+ 1 - 1
py-starter/src/main/resources/application-dev.yml

@@ -65,7 +65,7 @@ mybatis-plus:
   global-config:
     db-config:
       column-underline: false
-  mapper-locations: classpath*:mapper/**/*Mapper.xml
+
 
 
 # knife4j 配置