财务列表时间筛选

This commit is contained in:
kuang.yifei@iwhalecloud.com 2022-06-01 22:25:50 +08:00
parent 2879ae482c
commit 8d94b1fab1
1 changed files with 6 additions and 0 deletions

View File

@ -66,6 +66,12 @@
<if test="financialDetailType != null">
AND financial_detail_type = #{financialDetailType}
</if>
<if test="params.beginTime != null and params.beginTime != ''"><!-- 开始时间检索 -->
and date_format(r.create_time,'%y%m%d') &gt;= date_format(#{params.beginTime},'%y%m%d')
</if>
<if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
and date_format(r.create_time,'%y%m%d') &lt;= date_format(#{params.endTime},'%y%m%d')
</if>
</where>
</select>