select workstation_id, workstation_code, workstation_name, workstation_address, workshop_id, workshop_code, workshop_name, process_id, process_code, process_name,warehouse_id, warehouse_code, warehouse_name, location_id, location_code, location_name, area_id, area_code, area_name, enable_flag, remark, attr1, attr2, attr3, attr4, create_by, create_time, update_by, update_time from md_workstation
insert into md_workstation
workstation_code,
workstation_name,
workstation_address,
workshop_id,
workshop_code,
workshop_name,
process_id,
process_code,
process_name,
warehouse_id,
warehouse_code,
warehouse_name,
location_id,
location_code,
location_name,
area_id,
area_code,
area_name,
enable_flag,
remark,
attr1,
attr2,
attr3,
attr4,
create_by,
create_time,
update_by,
update_time,
#{workstationCode},
#{workstationName},
#{workstationAddress},
#{workshopId},
#{workshopCode},
#{workshopName},
#{processId},
#{processCode},
#{processName},
#{warehouseId},
#{warehouseCode},
#{warehouseName},
#{locationId},
#{locationCode},
#{locationName},
#{areaId},
#{areaCode},
#{areaName},
#{enableFlag},
#{remark},
#{attr1},
#{attr2},
#{attr3},
#{attr4},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
update md_workstation
workstation_code = #{workstationCode},
workstation_name = #{workstationName},
workstation_address = #{workstationAddress},
workshop_id = #{workshopId},
workshop_code = #{workshopCode},
workshop_name = #{workshopName},
process_id = #{processId},
process_code = #{processCode},
process_name = #{processName},
warehouse_id = #{warehouseId},
warehouse_code = #{warehouseCode},
warehouse_name = #{warehouseName},
location_id = #{locationId},
location_code = #{locationCode},
location_name = #{locationName},
area_id = #{areaId},
area_code = #{areaCode},
area_name = #{areaName},
enable_flag = #{enableFlag},
remark = #{remark},
attr1 = #{attr1},
attr2 = #{attr2},
attr3 = #{attr3},
attr4 = #{attr4},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
where workstation_id = #{workstationId}
delete from md_workstation where workstation_id = #{workstationId}
delete from md_workstation where workstation_id in
#{workstationId}