|
|
|
@ -1,14 +1,18 @@ |
|
|
|
package com.biutag.supervision.controller.datav; |
|
|
|
package com.biutag.supervision.controller.datav; |
|
|
|
|
|
|
|
|
|
|
|
import cn.hutool.core.date.DateUtil; |
|
|
|
import cn.hutool.core.date.DateUtil; |
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
|
|
|
import com.biutag.supervision.constants.enums.ProblemSourcesEnum; |
|
|
|
import com.biutag.supervision.constants.enums.ProblemSourcesEnum; |
|
|
|
|
|
|
|
import com.biutag.supervision.mapper.NegativeMapper; |
|
|
|
import com.biutag.supervision.pojo.Result; |
|
|
|
import com.biutag.supervision.pojo.Result; |
|
|
|
import com.biutag.supervision.pojo.dto.common.PieItem; |
|
|
|
import com.biutag.supervision.pojo.dto.common.PieItem; |
|
|
|
import com.biutag.supervision.pojo.entity.Negative; |
|
|
|
import com.biutag.supervision.pojo.entity.Negative; |
|
|
|
import com.biutag.supervision.pojo.entity.NegativeBlame; |
|
|
|
import com.biutag.supervision.pojo.entity.NegativeBlame; |
|
|
|
import com.biutag.supervision.pojo.entity.News; |
|
|
|
import com.biutag.supervision.pojo.entity.News; |
|
|
|
|
|
|
|
import com.biutag.supervision.pojo.vo.AuditNegativeVo; |
|
|
|
import com.biutag.supervision.pojo.vo.AuditOverview; |
|
|
|
import com.biutag.supervision.pojo.vo.AuditOverview; |
|
|
|
|
|
|
|
import com.biutag.supervision.pojo.vo.EchartsVo; |
|
|
|
import com.biutag.supervision.service.NegativeBlameService; |
|
|
|
import com.biutag.supervision.service.NegativeBlameService; |
|
|
|
import com.biutag.supervision.service.NegativeService; |
|
|
|
import com.biutag.supervision.service.NegativeService; |
|
|
|
import com.biutag.supervision.service.NewsService; |
|
|
|
import com.biutag.supervision.service.NewsService; |
|
|
|
@ -44,6 +48,8 @@ public class DataVAuditController { |
|
|
|
|
|
|
|
|
|
|
|
private final NegativeService negativeService; |
|
|
|
private final NegativeService negativeService; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private final NegativeMapper negativeMapper; |
|
|
|
|
|
|
|
|
|
|
|
private final NegativeBlameService negativeBlameService; |
|
|
|
private final NegativeBlameService negativeBlameService; |
|
|
|
|
|
|
|
|
|
|
|
@GetMapping("/overview") |
|
|
|
@GetMapping("/overview") |
|
|
|
@ -59,6 +65,21 @@ public class DataVAuditController { |
|
|
|
return Result.success(overview); |
|
|
|
return Result.success(overview); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@GetMapping("/getAuditNegativeVo") |
|
|
|
|
|
|
|
public Result<JSONObject> getAuditNegativeVo(@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date beginTime, @RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date endTime){ |
|
|
|
|
|
|
|
List<AuditNegativeVo> fxData = negativeMapper.getAuditNegativeVo(beginTime,endTime,"3"); |
|
|
|
|
|
|
|
List<AuditNegativeVo> jsData = negativeMapper.getAuditNegativeVo(beginTime,endTime,"4"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
List<EchartsVo> barData = negativeMapper.getBarEchartsVoData(beginTime,endTime); |
|
|
|
|
|
|
|
JSONObject object=new JSONObject(); |
|
|
|
|
|
|
|
object.fluentPut("fxData",fxData); |
|
|
|
|
|
|
|
object.fluentPut("jsData",jsData); |
|
|
|
|
|
|
|
object.fluentPut("barData",barData); |
|
|
|
|
|
|
|
return Result.success(object); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@GetMapping("/getWorkDynamics") |
|
|
|
@GetMapping("/getWorkDynamics") |
|
|
|
public Result<List<News>> getWorkDynamics(@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date beginTime, |
|
|
|
public Result<List<News>> getWorkDynamics(@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date beginTime, |
|
|
|
@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date endTime) { |
|
|
|
@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") Date endTime) { |
|
|
|
|