同步日志&监听处理
This commit is contained in:
@ -13,12 +13,13 @@
|
||||
<result property="content" column="content" />
|
||||
<result property="status" column="status" />
|
||||
<result property="errorMsg" column="error_msg" />
|
||||
<result property="syncObject" column="sync_object" />
|
||||
<result property="target" column="target" />
|
||||
<result property="createTime" column="create_time" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectMqttSyncLogVo">
|
||||
select id, sync_id, topic, operate_type, table_name, content, status, error_msg, target, create_time from mqtt_sync_log
|
||||
select id, sync_id, topic, operate_type, table_name, content, status, error_msg, sync_object, target, create_time from mqtt_sync_log
|
||||
</sql>
|
||||
|
||||
<select id="selectMqttSyncLogList" parameterType="MqttSyncLog" resultMap="MqttSyncLogResult">
|
||||
@ -31,6 +32,7 @@
|
||||
<if test="content != null and content != ''"> and content = #{content}</if>
|
||||
<if test="status != null and status != ''"> and status = #{status}</if>
|
||||
<if test="errorMsg != null and errorMsg != ''"> and error_msg = #{errorMsg}</if>
|
||||
<if test="syncObject != null and syncObject != ''"> and sync_object = #{syncObject}</if>
|
||||
<if test="target != null and target != ''"> and target = #{target}</if>
|
||||
</where>
|
||||
</select>
|
||||
@ -50,6 +52,7 @@
|
||||
<if test="content != null">content,</if>
|
||||
<if test="status != null and status != ''">status,</if>
|
||||
<if test="errorMsg != null">error_msg,</if>
|
||||
<if test="syncObject != null">sync_object,</if>
|
||||
<if test="target != null">target,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
</trim>
|
||||
@ -61,6 +64,7 @@
|
||||
<if test="content != null">#{content},</if>
|
||||
<if test="status != null and status != ''">#{status},</if>
|
||||
<if test="errorMsg != null">#{errorMsg},</if>
|
||||
<if test="syncObject != null">#{syncObject},</if>
|
||||
<if test="target != null">#{target},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
</trim>
|
||||
@ -76,6 +80,7 @@
|
||||
<if test="content != null">content = #{content},</if>
|
||||
<if test="status != null and status != ''">status = #{status},</if>
|
||||
<if test="errorMsg != null">error_msg = #{errorMsg},</if>
|
||||
<if test="syncObject != null">sync_object = #{syncObject},</if>
|
||||
<if test="target != null">target = #{target},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
</trim>
|
||||
|
||||
Reference in New Issue
Block a user