修改心电统计阳性方法
Some checks are pending
Java CI with Maven / build (11) (push) Waiting to run
Java CI with Maven / build (17) (push) Waiting to run
Java CI with Maven / build (8) (push) Waiting to run
yudao-ui-admin CI / build (14.x) (push) Waiting to run
yudao-ui-admin CI / build (16.x) (push) Waiting to run

This commit is contained in:
lxd 2024-12-17 17:56:03 +08:00
parent 7c905f710c
commit f260bac2a7
2 changed files with 23 additions and 11 deletions

View File

@ -30,7 +30,6 @@ import io.swagger.v3.oas.annotations.Operation;
import java.io.ByteArrayInputStream;
import java.io.InputStream;
import java.net.SocketException;
import java.text.SimpleDateFormat;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.*;
@ -57,7 +56,6 @@ import cn.iocoder.yudao.module.tblist.dal.dataobject.patientexamlist.Patientexam
import cn.iocoder.yudao.module.tblist.service.patientexamlist.PatientexamlistService;
import javax.annotation.Resource;
import javax.annotation.security.PermitAll;
import javax.servlet.http.HttpServletResponse;
import javax.validation.Valid;
@ -374,6 +372,8 @@ public class PatientexamlistController {
//获取当前登陆用户
AdminUserDO user = userService.getUser(getLoginUserId());
PatientexamlistCountVO patientexamlistCountVO = patientexamlistService.GetEcgAnalysisData(user.getOrgId());
int positiveCount= positiveness(user.getOrgId());
patientexamlistCountVO.setDictyx(String.valueOf(positiveCount));
return success(patientexamlistCountVO);
}
@ -590,6 +590,17 @@ public class PatientexamlistController {
// 获取阳性数量
int positiveCount = 0;
positiveCount= positiveness(orgId);
statistics.setPositiveCount(positiveCount);
return success(statistics);
}
///计算阳性患者的数量 只要是阳性就算 不重复的患者
private int positiveness(String orgId)
{
int positiveCount=0;
List<Map<String, Object>> positivestatisticsDict = positivestatisticsMapper.selectList_usable(orgId);
if (positivestatisticsDict != null && !positivestatisticsDict.isEmpty()) {
List<String> allKeywords = new ArrayList<>();
@ -609,9 +620,7 @@ public class PatientexamlistController {
).size();
}
}
statistics.setPositiveCount(positiveCount);
return success(statistics);
return positiveCount;
}
}

View File

@ -32,4 +32,7 @@ public class PatientexamlistCountVO {
@Schema(description = "申请")
private String sq;
@Schema(description = " 阳性患者(阳性字典)")
private String dictyx;
}