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} where year = #{year}
<if test="now != null"> <if test="now != null">
<![CDATA[ <![CDATA[
and date_end < now() and date_start < now()
]]> ]]>
</if> </if>
</select> </select>
@ -68,12 +68,12 @@
from crm_week_goal from crm_week_goal
where year = year(now()) where year = year(now())
<![CDATA[ <![CDATA[
and date_end < now() and date_start < now()
]]> ]]>
group by user_id group by user_id
union union
select user_id, select user_id,
year(now()) -1 year, year(now()) - 1 year,
sum(goal) goal, sum(goal) goal,
sum(done) done sum(done) done
from crm_week_goal from crm_week_goal
@ -81,7 +81,7 @@
group by user_id group by user_id
union union
select user_id, select user_id,
year(now()) -2 year, year(now()) - 2 year,
sum(goal) goal, sum(goal) goal,
sum(done) done sum(done) done
from crm_week_goal 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-body">
<div class="widget-main"> <div class="widget-main">
<form class="form-horizontal"> <form class="form-horizontal">
@ -6,4 +6,4 @@
</form> </form>
</div> </div>
</div> </div>
</div> </div>

View File

@ -3,7 +3,7 @@
rm -rf tmp dist rm -rf tmp dist
if [ "$1" = "prod" ]; then 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 else
ember s -pr http://127.0.0.1:8088/ ember s -pr http://127.0.0.1:8088/
fi fi