fix: 合同结算单结束时间加一天减一毫秒,取当天的结束时间 (#711)
Co-authored-by: lyx <2027667395@qq.com> Reviewed-on: daoyoucloud/tachycode#711 Co-authored-by: hello@lv <2256334253@qq.com> Co-committed-by: hello@lv <2256334253@qq.com>
This commit is contained in:
		
							parent
							
								
									2020643371
								
							
						
					
					
						commit
						0e97825b13
					
				
							
								
								
									
										5
									
								
								.changeset/serious-ravens-rescue.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								.changeset/serious-ravens-rescue.md
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,5 @@
 | 
			
		||||
---
 | 
			
		||||
"@hera/plugin-rental": patch
 | 
			
		||||
---
 | 
			
		||||
 | 
			
		||||
合同结算单结束时间取当天的结束时间
 | 
			
		||||
@ -247,7 +247,7 @@ SELECT
 | 
			
		||||
      records r
 | 
			
		||||
    WHERE
 | 
			
		||||
      r.contract_id = COALESCE(main.id, c.id)
 | 
			
		||||
      AND s.end_date >= r.date
 | 
			
		||||
      AND (s.end_date + INTERVAL '1 day - 1 millisecond') >= r.date
 | 
			
		||||
  ) AS records,
 | 
			
		||||
  (
 | 
			
		||||
    SELECT
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user