select id, proj_no, hole_no, sample_no, sample_start_depth, sample_end_depth, soil_sample_state, quality_level, sampling_tool, sampling_time, sampling_proportion, lithological_name, test_type, filler_percent, core_shape, length_range_small, length_range_big, longitude, latitude, location_time, create_time, update_time, remarks, descriptor, driller, sample_img, sample_video, del_flag, lithologicalType, isHistory, record_no, record_type from js_sample_info
insert into js_sample_info
id,
proj_no,
hole_no,
sample_no,
sample_start_depth,
sample_end_depth,
soil_sample_state,
quality_level,
sampling_tool,
sampling_time,
sampling_proportion,
lithological_name,
test_type,
filler_percent,
core_shape,
length_range_small,
length_range_big,
longitude,
latitude,
location_time,
create_time,
update_time,
remarks,
descriptor,
driller,
sample_img,
sample_video,
del_flag,
lithologicalType,
isHistory,
record_no,
record_type,
#{id},
#{projNo},
#{holeNo},
#{sampleNo},
#{sampleStartDepth},
#{sampleEndDepth},
#{soilSampleState},
#{qualityLevel},
#{samplingTool},
#{samplingTime},
#{samplingProportion},
#{lithologicalName},
#{testType},
#{fillerPercent},
#{coreShape},
#{lengthRangeSmall},
#{lengthRangeBig},
#{longitude},
#{latitude},
#{locationTime},
#{createTime},
#{updateTime},
#{remarks},
#{descriptor},
#{driller},
#{sampleImg},
#{sampleVideo},
#{delFlag},
#{lithologicaltype},
#{ishistory},
#{recordNo},
#{recordType},
update js_sample_info
proj_no = #{projNo},
hole_no = #{holeNo},
sample_no = #{sampleNo},
sample_start_depth = #{sampleStartDepth},
sample_end_depth = #{sampleEndDepth},
soil_sample_state = #{soilSampleState},
quality_level = #{qualityLevel},
sampling_tool = #{samplingTool},
sampling_time = #{samplingTime},
sampling_proportion = #{samplingProportion},
lithological_name = #{lithologicalName},
test_type = #{testType},
filler_percent = #{fillerPercent},
core_shape = #{coreShape},
length_range_small = #{lengthRangeSmall},
length_range_big = #{lengthRangeBig},
longitude = #{longitude},
latitude = #{latitude},
location_time = #{locationTime},
create_time = #{createTime},
update_time = #{updateTime},
remarks = #{remarks},
descriptor = #{descriptor},
driller = #{driller},
sample_img = #{sampleImg},
sample_video = #{sampleVideo},
del_flag = #{delFlag},
lithologicalType = #{lithologicaltype},
isHistory = #{ishistory},
record_no = #{recordNo},
record_type = #{recordType},
where id = #{id}
delete from js_sample_info where id = #{id}
delete from js_sample_info where id in
#{id}