week goal bug fixes
This commit is contained in:
parent
244791f672
commit
a575747440
@ -55,7 +55,7 @@
|
||||
where year = #{year}
|
||||
<if test="now != null">
|
||||
<![CDATA[
|
||||
and date_end < now()
|
||||
and date_start < now()
|
||||
]]>
|
||||
</if>
|
||||
</select>
|
||||
@ -68,12 +68,12 @@
|
||||
from crm_week_goal
|
||||
where year = year(now())
|
||||
<![CDATA[
|
||||
and date_end < now()
|
||||
and date_start < now()
|
||||
]]>
|
||||
group by user_id
|
||||
union
|
||||
select user_id,
|
||||
year(now()) -1 year,
|
||||
year(now()) - 1 year,
|
||||
sum(goal) goal,
|
||||
sum(done) done
|
||||
from crm_week_goal
|
||||
@ -81,7 +81,7 @@
|
||||
group by user_id
|
||||
union
|
||||
select user_id,
|
||||
year(now()) -2 year,
|
||||
year(now()) - 2 year,
|
||||
sum(goal) goal,
|
||||
sum(done) done
|
||||
from crm_week_goal
|
||||
|
@ -1,4 +1,4 @@
|
||||
<div class="row widget-box">
|
||||
<div class="row widget-box no-border">
|
||||
<div class="widget-body">
|
||||
<div class="widget-main">
|
||||
<form class="form-horizontal">
|
||||
@ -6,4 +6,4 @@
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user