select batch_head,batch_id, batch_name, germplasm_id, land_id, crop_area, start_time, remark, status, order_num, create_by, create_time, update_by, update_time, del_flag from agriculture_crop_batch
insert into agriculture_crop_batch
batch_name,
germplasm_id,
land_id,
crop_area,
start_time,
batch_head,
remark,
status,
order_num,
create_by,
create_time,
update_by,
update_time,
del_flag,
tenant_id,
base_id,
dept_id,
user_id,
#{batchName},
#{germplasmId},
#{landId},
#{cropArea},
#{startTime},
#{batchHead},
#{remark},
#{status},
#{orderNum},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
#{delFlag},
#{tenantId},
#{baseId},
#{deptId},
#{userId},
update agriculture_crop_batch
batch_name = #{batchName},
germplasm_id = #{germplasmId},
land_id = #{landId},
crop_area = #{cropArea},
start_time = #{startTime},
batch_head = #{batchHead},
remark = #{remark},
status = #{status},
order_num = #{orderNum},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
del_flag = #{delFlag},
where batch_id = #{batchId}
update agriculture_crop_batch set del_flag = 2 where batch_id = #{batchId}
update agriculture_crop_batch set del_flag = 2 where batch_id in
#{batchId}