|
@@ -6,6 +6,7 @@ import com.alibaba.fastjson.TypeReference;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.diagbot.client.AuthServiceClient;
|
|
|
import com.diagbot.dto.*;
|
|
|
import com.diagbot.entity.*;
|
|
@@ -2091,6 +2092,30 @@ public class BehospitalInfoFacade extends BehospitalInfoServiceImpl {
|
|
|
return res;
|
|
|
}
|
|
|
|
|
|
+ public IPage<BehospitalInfoDeptDTO> pageDeptFirstAnalyze(BehospitalPageVO behospitalPageVO) {
|
|
|
+ behospitalPageSet(behospitalPageVO);
|
|
|
+ behospitalPageVO.setUserId(Long.parseLong(SysUserUtils.getCurrentPrincipleID()));
|
|
|
+ IPage<BehospitalInfoDeptDTO> res = getPageByDept(behospitalPageVO);
|
|
|
+ List<BehospitalInfoDeptDTO> records = res.getRecords();
|
|
|
+ List<BehospitalInfoDeptDTO> resRecords = new ArrayList<>();
|
|
|
+ for (BehospitalInfoDeptDTO record : records) {
|
|
|
+ QcresultInfo qcresultInfo = qcresultInfoFacade.lambdaQuery()
|
|
|
+ .like(QcresultInfo::getBehospitalCode, record.getBehospitalCode())
|
|
|
+ .orderByAsc(QcresultInfo::getGmtCreate)
|
|
|
+ .last("LIMIT 1")
|
|
|
+ .one();
|
|
|
+ if(qcresultInfo != null && !qcresultInfo.getLevel().equals("甲")){
|
|
|
+ resRecords.add(record);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ IPage<BehospitalInfoDeptDTO> resultPage = new Page<>(res.getCurrent(), res.getSize(), res.getTotal());
|
|
|
+ resultPage.setRecords(resRecords); // 设置记录
|
|
|
+ resultPage.setTotal(resRecords.size());
|
|
|
+ resultPage.setSize(resRecords.size());
|
|
|
+ return resultPage;
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 评分-运行质控
|
|
|
*
|