art_cat_id,
art_cat_title,
art_cat_desc,
parent_id,
is_fixed,
root_id,
node_left,
node_right,
node_level,
is_leaf
INSERT INTO art_cat
oc_id,
art_cat_id,
art_cat_title,
art_cat_desc,
is_fixed,
parent_id,
root_id,
node_left,
node_right,
node_level,
is_leaf,
created_by,
created_at,
#{ocId ,jdbcType=BIGINT},
#{artCatId ,jdbcType=BIGINT},
#{artCatTitle ,jdbcType=VARCHAR},
#{artCatDesc ,jdbcType=VARCHAR},
#{isFixed ,jdbcType=BIGINT},
#{parentId ,jdbcType=BIGINT},
#{rootId ,jdbcType=BIGINT},
#{nodeLeft ,jdbcType=BIGINT},
#{nodeRight ,jdbcType=BIGINT},
#{nodeLevel ,jdbcType=BIGINT},
#{isLeaf ,jdbcType=BIGINT},
#{createdBy ,jdbcType=BIGINT},
#{createdAt ,jdbcType=TIMESTAMP},
UPDATE art_cat
art_cat_title = #{artCatTitle, jdbcType=VARCHAR},
art_cat_desc = #{artCatDesc, jdbcType=VARCHAR},
is_fixed = #{isFixed ,jdbcType=BIGINT},
parent_id = #{parentId ,jdbcType=BIGINT},
root_id = #{rootId ,jdbcType=BIGINT},
node_left = #{nodeLeft ,jdbcType=BIGINT},
node_right = #{nodeRight ,jdbcType=BIGINT},
node_level = #{nodeLevel ,jdbcType=BIGINT},
is_leaf = #{isLeaf ,jdbcType=BIGINT},
updated_by = #{updatedBy ,jdbcType=BIGINT},
updated_at = #{updatedAt ,jdbcType=TIMESTAMP},
WHERE 1 = 1
AND oc_id = #{ocId ,jdbcType=BIGINT}
AND art_cat_id = #{artCatId ,jdbcType=BIGINT}
UPDATE art_cat
deleted_flag = #{deletedFlag,jdbcType=BIGINT},
deleted_time = #{deletedTime,jdbcType=VARCHAR},
deleted_by = #{deletedBy,jdbcType=BIGINT},
WHERE 1 = 1
AND oc_id = #{ocId ,jdbcType=BIGINT}
AND art_cat_id = #{artCatId ,jdbcType=BIGINT}
= #{nodeLeft ,jdbcType=BIGINT}
AND node_right <= #{nodeRight ,jdbcType=BIGINT}
]]>