| 
					
				 | 
			
			
				@@ -17,7 +17,16 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	</select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	<select id="queryByCostAccident" resultType="org.jeecg.modules.cost.entity.SyCostAllocationAccident"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		SELECT ah.cPBVCode as accidentNum,ven.cVenAbbName as accidentUndertaker,sum(A.iOriSum) as amount,sum(a.iSum) as rmbamount 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		select 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			its.u8_invoice as accidentNum,its.accident_sum as amount,its.money_type,it.accident_number,it.responsibility_person1, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			it.accident_data,it.factory as accidentUndertaker,it.customer,it.style_number,its.plan_number,it.plan_personnel, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			it.business_people,it.garment_sales_order,material,it.quality_control,finance_remark 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		from incident_ticket it 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		join incident_ticket_children its on it.id=its.incident_ticket_id 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		where its.plan_number = 'SYE228' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	</select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	<!-- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	SELECT ah.cPBVCode as accidentNum,ven.cVenAbbName as accidentUndertaker,sum(A.iOriSum) as amount,sum(a.iSum) as rmbamount 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					from UFDATA_101_2021.dbo.PurBillVouchs a 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					left join UFDATA_101_2021.dbo.PurBillVouch ah on ah.pbvid=a.pbvid 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					left join UFDATA_101_2021.dbo.Inventory inv on inv.cInvCode=a.cInvCode 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -47,5 +56,5 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					where cPBVBillType='03' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					 and inv.cInvName='事故单'  and ah.cDefine2 like CONCAT(#{code},'%') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					group by ah.cPBVCode,ven.cVenAbbName,ah.cDefine2; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	</select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+	--> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 </mapper> 
			 |