Mybatis查询基础

 批量插入,参数为List
 
	
	insert into t_mfts_trade_detection (iTradeDataID,iNameListMark,sNameListStatus,sRuleDetection,sRuleMark,iCreateTime) 
	values
	
		(
		#{item.itradeDataID,jdbcType=INTEGER},
		#{item.inameListMark,jdbcType=INTEGER},
		#{item.snameListStatus,jdbcType=VARCHAR},
		#{item.sruleDetection,jdbcType=VARCHAR},
		#{item.sruleMark,jdbcType=VARCHAR},
		#{item.icreateTime,jdbcType=INTEGER}
		)
	

	
		insert into t_batch_import_log
		 
            iOperatorID, 
            sOperatorName,  
            iOperateTime, 
            sBatchTaskName,
            sImportFileName, 
            sImportErrorFileName, 
            iBatchSucceedNum, 
            iBatchErrorNum, 
            iCreateTime, 
            iUpdateTime, 
            iStatus, 
            iDeleteTime 
        
         
             
                #{ioperatorID,jdbcType=INTEGER},
             
             
                #{soperatorName,jdbcType=VARCHAR},
             
             
                #{ioperateTime,jdbcType=INTEGER},
             
             
                #{sbatchTaskName,jdbcType=VARCHAR},
             
             
                #{simportFileName,jdbcType=VARCHAR},
             
             
                #{simportErrorFileName,jdbcType=VARCHAR},
             
             
                #{ibatchSucceedNum,jdbcType=INTEGER},
             
             
                #{ibatchErrorNum,jdbcType=INTEGER},
             
             
                #{icreateTime,jdbcType=INTEGER},
             
            
            	
            		#{iupdateTime,jdbcType=INTEGER},
            	
            	
            		#{icreateTime,jdbcType=INTEGER},
            	
            	
            	
            
             
                #{istatus,jdbcType=INTEGER},
             
             
                #{ideleteTime,jdbcType=INTEGER},
            
        
	

	


	

	
	


	
		UPDATE t_mail_list
		
			
				sSubject = #{ssubject},
			
			
				sBodyText = #{sbodyText},
			
			
				sBodyEntity = #{sbodyEntity},
			
			
				sAttachmentURL = #{sattachmentURL},
			
			
				iTypeID = #{itypeID},
			
			
				iSentStatus = #{isentStatus},
			
			
				iSentTimes = #{isentTimes},
			
			
				iCreateTime = #{icreateTime},
			
			
				iUpdateTime = #{iupdateTime},
			
			
				iStatus = #{istatus},
			
			
				iDeleteTime = #{ideleteTime},
			

		
		WHERE iAutoId = #{iautoId}
	

 
	
		INSERT INTO t_account_check_details
		
			iDate,
			iChannelID,
			sAccountID,
			sThirdSerialNum,
			iAmount,
			iAccChkStatus,
			iBusinessID,
			iTradeTime,
			sBusinessOrderID,
			sSerialNum,
			iThirdAmount,
			iFee,
			iTransactionType,
			iCreateTime
		
		
			#{idate,jdbcType=INTEGER},
			#{ichannelID,jdbcType=INTEGER},
			#{saccountID,jdbcType=VARCHAR},
			#{sthirdSerialNum,jdbcType=VARCHAR},
			#{iamount},
			#{iaccChkStatus},
			#{ibusinessID},
			#{itradeTime},
			#{sbusinessOrderID},
			#{sserialNum,jdbcType=VARCHAR},
			#{ithirdAmount,jdbcType=INTEGER},
			#{ifee,jdbcType=INTEGER},
			#{itransactionType,jdbcType=INTEGER},
			#{icreateTime,jdbcType=INTEGER}
		
	



你可能感兴趣的:(Mybatis查询基础)