a.id AS "id", a.dog_id AS "dogId", a.state AS "state", a.pedigree_certified AS "pedigreeCertified", a.dog_breed AS "dogBreed", a.member_code AS "memberCode", a.price AS "price", a.door_to_door_flag AS "doorToDoorFlag", a.label AS "label", a.other_label AS "otherLabel", a.recommend_info AS "recommendInfo", a.cover_img_id AS "coverImgId", a.other_img_id AS "otherImgId", a.city AS "city", a.age AS "age", a.dog_pedigree_certified_change_id AS "dogPedigreeCertifiedChangeId", a.dog_newborn_count AS "dogNewbornCount", a.add_time AS "addTime", a.view_count AS "viewCount", a.create_by AS "createBy.id", a.create_date AS "createDate", a.update_by AS "updateBy.id", a.update_date AS "updateDate", a.remarks AS "remarks", a.del_flag AS "delFlag" INSERT INTO breeder_stud_dog( id, dog_id, state, pedigree_certified, dog_breed, member_code, price, door_to_door_flag, label, other_label, recommend_info, cover_img_id, other_img_id, city, age, dog_pedigree_certified_change_id, dog_newborn_count, add_time, create_by, create_date, update_by, update_date, remarks, del_flag ) VALUES ( #{id}, #{dogId}, #{state}, #{pedigreeCertified}, #{dogBreed}, #{memberCode}, #{price}, #{doorToDoorFlag}, #{label}, #{otherLabel}, #{recommendInfo}, #{coverImgId}, #{otherImgId}, #{city}, #{age}, #{dogPedigreeCertifiedChangeId}, #{dogNewbornCount}, #{addTime}, #{createBy.id}, #{createDate}, #{updateBy.id}, #{updateDate}, #{remarks}, #{delFlag} ) UPDATE breeder_stud_dog SET state = #{state}, price = #{price}, door_to_door_flag = #{doorToDoorFlag}, label = #{label}, other_label = #{otherLabel}, recommend_info = #{recommendInfo}, cover_img_id = #{coverImgId}, other_img_id = #{otherImgId}, city = #{city}, age = #{age}, dog_pedigree_certified_change_id = #{dogPedigreeCertifiedChangeId}, dog_newborn_count = #{dogNewbornCount}, add_time = #{addTime}, view_count = view_count+1, update_by = #{updateBy.id}, update_date = #{updateDate}, remarks = #{remarks} WHERE id = #{id} UPDATE breeder_stud_dog SET del_flag = #{DEL_FLAG_DELETE} WHERE id = #{id} id, dog_id, pedigree_certified, dog_breed, member_code, price, door_to_door_flag, label, other_label, recommend_info, cover_img_id, other_img_id, city, age, view_count INSERT INTO breeder_stud_dog_search_parameter( dog_breed, city, price_min, price_max, create_date ) VALUES ( #{dogBreed}, #{city}, #{priceMin}, #{priceMax}, now() )