A.oc_id,
A.org_name,
A.org_code,
A.org_cat_id,
A.org_lxr,
A.org_lxdh,
A.org_dzyx,
D.org_cat_title,
A.org_area_code,
A.org_area_name,
A.org_address,
A.org_wzjd,
A.org_wzwd,
A.org_desc,
B.parent_id,
B.root_id,
B.admin_id,
C.account_name AS admin_name,
B.group_id,
B.node_left,
B.node_right,
B.node_level,
B.is_leaf,
B.status
INSERT INTO org
oc_id,
org_name,
org_code,
org_cat_id,
org_lxr,
orgLxdh,
org_dzyx,
org_area_code,
org_area_name,
org_address,
org_wzjd,
org_wzwd,
org_desc,
created_by,
created_at,
#{ocId, jdbcType=BIGINT},
#{orgName,jdbcType=VARCHAR},
#{orgCode,jdbcType=VARCHAR},
#{orgCatId,jdbcType=BIGINT},
#{orgLxr , jdbcType=VARCHAR},
#{orgLxdh , jdbcType=VARCHAR},
#{orgDzyx , jdbcType=VARCHAR},
#{orgAreaCode , jdbcType=VARCHAR},
#{orgAreaName , jdbcType=VARCHAR},
#{orgAddress , jdbcType=VARCHAR},
#{orgWzjd, jdbcType=DECIMAL},
#{orgWzwd, jdbcType=DECIMAL},
#{orgDesc , jdbcType=VARCHAR},
#{createdBy , jdbcType=BIGINT},
#{createdAt, jdbcType=TIMESTAMP},
UPDATE org
org_name = #{orgName,jdbcType=VARCHAR},
org_code = #{orgCode,jdbcType=VARCHAR},
org_cat_id = #{orgCatId,jdbcType=BIGINT},
org_lxr = #{orgLxr,jdbcType=VARCHAR},
org_lxdh = #{orgLxdh,jdbcType=VARCHAR},
org_dzyx = #{orgDzyx , jdbcType=VARCHAR},
org_area_code = #{orgAreaCode , jdbcType=VARCHAR},
org_area_name = #{orgAreaName , jdbcType=VARCHAR},
org_address = #{orgAddress , jdbcType=VARCHAR},
org_wzjd = #{orgWzjd, jdbcType=DECIMAL},
org_wzwd = #{orgWzwd, jdbcType=DECIMAL},
org_desc = #{orgDesc , jdbcType=VARCHAR},
updated_by = #{updatedBy,jdbcType=BIGINT},
updated_at = #{updatedAt,jdbcType=TIMESTAMP},
WHERE oc_id = #{ocId, jdbcType=BIGINT}
UPDATE org
deleted_flag = #{deletedFlag,jdbcType=BIGINT},
deleted_at = #{deletedAt ,jdbcType=DATE},
deleted_by = #{deletedBy,jdbcType=BIGINT},
WHERE oc_id = #{ocId ,jdbcType = BIGINT}