给经手人和仓库优化接口

This commit is contained in:
jishenghua
2025-02-22 21:22:57 +08:00
parent 4c91e8cb08
commit a473484ffd
15 changed files with 166 additions and 277 deletions

View File

@@ -23,28 +23,6 @@
</if>
and ifnull(dep.delete_Flag,'0') !='1'
order by dep.sort asc, dep.id desc
<if test="offset != null and rows != null">
limit #{offset},#{rows}
</if>
</select>
<select id="countsByDepot" resultType="java.lang.Long">
SELECT
COUNT(dep.id)
FROM jsh_depot dep
left join jsh_user usr on usr.id=dep.principal and ifnull(usr.status,'0') not in('1','2')
WHERE 1=1
<if test="name != null">
<bind name="bindName" value="'%'+name+'%'"/>
and dep.name like #{bindName}
</if>
<if test="type != null">
and dep.type=#{type}
</if>
<if test="remark != null">
<bind name="bindRemark" value="'%'+remark+'%'"/>
and dep.remark like #{bindRemark}
</if>
and ifnull(dep.delete_Flag,'0') !='1'
</select>
<update id="batchDeleteDepotByIds">

View File

@@ -14,24 +14,8 @@
</if>
and ifnull(delete_flag,'0') !='1'
order by sort asc, id desc
<if test="offset != null and rows != null">
limit #{offset},#{rows}
</if>
</select>
<select id="countsByPerson" resultType="java.lang.Long">
SELECT
COUNT(id)
FROM jsh_person
WHERE 1=1
<if test="name != null and name != ''">
<bind name="bindName" value="'%'+name+'%'"/>
and name like #{bindName}
</if>
<if test="type != null and type != ''">
and type=#{type}
</if>
and ifnull(delete_flag,'0') !='1'
</select>
<update id="batchDeletePersonByIds">
update jsh_person
set delete_flag='1'