week goal bug fixes

This commit is contained in:
Shaun Chyxion 2018-01-07 20:11:19 +08:00
parent 244791f672
commit a575747440
3 changed files with 7 additions and 7 deletions

View File

@ -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

View File

@ -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">

View File

@ -3,7 +3,7 @@
rm -rf tmp dist
if [ "$1" = "prod" ]; then
ember s -p 4201 -pr http://116.62.189.211/
ember s -p 4201 -pr http://116.62.189.211/crm-api
else
ember s -pr http://127.0.0.1:8088/
fi