mapper文件批量修改

批量修改:

	<!-- 更新用戶客戶爲不默認 -->
	<update id="updatePartyCustomerRelationisDefault" parameterType="tf56.customerBase.request.PartyCustomerRelationUpdateIsDefaultRequest">
		UPDATE PartyCustomerRelation
		<set>
			isDefault = 0,
			<if test="updateOperatorId != null" >updateOperatorId = #{updateOperatorId,jdbcType=VARCHAR},</if>
			<if test="updateManName != null" >updateManName = #{updateManName,jdbcType=VARCHAR},</if>
			updateDate = now()
		</set>
		WHERE partyCustomerRelationId in
		<foreach collection="partyCustomerRelationIds" item="partyCustomerRelationId" open="(" close=")" separator="OR">
			#{partyCustomerRelationId,jdbcType=INTEGER}
		</foreach>
	</update>
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章