|  | @@ -33,11 +33,6 @@
 | 
											
												
													
														|  |      <!-- 向数据库增加一条记录 -->
 |  |      <!-- 向数据库增加一条记录 -->
 | 
											
												
													
														|  |      <insert id="insert" parameterType="com.ym.mec.biz.dal.entity.MusicGroupPurchaseList" useGeneratedKeys="true"
 |  |      <insert id="insert" parameterType="com.ym.mec.biz.dal.entity.MusicGroupPurchaseList" useGeneratedKeys="true"
 | 
											
												
													
														|  |              keyColumn="id" keyProperty="id">
 |  |              keyColumn="id" keyProperty="id">
 | 
											
												
													
														|  | -        <!--
 |  | 
 | 
											
												
													
														|  | -        <selectKey resultClass="int" keyProperty="id" >
 |  | 
 | 
											
												
													
														|  | -        SELECT SEQ_WSDEFINITION_ID.nextval AS ID FROM DUAL
 |  | 
 | 
											
												
													
														|  | -        </selectKey>
 |  | 
 | 
											
												
													
														|  | -        -->
 |  | 
 | 
											
												
													
														|  |          INSERT INTO music_group_purchase_list (id_,music_group_id_,goods_id_,purchase_num_,create_time_,update_time_,tenant_id_)
 |  |          INSERT INTO music_group_purchase_list (id_,music_group_id_,goods_id_,purchase_num_,create_time_,update_time_,tenant_id_)
 | 
											
												
													
														|  |          VALUES(#{id},#{musicGroupId},#{goodsId},#{purchaseNum},now(),now(),#{tenantId})
 |  |          VALUES(#{id},#{musicGroupId},#{goodsId},#{purchaseNum},now(),now(),#{tenantId})
 | 
											
												
													
														|  |      </insert>
 |  |      </insert>
 | 
											
										
											
												
													
														|  | @@ -49,15 +44,13 @@
 | 
											
												
													
														|  |              <if test="purchaseNum != null">
 |  |              <if test="purchaseNum != null">
 | 
											
												
													
														|  |                  purchase_num_ = #{purchaseNum},
 |  |                  purchase_num_ = #{purchaseNum},
 | 
											
												
													
														|  |              </if>
 |  |              </if>
 | 
											
												
													
														|  | -            <if test="updateTime != null">
 |  | 
 | 
											
												
													
														|  | -                update_time_ = NOW(),
 |  | 
 | 
											
												
													
														|  | -            </if>
 |  | 
 | 
											
												
													
														|  |              <if test="musicGroupId != null">
 |  |              <if test="musicGroupId != null">
 | 
											
												
													
														|  |                  music_group_id_ = #{musicGroupId},
 |  |                  music_group_id_ = #{musicGroupId},
 | 
											
												
													
														|  |              </if>
 |  |              </if>
 | 
											
												
													
														|  |              <if test="goodsId != null">
 |  |              <if test="goodsId != null">
 | 
											
												
													
														|  |                  goods_id_ = #{goodsId},
 |  |                  goods_id_ = #{goodsId},
 | 
											
												
													
														|  |              </if>
 |  |              </if>
 | 
											
												
													
														|  | 
 |  | +            update_time_ = NOW()
 | 
											
												
													
														|  |          </set>
 |  |          </set>
 | 
											
												
													
														|  |          WHERE id_ = #{id} and tenant_id_ = #{tenantId}
 |  |          WHERE id_ = #{id} and tenant_id_ = #{tenantId}
 | 
											
												
													
														|  |      </update>
 |  |      </update>
 |