优化给仓库分配用户的接口

This commit is contained in:
jishenghua
2025-07-11 22:48:42 +08:00
parent 1936c6b4ac
commit c92320b4b7
4 changed files with 64 additions and 54 deletions

View File

@@ -22,11 +22,12 @@
update jsh_user_business
set value= #{ubValue}
where type = #{type} and key_id = #{keyId}
and ifnull(delete_flag,'0') !='1'
</update>
<select id="getUBKeyIdByTypeAndOneValue" resultType="java.lang.Long">
select ub.key_id from jsh_user_business ub
where ub.type='UserCustomer'
where ub.type = #{type}
<bind name="bindOneValue" value="'%['+oneValue+']%'"/>
and ub.value like #{bindOneValue}
and ifnull(ub.delete_flag,'0') !='1'
@@ -34,7 +35,7 @@
<select id="getOldListByType" resultType="com.jsh.erp.datasource.entities.UserBusiness">
select * from jsh_user_business ub
where ub.type='UserCustomer'
where ub.type = #{type}
and ifnull(ub.delete_flag,'0') !='1'
</select>
</mapper>