| 
					
				 | 
			
			
				@@ -60,4 +60,19 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					 and inv.cInvName='事故单'  and ah.cDefine2 like CONCAT(#{code},'%') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					group by ah.cPBVCode,ven.cVenAbbName,ah.cDefine2; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	--> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	<select id="queryByCostAccidentAmount" resultType="org.jeecg.modules.cost.entity.SyCostAllocationAccident"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+select 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			case when its.money_type='美元' then ifnull(sum(it.total_money),0) end as supperAccidentUsdamount, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			case when its.money_type='人民币' then ifnull(sum(it.total_money),0) end as supperAccidentcnyAmount 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		from incident_ticket it 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		join incident_ticket_children its on it.id=its.incident_ticket_id 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		where its.plan_number = #{code} and it.responsibility_person1 is null 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		and it.responsibility_person2 is null 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		and it.responsibility_person3 is null 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		and it.responsibility_person4 is null 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		and it.responsibility_person5 is null 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	</select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 </mapper> 
			 |