<insert id="addOneMsg" parameterType="java.util.Map"> INSERT INTO PDA_JWL_INTERFACE_H ([DjLsh],[DjState],[WPH],[WPMC],[DW]) VALUES (#{DjLsh},#{DjState},#{WPH},#{WPMC},#{DW}) <selectKey keyProperty="DjLsh" resultType="int" order="AFTER"> select @@identity </selectKey> </insert>
以上主键不自增的情况