select id, manage_tags, ranch_id, sheepfold_id, electronic_tags, variety_id, family, type_id, gender, birthday, birth_weight, parity, status_id, weaning_date, weaning_weight, breed_status_id, father_id, mother_id, receptor_id, mating_date, mating_type_id, preg_date, lambing_date, lambing_day, expected_date, controlled, mating_counts, mating_total, miscarriage_counts, body, breast, source, source_date, source_ranch_id, comment, update_by, update_time, create_by, create_time, is_delete from bas_sheep
insert into bas_sheep
manage_tags,
ranch_id,
sheepfold_id,
electronic_tags,
variety_id,
family,
type_id,
gender,
birthday,
birth_weight,
parity,
status_id,
weaning_date,
weaning_weight,
breed_status_id,
father_id,
mother_id,
receptor_id,
mating_date,
mating_type_id,
preg_date,
lambing_date,
lambing_day,
expected_date,
controlled,
mating_counts,
mating_total,
miscarriage_counts,
body,
breast,
source,
source_date,
source_ranch_id,
comment,
update_by,
update_time,
create_by,
create_time,
is_delete,
#{manageTags},
#{ranchId},
#{sheepfoldId},
#{electronicTags},
#{varietyId},
#{family},
#{typeId},
#{gender},
#{birthday},
#{birthWeight},
#{parity},
#{statusId},
#{weaningDate},
#{weaningWeight},
#{breedStatusId},
#{fatherId},
#{motherId},
#{receptorId},
#{matingDate},
#{matingTypeId},
#{pregDate},
#{lambingDate},
#{lambingDay},
#{expectedDate},
#{controlled},
#{matingCounts},
#{matingTotal},
#{miscarriageCounts},
#{body},
#{breast},
#{source},
#{sourceDate},
#{sourceRanchId},
#{comment},
#{updateBy},
#{updateTime},
#{createBy},
#{createTime},
#{isDelete},
update bas_sheep
manage_tags = #{manageTags},
ranch_id = #{ranchId},
sheepfold_id = #{sheepfoldId},
electronic_tags = #{electronicTags},
variety_id = #{varietyId},
family = #{family},
type_id = #{typeId},
gender = #{gender},
birthday = #{birthday},
birth_weight = #{birthWeight},
parity = #{parity},
status_id = #{statusId},
weaning_date = #{weaningDate},
weaning_weight = #{weaningWeight},
breed_status_id = #{breedStatusId},
father_id = #{fatherId},
mother_id = #{motherId},
receptor_id = #{receptorId},
mating_date = #{matingDate},
mating_type_id = #{matingTypeId},
preg_date = #{pregDate},
lambing_date = #{lambingDate},
lambing_day = #{lambingDay},
expected_date = #{expectedDate},
controlled = #{controlled},
mating_counts = #{matingCounts},
mating_total = #{matingTotal},
miscarriage_counts = #{miscarriageCounts},
body = #{body},
breast = #{breast},
source = #{source},
source_date = #{sourceDate},
source_ranch_id = #{sourceRanchId},
comment = #{comment},
update_by = #{updateBy},
update_time = #{updateTime},
create_by = #{createBy},
create_time = #{createTime},
is_delete = #{isDelete},
where id = #{id}
delete from bas_sheep where id = #{id}
delete from bas_sheep where id in
#{id}