Browse Source

修改后台诊疗档案评估导出

newMaster
zzc 3 months ago
parent
commit
9a26d30bee
  1. 12
      acupuncture-admin/src/main/java/com/acupuncture/web/controller/web/AdminPmsTreatmentController.java
  2. 43
      acupuncture-admin/src/main/java/com/acupuncture/web/controller/web/ExternalController.java
  3. 16
      acupuncture-admin/src/main/java/com/acupuncture/web/task/TaskController.java
  4. 3
      acupuncture-framework/src/main/java/com/acupuncture/framework/aspectj/AdminGlobalDataSourceAspect.java
  5. 2
      acupuncture-framework/src/main/java/com/acupuncture/framework/config/SecurityConfig.java
  6. 2
      acupuncture-system/src/main/java/com/acupuncture/system/domain/dto/AdminTenantUserDto.java
  7. 2
      acupuncture-system/src/main/java/com/acupuncture/system/domain/dto/ExternalDto.java
  8. 2
      acupuncture-system/src/main/java/com/acupuncture/system/domain/dto/FmsFollowupDto.java
  9. 4
      acupuncture-system/src/main/java/com/acupuncture/system/domain/vo/PmsTreatmentVo.java
  10. 40
      acupuncture-system/src/main/java/com/acupuncture/system/service/impl/ExternalServiceImpl.java
  11. 47
      acupuncture-system/src/main/java/com/acupuncture/system/service/impl/PmsTreatmentServiceImpl.java
  12. 1
      acupuncture-system/src/main/java/com/acupuncture/system/service/impl/ScreeningServiceImpl.java
  13. 3
      acupuncture-system/src/main/resources/mapper/dao/AdminDmsUserDao.xml
  14. 3
      acupuncture-system/src/main/resources/mapper/dao/ScreeningDetailDao.xml

12
acupuncture-admin/src/main/java/com/acupuncture/web/controller/web/AdminPmsTreatmentController.java

@ -85,14 +85,14 @@ public class AdminPmsTreatmentController {
DynamicDataSourceContextHolder.setDataSourceType(dataSourceKey); DynamicDataSourceContextHolder.setDataSourceType(dataSourceKey);
} }
@ApiOperation("导出诊疗档案评估报告") // @ApiOperation("导出诊疗档案评估报告")
@PostMapping("/exportTreatmentPg") // @PostMapping("/exportTreatmentPg")
public JsonResponse<String> exportTreatmentPg(HttpServletResponse response, @RequestBody @Validated PmsTreatmentDto.ExportVO dto){ // public JsonResponse<String> exportTreatmentPg(HttpServletResponse response, @RequestBody @Validated PmsTreatmentDto.ExportVO dto){
return JsonResponse.ok(treatmentService.exportTreatmentPg(response, dto)); // return JsonResponse.ok(treatmentService.exportTreatmentPg(response, dto));
} // }
@ApiOperation("后台导出诊疗档案评估报告") @ApiOperation("后台导出诊疗档案评估报告")
@PostMapping("/admin/exportTreatmentPg") @PostMapping("/exportTreatmentPg")
public JsonResponse<String> adminExportTreatmentPg(HttpServletResponse response, @RequestBody @Validated PmsTreatmentDto.ExportVO dto){ public JsonResponse<String> adminExportTreatmentPg(HttpServletResponse response, @RequestBody @Validated PmsTreatmentDto.ExportVO dto){
return JsonResponse.ok(treatmentService.adminExportTreatmentPg(response, dto)); return JsonResponse.ok(treatmentService.adminExportTreatmentPg(response, dto));
} }

43
acupuncture-admin/src/main/java/com/acupuncture/web/controller/web/ExternalController.java

