and ${criterion.condition} and ${criterion.condition} #{criterion.value} and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} and ${criterion.condition} #{listItem} id , model_id, name, biz_name, description, status, sensitive_level, type, created_at, created_by, updated_at, updated_by, data_format_type, data_format, alias, classifications, define_type type_params insert into s2_metric (model_id, name, biz_name, description, type,status,sensitive_level, created_at, created_by, updated_at, updated_by, type_params, define_type,is_publish ) values ( #{metric.modelId,jdbcType=BIGINT}, #{metric.name,jdbcType=VARCHAR}, #{metric.bizName,jdbcType=VARCHAR}, #{metric.description,jdbcType=VARCHAR}, #{metric.type,jdbcType=VARCHAR}, #{metric.status,jdbcType=VARCHAR},#{metric.sensitiveLevel,jdbcType=VARCHAR}, #{metric.createdAt,jdbcType=TIMESTAMP}, #{metric.createdBy,jdbcType=VARCHAR}, #{metric.updatedAt,jdbcType=TIMESTAMP}, #{metric.updatedBy,jdbcType=VARCHAR}, #{metric.typeParams,jdbcType=LONGVARCHAR}, #{metric.defineType,jdbcType=VARCHAR},#{metric.isPublish,jdbcType=VARCHAR} ) update s2_metric set status = #{metric.status,jdbcType=INTEGER}, updated_at = #{metric.updatedAt,jdbcType=TIMESTAMP}, updated_by = #{metric.updatedBy,jdbcType=VARCHAR} where id = #{metric.id,jdbcType=BIGINT} update s2_metric set is_publish = 1, updated_at = #{metric.updatedAt,jdbcType=TIMESTAMP}, updated_by = #{metric.updatedBy,jdbcType=VARCHAR} where id = #{metric.id,jdbcType=BIGINT} update s2_metric set is_publish = 0, updated_at = #{metric.updatedAt,jdbcType=TIMESTAMP}, updated_by = #{metric.updatedBy,jdbcType=VARCHAR} where id = #{metric.id,jdbcType=BIGINT} update s2_metric set classifications = #{metric.classifications,jdbcType=VARCHAR}, updated_at = #{metric.updatedAt,jdbcType=TIMESTAMP}, updated_by = #{metric.updatedBy,jdbcType=VARCHAR} where id = #{metric.id,jdbcType=BIGINT}