Commit 0ac8c249 authored by 罗贤顺's avatar 罗贤顺
parents e80adf63 6e139c32
...@@ -15,7 +15,8 @@ ...@@ -15,7 +15,8 @@
<if test="params.endDate != null and params.endDate != ''"> <if test="params.endDate != null and params.endDate != ''">
and Convert(varchar(10),tw.Rq,120) <![CDATA[ <= ]]> #{params.endDate} and Convert(varchar(10),tw.Rq,120) <![CDATA[ <= ]]> #{params.endDate}
</if> </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 and datediff(week, tw.Rq,getdate())=0
</if> </if>
group by Convert(varchar(10),tw.Rq,120) group by Convert(varchar(10),tw.Rq,120)
...@@ -36,17 +37,12 @@ ...@@ -36,17 +37,12 @@
<if test="params.endDate != null and params.endDate != ''"> <if test="params.endDate != null and params.endDate != ''">
and Convert(varchar(10),tw.Rq,120) <![CDATA[ <= ]]> #{params.endDate} and Convert(varchar(10),tw.Rq,120) <![CDATA[ <= ]]> #{params.endDate}
</if> </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 and datediff(week, tw.Rq,getdate())=0
</if> </if>
</select> </select>
</mapper> </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