|  | @@ -45,7 +45,7 @@
 | 
												
													
														
															|  |  		(case  when a.submissiondate!='' and a.submissiondate is not null then
 |  |  		(case  when a.submissiondate!='' and a.submissiondate is not null then
 | 
												
													
														
															|  |  			(case  when timestampdiff(day,a.submissiondate,expectedDate)>=0  then '否' else '是' end)
 |  |  			(case  when timestampdiff(day,a.submissiondate,expectedDate)>=0  then '否' else '是' end)
 | 
												
													
														
															|  |  		else
 |  |  		else
 | 
												
													
														
															|  | -			(case  when timestampdiff(day,date_format(now(),'%Y-%m-%d'),a.expectedDate)<=0 then '' else '是' end)
 |  | 
 | 
												
													
														
															|  | 
 |  | +			(case  when timestampdiff(day,date_format(now(),'%Y-%m-%d'),a.expectedDate)>=0 then '' else '是' end)
 | 
												
													
														
															|  |  		end
 |  |  		end
 | 
												
													
														
															|  |  		) as "overdue"
 |  |  		) as "overdue"
 | 
												
													
														
															|  |  		FROM lishu_item_list a
 |  |  		FROM lishu_item_list a
 | 
												
											
												
													
														
															|  | @@ -97,13 +97,15 @@
 | 
												
													
														
															|  |  				AND a.completiondate <=#{endCompletionDate}
 |  |  				AND a.completiondate <=#{endCompletionDate}
 | 
												
													
														
															|  |  			</if>
 |  |  			</if>
 | 
												
													
														
															|  |  			<if test="beginRemainingDate != null and beginRemainingDate != ''">
 |  |  			<if test="beginRemainingDate != null and beginRemainingDate != ''">
 | 
												
													
														
															|  | -				AND (case when a.submissiondate='' or a.submissiondate is null then''
 |  | 
 | 
												
													
														
															|  | -				else timestampdiff(day,date_format(now(),'%Y-%m-%d'),a.submissiondate) end
 |  | 
 | 
												
													
														
															|  | 
 |  | +				AND (case
 | 
												
													
														
															|  | 
 |  | +				when a.submissiondate!='' and a.submissiondate is not null then null
 | 
												
													
														
															|  | 
 |  | +				else timestampdiff(day,date_format(now(),'%Y-%m-%d'),a.expectedDate) end
 | 
												
													
														
															|  |  				) >= #{beginRemainingDate}
 |  |  				) >= #{beginRemainingDate}
 | 
												
													
														
															|  |  			</if>
 |  |  			</if>
 | 
												
													
														
															|  |  			<if test="endRemainingDate != null and endRemainingDate != ''">
 |  |  			<if test="endRemainingDate != null and endRemainingDate != ''">
 | 
												
													
														
															|  | -				AND (case when a.submissiondate='' or a.submissiondate is null then''
 |  | 
 | 
												
													
														
															|  | -				else timestampdiff(day,date_format(now(),'%Y-%m-%d'),a.submissiondate) end
 |  | 
 | 
												
													
														
															|  | 
 |  | +				AND (case
 | 
												
													
														
															|  | 
 |  | +				when a.submissiondate!='' and a.submissiondate is not null then null
 | 
												
													
														
															|  | 
 |  | +				else timestampdiff(day,date_format(now(),'%Y-%m-%d'),a.expectedDate) end
 | 
												
													
														
															|  |  				) <= #{endRemainingDate}
 |  |  				) <= #{endRemainingDate}
 | 
												
													
														
															|  |  			</if>
 |  |  			</if>
 | 
												
													
														
															|  |  			<if test="overdue!=null and overdue!=''">
 |  |  			<if test="overdue!=null and overdue!=''">
 |