ID,GROUP_ID,COMPILE_ID,IS_VALID,OP_TIME,LAST_UPDATE,PROC_SEQ
insert into CONFIG_GROUP
(ID,GROUP_ID, COMPILE_ID, IS_VALID,
OP_TIME,LAST_UPDATE
)
select
#{item.id,jdbcType=BIGINT},
#{item.groupId,jdbcType=BIGINT},
#{item.compileId,jdbcType=BIGINT},
#{item.isValid,jdbcType=BIGINT},
#{item.opTime,jdbcType=TIMESTAMP},
sysdate
from dual
insert into CONFIG_GROUP
(ID,GROUP_ID, COMPILE_ID, IS_VALID,
LAST_UPDATE,
OP_TIME )
values
(
seq_config_group.nextval,
#{groupId,jdbcType=BIGINT},
#{compileId,jdbcType=BIGINT},
#{isValid,jdbcType=BIGINT},
sysdate,
#{opTime,jdbcType=TIMESTAMP}
)
UPDATE
CONFIG_GROUP
IS_VALID=#{isValid , jdbcType=BIGINT},
OP_TIME=#{opTime , jdbcType=TIMESTAMP},
LAST_UPDATE=#{lastUpdate , jdbcType=TIMESTAMP},
where GROUP_ID=#{groupId}