demand: 新增筛选网点接口。筛选供应商接口返回nameEn.

committer: heyu
This commit is contained in:
aike 2025-06-25 11:01:23 +08:00
parent c54ef63b78
commit 84de09d96c
2 changed files with 11 additions and 0 deletions

View File

@ -773,6 +773,8 @@
<if test="params.startSiteCode != null and params.startSiteCode != ''">and r.start_site_code =
#{params.startSiteCode}
</if>
<if test="siteCode != null and siteCode != ''"> and r.next_site_code = #{siteCode}</if>
<if test="siteName != null and siteName != ''"> and s.site_name LIKE CONCAT('%', #{siteName}, '%')</if>
</where>
order by r.id desc
</select>

View File

@ -273,6 +273,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
r.del_flag = '0'
<if test="params.startSiteCode != null and params.startSiteCode != ''"> and r.start_site_code = #{params.startSiteCode}</if>
<if test="params.nextSiteCode != null and params.nextSiteCode != ''"> and r.next_site_code = #{params.nextSiteCode}</if>
<if test="code != null and code != ''"> and ( FIND_IN_SET(#{code},r.supplier_code) )</if>
<if test="name != null and name != ''">
and EXISTS (
SELECT 1 FROM emis_supplier s
WHERE FIND_IN_SET(s.code, r.supplier_code)
AND s.del_flag = '0'
AND s.name LIKE CONCAT('%', #{name}, '%')
)
</if>
</where>
order by id desc
</select>