刘光辉
4 小时以前 06f314545ac3514d7ce28939920866ae8188d31c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?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="jnpf.dmsMapper.DmsWenjianXiudingShenqingMapper">
 
    <resultMap id="BaseResultMap" type="jnpf.dmsEntity.DmsWenjianXiudingShenqingEntity">
        <id column="f_id" property="id"/>
        <result column="f_tenant_id" property="tenantId"/>
        <result column="f_flow_state" property="flowState"/>
        <result column="tiyi_ren_id" property="creatorUserId"/>
        <result column="tiyi_riqi" property="creatorTime"/>
        <result column="f_delete_mark" property="deleteMark"/>
    </resultMap>
 
    <select id="selectByIdForUpdate" resultMap="BaseResultMap">
        SELECT f_id, f_tenant_id, f_flow_state, tiyi_ren_id, tiyi_riqi, f_delete_mark
        FROM dms_wenjian_xiuding_shenqing
        WHERE f_tenant_id = #{tenantId}
          AND f_id = #{id}
          AND f_delete_mark IS NULL
        FOR UPDATE
    </select>
 
</mapper>