修改心电统计阳性方法
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
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:
parent
7c905f710c
commit
f260bac2a7
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
@ -32,4 +32,7 @@ public class PatientexamlistCountVO {
|
||||
|
||||
@Schema(description = "申请")
|
||||
private String sq;
|
||||
@Schema(description = " 阳性患者(阳性字典)")
|
||||
private String dictyx;
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user