<insert id="insert" parameterClass="ToDoBar" >
<selectKey resultClass="java.lang.Long" keyProperty="id" type="pre" >
SELECT SEQ_TO_DO_BAR.NEXTVAL AS ID FROM DUAL
</selectKey>
insert into TO_DO_BAR (<include refid="baseColumns" />)
values (#id:DECIMAL#, #todoType:VARCHAR#, #todoReceiver:VARCHAR#, #todoStatus:VARCHAR#, #todoUrl:VARCHAR#, #subSystem:VARCHAR#,
sysdate, sysdate, #relatedId:DECIMAL#, #isRemind:VARCHAR#)
</insert>
使用sysdate就可以了,是不是很方便
时间: 2024-12-01 19:54:42