INSERT INTO sc_add_sheep (ear_number, sheepfold, father, mother, born_weight, birthday, gender, parity, variety_id, type_id, join_date, comment, technician, create_by, create_time) VALUES (#{earNumber}, #{sheepfold}, #{father}, #{mother}, #{bornWeight}, #{birthday}, #{gender}, #{parity}, #{varietyId}, #{typeId}, #{joinDate}, #{comment}, #{technician}, #{createBy}, #{createTime}) UPDATE sc_add_sheep ear_number = #{earNumber}, sheepfold = #{sheepfold}, father = #{father}, mother = #{mother}, born_weight = #{bornWeight}, birthday = #{birthday}, gender = #{gender}, parity = #{parity}, variety_id = #{varietyId}, type_id = #{typeId}, join_date = #{joinDate}, comment = #{comment}, technician = #{technician}, update_by = #{updateBy}, update_time = NOW() WHERE id = #{id} DELETE FROM sc_add_sheep WHERE id IN #{id}