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.
		
		
		
	
	
		
		
			
	
	
		
			
				
					
						
							|  |  |  | <?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.screen.ScreenPartyBranchDataDao"> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     <delete id="deletePartyBranchData"> | 
					
						
							|  |  |  |         delete from screen_party_branch_data | 
					
						
							|  |  |  |         where CUSTOMER_ID = #{customerId} AND YEAR_ID = #{yearId} AND MONTH_ID = #{monthId} | 
					
						
							|  |  |  |         AND ORG_ID IN | 
					
						
							|  |  |  |         <foreach item="item" collection="orgIds" open="(" separator="," close=")"> | 
					
						
							|  |  |  |             #{item} | 
					
						
							|  |  |  |         </foreach> | 
					
						
							|  |  |  |     </delete> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     <insert id="batchInsertPartyBranchData" parameterType="java.util.List"> | 
					
						
							|  |  |  |         insert into screen_party_branch_data | 
					
						
							|  |  |  |         ( | 
					
						
							|  |  |  |         ID, | 
					
						
							|  |  |  |         CUSTOMER_ID, | 
					
						
							|  |  |  |         YEAR_ID, | 
					
						
							|  |  |  |         MONTH_ID, | 
					
						
							|  |  |  |         `TYPE`, | 
					
						
							|  |  |  |         ORG_TYPE, | 
					
						
							|  |  |  |         ORG_ID, | 
					
						
							|  |  |  |         PARENT_ID, | 
					
						
							|  |  |  |         ORG_NAME, | 
					
						
							|  |  |  |         MEET_CATEGORY_ID, | 
					
						
							|  |  |  |         MEET_CATEGORY_NAME, | 
					
						
							|  |  |  |         ORGANIZE_COUNT, | 
					
						
							|  |  |  |         JOIN_USER_COUNT, | 
					
						
							|  |  |  |         AVERAGE_JOIN_USER_COUNT, | 
					
						
							|  |  |  |         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), | 
					
						
							|  |  |  |             #{item.customerId}, | 
					
						
							|  |  |  |             #{item.yearId}, | 
					
						
							|  |  |  |             #{item.monthId}, | 
					
						
							|  |  |  |             #{item.type}, | 
					
						
							|  |  |  |             #{item.orgType}, | 
					
						
							|  |  |  |             #{item.orgId}, | 
					
						
							|  |  |  |             #{item.parentId}, | 
					
						
							|  |  |  |             #{item.orgName}, | 
					
						
							|  |  |  |             #{item.meetCategoryId}, | 
					
						
							|  |  |  |             #{item.meetCategoryName}, | 
					
						
							|  |  |  |             #{item.organizeCount}, | 
					
						
							|  |  |  |             #{item.joinUserCount}, | 
					
						
							|  |  |  |             #{item.averageJoinUserCount}, | 
					
						
							|  |  |  |             0, | 
					
						
							|  |  |  |             0, | 
					
						
							|  |  |  |             'APP_USER', | 
					
						
							|  |  |  |             now(), | 
					
						
							|  |  |  |             'APP_USER', | 
					
						
							|  |  |  |             now() | 
					
						
							|  |  |  |             ) | 
					
						
							|  |  |  |         </foreach> | 
					
						
							|  |  |  |     </insert> | 
					
						
							|  |  |  | </mapper> |