qushaowei
2024-01-12 286375a43369462cd75147271949cf819916912f
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
<?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="org.jeecg.modules.eam.mapper.TechnologyStatusMapper">
 
    <select id="getTechnologyStatusList"  parameterType="Map" resultType="Map">
        SELECT
            t1.id AS id,
            t1.order_id AS orderId,
            t1.technology_status AS technologyStatus,
            t1.appraiser,
            t1.leadership,
            ISNULL( t1.result_1, 0 ) AS result_1,
            ISNULL( t1.result_2, 0 ) AS result_2,
            ISNULL( t1.result_3, 0 ) AS result_3,
            ISNULL( t1.result_4, 0 ) AS result_4,
            ISNULL( t1.result_5, 0 ) AS result_5,
            ISNULL( t1.result_6, 0 ) AS result_6,
            ISNULL( t1.result_7, 0 ) AS result_7,
            ISNULL( t1.result_8, 0 ) AS result_8,
            ISNULL( t1.result_9, 0 ) AS result_9,
            ISNULL( t1.result_10, 0 ) AS result_10,
            ISNULL( t1.result_11, 0 ) AS result_11,
            ISNULL( t1.result_12, 0 ) AS result_12,
            ISNULL( t1.result_13, 0 ) AS result_13,
            ISNULL( t1.result_14, 0 ) AS result_14,
            t1.receipts,
            t2.num AS receiptsNum,
            t3.item_text AS receiptsName,
            t1.update_time AS updateTime
        FROM
            mom_eam_technology_status t1
        LEFT JOIN sys_file_name t2 ON t1.receipts = t2.id
        LEFT JOIN ( SELECT * FROM v_sys_dict WHERE dict_code = 'sys_file_name' ) t3 ON t3.item_value = t2.name
        where t1.del_flag = '0' and t1.order_id = #{orderId}
    </select>
</mapper>