Showing
1 changed file
with
1 additions
and
1 deletions
@@ -39,7 +39,7 @@ | @@ -39,7 +39,7 @@ | ||
39 | #{sendTime,jdbcType=INTEGER}, #{sendUser,jdbcType=INTEGER}, #{sendUserName,jdbcType=VARCHAR}, #{updateTime,jdbcType=INTEGER} | 39 | #{sendTime,jdbcType=INTEGER}, #{sendUser,jdbcType=INTEGER}, #{sendUserName,jdbcType=VARCHAR}, #{updateTime,jdbcType=INTEGER} |
40 | ) | 40 | ) |
41 | </insert> | 41 | </insert> |
42 | - <insert id="insertSelective" parameterType="com.yoho.unions.dal.model.ChannelGroup" > | 42 | + <insert id="insertSelective" parameterType="com.yoho.unions.dal.model.ChannelGroup" keyProperty="id" useGeneratedKeys="true"> |
43 | insert into channel_group | 43 | insert into channel_group |
44 | <trim prefix="(" suffix=")" suffixOverrides="," > | 44 | <trim prefix="(" suffix=")" suffixOverrides="," > |
45 | <if test="id != null" > | 45 | <if test="id != null" > |
-
Please register or login to post a comment