id,
parent_id,
name,
type,
address,
status,
create_date,
create_by,
update_date,
update_by,
site_id,
collections
org.id,
org.parent_id,
org.name,
org.type,
org.address,
org.status,
org.create_date,
org.create_by,
org.update_date,
org.update_by,
org.site_id,
org.collections
INSERT INTO sc_organization (
id,
parent_id,
name,
type,
address,
status,
create_date,
create_by,
update_date,
update_by,
site_id,
collections,
customer_id
) VALUES (
#{organization.id,jdbcType=INTEGER},
#{organization.parentId,jdbcType=INTEGER},
#{organization.name,jdbcType=VARCHAR},
#{organization.type,jdbcType=INTEGER},
#{organization.address,jdbcType=VARCHAR},
#{organization.status,jdbcType=INTEGER},
#{organization.createDate,jdbcType=TIMESTAMP},
#{organization.createBy,jdbcType=VARCHAR},
#{organization.updateDate,jdbcType=TIMESTAMP},
#{organization.updateBy,jdbcType=VARCHAR},
#{organization.siteId,jdbcType=INTEGER},
#{organization.collections,jdbcType=VARCHAR},
#{organization.customerId,jdbcType=BIGINT}
)
INSERT INTO sc_organization
id,
parent_id,
name,
type,
address,
status,
create_date,
create_by,
update_date,
update_by,
site_id,
collections
VALUES
#{organization.id,jdbcType=INTEGER},
#{organization.parentId,jdbcType=INTEGER},
#{organization.name,jdbcType=VARCHAR},
#{organization.type,jdbcType=INTEGER},
#{organization.address,jdbcType=VARCHAR},
#{organization.status,jdbcType=INTEGER},
#{organization.createDate,jdbcType=TIMESTAMP},
#{organization.createBy,jdbcType=VARCHAR},
#{organization.updateDate,jdbcType=TIMESTAMP},
#{organization.updateBy,jdbcType=VARCHAR},
#{organization.siteId,jdbcType=INTEGER},
#{organization.collections,jdbcType=VARCHAR}
INSERT INTO sc_organization(
id,
parent_id,
name,
type,
address,
status,
create_date,
create_by,
update_date,
update_by,
site_id,
collections
)VALUES
(
#{organization.id,jdbcType=INTEGER},
#{organization.parentId,jdbcType=INTEGER},
#{organization.name,jdbcType=VARCHAR},
#{organization.type,jdbcType=INTEGER},
#{organization.address,jdbcType=VARCHAR},
#{organization.status,jdbcType=INTEGER},
#{organization.createDate,jdbcType=TIMESTAMP},
#{organization.createBy,jdbcType=VARCHAR},
#{organization.updateDate,jdbcType=TIMESTAMP},
#{organization.updateBy,jdbcType=VARCHAR},
#{organization.siteId,jdbcType=INTEGER},
#{organization.collections,jdbcType=VARCHAR}
)
UPDATE sc_organization
id = #{organization.id,jdbcType=INTEGER},
parent_id = #{organization.parentId,jdbcType=INTEGER},
name = #{organization.name,jdbcType=VARCHAR},
type = #{organization.type,jdbcType=INTEGER},
address = #{organization.address,jdbcType=VARCHAR},
status = #{organization.status,jdbcType=INTEGER},
create_date = #{organization.createDate,jdbcType=TIMESTAMP},
create_by = #{organization.createBy,jdbcType=VARCHAR},
update_date = #{organization.updateDate,jdbcType=TIMESTAMP},
update_by = #{organization.updateBy,jdbcType=VARCHAR},
site_id = #{organization.siteId,jdbcType=INTEGER},
collections = #{organization.collections,jdbcType=VARCHAR}
WHERE id = #{organization.id,jdbcType=INTEGER}