t.pipe_check_id as pipeCheckId,
t.check_reason as checkReason,
t.check_result as checkResult,
t.check_time as checkTime,
t.check_user as checkUser,
t.pipe_id as pipeId,
t.remark as remark
t.check_reason = #{checkReason} AND
t.check_result = #{checkResult} AND
t.check_time = #{checkTime} AND
t.check_user = #{checkUser} AND
t.pipe_id = #{pipeId} AND
t.remark = #{remark} AND
insert into t_pipe_check_record
check_reason,
check_result,
check_time,
check_user,
pipe_check_id,
pipe_id,
remark,
exist_problem,
exe_pro_result,
#{checkReason},
#{checkResult},
#{checkTime},
#{checkUser},
#{pipeCheckId},
#{pipeId},
#{remark},
#{existProblem},
#{exeProResult},
insert into t_pipe_check_record
id,
pipe_check_id,
check_file,
#{id},
#{pipeCheckId},
#{checkFile},
update t_pipe_check_record
check_reason=#{checkReason},
check_result=#{checkResult},
check_time=#{checkTime},
check_user=#{checkUser},
pipe_id=#{pipeId},
remark=#{remark},
where pipe_check_id=#{pipeCheckId}
update t_pipe_check_record
SET is_use = 0
where pipe_check_id=#{pipeCheckId}
delete from t_pipe_check_record
where pipe_check_id=#{pipeCheckId}