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') { if (property != "id" && property != "edgeId" && property != "sensorId" && property != 'sensorLocation' && property != 'datatype') {
columnsArray.push({ columnsArray.push({
field: property, 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, width: property === "imgstr" ? 500 : 160,
align: "center", align: "center",
}); });

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

Loading…
Cancel
Save