提交 14997e57 作者: panda 提交者: 余乾开

改为日期区间判断

上级 6162413a
...@@ -292,7 +292,7 @@ ...@@ -292,7 +292,7 @@
where where
tn.is_deleted = 0 and tn.is_using = 1 and ti.is_deleted = 0 tn.is_deleted = 0 and tn.is_using = 1 and ti.is_deleted = 0
<if test=" date != null "> <if test=" date != null ">
and Date(ti.create_time) = #{date} and Date(ti.create_time) &gt;= #{date}
</if> </if>
<if test="keyword != null and keyword != ''"> <if test="keyword != null and keyword != ''">
and ti.tender_title like CONCAT("%",#{keyword},"%") and ti.tender_title like CONCAT("%",#{keyword},"%")
...@@ -313,7 +313,7 @@ ...@@ -313,7 +313,7 @@
where where
tn.is_deleted = 0 and tn.is_using = 1 and ti.is_deleted = 0 tn.is_deleted = 0 and tn.is_using = 1 and ti.is_deleted = 0
<if test=" date != null "> <if test=" date != null ">
and Date(ti.create_time) = #{date} and Date(ti.create_time) &gt;= #{date}
</if> </if>
<if test="keyword != null and keyword != ''"> <if test="keyword != null and keyword != ''">
and ti.tender_title like CONCAT("%",#{keyword},"%") and ti.tender_title like CONCAT("%",#{keyword},"%")
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论