Commit 0f22adfb authored by 赵啸非's avatar 赵啸非

添加排号与评价统计报表

parent 3613971b
......@@ -3,11 +3,15 @@ package com.mortals.xhx.module.pj.service.impl;
import com.mortals.framework.common.Rest;
import com.mortals.framework.model.OrderCol;
import com.mortals.framework.model.PageInfo;
import com.mortals.framework.model.Result;
import com.mortals.xhx.common.code.TimeUnitEnum;
import com.mortals.xhx.common.utils.BeanUtil;
import com.mortals.xhx.module.pj.model.PjEvaluateEntity;
import com.mortals.xhx.module.pj.model.PjEvaluateQuery;
import com.mortals.xhx.module.pj.model.PjEvaluateStatQuery;
import com.mortals.xhx.module.pj.service.PjEvaluateService;
import org.apache.poi.ss.formula.functions.T;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.mortals.framework.service.impl.AbstractCRUDServiceImpl;
......@@ -38,6 +42,18 @@ public class PjEvaluateStatServiceImpl extends AbstractCRUDServiceImpl<PjEvaluat
private PjEvaluateService pjEvaluateService;
@Override
public Result<PjEvaluateStatEntity> find(PjEvaluateStatEntity entity, PageInfo pageInfo, Context context) throws AppException {
Result<PjEvaluateStatEntity> result = new Result<>();
PjEvaluateStatQuery query = new PjEvaluateStatQuery();
BeanUtils.copyProperties(entity, query, BeanUtil.getNullPropertyNames(entity));
List<PjEvaluateStatEntity> billInfos = this.getBillInfos(query, TimeUnitEnum.DAY.getValue(), pageInfo, context);
result.setList(billInfos);
result.setPageInfo(pageInfo);
return result;
}
@Override
public Rest<Void> updateSitePjStat(PjEvaluateStatEntity entity, Context context) {
//todo 统计站点评价 分站点--部门 ||窗口编号||评价选项 ==》评价数量
......
......@@ -57,7 +57,7 @@ Content-Type: application/json
{
"taketimeStart": "2023-04-01",
"taketimeEnd": "2023-04-28"
"taketimeEnd": "2023-04-03"
}
......
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