FRPC运行状态在服务器离线时改为未运行
时序数据库入库测试 网卡名称同步修改
This commit is contained in:
@@ -104,7 +104,6 @@
|
||||
<update id="updateRmFrpcConfigManage" parameterType="RmFrpcConfigManage">
|
||||
update rm_frpc_config_manage
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="clientId != null">client_id = #{clientId},</if>
|
||||
<if test="frpcServerAddr != null">frpc_server_addr = #{frpcServerAddr},</if>
|
||||
<if test="frpcServerPort != null">frpc_server_port = #{frpcServerPort},</if>
|
||||
<if test="frpcRemotePort != null">frpc_remote_port = #{frpcRemotePort},</if>
|
||||
@@ -120,7 +119,19 @@
|
||||
<if test="frpcStatus != null">frpc_status = #{frpcStatus},</if>
|
||||
<if test="frpcType != null">frpc_type = #{frpcType},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
<where>
|
||||
<choose>
|
||||
<when test="id != null">
|
||||
and id = #{id}
|
||||
</when>
|
||||
<when test="clientId != null">
|
||||
and client_id = #{clientId}
|
||||
</when>
|
||||
<otherwise>
|
||||
and 1=0
|
||||
</otherwise>
|
||||
</choose>
|
||||
</where>
|
||||
</update>
|
||||
|
||||
<delete id="deleteRmFrpcConfigManageById" parameterType="Long">
|
||||
|
||||
@@ -176,4 +176,25 @@
|
||||
update_time = #{updateTime}
|
||||
where mac_address = #{macAddress} and client_id = #{clientId}
|
||||
</update>
|
||||
<insert id="addTrafficPortChangeRecord" parameterType="EpsMethodChangeRecordVo">
|
||||
insert into eps_method_change_record
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="changeContent != null">change_content,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="creatBy != null">creat_by,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
<if test="updateBy != null">update_by,</if>
|
||||
<if test="trafficPort != null">traffic_port,</if>
|
||||
<if test="clientId != null">client_id,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="changeContent != null">#{changeContent},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="creatBy != null">#{creatBy},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="trafficPort != null">#{trafficPort},</if>
|
||||
<if test="clientId != null">#{clientId},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user