t.id, t.piecewise, v.dept_id, v.dept_name, v.line_id, v.line_name, t.xingbie, v.station_id, v.station_name, t.pillar_code, t.marker, t.risk_source, t.measures, t.remark, t.del_flag, t.create_by, t.create_time, t.update_by, t.update_time select replace(uuid(), '-', '') from dual INSERT INTO base_prevent_foreign piecewise, dept_id, dept_name, line_id, line_name, xingbie, station_id, station_name, pillar_code, marker, risk_source, measures, remark, del_flag, create_by, create_time, update_by, update_time #{piecewise}, #{deptId}, #{deptName}, #{lineId}, #{lineName}, #{xingbie}, #{stationId}, #{stationName}, #{pillarCode}, #{marker}, #{riskSource}, #{measures}, #{remark}, #{delFlag}, #{createBy}, #{createTime}, #{updateBy}, #{updateTime} UPDATE base_prevent_foreign set del_flag='1' WHERE id = #{id} UPDATE base_prevent_foreign piecewise = #{piecewise}, dept_id = #{deptId}, dept_name = #{deptName}, line_id = #{lineId}, line_name = #{lineName}, xingbie = #{xingbie}, station_id = #{stationId}, station_name = #{stationName}, pillar_code = #{pillarCode}, marker = #{marker}, risk_source = #{riskSource}, measures = #{measures}, remark = #{remark}, del_flag = #{delFlag}, create_by = #{createBy}, create_time = #{createTime}, update_by = #{updateBy}, update_time = #{updateTime} WHERE id = #{id}