优化给仓库分配用户的接口
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user