tenant_id_ = #{tenantId}
and (start_date_ <= #{startDate} and end_date_ >= #{startDate})
and del_flag_ = #{delFlag}
and suitable_user_ = #{suitableUser, typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}
INSERT INTO tenant_entry_activities
(id_,name_,cover_img_,detail_,suitable_user_,tag_,total_price_,discount_price_,purchase_minutes_,give_minutes_,start_date_,end_date_,condition_,del_flag_,create_time_,update_time_,tenant_id_)
VALUES(#{id},#{name},#{coverImg},#{detail},#{suitableUser, typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},#{tag},#{totalPrice},#{discountPrice},#{purchaseMinutes},#{giveMinutes},#{startDate},#{endDate},#{condition},#{delFlag},#{createTime},#{updateTime},#{tenantId})
UPDATE tenant_entry_activities
condition_ = #{condition},
del_flag_ = #{delFlag},
start_date_ = #{startDate},
cover_img_ = #{coverImg},
id_ = #{id},
suitable_user_ = #{suitableUser, typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
tag_ = #{tag},
purchase_minutes_ = #{purchaseMinutes},
give_minutes_ = #{giveMinutes},
name_ = #{name},
create_time_ = #{createTime},
total_price_ = #{totalPrice},
detail_ = #{detail},
end_date_ = #{endDate},
update_time_ = #{updateTime},
discount_price_ = #{discountPrice},
WHERE id_ = #{id} and tenant_id_ = #{tenantId}
DELETE FROM tenant_entry_activities WHERE id_ = #{id}