Procházet zdrojové kódy

前端添加英文搜索

kouchengxing před 5 roky
rodič
revize
a031133f68

+ 1 - 1
dgtly-goods/dgtly-goods-common/src/main/resources/mapper/goods/GoodsInfoMapper.xml

@@ -276,7 +276,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             and gi.putaway_flag= "1"
             and sc.del_flag=0
             and sc.status=0
-            <if test="name != null  and name != ''"> and gi.name like concat('%', #{name}, '%')</if>
+            <if test="name != null  and name != ''"> and (gi.name like concat('%', #{name}, '%') or (gi.name_en like concat('%', #{name}, '%'))</if>
             <if test="companyId != null "> and gi.company_id = #{companyId}</if>
             <if test="typeId != null "> and find_in_set(#{typeId},gt.ancestors) </if>
             <if test="beginPrice != null and beginPrice!='' "> and gi.price &gt;= #{beginPrice}</if>

+ 1 - 1
dgtly-system/src/main/resources/mapper/system/SysCompanyMapper.xml

@@ -171,7 +171,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <include refid="selectSysCompanyVo"/>
         <where>
             sc.id !=1
-            <if test="companyName != null  and companyName != ''"> and sc.company_name like concat('%',#{companyName},'%') </if>
+            <if test="companyName != null  and companyName != ''"> and (sc.company_name like concat('%',#{companyName},'%') or sc.company_name_en like concat('%',#{companyName},'%')) </if>
         </where>
         order by sc.sort desc
     </select>