| | |
| | | @ApiOperation("æ£è
é®é¢ç»æè®°å½(å¤é¾)") |
| | | @PostMapping("/saveQuestionAnswer") |
| | | public AjaxResult saveQuestionAnswer(@RequestBody ServiceSubTaskAnswerReq serviceSubTaskAnswerReq) { |
| | | log.error("-----saveQuestionAnsweræ¹æ³çå
¥å为ï¼{}", serviceSubTaskAnswerReq); |
| | | return toAjax(serviceSubtaskAnswerService.saveQuestionAnswer(serviceSubTaskAnswerReq, 0L)); |
| | | } |
| | | |
| | |
| | | @ApiOperation("æ£è
é®é¢ç»æè®°å½(å°ç¨å
å¤é¾)") |
| | | @PostMapping("/saveQuestionAnswerXCH") |
| | | public AjaxResult saveQuestionAnswerXCH(@RequestBody ServiceSubTaskAnswerReq serviceSubTaskAnswerReq) { |
| | | log.error("-------saveQuestionAnswerXCHçå
¥åçå¼ä¸ºï¼{}", serviceSubTaskAnswerReq); |
| | | return toAjax(serviceSubtaskAnswerService.saveQuestionAnswer(serviceSubTaskAnswerReq, 1L)); |
| | | } |
| | | |
| | |
| | | # username: smartor |
| | | # password: Smartor.2023 |
| | | # driverClassName: com.mysql.cj.jdbc.Driver |
| | | # æ°å |
| | | # url: jdbc:mysql://192.168.191.181:3308/smartor?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 |
| | | # username: smartor |
| | | # password: Smartor.2023 |
| | | # driverClassName: com.mysql.cj.jdbc.Driver |
| | | |
| | | # å
¬å¸äº |
| | | url: jdbc:mysql://116.62.18.175:6002/smartor_lisui?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 |
| | | username: hxsoft |
| | | password: Hxerp2000 |
| | | # # æ°å |
| | | url: jdbc:mysql://192.168.191.181:3308/smartor?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 |
| | | username: smartor |
| | | password: Smartor.2023 |
| | | driverClassName: com.mysql.cj.jdbc.Driver |
| | | |
| | | # # å
¬å¸äº |
| | | # url: jdbc:mysql://116.62.18.175:6002/smartor?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 |
| | | # username: hxsoft |
| | | # password: Hxerp2000 |
| | | # driverClassName: com.mysql.cj.jdbc.Driver |
| | | |
| | | |
| | | # ä»åºæ°æ®æº |
| | | slave: |
| | | # 仿°æ®æºå¼å
³/é»è®¤å
³é(å
¬å¸) |
| | |
| | | //纸质 |
| | | } else if (descByCode.equals("微信å°ç¨åº")) { |
| | | //微信å°ç¨åº |
| | | if (ivrTask1.getPatCycle() == 1) { |
| | | log.error("ivrTask1çå¼ä¸ºï¼{}", ivrTask1); |
| | | if (ObjectUtils.isNotEmpty(ivrTask1) && ivrTask1.getPatCycle() == 1) { |
| | | //说æè¯¥ä»»å¡çæ£è
æ¯å¾ªç¯æ§è¡ç |
| | | ServiceSubtaskVO serviceSubtaskVO = new ServiceSubtaskVO(); |
| | | serviceSubtaskVO.setTaskid(ivrTask1.getTaskid()); |
| | |
| | | patArchive.setSex(thiedInhospInfo.getPatiRecordGender().equals("ç·") ? 1L : 2L); |
| | | patArchive.setNation(thiedInhospInfo.getPatiNation()); |
| | | patArchive.setNativePlace(thiedInhospInfo.getPatiNationality()); |
| | | patArchive.setPlaceOfResidence(thiedInhospInfo.getPatiHomeAddr()); |
| | | patArchive.setPlaceOfResidence(StringUtils.isNotEmpty(thiedInhospInfo.getPatiHomeAddr()) ? thiedInhospInfo.getPatiHomeAddr().replace("null", "") : ""); |
| | | try { |
| | | if (StringUtils.isNotEmpty(thiedInhospInfo.getPatiBirthday())) |
| | | patArchive.setBirthdate(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").parse(thiedInhospInfo.getPatiBirthday())); |
| | |
| | | patMedInhosp.setLeavehospitaldistrictcode(thiedInhospInfo.getCurrWardId()); |
| | | patMedInhosp.setLeavehospitaldistrictname(thiedInhospInfo.getCurrWardName()); |
| | | patMedInhosp.setLeaveldeptid(thiedInhospInfo.getCurrDeptCode()); |
| | | patMedInhosp.setOrgid("1"); |
| | | //妿æ¯åºé¢ï¼å
éè¿æ£è
ç¼å·åæµæ°´å·å»æ¥ä¸ä¸ï¼æ£è
æ¯å¦åå¨ï¼å¦æåå¨ï¼åè¿è¡ä¿®æ¹ |
| | | PatMedInhosp inhosp = new PatMedInhosp(); |
| | | inhosp.setPatno(patArchive.getPatientno()); |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.domain; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.ruoyi.common.core.domain.BaseEntity; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * @author æ¥æ¶ç¬¬ä¸æ¹æ£è
è¯æä¿¡æ¯ |
| | | * @date 2024-12-13 |
| | | */ |
| | | @Data |
| | | @ApiModel(value = "ExternalInHospPatientInfo", description = "æ¥æ¶ç¬¬ä¸æ¹æ£è
è¯æä¿¡æ¯") |
| | | public class ExternalDiagnosisInfo extends BaseEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @ApiModelProperty(value = "è¯æç±»å«ä»£ç ") |
| | | private String ZhenDuanLBDM; |
| | | |
| | | @ApiModelProperty(value = "è¯æç±»å«åç§°") |
| | | private String ZhenDuanLBMC; |
| | | |
| | | @ApiModelProperty(value = "ä¸å»è¯ææ å¿") |
| | | private String ZhongYiZDBZ; |
| | | |
| | | @ApiModelProperty(value = "ä¸å»ç侯 ID") |
| | | private String ZhongYiZHID; |
| | | |
| | | @ApiModelProperty(value = "ä¸å»ç侯åç§°") |
| | | private String ZhongYiZHMC; |
| | | |
| | | @ApiModelProperty(value = "è¯æå»ç ID") |
| | | private String ZhenDuanYSID; |
| | | |
| | | @ApiModelProperty(value = "è¯æå»çå§å") |
| | | private String ZhenDuanYSXM; |
| | | |
| | | @ApiModelProperty(value = "è¯ææ¶é´") |
| | | private String ZhenDuanSJ; |
| | | |
| | | @ApiModelProperty(value = "åç
æ¥æ") |
| | | private String FaBingRQ; |
| | | |
| | | @ApiModelProperty(value = "è¯æ ID") |
| | | private String ZhenDuanID; |
| | | |
| | | @ApiModelProperty(value = "è¯æåç§°") |
| | | private String ZhenDuanMC; |
| | | |
| | | @ApiModelProperty(value = "è¯ä»¶å·ç ") |
| | | private String ZhengJianHM; |
| | | |
| | | @ApiModelProperty(value = "æ§å«ä»£ç ") |
| | | private String XingBieDM; |
| | | |
| | | @ApiModelProperty(value = "æ§å«åç§°") |
| | | private String XingBieMC; |
| | | |
| | | @ApiModelProperty(value = "åºçæ¥æ") |
| | | private Date ChuShengRQ; |
| | | |
| | | @ApiModelProperty(value = "å¹´é¾") |
| | | private Long NianLing; |
| | | |
| | | @ApiModelProperty(value = "å¹´é¾åä½") |
| | | private String NianLingDW; |
| | | |
| | | @ApiModelProperty(value = "å½åç§å®¤ID å
¥é¢ç§å®¤ ID") |
| | | private String DangQianKSID; |
| | | |
| | | @ApiModelProperty(value = "å½åç§å®¤åç§° å
¥é¢ç§å®¤åç§°") |
| | | private String DangQianKSMC; |
| | | |
| | | @ApiModelProperty(value = "å½åç
åºID å
¥é¢ç
åºID") |
| | | private String DangQianBQID; |
| | | |
| | | @ApiModelProperty(value = "å½åç
åºåç§° å
¥é¢ç
åºåç§°") |
| | | private String DangQianBQMC; |
| | | |
| | | @ApiModelProperty(value = "å½ååºä½ID å
¥é¢åºä½ ID") |
| | | private String DangQianCWID; |
| | | |
| | | @ApiModelProperty(value = "å½ååºä½åç§° å
¥é¢åºä½åç§°") |
| | | private String DangQianCWMC; |
| | | |
| | | @ApiModelProperty(value = "ä½é¢æ¬¡æ°") |
| | | private Long ZhuYuanCS; |
| | | |
| | | @ApiModelProperty(value = "å
¥é¢æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date RuYuanSJ; |
| | | |
| | | @ApiModelProperty(value = "è´¹ç¨ç±»å« ID") |
| | | private String FeiYongLBID; |
| | | |
| | | @ApiModelProperty(value = "è´¹ç¨ç±»å«åç§°") |
| | | private String FeiYongLBMC; |
| | | |
| | | @ApiModelProperty(value = "è´¹ç¨æ§è´¨ ID") |
| | | private String FeiYongXZID; |
| | | |
| | | @ApiModelProperty(value = "è´¹ç¨æ§è´¨åç§°") |
| | | private String FeiYongXZMC; |
| | | |
| | | @ApiModelProperty(value = "èç³»çµè¯") |
| | | private String LianXiDH; |
| | | |
| | | @ApiModelProperty(value = "è系人çµè¯") |
| | | private String LianXiRDH; |
| | | |
| | | @ApiModelProperty(value = "åä½çµè¯") |
| | | private String DanWeiDH; |
| | | |
| | | @ApiModelProperty(value = "åä½åç§°") |
| | | private String DanWeiMC; |
| | | |
| | | @ApiModelProperty(value = "å©å§»ä»£ç ") |
| | | private String HunYinDM; |
| | | |
| | | @ApiModelProperty(value = "å©å§»åç§°") |
| | | private String HunYinMC; |
| | | |
| | | @ApiModelProperty(value = "èä¸ä»£ç ") |
| | | private String ZhiYeDM; |
| | | |
| | | @ApiModelProperty(value = "èä¸åç§°") |
| | | private String ZhiYeMC; |
| | | |
| | | @ApiModelProperty(value = "å½ç±ä»£ç ") |
| | | private String GuoJiDM; |
| | | |
| | | @ApiModelProperty(value = "å½ç±åç§°") |
| | | private String GuoJiMC; |
| | | |
| | | @ApiModelProperty(value = "æ°æä»£ç ") |
| | | private String MinZuDM; |
| | | |
| | | @ApiModelProperty(value = "æ°æåç§°") |
| | | private String MinZuMC; |
| | | |
| | | @ApiModelProperty(value = "æä½äºº ID") |
| | | private String CaoZuoRID; |
| | | |
| | | @ApiModelProperty(value = "æä½äººå§å") |
| | | private String CaoZuoRXM; |
| | | |
| | | @ApiModelProperty(value = "å©´å¿æ å¿") |
| | | private String YingErBZ; |
| | | |
| | | @ApiModelProperty(value = "æ¯äº²å°±è¯ ID") |
| | | private String MuQinZYJZID; |
| | | |
| | | @ApiModelProperty(value = "äº§å¦æ å¿") |
| | | private String ChanFuBZ; |
| | | |
| | | } |
| | |
| | | @ApiModelProperty(value = "ç»æåºé¢æ¥æ") |
| | | private Date endOutHospTime; |
| | | |
| | | /** |
| | | * ç§å®¤ä¸ç
åºçæ¥è¯¢æ¯orè¿æ¯and: 1:and(é»è®¤) 2:or |
| | | */ |
| | | @ApiModelProperty(value = "ç§å®¤ä¸ç
åºçæ¥è¯¢æ¯orè¿æ¯and: 1:and(é»è®¤) 2:or ") |
| | | private String deptOrDistrict = "1"; |
| | | |
| | | } |
| | |
| | | List<ServiceCheck> serviceChecks = serviceCheckMapper.selectServiceCheckList(serviceCheck); |
| | | //è·åæ£è
ä¿¡æ¯ |
| | | PatArchive patArchive = patArchiveMapper.selectPatArchiveByPatid(patMedInhosp1.getPatid()); |
| | | if (Objects.isNull(patArchive)) { |
| | | patMedInhosp1.setCheckFlag("2"); |
| | | patMedInhosp1.setLongTaskReason("æ£è
åºæ¬ä¿¡æ¯ä¸ºç©º"); |
| | | patMedInhospMapper.updatePatMedInhosp(patMedInhosp1); |
| | | continue; |
| | | } |
| | | try { |
| | | if (CollectionUtils.isEmpty(serviceChecks) || serviceChecks != null && serviceChecks.get(0).getCheckVisitFlag() == 1 || serviceChecks != null && serviceChecks.get(0).getCheckVisitFlag() == 3) { |
| | | //æ ¹æ®æ£è
æå¨ç§å®¤ï¼è·å该ç§å®¤çé¿æä»»å¡ |
| | |
| | | i = serviceSubtaskMapper.insertServiceSubtask(serviceSubtask); |
| | | } |
| | | } |
| | | } else { |
| | | i = serviceSubtaskMapper.insertServiceSubtask(serviceSubtask); |
| | | } |
| | | } else { |
| | | i = serviceSubtaskMapper.insertServiceSubtask(serviceSubtask); |
| | |
| | | |
| | | @Override |
| | | public Boolean addFinshJZInfo(Map dataMap) { |
| | | //è¿ä¸ªå
çç |
| | | log.error("ServiceExternalServiceImpl---addFinshJZInfoçæ°å¢çå¼ä¸ºï¼{}", dataMap); |
| | | // Map yeWuXX = (Map) dataMap.get("YeWuXX"); |
| | | // Map<String, Object> BingRenXX = (Map<String, Object>) yeWuXX.get("BingRenXX"); |
| | | // Map<String, Object> JiuZhenXX = (Map<String, Object>) yeWuXX.get("JiuZhenXX"); |
| | | // ExternalInHospPatientInfo externalInHospPatientInfo = BeanUtil.mapToBean(BingRenXX, ExternalInHospPatientInfo.class, true); |
| | | // PatMedOuthosp patMedOuthosp = new PatMedOuthosp(); |
| | | // patMedOuthosp.setOuthospno(externalInHospPatientInfo.getBingAnHao()); |
| | | // patMedOuthosp.setSerialnum(externalInHospPatientInfo.getBingAnHao()); |
| | | // patMedOuthosp.setPatid(Long.valueOf(externalInHospPatientInfo.getBingRenID())); |
| | | // patMedOuthosp.setPatname(externalInHospPatientInfo.getXingMing()); |
| | | // patMedOuthosp.setHospitalname(externalInHospPatientInfo.getZuZhiJGMC()); |
| | | // patMedOuthosp.setHospitalcode(externalInHospPatientInfo.getZuZhiJGID()); |
| | | // patMedOuthosp.setIcd10code(); |
| | | |
| | | |
| | | return null; |
| | | } |
| | |
| | | patArchive.setNation(externalInHospPatientInfo.getMinZuMC()); |
| | | patArchive.setNativePlace(externalInHospPatientInfo.getGuoJiMC()); |
| | | if (ObjectUtils.isNotEmpty(externalInHospPatientAddrInfo)) { |
| | | patArchive.setPlaceOfResidence(externalInHospPatientAddrInfo.getShengFenMC() + externalInHospPatientAddrInfo.getShiDiQMC() + externalInHospPatientAddrInfo.getXianQuMC() + externalInHospPatientAddrInfo.getXiangZhenMC() + externalInHospPatientAddrInfo.getCunJiMC() + externalInHospPatientAddrInfo.getQiTaXX()); |
| | | patArchive.setBirthplace(externalInHospPatientAddrInfo.getShengFenMC() + externalInHospPatientAddrInfo.getShiDiQMC() + externalInHospPatientAddrInfo.getXianQuMC() + externalInHospPatientAddrInfo.getXiangZhenMC() + externalInHospPatientAddrInfo.getCunJiMC() + externalInHospPatientAddrInfo.getQiTaXX()); |
| | | String por = externalInHospPatientAddrInfo.getShengFenMC() + externalInHospPatientAddrInfo.getShiDiQMC() + externalInHospPatientAddrInfo.getXianQuMC() + externalInHospPatientAddrInfo.getXiangZhenMC() + externalInHospPatientAddrInfo.getCunJiMC() + externalInHospPatientAddrInfo.getQiTaXX(); |
| | | patArchive.setPlaceOfResidence(por.replace(null, "")); |
| | | String bp = externalInHospPatientAddrInfo.getShengFenMC() + externalInHospPatientAddrInfo.getShiDiQMC() + externalInHospPatientAddrInfo.getXianQuMC() + externalInHospPatientAddrInfo.getXiangZhenMC() + externalInHospPatientAddrInfo.getCunJiMC() + externalInHospPatientAddrInfo.getQiTaXX(); |
| | | patArchive.setBirthplace(bp.replace(null, "")); |
| | | } |
| | | patArchive.setBirthdate(externalInHospPatientInfo.getChuShengRQ()); |
| | | patArchive.setAge(externalInHospPatientInfo.getNianLing()); |
| | | patArchive.setAgeUnit(externalInHospPatientInfo.getNianLingDW()); |
| | | patArchive.setTelcode(externalInHospPatientInfo.getLianXiDH()); |
| | | if (StringUtils.isEmpty(externalInHospPatientInfo.getLianXiDH())) |
| | | patArchive.setTelcode(externalInHospPatientInfo.getLianXiRDH()); |
| | | patArchive.setRelativetelcode(externalInHospPatientInfo.getLianXiRDH()); |
| | | patArchive.setGuid(externalInHospPatientInfo.getZuZhiJGID()); |
| | | patArchive.setOrgid(externalInHospPatientInfo.getZuZhiJGID()); |
| | |
| | | patMedInhosp.setLeavehospitaldistrictcode(externalInHospPatientInfo.getDangQianBQID()); |
| | | patMedInhosp.setHospitaldistrictname(externalInHospPatientInfo.getDangQianBQMC()); |
| | | patMedInhosp.setLeavehospitaldistrictname(externalInHospPatientInfo.getDangQianBQMC()); |
| | | patMedInhosp.setTelcode(patArchive.getTelcode()); |
| | | patMedInhosp.setDrname(""); |
| | | } |
| | | if (ObjectUtils.isNotEmpty(externalInHospPatientDiagnoseInfo)) { |
| | | patMedInhosp.setIcd10code(StringUtils.isNotEmpty(patMedInhosp.getIcd10code()) ? patMedInhosp.getIcd10code() + "," + externalInHospPatientDiagnoseInfo.getZhenDuanID() : externalInHospPatientDiagnoseInfo.getZhenDuanID()); |
| | |
| | | patMedInhosp.setPatid(patArchive.getId()); |
| | | patMedInhosp.setPatno(patArchive.getPatientno()); |
| | | patMedInhosp.setPatname(patArchive.getName()); |
| | | patMedInhosp.setDrname(""); |
| | | |
| | | patMedInhosp.setSchemestatus(1L); |
| | | patMedInhosp.setCreateTime(new Date()); |
| | | } |
| | |
| | | } |
| | | } |
| | | } |
| | | } else { |
| | | continue; |
| | | } |
| | | //å°è¯¥keyåvalueä»redisä¸ï¼å é¤ |
| | | redisCache.deleteObject(key); |
| | |
| | | serviceSubtask.setSendstate(6L); |
| | | serviceSubtask.setExcep(serviceSubTaskAnswerReq.getExcep()); |
| | | serviceSubtask.setFinishtime(new Date()); |
| | | serviceSubtask.setUpdateTime(new Date()); |
| | | log.error("å°è¯¥keyåvalueä»redisä¸,serviceSubtaskçå¼ä¸º--------ï¼{}", serviceSubtask); |
| | | if (score != null) serviceSubtask.setScore(BigDecimal.valueOf(score)); |
| | | serviceSubtaskMapper.updateServiceSubtaskByCondition(serviceSubtask); |
| | | } |
| | |
| | | |
| | | Map<String, Object> scriptInfoByCondition = serviceTaskService.getScriptInfoByCondition(serviceSubTaskQueryReq.getTaskid(), serviceSubTaskQueryReq.getPatid(), serviceSubTaskQueryReq.getIsFinish(), serviceSubTaskQueryReq.getPatfrom()); |
| | | if (ObjectUtils.isNotEmpty(scriptInfoByCondition) && ObjectUtils.isNotEmpty(scriptInfoByCondition.get("script"))) { |
| | | log.error("-----------scriptInfoByConditionçå¼ä¸ºï¼{}",scriptInfoByCondition); |
| | | log.error("-----------scriptInfoByConditionçå¼ä¸ºï¼{}", scriptInfoByCondition); |
| | | if (scriptInfoByCondition.get("type").equals("1")) { |
| | | List<IvrLibaTemplateScriptVO> ivrLibaTemplateScriptVOList = (List) scriptInfoByCondition.get("script"); |
| | | for (IvrLibaTemplateScriptVO ivrLibaTemplateScriptVO : ivrLibaTemplateScriptVOList) { |
| | |
| | | double score = redisCache.getCacheObject(phoneCallReqYQVO.getUuid() + "SCORE"); |
| | | serviceSubtask.setScore(BigDecimal.valueOf(score)); |
| | | serviceSubtask.setFinishtime(new Date()); |
| | | serviceSubtask.setUpdateTime(new Date()); |
| | | log.error("å
æ´æ°ä¸ä¸åæ°,çµè¯çserviceSubtaskçå¼ä¸ºï¼{}", serviceSubtask); |
| | | serviceSubtaskMapper.updateServiceSubtask(serviceSubtask); |
| | | Map<String, String> map = delRedisValue(null, id.toString()); |
| | | if (ObjectUtils.isNotEmpty(map)) redisCache.setCacheObject(map.get("cacheName"), map.get("val")); |
| | |
| | | serviceSubtask.setSendstate(6L); |
| | | serviceSubtask.setId(Long.valueOf(phoneCallRecordVO.getTaskid())); |
| | | serviceSubtask.setFinishtime(new Date()); |
| | | serviceSubtask.setUpdateTime(new Date()); |
| | | log.error("çµè¯æ¨æå·²å®æserviceSubtaskçå¼ä¸º:{}",serviceSubtask); |
| | | serviceSubtaskMapper.updateServiceSubtask(serviceSubtask); |
| | | //ä¸è½½æä»¶ |
| | | ftpService.downloadFolder("/" + LocalDate.now().toString(), profile + "/upload/vadio/voice/" + LocalDate.now().toString()); |
| | |
| | | import com.ruoyi.common.utils.DateUtils; |
| | | import com.ruoyi.common.utils.DtoConversionUtils; |
| | | import com.ruoyi.common.utils.http.HttpUtils; |
| | | import org.apache.commons.lang3.ObjectUtils; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import com.smartor.domain.*; |
| | | import com.smartor.mapper.*; |
| | |
| | | } |
| | | //æ¿æ¢æ£è
ä¸ªäººä¿¡æ¯æ°æ® |
| | | log.error("é®é¢idï¼{}, é®é¢å
容ï¼{}", svyLibTemplateScriptVO.getId(), svyLibTemplateScriptVO.getScriptContent()); |
| | | if (StringUtils.isNotEmpty(svyLibTemplateScriptVO.getScriptContent())) { |
| | | if (StringUtils.isNotEmpty(svyLibTemplateScriptVO.getScriptContent()) && ObjectUtils.isNotEmpty(patArchive)) { |
| | | svyLibTemplateScriptVO.setScriptContent(svyLibTemplateScriptVO.getScriptContent().replace("${name}", StringUtils.isNotEmpty(patArchive.getName()) ? patArchive.getName() : "")); |
| | | svyLibTemplateScriptVO.setScriptContent(svyLibTemplateScriptVO.getScriptContent().replace("${dzz}", StringUtils.isNotEmpty(patArchive.getPlaceOfResidence()) ? patArchive.getPlaceOfResidence() : "")); |
| | | svyLibTemplateScriptVO.setScriptContent(svyLibTemplateScriptVO.getScriptContent().replace("${dhh}", StringUtils.isNotEmpty(patArchive.getTelcode()) ? patArchive.getTelcode() : "")); |
| | |
| | | serviceSubtask.setPatid(patid); |
| | | serviceSubtask.setResult("宿"); |
| | | serviceSubtask.setFinishtime(new Date()); |
| | | serviceSubtask.setUpdateTime(new Date()); |
| | | log.error("serviceSubtask---xjInfo-çä¿®æ¹æ°æ®ï¼{}", serviceSubtask); |
| | | serviceSubtaskMapper.updateServiceSubtaskByCondition(serviceSubtask); |
| | | } |
| | | HeLibrary heLibrary = heLibraryMapper.selectHeLibraryById(Long.valueOf(templateId)); |
| | |
| | | <result property="guid" column="guid"/> |
| | | <result property="operator" column="operator"/> |
| | | <result property="operatorId" column="operator_id"/> |
| | | <result property="remark" column="remark"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectPatMedInhospVo"> |
| | | select inhospid, |
| | | patname, |
| | | remark, |
| | | guid, |
| | | operator, |
| | | operator_id, |
| | |
| | | a.sex, |
| | | b.guid, |
| | | b.operator, |
| | | b.remark, |
| | | b.operator_id, |
| | | b.inhospid, |
| | | b.nurse_id, |
| | |
| | | b.patname, |
| | | b.operator_id, |
| | | b.operator, |
| | | b.remark, |
| | | b.out_way_id, |
| | | b.out_way_name, |
| | | b.nurse_id, |
| | |
| | | <if test="operator != null ">operator,</if> |
| | | <if test="operatorId != null ">operator_id,</if> |
| | | <if test="inhospno != null ">inhospno,</if> |
| | | <if test="remark != null ">remark,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="serialnum != null">#{serialnum},</if> |
| | |
| | | <if test="operator != null ">#{operator},</if> |
| | | <if test="operatorId != null ">#{operatorId},</if> |
| | | <if test="inhospno != null ">#{inhospno},</if> |
| | | <if test="remark != null ">#{remark},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="guid != null ">guid = #{guid},</if> |
| | | <if test="operator != null ">operator = #{operator},</if> |
| | | <if test="operatorId != null ">operator_id = #{operatorId},</if> |
| | | <if test="remark != null ">remark = #{remark},</if> |
| | | </trim> |
| | | where inhospid = #{inhospid} |
| | | </update> |
| | |
| | | <if test="longSendTime != null"> |
| | | AND date_format(long_send_time,'%y%m%d') <= date_format(#{longSendTime},'%y%m%d') |
| | | </if> |
| | | <if test="leavehospitaldistrictcodes != null and leavehospitaldistrictcodes.size() > 0"> |
| | | AND leavehospitaldistrictcode IN |
| | | <foreach collection="leavehospitaldistrictcodes" item="leavehospitaldistrictcode" open="(" separator="," |
| | | close=")"> |
| | | #{leavehospitaldistrictcode} |
| | | </foreach> |
| | | <if test="deptOrDistrict==1"> |
| | | <if test="leavehospitaldistrictcodes != null and leavehospitaldistrictcodes.size() > 0"> |
| | | AND leavehospitaldistrictcode IN |
| | | <foreach collection="leavehospitaldistrictcodes" item="leavehospitaldistrictcode" open="(" |
| | | separator="," |
| | | close=")"> |
| | | #{leavehospitaldistrictcode} |
| | | </foreach> |
| | | </if> |
| | | <if test=" leaveldeptcodes != null and leaveldeptcodes.size()>0"> |
| | | AND deptcode IN |
| | | <foreach collection="leaveldeptcodes" item="leaveldeptcode" open="(" separator="," |
| | | close=")"> |
| | | #{leaveldeptcode} |
| | | </foreach> |
| | | </if> |
| | | </if> |
| | | <if test=" leaveldeptcodes != null and leaveldeptcodes.size()>0"> |
| | | AND deptcode IN |
| | | <foreach collection="leaveldeptcodes" item="leaveldeptcode" open="(" separator="," |
| | | close=")"> |
| | | #{leaveldeptcode} |
| | | </foreach> |
| | | <if test="deptOrDistrict==2"> |
| | | <if test="leavehospitaldistrictcodes != null and leavehospitaldistrictcodes.size() > 0"> |
| | | AND leavehospitaldistrictcode IN |
| | | <foreach collection="leavehospitaldistrictcodes" item="leavehospitaldistrictcode" open="(" |
| | | separator="," |
| | | close=")"> |
| | | #{leavehospitaldistrictcode} |
| | | </foreach> |
| | | </if> |
| | | <if test=" leaveldeptcodes != null and leaveldeptcodes.size()>0"> |
| | | OR deptcode IN |
| | | <foreach collection="leaveldeptcodes" item="leaveldeptcode" open="(" separator="," |
| | | close=")"> |
| | | #{leaveldeptcode} |
| | | </foreach> |
| | | </if> |
| | | </if> |
| | | |
| | | <if test="senddate != null ">and senddate = #{senddate}</if> |
| | |
| | | <if test="patfrom != null ">patfrom=#{patfrom},</if> |
| | | <if test="taskGuid != null ">taskGuid=#{taskGuid},</if> |
| | | </trim> |
| | | <if test="patid != null ">and patid = #{patid}</if> |
| | | <if test="taskid != null ">and taskid = #{taskid}</if> |
| | | <where> |
| | | <if test="patid != null ">and patid = #{patid}</if> |
| | | <if test="taskid != null ">and taskid = #{taskid}</if> |
| | | </where> |
| | | </update> |
| | | |
| | | <update id="updateServiceSubtaskByCondition" parameterType="com.smartor.domain.ServiceSubtask"> |
| | |
| | | <result property="nexttaskid" column="nexttaskid"/> |
| | | <result property="nexttaskname" column="nexttaskname"/> |
| | | <result property="appltype" column="appltype"/> |
| | | <result property="patCycle" column="pat_cycle"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectServiceTaskVo"> |
| | | select taskid, |
| | | task_name, |
| | | pat_cycle, |
| | | appltype, |
| | | send_day, |
| | | long_task, |
| | |
| | | service_task.orgid from service_task |
| | | <where> |
| | | service_task.del_flag=0 |
| | | <!-- and taskid in (--> |
| | | <!-- select task_id from service_taskdept--> |
| | | <!-- <where>--> |
| | | <!-- <if test="leaveldeptcodes != null and leaveldeptcodes.size()>0">--> |
| | | <!-- dept_code in--> |
| | | <!-- <foreach collection="leaveldeptcodes" item="leaveldeptcode" open="(" separator=","--> |
| | | <!-- close=")">--> |
| | | <!-- #{leaveldeptcode}--> |
| | | <!-- </foreach>--> |
| | | <!-- </if>--> |
| | | <!-- </where>--> |
| | | <!-- )--> |
| | | <!-- and taskid in (--> |
| | | <!-- select task_id from service_taskdept--> |
| | | <!-- <where>--> |
| | | <!-- <if test="leaveldeptcodes != null and leaveldeptcodes.size()>0">--> |
| | | <!-- dept_code in--> |
| | | <!-- <foreach collection="leaveldeptcodes" item="leaveldeptcode" open="(" separator=","--> |
| | | <!-- close=")">--> |
| | | <!-- #{leaveldeptcode}--> |
| | | <!-- </foreach>--> |
| | | <!-- </if>--> |
| | | <!-- </where>--> |
| | | <!-- )--> |
| | | <if test="taskName != null and taskName != ''">and service_task.task_name like concat('%', #{taskName}, |
| | | '%') |
| | | </if> |
| | |
| | | <if test="compensateDate != null and compensateDate != ''">compensate_date,</if> |
| | | <if test="sendDay != null ">send_day,</if> |
| | | <if test="appltype != null ">appltype,</if> |
| | | <if test="patCycle != null ">pat_cycle,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="taskName != null">#{taskName},</if> |
| | |
| | | <if test="compensateDate != null and compensateDate != ''">#{compensateDate}</if> |
| | | <if test="sendDay != null ">#{sendDay},</if> |
| | | <if test="appltype != null ">#{appltype},</if> |
| | | <if test="patCycle != null ">#{patCycle},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="compensateDate != null and compensateDate != ''">compensate_date = #{compensateDate}</if> |
| | | <if test="sendDay != null ">send_day = #{sendDay}</if> |
| | | <if test="appltype != null ">appltype = #{appltype}</if> |
| | | <if test="patCycle != null ">pat_cycle = #{patCycle}</if> |
| | | </trim> |
| | | where taskid = #{taskid} |
| | | </update> |