Commit d1c4fcbc authored by 竹天卫's avatar 竹天卫

统计日期筛选 格式

parent 1717d728
......@@ -15,7 +15,8 @@
<if test="params.endDate != null and params.endDate != ''">
and Convert(varchar(10),tw.Rq,120) <![CDATA[ <= ]]> #{params.endDate}
</if>
<if test="params.startDate == null and params.endDate == null">
<if test="(params.startDate == null or params.startDate == '')
and (params.endDate == null or params.endDate == '')">
and datediff(week, tw.Rq,getdate())=0
</if>
group by Convert(varchar(10),tw.Rq,120)
......@@ -36,17 +37,12 @@
<if test="params.endDate != null and params.endDate != ''">
and Convert(varchar(10),tw.Rq,120) <![CDATA[ <= ]]> #{params.endDate}
</if>
<if test="params.startDate == null and params.endDate == null">
<if test="(params.startDate == null or params.startDate == '')
and (params.endDate == null or params.endDate == '')">
and datediff(week, tw.Rq,getdate())=0
</if>
</select>
</mapper>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment