You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
			
				
					54 lines
				
				1.5 KiB
			
		
		
			
		
	
	
					54 lines
				
				1.5 KiB
			| 
											5 years ago
										 | <?xml version="1.0" encoding="UTF-8"?> | ||
|  | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||
|  | 
 | ||
|  | <mapper namespace="com.epmet.dao.plugins.ScreenBidInfoDao"> | ||
|  |     <delete id="deleteBatch" parameterType="map"> | ||
|  |         delete from screen_bid_info where CUSTOMER_ID=#{customerId} | ||
|  |     </delete> | ||
|  | 
 | ||
|  |     <insert id="insertBatch" parameterType="map"> | ||
|  |         INSERT INTO `screen_bid_info` ( | ||
|  |             `ID`, | ||
|  |             `CUSTOMER_ID`, | ||
|  |             `DATE_ID`, | ||
|  |             `BID_ID`, | ||
|  |             `BID_NAME`, | ||
|  |             `STATUS_CODE`, | ||
|  |             `STATUS_DESC`, | ||
|  |             `AMOUNT`, | ||
|  |             `RELEASE_TIME`, | ||
|  |             `TOWN_IDS`, | ||
|  |             `TOWN_NAMES`, | ||
|  |             `DEL_FLAG`, | ||
|  |             `REVISION`, | ||
|  |             `CREATED_BY`, | ||
|  |             `CREATED_TIME`, | ||
|  |             `UPDATED_BY`, | ||
|  |             `UPDATED_TIME` | ||
|  |         ) | ||
|  |         VALUES | ||
|  |         <foreach collection ="list" item="item" index= "index" separator =","> | ||
|  |             ( | ||
|  |                 (SELECT REPLACE(UUID(), '-', '') AS id), | ||
|  |                 #{customerId}, | ||
|  |                 #{dateId}, | ||
|  |                 #{item.bidId}, | ||
|  |                 #{item.bidName}, | ||
|  |                 #{item.statusCode}, | ||
|  |                 #{item.statusDesc}, | ||
|  |                 #{item.amount}, | ||
|  |                 #{item.releaseTime}, | ||
|  |                 #{item.townIds}, | ||
|  |                 #{item.townNames}, | ||
|  |                 '0', | ||
|  |                 0, | ||
|  |                 'APP_USER', | ||
|  |                 NOW(), | ||
|  |                 'APP_USER', | ||
|  |              NOW() | ||
|  |             ) | ||
|  |         </foreach> | ||
|  |     </insert> | ||
|  | 
 | ||
|  | 
 | ||
|  | </mapper> |