<?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="com.yeejoin.equipmanage.mapper.EquPropertyMapper">

	<select id="queryListByEquipDetailId" resultType="com.yeejoin.equipmanage.common.entity.EquProperty">
		SELECT
			si.id,
			sp.equipment_detail_id AS equipmentDetailId,
			si.value,
			wei.name AS perfQuotaName,
			wei.unit AS unitName,
			si.create_date AS createDate,
			si.equipment_index_id AS equipmentIndexId
		FROM
		wl_equipment_specific_index si
        LEFT JOIN wl_equipment_specific sp on si.equipment_specific_id = sp.id
		LEFT JOIN wl_equipment_index wei ON wei.id = si.equipment_index_id
       WHERE
       sp.equipment_detail_id = #{id}
	</select>
</mapper>
