<?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>
|