springmvc+spring+mybatis+sqlserver----插入一条新数据
<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>
以上主键不自增的情况