|
|
|
@ -12,6 +12,7 @@ import com.ruoyi.system.domain.count.PropertyDesCountDTO;
|
|
|
|
|
import com.ruoyi.system.domain.count.PropertyStateCountDTO;
|
|
|
|
|
import com.ruoyi.system.service.ITdCheckService;
|
|
|
|
|
import com.ruoyi.system.service.ITdNotifyService;
|
|
|
|
|
import com.ruoyi.system.service.check.TdCheckReportService;
|
|
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
@ -21,6 +22,7 @@ import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
import java.util.Arrays;
|
|
|
|
|
import java.util.List;
|
|
|
|
@ -35,8 +37,8 @@ import java.util.stream.Collectors;
|
|
|
|
|
public class TdChecknumController extends BaseController{
|
|
|
|
|
private String prefix = "system/check/checknum";
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
private ITdCheckService tdCheckService;
|
|
|
|
|
@Resource
|
|
|
|
|
private TdCheckReportService checkReportService;
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
private ITdNotifyService tdNotifyService;
|
|
|
|
@ -66,7 +68,7 @@ public class TdChecknumController extends BaseController{
|
|
|
|
|
@PostMapping("/countResult")
|
|
|
|
|
@ResponseBody
|
|
|
|
|
public AjaxResult countbf() {
|
|
|
|
|
CheckResultCountDTO checkResultCountDTO = tdCheckService.selectResultCount();
|
|
|
|
|
CheckResultCountDTO checkResultCountDTO = checkReportService.selectResultCount();
|
|
|
|
|
List<JSONObject> datas = checkResult.stream()
|
|
|
|
|
.map(name -> {
|
|
|
|
|
AtomicReference<Object> value = new AtomicReference<>(0L);
|
|
|
|
@ -93,7 +95,7 @@ public class TdChecknumController extends BaseController{
|
|
|
|
|
@PostMapping("/countType")
|
|
|
|
|
@ResponseBody
|
|
|
|
|
public AjaxResult countXH() {
|
|
|
|
|
CheckTypeCountDTO checkTypeCountDTO = tdCheckService.selectTypeCount();
|
|
|
|
|
CheckTypeCountDTO checkTypeCountDTO = checkReportService.selectTypeCount();
|
|
|
|
|
List<JSONObject> datas = checkType.stream()
|
|
|
|
|
.map(name -> {
|
|
|
|
|
AtomicReference<Object> value = new AtomicReference<>(0L);
|
|
|
|
|