给客户信息页面增加分配用户相关的接口

This commit is contained in:
jishenghua
2025-07-11 17:52:20 +08:00
parent 1eae3531d3
commit 005e50bf06
5 changed files with 170 additions and 0 deletions

View File

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