修改心电统计阳性方法
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.ByteArrayInputStream;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
import java.net.SocketException;
|
import java.net.SocketException;
|
||||||
import java.text.SimpleDateFormat;
|
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
import java.time.format.DateTimeFormatter;
|
import java.time.format.DateTimeFormatter;
|
||||||
import java.util.*;
|
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 cn.iocoder.yudao.module.tblist.service.patientexamlist.PatientexamlistService;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
import javax.annotation.security.PermitAll;
|
|
||||||
import javax.servlet.http.HttpServletResponse;
|
import javax.servlet.http.HttpServletResponse;
|
||||||
import javax.validation.Valid;
|
import javax.validation.Valid;
|
||||||
|
|
||||||
@ -374,6 +372,8 @@ public class PatientexamlistController {
|
|||||||
//获取当前登陆用户
|
//获取当前登陆用户
|
||||||
AdminUserDO user = userService.getUser(getLoginUserId());
|
AdminUserDO user = userService.getUser(getLoginUserId());
|
||||||
PatientexamlistCountVO patientexamlistCountVO = patientexamlistService.GetEcgAnalysisData(user.getOrgId());
|
PatientexamlistCountVO patientexamlistCountVO = patientexamlistService.GetEcgAnalysisData(user.getOrgId());
|
||||||
|
int positiveCount= positiveness(user.getOrgId());
|
||||||
|
patientexamlistCountVO.setDictyx(String.valueOf(positiveCount));
|
||||||
return success(patientexamlistCountVO);
|
return success(patientexamlistCountVO);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -590,6 +590,17 @@ public class PatientexamlistController {
|
|||||||
|
|
||||||
// 获取阳性数量
|
// 获取阳性数量
|
||||||
int positiveCount = 0;
|
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);
|
List<Map<String, Object>> positivestatisticsDict = positivestatisticsMapper.selectList_usable(orgId);
|
||||||
if (positivestatisticsDict != null && !positivestatisticsDict.isEmpty()) {
|
if (positivestatisticsDict != null && !positivestatisticsDict.isEmpty()) {
|
||||||
List<String> allKeywords = new ArrayList<>();
|
List<String> allKeywords = new ArrayList<>();
|
||||||
@ -599,19 +610,17 @@ public class PatientexamlistController {
|
|||||||
allKeywords.addAll(Arrays.asList(keywords));
|
allKeywords.addAll(Arrays.asList(keywords));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!allKeywords.isEmpty()) {
|
if (!allKeywords.isEmpty()) {
|
||||||
positiveCount = ecganalysisparasMapper.selectList_positive(
|
positiveCount = ecganalysisparasMapper.selectList_positive(
|
||||||
orgId,
|
orgId,
|
||||||
null,
|
null,
|
||||||
null,
|
null,
|
||||||
allKeywords.toArray(new String[0])
|
allKeywords.toArray(new String[0])
|
||||||
).size();
|
).size();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
statistics.setPositiveCount(positiveCount);
|
return positiveCount;
|
||||||
|
|
||||||
return success(statistics);
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
|
@ -32,4 +32,7 @@ public class PatientexamlistCountVO {
|
|||||||
|
|
||||||
@Schema(description = "申请")
|
@Schema(description = "申请")
|
||||||
private String sq;
|
private String sq;
|
||||||
|
@Schema(description = " 阳性患者(阳性字典)")
|
||||||
|
private String dictyx;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user