|  | @@ -290,7 +290,7 @@
 | 
	
		
			
				|  |  |  		<include refid="leaveApplyJoins"/>
 | 
	
		
			
				|  |  |  		WHERE a.company_id=#{companyId} and a.del_flag = '0' and a.status in('5','8','6','7','9')
 | 
	
		
			
				|  |  |  		<if test="basicInfo != null and basicInfo.name != null and basicInfo.name != ''">
 | 
	
		
			
				|  |  | -			AND w.name  LIKE
 | 
	
		
			
				|  |  | +			AND w.name LIKE
 | 
	
		
			
				|  |  |  			<if test="dbName == 'oracle'">'%'||#{basicInfo.name}||'%'</if>
 | 
	
		
			
				|  |  |  			<if test="dbName == 'mssql'">'%'+#{basicInfo.name}+'%'</if>
 | 
	
		
			
				|  |  |  			<if test="dbName == 'mysql'">concat('%',#{basicInfo.name},'%')</if>
 | 
	
	
		
			
				|  | @@ -298,12 +298,13 @@
 | 
	
		
			
				|  |  |  		<if test="basicInfo != null and basicInfo.office != null  and basicInfo.office.id != null and basicInfo.office.id != ''">
 | 
	
		
			
				|  |  |  			AND a.office_id = #{basicInfo.office.id}
 | 
	
		
			
				|  |  |  		</if>
 | 
	
		
			
				|  |  | -		group by a.staff_id order by w.no ASC
 | 
	
		
			
				|  |  | +<!--		有异常-->
 | 
	
		
			
				|  |  | +<!--		group by a.staff_id order by w.no ASC-->
 | 
	
		
			
				|  |  |  	</select>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  	<select id="getSumDays" resultType="LeaveApply" parameterType="java.lang.String">
 | 
	
		
			
				|  |  |  		SELECT
 | 
	
		
			
				|  |  | -		ifnull(sum(a.sums),0) as "sumDays"
 | 
	
		
			
				|  |  | +	ifnull(sum(a.sums),0) as "sumDays"
 | 
	
		
			
				|  |  |  		FROM leave_count a
 | 
	
		
			
				|  |  |  		where
 | 
	
		
			
				|  |  |  			a.del_flag = '0'
 |