<insert id="insertSelective" parameterType="com.model.ContractPayInfo" >
<selectKey resultType="java.lang.Integer" order="BEFORE" keyProperty="pid">
select ID_SEQUENCE.Nextval as pid from DUAL
</selectKey>
insert into CONTRACTPAYINFO values(……)
</insert>
注:ID_SEQUENCE.Nextval 为主键生成策略,返回值pid为Integer类型