完善供应商、客户、会员查询接口,支持模糊查询

This commit is contained in:
jishenghua
2025-09-26 17:19:06 +08:00
parent 6a108649e6
commit d9a9a1b118
5 changed files with 86 additions and 28 deletions

View File

@@ -82,4 +82,22 @@
and ifnull(delete_flag,'0') !='1'
order by sort asc, id desc
</select>
<select id="findByTypeAndKey" resultType="com.jsh.erp.datasource.entities.Supplier">
select id, supplier, advance_in from jsh_supplier
where type = #{type} and enabled = 1
<if test="key != null and key !=''">
<bind name="bindKey" value="'%'+key+'%'"/>
and supplier like #{bindKey}
</if>
and ifnull(delete_flag,'0') !='1'
order by sort asc, id desc
limit 0,500
</select>
<select id="getInfoById" resultType="com.jsh.erp.datasource.entities.Supplier">
select id, supplier from jsh_supplier
where id = #{id}
and ifnull(delete_flag,'0') !='1'
</select>
</mapper>