Commit 4d39f85a authored by 赵啸非's avatar 赵啸非

添加首页统计模块 统计近一周

parent ffae41f7
...@@ -13,6 +13,8 @@ import com.mortals.xhx.module.ph.model.PhQueueStatEntity; ...@@ -13,6 +13,8 @@ import com.mortals.xhx.module.ph.model.PhQueueStatEntity;
import com.mortals.xhx.module.ph.service.PhQueueStatService; import com.mortals.xhx.module.ph.service.PhQueueStatService;
import com.mortals.xhx.module.pj.model.PjEvaluateStatEntity; import com.mortals.xhx.module.pj.model.PjEvaluateStatEntity;
import com.mortals.xhx.module.pj.service.PjEvaluateStatService; import com.mortals.xhx.module.pj.service.PjEvaluateStatService;
import com.mortals.xhx.module.stat.model.StatEntity;
import com.mortals.xhx.module.stat.service.StatService;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
...@@ -37,6 +39,8 @@ public class SiteStatTaskImpl implements ITaskExcuteService { ...@@ -37,6 +39,8 @@ public class SiteStatTaskImpl implements ITaskExcuteService {
private PjEvaluateStatService pjEvaluateStatService; private PjEvaluateStatService pjEvaluateStatService;
@Autowired @Autowired
private PhQueueStatService phQueueStatService; private PhQueueStatService phQueueStatService;
@Autowired
private StatService statService;
@Override @Override
...@@ -73,16 +77,29 @@ public class SiteStatTaskImpl implements ITaskExcuteService { ...@@ -73,16 +77,29 @@ public class SiteStatTaskImpl implements ITaskExcuteService {
//设置排号 //设置排号
PhQueueStatEntity phQueueStatEntity = new PhQueueStatEntity(); PhQueueStatEntity phQueueStatEntity = new PhQueueStatEntity();
sitestatEntity.initAttrValue(); phQueueStatEntity.initAttrValue();
sitestatEntity.setSiteId(site.getId()); phQueueStatEntity.setSiteId(site.getId());
sitestatEntity.setSiteName(site.getSiteName()); phQueueStatEntity.setSiteName(site.getSiteName());
sitestatEntity.setSiteCode(site.getSiteCode()); phQueueStatEntity.setSiteCode(site.getSiteCode());
sitestatEntity.setYear(year); phQueueStatEntity.setYear(year);
sitestatEntity.setMonth(month); phQueueStatEntity.setMonth(month);
sitestatEntity.setDay(day); phQueueStatEntity.setDay(day);
phQueueStatService.updateSitePhStat(phQueueStatEntity, null); phQueueStatService.updateSitePhStat(phQueueStatEntity, null);
StatEntity statEntity = new StatEntity();
statEntity.initAttrValue();
statEntity.setSiteId(site.getId());
statEntity.setSiteName(site.getSiteName());
statEntity.setSiteCode(site.getSiteCode());
statEntity.setYear(year);
statEntity.setMonth(month);
statEntity.setDay(day);
//设置年月日
statService.updateSiteStat(statEntity, null);
} }
} }
......
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