| | |
| | | <result column="channelNumber" property="channelNumber"/> |
| | | <result column="pay" property="pay"/> |
| | | <result column="expireTime" property="expireTime"/> |
| | | <result column="heartbeat" property="heartbeat"/> |
| | | </resultMap> |
| | | |
| | | <resultMap id="treeNodeResultMap" type="org.springblade.core.tool.node.TreeNode"> |
| | |
| | | update sys_equipment SET deviceName=#{deviceName},deviceNumber=#{deviceNumber},deviceType=#{deviceType}, |
| | | ownership=#{ownership},ownerId=#{yname},devicestate=#{devicestate},stime=#{stime}, |
| | | coordinate=POINT(#{jd},#{wd}),parent_id=#{parentId},jd=#{jd},wd=#{wd},addvcd=#{addvnm},street=#{streeName},dtype=#{dtype} where id=#{id} |
| | | </update> |
| | | </update> |
| | | |
| | | <update id="updataType"> |
| | | update sys_equipment SET devicestate = 1 where id in (#{arr}) |
| | | </update> |
| | | |
| | | <update id="updataTypeC"> |
| | | update sys_equipment SET devicestate = 0 where id in (#{arr}) |
| | | </update> |
| | | |
| | | <update id="updateOnes" parameterType="org.springblade.modules.equipment.entity.Equipment"> |
| | | update sys_equipment SET deviceName=#{deviceName},deviceNumber=#{deviceNumber},deviceType=#{deviceType}, |
| | |
| | | LEFT JOIN sys_street s ON s.id = dept.street WHERE dept.deviceNumber=#{deviceNumber} |
| | | </select> |
| | | |
| | | <update id="updateChannel"> |
| | | update sys_equipment SET heartbeat=#{heartbeat} where deviceNumber=#{deviceNumber} |
| | | </update> |
| | | |
| | | </mapper> |