A.oc_id,
A.dir_id,
A.dir_title,
A.dir_desc,
A.parent_id,
A.is_fixed,
A.node_left,
A.node_right,
A.node_level,
A.is_leaf
INSERT INTO doc_dir
oc_id,
dir_id,
dir_title,
dir_desc,
parent_id,
is_fixed,
node_left,
node_right,
node_level,
is_leaf,
created_by,
created_at,
#{ocId ,jdbcType=BIGINT},
#{dirId ,jdbcType=BIGINT},
#{dirTitle ,jdbcType=VARCHAR},
#{dirDesc ,jdbcType=VARCHAR},
#{parentId ,jdbcType=BIGINT},
#{isFixed ,jdbcType=BIGINT},
#{nodeLeft ,jdbcType=BIGINT},
#{nodeRight ,jdbcType=BIGINT},
#{nodeLevel ,jdbcType=BIGINT},
#{isLeaf ,jdbcType=BIGINT},
#{createdBy ,jdbcType=BIGINT},
#{createdAt ,jdbcType=TIMESTAMP},
UPDATE doc_dir
dir_title =#{dirTitle ,jdbcType=VARCHAR},
dir_desc = #{dirDesc ,jdbcType=VARCHAR},
parent_id = #{parentId ,jdbcType=BIGINT},
is_fixed = #{isFixed ,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 dir_id = #{dirId ,jdbcType=BIGINT}
AND oc_id = #{ocId ,jdbcType=BIGINT}
UPDATE doc_dir
dir_id = #{dirId ,jdbcType=BIGINT},
deleted_by = #{deletedBy ,jdbcType=BIGINT},
deleted_at = #{deletedAt ,jdbcType=DATE},
deleted_flag = #{deletedFlag ,jdbcType=BIGINT},
WHERE 1 = 1 AND deleted_flag = 0
AND oc_id = #{ocId,jdbcType=BIGINT}
AND dir_id = #{dirId ,jdbcType=BIGINT}