给经手人和仓库优化接口

This commit is contained in:
jishenghua
2025-02-22 22:04:06 +08:00
parent a473484ffd
commit a73a8d2db2
6 changed files with 79 additions and 134 deletions

View File

@@ -19,25 +19,8 @@
</if>
and ifnull(fa.delete_flag,'0') !='1'
order by fa.sort asc
<if test="offset != null and rows != null">
limit #{offset},#{rows}
</if>
</select>
<select id="countsByFunction" resultType="java.lang.Long">
select
count(fa.id)
from jsh_function fa
left join jsh_function fb on fa.parent_number = fb.number
WHERE 1=1
<if test="name != null">
<bind name="bindName" value="'%'+name+'%'"/>
and fa.name like #{bindName}
</if>
<if test="type != null">
and fa.type=#{type}
</if>
and ifnull(fa.delete_flag,'0') !='1'
</select>
<update id="batchDeleteFunctionByIds">
update jsh_function
set delete_flag='1'