润阳项目
新增相关字段和判断
This commit is contained in:
parent
225f5d2d81
commit
22709f5f8f
@ -26,7 +26,7 @@
|
||||
select si.id, se."name" as equipmentName,se.code as equipmentCode, simf.attribute_name as name,si.params,se.id as equipmentId,
|
||||
simf.attribute_code as code from sys_imptabmapping si
|
||||
left join sys_equipment se on si.equipment_id = se.id
|
||||
left join sys_iot_model_field simf on si.equipment_attribute = simf.attribute_code
|
||||
left join sys_iot_model_field simf on si.equipment_attribute = simf.attribute_code and se.iot_model_id = simf.iot_model_id
|
||||
where si.link_id = #{linkId} and simf.attribute_type = #{type}
|
||||
order by si.porder
|
||||
</select>
|
||||
@ -35,7 +35,7 @@
|
||||
select si.id, se."name" as equipmentName,se.code as equipmentCode, sims.service_name as name,si.params,se.id as equipmentId,
|
||||
sims.service_code as code from sys_imptabmapping si
|
||||
left join sys_equipment se on si.equipment_id = se.id
|
||||
left join sys_iot_model_service sims on si.equipment_service = sims.service_code
|
||||
left join sys_iot_model_service sims on si.equipment_service = sims.service_code and se.iot_model_id = sims.iot_model_id
|
||||
where si.link_id = #{linkId} and sims.service_type = #{type}
|
||||
order by si.porder
|
||||
</select>
|
||||
|
Loading…
Reference in New Issue
Block a user