| | |
| | | |
| | | <!--根据控制器编号获取流浪控制器信息--> |
| | | <select id="getTrampControllerInfo" resultMap="BaseResultMap"> |
| | | SELECT rtuAddr, protocol, findDt FROM pr_controller_tramp WHERE id = #{controllerId} |
| | | SELECT rtuAddr, protocol, findDt, orgTag FROM pr_controller_tramp WHERE id = #{controllerId} |
| | | </select> |
| | | |
| | | <!-- 根据条件获取流浪控制器信息--> |
| | |
| | | AND protocol = #{protocol,jdbcType=VARCHAR} |
| | | </if> |
| | | </where> |
| | | <trim prefix="limit " > |
| | | <if test="start != null and count != null"> |
| | | #{start,javaType=Integer,jdbcType=INTEGER}, #{count,javaType=Integer,jdbcType=INTEGER} |
| | | </if> |
| | | </trim> |
| | | order by rtuAddr desc |
| | | </select> |
| | | <!-- 根据条件获取流浪控制器数量--> |
| | | <select id="getTrampControllersCount" resultType="java.lang.Long"> |