A.industry_id,
A.industry_code,
A.industry_name,
A.parent_id,
B.industry_name as parent_name,
A.root_id,
A.industry_logo,
A.industry_type_id,
A.industry_desc,
A.sort_no,
A.node_left,
A.node_right,
A.node_level,
A.is_leaf,
A.created_by,
A.updated_by,
A.created_at,
A.updated_at
INSERT INTO industry
industry_id,
parent_id,
root_id,
industry_code,
industry_name,
industry_logo,
industry_type_id,
industry_desc,
sort_no,
node_left,
node_right,
node_level,
is_leaf,
created_by,
created_at,
#{industryId ,jdbcType=BIGINT},
#{parentId ,jdbcType=BIGINT},
#{rootId ,jdbcType=BIGINT},
#{industryCode ,jdbcType=VARCHAR},
#{industryName ,jdbcType=VARCHAR},
#{industryLogo ,jdbcType=VARCHAR},
#{industryTypeId ,jdbcType=BIGINT},
#{industryDesc ,jdbcType=VARCHAR},
#{sortNo ,jdbcType=BIGINT},
#{nodeLeft ,jdbcType=BIGINT},
#{nodeRight ,jdbcType=BIGINT},
#{nodeLevel ,jdbcType=BIGINT},
#{isLeaf ,jdbcType=BIGINT},
#{createdBy ,jdbcType=BIGINT},
#{createdAt ,jdbcType=DATETIME},
UPDATE industry
parent_id = #{parentId,jdbcType=BIGINT},
root_id = #{rootId ,jdbcType=BIGINT},
industry_code = #{industryCode,jdbcType=VARCHAR},
industry_name = #{industryName,jdbcType=VARCHAR},
industry_logo = #{industryLogo,jdbcType=VARCHAR},
industry_type_id = #{industryTypeId,jdbcType=BIGINT},
industry_desc = #{industryDesc,jdbcType=VARCHAR},
sort_no = #{sortNo ,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=DATETIME},
WHERE industry_id = #{industryId ,jdbcType=BIGINT}
DELETE FROM industry
WHERE 1 = 1
AND industry_id = #{industryId,jdbcType=BIGINT}