|
@@ -48,9 +48,12 @@ a.update_date,a. update_by,a. rule_desc, a.value1,a. value2,a. measuring_data_ty
|
|
|
<!--通过实体作为筛选条件查询-->
|
|
|
<select id="selectList" resultType="com.zcxk.rmcp.api.dto.alarm.AlarmRuleDto">
|
|
|
select
|
|
|
- <include refid="Base_Column_List"/>,b.product_name,c.name categoryName
|
|
|
+ <include refid="Base_Column_List"/>,CONCAT_ws("/",e.name,b.product_model,b.product_name) product_name,c.name categoryName,d.measuring_name measuringName
|
|
|
from rmcp_device_alarm_rule a join rmcp_product b on a.device_type=b.id
|
|
|
+ join rmcp_manufacturer e on b.manufacturer_id=e.id
|
|
|
join rmcp_product_category c on a.product_categroy_id=c.id
|
|
|
+ join rmcp_product_measuring_point d on (a.measuring_code=d.measuring_code
|
|
|
+ and b.id=d.product_id)
|
|
|
<where>
|
|
|
a.status=1
|
|
|
|
|
@@ -202,7 +205,7 @@ a.update_date,a. update_by,a. rule_desc, a.value1,a. value2,a. measuring_data_ty
|
|
|
<if test="id != null"> and id != #{id} </if>
|
|
|
</select>
|
|
|
<select id="findById" resultType="com.zcxk.rmcp.core.entity.DeviceAlarmRule">
|
|
|
- select <include refid="Base_Column_List"/> from rmcp_device_alarm_rule where status = 1 and id = #{id}
|
|
|
+ select <include refid="Base_Column_List"/> from rmcp_device_alarm_rule a where status = 1 and id = #{id}
|
|
|
|
|
|
</select>
|
|
|
<select id="findTplMeasuringDataDef" resultType="com.zcxk.rmcp.core.entity.TplMeasuringDataDef">
|