刘光辉
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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?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.DmsWenjianDayinShenqingDetailMapper">
    <resultMap id="BaseResultMap" type="jnpf.dmsEntity.print.DmsWenjianDayinShenqingDetailEntity">
        <id column="f_id" property="id"/>
        <result column="f_foreign_id" property="requestId"/>
        <result column="f_tenant_id" property="tenantId"/>
        <result column="f_delete_mark" property="deleteMark"/>
        <result column="wenjian_id" property="fileReferenceId"/>
        <result column="wenjian_bianhao" property="fileNumber"/>
        <result column="wenjian_mingcheng" property="fileName"/>
        <result column="banben_hao" property="versionLabel"/>
        <result column="banben_id" property="banbenId"/>
        <result column="wenjian_shengxiao_riqi" property="effectiveDate"/>
        <result column="wenjian_guishu_bumen" property="receivingDepartmentId"/>
        <result column="dayin_shuliang" property="printCopies"/>
        <result column="dayin_yema" property="printPages"/>
        <result column="yongtu" property="purpose"/>
        <result column="yuanyin" property="reason"/>
        <result column="qita_yuanyin" property="otherReason"/>
        <result column="shenqing_xingshi" property="applicationType"/>
        <result column="dayinren" property="printerUserId"/>
    </resultMap>
 
    <select id="selectByRequestForUpdate" resultMap="BaseResultMap">
        SELECT f_id, f_foreign_id, f_tenant_id, f_delete_mark,
               wenjian_id, wenjian_bianhao, wenjian_mingcheng, banben_hao, banben_id,
               wenjian_shengxiao_riqi, wenjian_guishu_bumen,
               dayin_shuliang, dayin_yema, yongtu, yuanyin, qita_yuanyin,
               shenqing_xingshi, dayinren
        FROM dms_wenjian_dayin_shenqing_zixiang
        WHERE f_tenant_id = #{tenantId}
          AND f_foreign_id = #{requestId}
          AND f_delete_mark IS NULL
        ORDER BY f_id
        FOR UPDATE
    </select>
</mapper>