change - 传感器汇总优化

main
wenjy 3 years ago
parent d5d108a6dc
commit 2318e8e2be

@ -51,7 +51,7 @@ const sensorInfoList = function (sensorTypeId) {
if (property != "id" && property != "edgeId" && property != "sensorId" && property != 'sensorLocation' && property != 'datatype') {
columnsArray.push({
field: property,
title: sensorTypeArray.find(array => array.paramTitle === property).paramText,
title: sensorTypeArray.length == 0 ? property : sensorTypeArray.find(array => array.paramTitle === property).paramText,
width: property === "imgstr" ? 500 : 160,
align: "center",
});

@ -32,10 +32,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectSysParamConfigByObjId" parameterType="Long" resultMap="SysParamConfigResult">
<include refid="selectSysParamConfigVo"/>
where ObjId = #{ObjId}
where ObjId = #{objId}
</select>
<insert id="insertSysParamConfig" parameterType="SysParamConfig" useGeneratedKeys="true" keyProperty="ObjId">
<insert id="insertSysParamConfig" parameterType="SysParamConfig" useGeneratedKeys="true" keyProperty="objId">
insert into sys_param_config
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="paramType != null">Param_Type,</if>
@ -79,9 +79,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</delete>
<delete id="deleteSysParamConfigByObjIds" parameterType="String">
delete from sys_param_config where ObjId in
<foreach item="ObjId" collection="array" open="(" separator="," close=")">
#{ObjId}
delete from sys_param_config where ObjId in
<foreach item="objId" collection="array" open="(" separator="," close=")">
#{objId}
</foreach>
</delete>

Loading…
Cancel
Save