刘光辉
昨天 bb638871a7fb692d80f1b7a758f991dc0879002c
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
27
<?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.DmsWenjianBianhaoShenqingMapper">
 
    <resultMap id="BaseResultMap" type="jnpf.dmsEntity.DmsWenjianBianhaoShenqingEntity">
        <id column="f_id" property="id"/>
        <result column="f_tenant_id" property="tenantId"/>
        <result column="f_flow_id" property="flowId"/>
        <result column="f_flow_task_id" property="flowTaskId"/>
        <result column="f_flow_state" property="flowState"/>
        <result column="f_delete_mark" property="deleteMark"/>
        <result column="shenqing_ren_id" property="shenqingRenId"/>
        <result column="shenqing_bumen_id" property="shenqingBumenId"/>
    </resultMap>
 
    <select id="selectByFlowForUpdate" resultMap="BaseResultMap">
        SELECT f_id, f_tenant_id, f_flow_id, f_flow_task_id, f_flow_state,
               f_delete_mark, shenqing_ren_id, shenqing_bumen_id
        FROM dms_wenjian_bianhao_shenqing
        WHERE f_tenant_id = #{tenantId}
          AND f_flow_id = #{flowId}
          AND f_flow_task_id = #{taskId}
          AND (f_delete_mark IS NULL OR f_delete_mark &lt;&gt; 1)
        FOR UPDATE
    </select>
 
</mapper>