@ -1,8 +1,10 @@
package com.acupuncture.web.controller.web; package com.acupuncture.web.controller.web;
import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.collection.CollectionUtil; import cn.hutool.core.collection.CollectionUtil;
import cn.hutool.core.util.ObjectUtil; import cn.hutool.core.util.ObjectUtil;
import cn.hutool.core.util.StrUtil; import cn.hutool.core.util.StrUtil;
import cn.hutool.json.JSONArray;
import com.acupuncture.common.annotation.Anonymous; import com.acupuncture.common.annotation.Anonymous;
import com.acupuncture.common.config.RuoYiConfig; import com.acupuncture.common.config.RuoYiConfig;
import com.acupuncture.common.core.domain.AjaxResult; import com.acupuncture.common.core.domain.AjaxResult;
@ -35,6 +37,7 @@ import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List; import java.util.List;
/** /**
@ -103,24 +106,28 @@ public class ExternalController {
// return "upload ok"; // return "upload ok";
// } // }
// @Anonymous @Anonymous
// @ApiOperation("上传数据") @ApiOperation("上传数据")
// @PostMapping("/http/uploadMemberInfo") @PostMapping("/http/uploadMemberInfo")
// public Object add(@RequestBody String str){ public Object add(@RequestBody String str){
// JsonArray jsonValues = new JsonArray();
// JSONArray objects = new JSONArray(str);
// log.info("上传数据dto123:{}",list); List<ExternalDto.RtcfInfoDto> list = new ArrayList<>();
//// List<ExternalDto.RtcfInfoDto> list = dto.getList(); for (Object object : objects) {
// int add = 0; list.add(BeanUtil.copyProperties(object, ExternalDto.RtcfInfoDto.class));
// for (ExternalDto.RtcfInfoDto rtcfInfoDto : list) { }
// checkoutData(rtcfInfoDto.getUUID()); log.info("上传数据dto123:{}",list);
// add += externalService.add(rtcfInfoDto); // List<ExternalDto.RtcfInfoDto> list = dto.getList();
// } int add = 0;
// if (add == 0) { for (ExternalDto.RtcfInfoDto rtcfInfoDto : list) {
// return "upload fail"; checkoutData(rtcfInfoDto.getUUID());
// } add += externalService.add(rtcfInfoDto);
// return "upload ok"; }
// } if (add == 0) {
return "upload fail";
}
return "upload ok";
}
@Anonymous @Anonymous
@ApiOperation("上传数据") @ApiOperation("上传数据")

16
acupuncture-admin/src/main/java/com/acupuncture/web/task/TaskController.java

@ -17,6 +17,7 @@ import com.acupuncture.system.persist.dao.FmsFollowupDao;
import com.acupuncture.system.persist.dao.UmsDataSourceDao; import com.acupuncture.system.persist.dao.UmsDataSourceDao;
import com.acupuncture.system.persist.mapper.FmsFollowupTaskMapper; import com.acupuncture.system.persist.mapper.FmsFollowupTaskMapper;
import com.acupuncture.system.persist.mapper.FmsPatientQueueRelationMapper; import com.acupuncture.system.persist.mapper.FmsPatientQueueRelationMapper;
import com.acupuncture.system.service.FmsFollowupQueueService;
import com.acupuncture.system.service.FmsFollowupService; import com.acupuncture.system.service.FmsFollowupService;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
@ -60,6 +61,8 @@ public class TaskController {
private FmsPatientQueueRelationMapper fmsPatientQueueRelationMapper; private FmsPatientQueueRelationMapper fmsPatientQueueRelationMapper;
@Resource @Resource
private RedisCache redisCache; private RedisCache redisCache;
@Resource
private FmsFollowupQueueService fmsFollowupQueueService;
@ApiOperation("定时任务添加随访工单") @ApiOperation("定时任务添加随访工单")
@PostMapping("/task") @PostMapping("/task")
@ -78,10 +81,14 @@ public class TaskController {
} }
//查询公共队列 //查询公共队列
List<Object> queueResults = redisCache.getCacheList("common_followup_queue"); List<Object> queueResults = redisCache.getCacheList("common_followup_queue");
List<FmsFollowupVo.FollowupQueueVO> followupQueueVOS = new ArrayList<>();
if (CollectionUtil.isEmpty(queueResults)) {
followupQueueVOS = fmsFollowupQueueService.queryCommonQueue(null);
}
// List<FmsFollowupVo.FollowupQueueVO> queueResults = fmsFollowupDao.queryCommonQueue(null); // List<FmsFollowupVo.FollowupQueueVO> queueResults = fmsFollowupDao.queryCommonQueue(null);
//切换数据源 //切换数据源
for (UmsDataSourceVo.Result result : query) { for (UmsDataSourceVo.Result result : query) {
if ("MASTER".equals(result.getDataSourceKey())) { if ("MASTER".equals(result.getDataSourceKey()) || "SXYFYY".equals(result.getDataSourceKey())) {
continue; continue;
} }
changeDataSource(result); changeDataSource(result);
@ -92,11 +99,11 @@ public class TaskController {
if (CollectionUtil.isEmpty(queueList)) { if (CollectionUtil.isEmpty(queueList)) {
if (CollectionUtil.isEmpty(queueResults)) { if (CollectionUtil.isEmpty(queueResults)) {
queueList = BeanUtil.copyToList(queueResults, FmsFollowupVo.FollowupQueueVO.class); queueList = followupQueueVOS;
} }
} else { } else {
if (CollectionUtil.isEmpty(queueResults)) { if (CollectionUtil.isEmpty(queueResults)) {
queueList.addAll(BeanUtil.copyToList(queueResults, FmsFollowupVo.FollowupQueueVO.class)); queueList.addAll(followupQueueVOS);
} }
} }
for (FmsFollowupVo.FollowupQueueVO followupQueueVO : queueList) { for (FmsFollowupVo.FollowupQueueVO followupQueueVO : queueList) {
@ -106,6 +113,9 @@ public class TaskController {
// changeDataSource(result); // changeDataSource(result);
FmsFollowupDto.FollowupPatientQueryDTO followupPatientQueryDTO = new FmsFollowupDto.FollowupPatientQueryDTO(); FmsFollowupDto.FollowupPatientQueryDTO followupPatientQueryDTO = new FmsFollowupDto.FollowupPatientQueryDTO();
followupPatientQueryDTO.setQueueId(followupQueueVO.getId()); followupPatientQueryDTO.setQueueId(followupQueueVO.getId());
followupPatientQueryDTO.setTenantId(followupQueueVO.getTenantId());
changeDataSource(result);
List<FmsFollowupVo.FollowupPatient> patientList = fmsFollowupService.queryPatient(followupPatientQueryDTO); List<FmsFollowupVo.FollowupPatient> patientList = fmsFollowupService.queryPatient(followupPatientQueryDTO);
// List<FmsFollowupVo.FollowupPatient> patientList = fmsFollowupDao.queryPatient(followupQueueVO.getId(), null, null); // List<FmsFollowupVo.FollowupPatient> patientList = fmsFollowupDao.queryPatient(followupQueueVO.getId(), null, null);
if (CollectionUtil.isEmpty(patientList)) { if (CollectionUtil.isEmpty(patientList)) {

3
acupuncture-framework/src/main/java/com/acupuncture/framework/aspectj/AdminGlobalDataSourceAspect.java

@ -42,7 +42,8 @@ public class AdminGlobalDataSourceAspect {
private static final String DATASOURCE_NOT_FOUND = "未找到数据源"; private static final String DATASOURCE_NOT_FOUND = "未找到数据源";
@Pointcut("(execution(* com.acupuncture.web.controller..*.*(..))) && !@annotation(com.acupuncture.common.annotation.DataSource)") @Pointcut("(execution(* com.acupuncture.web.controller..*.*(..))) && !@annotation(com.acupuncture.common.annotation.DataSource)" +
"|| @within(com.acupuncture.web.task.*)")
public void dsPointCut() { public void dsPointCut() {
} }

2
acupuncture-framework/src/main/java/com/acupuncture/framework/config/SecurityConfig.java

@ -114,7 +114,7 @@ public class SecurityConfig
.authorizeHttpRequests((requests) -> { .authorizeHttpRequests((requests) -> {
permitAllUrl.getUrls().forEach(url -> requests.antMatchers(url).permitAll()); permitAllUrl.getUrls().forEach(url -> requests.antMatchers(url).permitAll());
// 对于登录login 注册register 验证码captchaImage 允许匿名访问 // 对于登录login 注册register 验证码captchaImage 允许匿名访问
requests.antMatchers("/login", "/register", "/captchaImage", "/web/login", "/web/queryTenantById", "/api/http/getUserInfo", "/api/http/addReportImage", "/api/http/uploadMemberInfo").permitAll() requests.antMatchers("/login", "/register", "/captchaImage", "/web/login", "/web/queryTenantById", "/api/http/getUserInfo", "/api/http/addReportImage", "/api/http/uploadMemberInfo", "/task/task").permitAll()
// 静态资源,可匿名访问 // 静态资源,可匿名访问
.antMatchers(HttpMethod.GET, "/", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**", "/static/**").permitAll() .antMatchers(HttpMethod.GET, "/", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**", "/static/**").permitAll()
.antMatchers("/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**").permitAll() .antMatchers("/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**").permitAll()

2
acupuncture-system/src/main/java/com/acupuncture/system/domain/dto/AdminTenantUserDto.java

@ -71,6 +71,8 @@ public class AdminTenantUserDto {
@Data @Data
public static class Query { public static class Query {
private Long tenantId; private Long tenantId;
private String tenantName;
} }
} }

2
acupuncture-system/src/main/java/com/acupuncture/system/domain/dto/ExternalDto.java

@ -2,6 +2,7 @@ package com.acupuncture.system.domain.dto;
import com.acupuncture.system.domain.po.UplReportImage; import com.acupuncture.system.domain.po.UplReportImage;
import com.acupuncture.system.domain.po.UplRtcfInfo; import com.acupuncture.system.domain.po.UplRtcfInfo;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import lombok.Data; import lombok.Data;
@ -34,6 +35,7 @@ public class ExternalDto {
private String message; private String message;
@JsonProperty(value = "UUID")
private String UUID; private String UUID;
private String deviceID; private String deviceID;

2
acupuncture-system/src/main/java/com/acupuncture/system/domain/dto/FmsFollowupDto.java

@ -107,6 +107,8 @@ public class FmsFollowupDto {
private Integer educationYears; private Integer educationYears;
private Date dischargeTime;
private String phone; private String phone;
private Byte idCardType; private Byte idCardType;

4
acupuncture-system/src/main/java/com/acupuncture/system/domain/vo/PmsTreatmentVo.java

@ -94,9 +94,6 @@ public class PmsTreatmentVo {
private Date createTime; private Date createTime;
public TreatmentRecordVO() {
}
public TreatmentRecordVO(PmsTreatment pmsTreatment) { public TreatmentRecordVO(PmsTreatment pmsTreatment) {
this.treatmentId = pmsTreatment.getId(); this.treatmentId = pmsTreatment.getId();
this.name = pmsTreatment.getName(); this.name = pmsTreatment.getName();
@ -118,7 +115,6 @@ public class PmsTreatmentVo {
this.diagnosisName = pmsTreatment.getDiagnosisName(); this.diagnosisName = pmsTreatment.getDiagnosisName();
this.status = pmsTreatment.getStatus(); this.status = pmsTreatment.getStatus();
this.organizationId = pmsTreatment.getTenantId(); this.organizationId = pmsTreatment.getTenantId();
} }
} }

40
acupuncture-system/src/main/java/com/acupuncture/system/service/impl/ExternalServiceImpl.java

@ -53,7 +53,7 @@ public class ExternalServiceImpl implements ExternalService {
uplRtcfInfos.setId(IdUtil.getSnowflakeNextId()); uplRtcfInfos.setId(IdUtil.getSnowflakeNextId());
uplRtcfInfos.setCreateTime(new Date()); uplRtcfInfos.setCreateTime(new Date());
uplRtcfInfos.setDelFlag((byte) 0); uplRtcfInfos.setDelFlag((byte) 0);
uplRtcfInfos.setUuid(rtcfInfoDto.getUUID());
uplRtcfInfos.setAsmi(rtcfInfoDto.getASMI()); uplRtcfInfos.setAsmi(rtcfInfoDto.getASMI());
uplRtcfInfos.setBmi(rtcfInfoDto.getBMI()); uplRtcfInfos.setBmi(rtcfInfoDto.getBMI());
uplRtcfInfos.setDeviceId(rtcfInfoDto.getDeviceID()); uplRtcfInfos.setDeviceId(rtcfInfoDto.getDeviceID());
@ -100,6 +100,44 @@ public class ExternalServiceImpl implements ExternalService {
uplRtcfInfos.setRlFat(rtcfInfoDto.getRL_fat()); uplRtcfInfos.setRlFat(rtcfInfoDto.getRL_fat());
uplRtcfInfos.setTrWater(rtcfInfoDto.getTR_water()); uplRtcfInfos.setTrWater(rtcfInfoDto.getTR_water());
uplRtcfInfos.setLaWater(rtcfInfoDto.getLA_water()); uplRtcfInfos.setLaWater(rtcfInfoDto.getLA_water());
uplRtcfInfos.setBoneMax(rtcfInfoDto.getBoneMax());
uplRtcfInfos.setBoneMin(rtcfInfoDto.getBoneMin());
uplRtcfInfos.setBone(rtcfInfoDto.getBone());
uplRtcfInfos.setProtein(rtcfInfoDto.getProtein());
uplRtcfInfos.setWater(rtcfInfoDto.getWater());
uplRtcfInfos.setIcw(rtcfInfoDto.getICW());
uplRtcfInfos.setEcw(rtcfInfoDto.getECW());
uplRtcfInfos.setMuscleControl(rtcfInfoDto.getMuscle_control());
uplRtcfInfos.setRaWater(rtcfInfoDto.getRA_water());
uplRtcfInfos.setRlWater(rtcfInfoDto.getRL_water());
uplRtcfInfos.setLaMuscle(rtcfInfoDto.getLA_muscle());
uplRtcfInfos.setTrMuscle(rtcfInfoDto.getTR_muscle());
uplRtcfInfos.setRaMuscle(rtcfInfoDto.getRA_muscle());
uplRtcfInfos.setRlMuscle(rtcfInfoDto.getRL_muscle());
uplRtcfInfos.setTrBone(rtcfInfoDto.getTR_bone());
uplRtcfInfos.setLaBone(rtcfInfoDto.getLA_bone());
uplRtcfInfos.setRaBone(rtcfInfoDto.getRA_bone());
uplRtcfInfos.setRlBone(rtcfInfoDto.getRL_bone());
uplRtcfInfos.setBoneMin(rtcfInfoDto.getBoneMin());
uplRtcfInfos.setBoneMax(rtcfInfoDto.getBoneMax());
uplRtcfInfos.setVfiMax(rtcfInfoDto.getVFIMax());
uplRtcfInfos.setVfiMin(rtcfInfoDto.getVFIMin());
uplRtcfInfos.setWhr(rtcfInfoDto.getWHR());
uplRtcfInfos.setWhrMax(rtcfInfoDto.getWHRMax());
uplRtcfInfos.setWhrMin(rtcfInfoDto.getWHRMin());
uplRtcfInfos.setEdemaMax(rtcfInfoDto.getEdemaMax());
uplRtcfInfos.setEdemaMin(rtcfInfoDto.getEdemaMin());
uplRtcfInfos.setEdema(rtcfInfoDto.getEdema());
uplRtcfInfos.setProteinMax(rtcfInfoDto.getProteinMax());
uplRtcfInfos.setProteinMin(rtcfInfoDto.getProteinMin());
uplRtcfInfos.setWaterMax(rtcfInfoDto.getWaterMax());
uplRtcfInfos.setWaterMin(rtcfInfoDto.getWaterMin());
uplRtcfInfos.setMuscleMax(rtcfInfoDto.getMuscleMax());
uplRtcfInfos.setWaterMin(rtcfInfoDto.getWaterMin());
uplRtcfInfos.setSmmMax(rtcfInfoDto.getSMMMax());
uplRtcfInfos.setSmmMin(rtcfInfoDto.getSMMMin());
uplRtcfInfos.setBmiMax(rtcfInfoDto.getBMIMax());
uplRtcfInfos.setBmiMin(rtcfInfoDto.getBMIMin());
int insert = uplRtcfInfoMapper.insert(uplRtcfInfos); int insert = uplRtcfInfoMapper.insert(uplRtcfInfos);
if (insert > 0) { if (insert > 0) {

47
acupuncture-system/src/main/java/com/acupuncture/system/service/impl/PmsTreatmentServiceImpl.java

@ -284,6 +284,7 @@ public class PmsTreatmentServiceImpl implements PmsTreatmentService {
patientQueueRelation.setId(IdUtil.getSnowflakeNextId()); patientQueueRelation.setId(IdUtil.getSnowflakeNextId());
patientQueueRelation.setDelFlag((byte) 0); patientQueueRelation.setDelFlag((byte) 0);
patientQueueRelation.setIdCard(pmsTreatment.getIdCard()); patientQueueRelation.setIdCard(pmsTreatment.getIdCard());
patientQueueRelation.setDischargeTime(pmsTreatment.getDischargeTime());
patientQueueRelation.setIdCardType(pmsTreatment.getIdCardType().byteValue()); patientQueueRelation.setIdCardType(pmsTreatment.getIdCardType().byteValue());
patientQueueRelation.setCreateBy(SecurityUtils.getUsername()); patientQueueRelation.setCreateBy(SecurityUtils.getUsername());
patientQueueRelation.setPatientId(pmsTreatment.getPatientId()); patientQueueRelation.setPatientId(pmsTreatment.getPatientId());
@ -298,6 +299,7 @@ public class PmsTreatmentServiceImpl implements PmsTreatmentService {
patientQueueRelation.setIdCard(pmsTreatment.getIdCard()); patientQueueRelation.setIdCard(pmsTreatment.getIdCard());
patientQueueRelation.setIdCardType(pmsTreatment.getIdCardType().byteValue()); patientQueueRelation.setIdCardType(pmsTreatment.getIdCardType().byteValue());
patientQueueRelation.setCreateBy(SecurityUtils.getUsername()); patientQueueRelation.setCreateBy(SecurityUtils.getUsername());
patientQueueRelation.setDischargeTime(pmsTreatment.getDischargeTime());
patientQueueRelation.setPatientId(pmsTreatment.getPatientId()); patientQueueRelation.setPatientId(pmsTreatment.getPatientId());
patientQueueRelation.setQueueId(null); patientQueueRelation.setQueueId(null);
patientQueueRelation.setCreateTime(new Date()); patientQueueRelation.setCreateTime(new Date());
@ -345,8 +347,51 @@ public class PmsTreatmentServiceImpl implements PmsTreatmentService {
} else { } else {
recordVoMap = MapUtil.newHashMap(); recordVoMap = MapUtil.newHashMap();
} }
treatmentRecordVO.setRecordValDict(recordVoMap);
//查询公共队列
List<Object> commonFollowupQueue = redisCache.getCacheList("common_followup_queue");
PmsTreatmentRecordExample pmsTreatmentRecordExample = new PmsTreatmentRecordExample();
pmsTreatmentRecordExample.createCriteria().andDelFlagEqualTo((byte) 0).andQuestionCodeEqualTo("JBXX_ZYZD").andTreatmentIdEqualTo(pmsTreatment.getId());
List<PmsTreatmentRecord> pmsTreatmentRecords = pmsTreatmentRecordMapper.selectByExample(pmsTreatmentRecordExample);
if (CollectionUtil.isNotEmpty(pmsTreatmentRecords)) {
String answer = pmsTreatmentRecords.get(0).getAnswer();
if (StrUtil.isNotEmpty(answer)) {
pmsTreatment.setDiagnosisName(answer.replace("!@#", ","));
}
}
List<PmsTreatmentVo.TreatmentVO.QueueVo> queueVos = fmsFollowupDao.queryQueueListByPatientId(pmsTreatment.getPatientId());
if (CollectionUtil.isNotEmpty(queueVos)) {
Map<Long, FmsFollowupVo.FollowupQueueVO> map = new HashMap<>();
if (CollectionUtil.isNotEmpty(commonFollowupQueue)) {
List<FmsFollowupVo.FollowupQueueVO> followupQueueVOS1 = BeanUtil.copyToList(commonFollowupQueue, FmsFollowupVo.FollowupQueueVO.class);
map = followupQueueVOS1.stream().collect(Collectors.toMap(FmsFollowupVo.FollowupQueueVO::getId, Function.identity()));
}
List<PmsTreatmentVo.TreatmentVO.QueueVo> list = new ArrayList<>();
for (PmsTreatmentVo.TreatmentVO.QueueVo queueVo : queueVos) {
if (queueVo == null || queueVo.getQueueId() == null) {
list.add(queueVo);
continue;
}
FmsFollowupVo.FollowupQueueVO followupQueueVO = map.get(queueVo.getQueueId());
if (followupQueueVO != null) {
queueVo.setQueueName(followupQueueVO.getName());
}
}
queueVos.removeAll(list);
}
PmsTreatmentVo.TreatmentRecord treatmentRecord = new PmsTreatmentVo.TreatmentRecord();
List<String> queueIdList = new ArrayList<>();
if (CollectionUtil.isNotEmpty(queueVos)) {
for (PmsTreatmentVo.TreatmentVO.QueueVo vo : queueVos) {
queueIdList.add(vo.getQueueId() + "");
}
}
treatmentRecord.setValid(true);
treatmentRecord.setAnswerString(queueIdList.stream().collect(Collectors.joining("!@#")));
treatmentRecord.setQuestionCode("SFDL");
recordVoMap.put("SFDL", CollectionUtil.newArrayList(treatmentRecord));
treatmentRecordVO.setRecordValDict(recordVoMap);
return treatmentRecordVO; return treatmentRecordVO;
} }

1
acupuncture-system/src/main/java/com/acupuncture/system/service/impl/ScreeningServiceImpl.java

@ -320,6 +320,7 @@ public class ScreeningServiceImpl implements IScreeningService {
} }
@Override @Override
public PageInfo<ScrScreenVo.Result> queryDetailByPage(ScreeningDto.Query param, Integer pageNum, Integer pageSize) { public PageInfo<ScrScreenVo.Result> queryDetailByPage(ScreeningDto.Query param, Integer pageNum, Integer pageSize) {
param.setTenantId(SecurityUtils.getTenantId());
List<ScrScreenVo.Result> results = screeningDetailDao.queryResult(null, null, param); List<ScrScreenVo.Result> results = screeningDetailDao.queryResult(null, null, param);
if (CollectionUtil.isNotEmpty(results)) { if (CollectionUtil.isNotEmpty(results)) {
List<ScrScreenVo.ScreeningDetailVo> screeningDetailVos = screeningDetailDao.queryDetailList(results.stream().map(ScrScreenVo.Result::getId).collect(Collectors.toList())); List<ScrScreenVo.ScreeningDetailVo> screeningDetailVos = screeningDetailDao.queryDetailList(results.stream().map(ScrScreenVo.Result::getId).collect(Collectors.toList()));

3
acupuncture-system/src/main/resources/mapper/dao/AdminDmsUserDao.xml

@ -30,6 +30,9 @@
<if test="dto.tenantId != null"> <if test="dto.tenantId != null">
AND u.tenant_id = #{dto.tenantId} AND u.tenant_id = #{dto.tenantId}
</if> </if>
<if test="dto.tenantName != null">
AND t.name like concat('%',#{dto.tenantName},'%')
</if>
</where> </where>
</select> </select>

3
acupuncture-system/src/main/resources/mapper/dao/ScreeningDetailDao.xml

@ -87,6 +87,9 @@
) )
</if> </if>
</if> </if>
<if test="param.tenantId != null">
and r.tenant_id = #{tenantId}
</if>
<if test="param.startTime != null and param.startTime != ''"> <if test="param.startTime != null and param.startTime != ''">
and r.create_time &gt;= #{param.startTime} and r.create_time &gt;= #{param.startTime}
</if> </if>

Loading…
Cancel
Save