tj
2025-03-20 87a0ccb7ed3f0c9bfd856169ef03de136cd1047d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.jsh.erp.datasource.mappers.UserBusinessMapperEx">
    <update id="batchDeleteUserBusinessByIds">
        update jsh_user_business
        set delete_flag='1'
        where 1=1
        and id in (
        <foreach collection="ids" item="id" separator=",">
            #{id}
        </foreach>
        )
    </update>
 
    <select id="getBasicDataByKeyIdAndType" resultType="com.jsh.erp.datasource.entities.UserBusiness">
        select * from jsh_user_business
        where key_id=#{keyId} and type=#{type}
        and ifnull(delete_flag,'0') !='1'
    </select>
 
    <update id="updateValueByTypeAndKeyId">
        update jsh_user_business
        set value= #{ubValue}
        where type = #{type} and key_id = #{keyId}
    </update>
</mapper>