|  | @@ -798,10 +798,10 @@
 | 
											
												
													
														|  |              <if test="fPreqty != null ">and leg.f_preqty = #{fPreqty}</if>
 |  |              <if test="fPreqty != null ">and leg.f_preqty = #{fPreqty}</if>
 | 
											
												
													
														|  |              <if test="fCorpid != null ">and leg.f_corpid = #{fCorpid}</if>
 |  |              <if test="fCorpid != null ">and leg.f_corpid = #{fCorpid}</if>
 | 
											
												
													
														|  |              <if test="fMblno != null ">and leg.f_mblno LIKE  concat('%', #{fMblno}, '%') </if>
 |  |              <if test="fMblno != null ">and leg.f_mblno LIKE  concat('%', #{fMblno}, '%') </if>
 | 
											
												
													
														|  | -            <if test='timeStartBsdate != null and timeStartBsdate!= ""'>
 |  | 
 | 
											
												
													
														|  | 
 |  | +            <if test='timeStartBsdate != null'>
 | 
											
												
													
														|  |                  and leg.f_originalbilldate >= #{timeStartBsdate}
 |  |                  and leg.f_originalbilldate >= #{timeStartBsdate}
 | 
											
												
													
														|  |              </if>
 |  |              </if>
 | 
											
												
													
														|  | -            <if test='timeEndBsdate != null  timeEndBsdate!= ""'>
 |  | 
 | 
											
												
													
														|  | 
 |  | +            <if test='timeEndBsdate != null'>
 | 
											
												
													
														|  |                  and leg.f_originalbilldate <= #{timeEndBsdate}
 |  |                  and leg.f_originalbilldate <= #{timeEndBsdate}
 | 
											
												
													
														|  |              </if>
 |  |              </if>
 | 
											
												
													
														|  |              <if test="fPregrossweight != null ">and leg.f_pregrossweight = #{fPregrossweight}</if>
 |  |              <if test="fPregrossweight != null ">and leg.f_pregrossweight = #{fPregrossweight}</if>
 |