| | |
| | | @Log(title = "æ£è
满æåº¦", businessType = BusinessType.INSERT) |
| | | @PostMapping("/batchinsert") |
| | | public AjaxResult batchinsert(@RequestBody List<PatSatisfaction> patSatisfaction) { |
| | | LoginUser loginUser = getLoginUser(); |
| | | SysUser user = loginUser.getUser(); |
| | | for (PatSatisfaction patSatisfaction1 : patSatisfaction) { |
| | | patSatisfaction1.setCreateBy(user.getNickName()); |
| | | patSatisfaction1.setOrgid(user.getOrgid()); |
| | | patSatisfactionService.insertPatSatisfaction(patSatisfaction1); |
| | | } |
| | | return toAjax(1); |
| | | Integer row = patSatisfactionService.batchInsert(patSatisfaction); |
| | | return toAjax(row); |
| | | } |
| | | |
| | | /** |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.annotation.RepeatSubmit; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | |
| | | @ApiOperation("æ£è
é®é¢ç»æè®°å½ (å¤é¾)") |
| | | @PostMapping("/saveQuestionAnswer") |
| | | public AjaxResult saveQuestionAnswer(@RequestBody ServiceSubTaskAnswerReq serviceSubTaskAnswerReq) { |
| | | log.info("ãsaveQuestionAnswerãçå
¥å为 param1:{},param2:{},type:{},isabnormal:{}", |
| | | serviceSubTaskAnswerReq.getParam1(), serviceSubTaskAnswerReq.getParam2(), |
| | | log.info("ãsaveQuestionAnswerãçå
¥å为 param1:{},param2:{},type:{},isabnormal:{}", |
| | | serviceSubTaskAnswerReq.getParam1(), serviceSubTaskAnswerReq.getParam2(), |
| | | serviceSubTaskAnswerReq.getType(), serviceSubTaskAnswerReq.getIsabnormal()); |
| | | // 弿¥å¤çä¿åé»è¾ï¼ç«å³è¿åæåæ¶æ¯ |
| | | serviceSubtaskAnswerService.saveQuestionAnswer(serviceSubTaskAnswerReq, 0L); |
| | |
| | | |
| | | |
| | | @ApiOperation("æ£è
é®é¢ç»æè®°å½ç¼å(å°ç¨åºå¤é¾)") |
| | | @RepeatSubmit |
| | | @PostMapping("/saveQuestionCacheXCH") |
| | | public AjaxResult saveQuestionCacheXCH(@RequestBody ServiceSubTaskCacheReq serviceSubTaskCacheReq) { |
| | | log.info("ãsaveQuestionCache-----saveQuestionCacheXCHãçå
¥å为ï¼{}", serviceSubTaskCacheReq); |
| | |
| | | } |
| | | |
| | | @ApiOperation("æ£è
é®é¢ç»æä¿å") |
| | | @RepeatSubmit |
| | | @PostMapping("/savequestiondetail") |
| | | public AjaxResult saveQuestionDetail(@RequestBody ServiceSubTaskCacheReq serviceSubTaskCacheReq) { |
| | | log.info("ãsaveQuestionDetail-----saveQuestionCacheãçprarm1ï¼{},prarm2ï¼{},typeï¼{},prarm6:{}", serviceSubTaskCacheReq.getParam1(), serviceSubTaskCacheReq.getParam2(), serviceSubTaskCacheReq.getType(), serviceSubTaskCacheReq.getParam6()); |
| | |
| | | |
| | | |
| | | @ApiOperation("æ£è
满æåº¦ç»æè®°å½(å¤é¾)") |
| | | @RepeatSubmit |
| | | @PostMapping("/saveMYDQuestionAnswer") |
| | | public AjaxResult saveMYDQuestionAnswer(@RequestBody ServiceSubTaskMYDAnswerReq serviceSubTaskAnswerReq) { |
| | | log.info("ãsaveQuestionCache-----saveMYDQuestionAnswerãçå
¥å为ï¼{}", serviceSubTaskAnswerReq); |
| | |
| | | import com.ruoyi.system.service.ISysConfigService; |
| | | import com.ruoyi.system.service.ISysUserDeptService; |
| | | import com.smartor.domain.*; |
| | | import com.smartor.domain.VO.HeLibraryCountVO; |
| | | import com.smartor.domain.VO.ServiceSubtaskCotinueCountVO; |
| | | import com.smartor.domain.VO.ServiceSubtaskVO; |
| | | import com.smartor.domain.VO.TransferDeptVO; |
| | | import com.smartor.domain.DTO.QuestionResultDTO; |
| | | import com.smartor.domain.VO.*; |
| | | import com.smartor.domain.entity.ServiceSubtaskEntity; |
| | | import com.smartor.service.IServiceSubtaskRecordService; |
| | | import com.smartor.service.IServiceSubtaskService; |
| | |
| | | } |
| | | |
| | | /** |
| | | * 带Redisç¼åçç»è®¡æ¥è¯¢ï¼ä¾patItemåpatItemCountå
±ç¨ï¼æ¡ä»¶ä¸åæ¶ç´æ¥å½ä¸ç¼å |
| | | */ |
| | | private Map<String, Object> getPatItemCountWithCache(ServiceSubtaskEntity serviceSubtaskEntity) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | LoginUser loginUser = getLoginUser(); |
| | | Long userId = null; |
| | | if (ObjectUtils.isNotEmpty(loginUser) && ObjectUtils.isNotEmpty(loginUser.getUser())) { |
| | | userId = loginUser.getUser().getUserId(); |
| | | } |
| | | if (serviceSubtaskEntity.getSendstateView() != null) { |
| | | // 1ï¼å¾
é访ï¼1 被é¢åã2 å¾
åéã3 å·²åéã5 åé失败ã7ãè¶
æ¶ï¼ï¼2ï¼å·²å®æï¼ 6 已宿ï¼ã3ï¼æ éé访ï¼4 䏿§è¡ï¼ |
| | | if (serviceSubtaskEntity.getSendstateView() == 1) |
| | | serviceSubtaskEntity.setSendstates(new ArrayList<>(Arrays.asList(1L, 2L, 3L, 5L, 7L))); |
| | | if (serviceSubtaskEntity.getSendstateView() == 2) |
| | | serviceSubtaskEntity.setSendstates(new ArrayList<>(Arrays.asList(6L))); |
| | | if (serviceSubtaskEntity.getSendstateView() == 3) |
| | | serviceSubtaskEntity.setSendstates(new ArrayList<>(Arrays.asList(4L))); |
| | | } |
| | | if (ObjectUtils.isNotEmpty(userId)) { |
| | | Map<String, Object> redisMap = redisCache.getCacheObject(userId + "patItemCount"); |
| | | Boolean redisFlag = false; |
| | | if (MapUtils.isNotEmpty(redisMap)) { |
| | | ServiceSubtaskEntity oldCondition = (ServiceSubtaskEntity) redisMap.get("searchCondition"); |
| | | if (ObjectUtils.isNotEmpty(oldCondition) && isSameCondition(oldCondition, serviceSubtaskEntity)) { |
| | | redisFlag = true; |
| | | map = redisMap; |
| | | redisCache.setCacheObject(userId + "patItemCount", map, 60, TimeUnit.MINUTES); |
| | | } |
| | | } |
| | | if (!redisFlag) { |
| | | map = serviceSubtaskService.patItemCount(serviceSubtaskEntity); |
| | | map.put("searchCondition", serviceSubtaskEntity); |
| | | redisCache.setCacheObject(userId + "patItemCount", map, 120, TimeUnit.MINUTES); |
| | | } |
| | | } else { |
| | | map = serviceSubtaskService.patItemCount(serviceSubtaskEntity); |
| | | } |
| | | return map; |
| | | } |
| | | |
| | | /** |
| | | * æ¯è¾ä¸¤ä¸ªServiceSubtaskVOçæ¥è¯¢æ¡ä»¶æ¯å¦ä¸è´ |
| | | * 使ç¨åå°æ¯è¾ææåæ®µï¼æé¤åé¡µåæ°åæ å
³å段 |
| | | */ |
| | | private boolean isSameCondition(ServiceSubtaskEntity oldCondition, ServiceSubtaskEntity newCondition) { |
| | | // 使ç¨ReflectUtilsçéç¨æ¹æ³æ¯è¾ï¼æé¤åé¡µåæ°çæ å
³å段 |
| | | return ReflectUtils.equalsAllFields(oldCondition, newCondition, |
| | | // æé¤çåæ®µï¼å页忰ãåºååIDãæ¶é´æ³ç |
| | | "pageNum", "pageSize", "serialVersionUID", "createBy", "createTime", "updateBy", "updateTime", "searchValue", "params"); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 导åºåä¸ä»»å¡å表 |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:taskcall:export')") |
| | |
| | | serviceSubtaskExport.setEndDay(endDay); |
| | | } |
| | | } |
| | | |
| | | if (StringUtils.isNotEmpty(serviceSubtaskVO.getServiceType()) && serviceSubtaskVO.getServiceType().equals("2")) { |
| | | //è·åserviceSubtaskListä¸çæætaskid |
| | | List<Long> taskIds = serviceSubtaskList.stream().map(ServiceSubtaskRes::getTaskid).filter(ObjectUtils::isNotEmpty).distinct().collect(Collectors.toList()); |
| | | serviceSubtaskDetailRatioExports = serviceSubtaskService.statQuestionOption(taskIds, serviceSubtaskVO.getStartOutHospTime(), serviceSubtaskVO.getEndOutHospTime()); |
| | | } else if (StringUtils.isNotEmpty(serviceSubtaskVO.getServiceType()) && serviceSubtaskVO.getServiceType().equals("6")) { |
| | | //满æåº¦ç»è®¡ ï¼éè¿ subtask ç id å»ç»è®¡ï¼ |
| | | List<Long> subtaskIds = serviceSubtaskList.stream().map(ServiceSubtaskRes::getId).collect(Collectors.toList()); |
| | | serviceSubtaskDetailRatioExports = serviceSubtaskService.statQuestionOptionBySubtaskIds(subtaskIds, serviceSubtaskVO.getStartOutHospTime(), serviceSubtaskVO.getEndOutHospTime()); |
| | | } |
| | | |
| | | QuestionResultVO questionResultVO = new QuestionResultVO(); |
| | | questionResultVO.setServiceType(serviceSubtaskVO.getServiceType()); |
| | | questionResultVO.setEndOutHospTime(serviceSubtaskVO.getEndOutHospTime()); |
| | | questionResultVO.setStartOutHospTime(serviceSubtaskVO.getStartOutHospTime()); |
| | | serviceSubtaskDetailRatioExports = serviceSubtaskService.getDetailRatio(questionResultVO, serviceSubtaskList); |
| | | } |
| | | |
| | | |
| | |
| | | if (ObjectUtils.isNotEmpty(user)) serviceSubtask.setOrgid(user.getOrgid()); |
| | | if (ObjectUtils.isNotEmpty(user)) serviceSubtask.setCampusid(user.getCampusid()); |
| | | serviceSubtask.setCampusid(user.getCampusid()); |
| | | serviceSubtask.setCreateBy(user.getNickName()); |
| | | serviceSubtask.setUpdateBy(user.getNickName()); |
| | | return success(serviceSubtaskService.insertServiceSubtask(serviceSubtask)); |
| | | } |
| | | |
| | |
| | | return AjaxResult.success("ãcollectHISDaysBeforeã忥任å¡å·²å¯å¨ï¼å¤©æ°ä¸º" + day + "天ï¼è¯·ç¨åæ¥çç»æ"); |
| | | } |
| | | |
| | | |
| | | @PostMapping("/syncMedOperForShiyi") |
| | | public AjaxResult syncMedOperForShiyi(@RequestParam("startTime") String startTime, @RequestParam("endTime") String endTime) { |
| | | // ç«å³è¿åï¼åå°å¼æ¥æ§è¡ |
| | |
| | | }); |
| | | return AjaxResult.success("忥任å¡å·²å¯å¨ï¼è¯·ç¨åæ¥çç»æ"); |
| | | } |
| | | |
| | | @PostMapping("/dealSubtaskDeadline") |
| | | public AjaxResult dealSubtaskDeadline(@RequestParam("orgid") String orgid, @RequestParam("day") Integer day) { |
| | | // ç«å³è¿åï¼åå°å¼æ¥æ§è¡ |
| | | ryTask.dealSubtaskDeadline(orgid, day); |
| | | return AjaxResult.success("ãdealSubtaskDeadlineã忥任å¡å·²å¯å¨ï¼å¤©æ°ä¸º" + day + "天ï¼è¯·ç¨åæ¥çç»æ"); |
| | | } |
| | | /** |
| | | * 带Redisç¼åçç»è®¡æ¥è¯¢ï¼ä¾patItemåpatItemCountå
±ç¨ï¼æ¡ä»¶ä¸åæ¶ç´æ¥å½ä¸ç¼å |
| | | */ |
| | | private Map<String, Object> getPatItemCountWithCache(ServiceSubtaskEntity serviceSubtaskEntity) { |
| | | Map<String, Object> map = new HashMap<>(); |
| | | LoginUser loginUser = getLoginUser(); |
| | | Long userId = null; |
| | | if (ObjectUtils.isNotEmpty(loginUser) && ObjectUtils.isNotEmpty(loginUser.getUser())) { |
| | | userId = loginUser.getUser().getUserId(); |
| | | } |
| | | if (serviceSubtaskEntity.getSendstateView() != null) { |
| | | // 1ï¼å¾
é访ï¼1 被é¢åã2 å¾
åéã3 å·²åéã5 åé失败ã7ãè¶
æ¶ï¼ï¼2ï¼å·²å®æï¼ 6 已宿ï¼ã3ï¼æ éé访ï¼4 䏿§è¡ï¼ |
| | | if (serviceSubtaskEntity.getSendstateView() == 1) |
| | | serviceSubtaskEntity.setSendstates(new ArrayList<>(Arrays.asList(1L, 2L, 3L, 5L, 7L))); |
| | | if (serviceSubtaskEntity.getSendstateView() == 2) |
| | | serviceSubtaskEntity.setSendstates(new ArrayList<>(Arrays.asList(6L))); |
| | | if (serviceSubtaskEntity.getSendstateView() == 3) |
| | | serviceSubtaskEntity.setSendstates(new ArrayList<>(Arrays.asList(4L))); |
| | | } |
| | | if (ObjectUtils.isNotEmpty(userId)) { |
| | | Map<String, Object> redisMap = redisCache.getCacheObject(userId + "patItemCount"); |
| | | Boolean redisFlag = false; |
| | | if (MapUtils.isNotEmpty(redisMap)) { |
| | | ServiceSubtaskEntity oldCondition = (ServiceSubtaskEntity) redisMap.get("searchCondition"); |
| | | if (ObjectUtils.isNotEmpty(oldCondition) && isSameCondition(oldCondition, serviceSubtaskEntity)) { |
| | | redisFlag = true; |
| | | map = redisMap; |
| | | redisCache.setCacheObject(userId + "patItemCount", map, 60, TimeUnit.MINUTES); |
| | | } |
| | | } |
| | | if (!redisFlag) { |
| | | map = serviceSubtaskService.patItemCount(serviceSubtaskEntity); |
| | | map.put("searchCondition", serviceSubtaskEntity); |
| | | redisCache.setCacheObject(userId + "patItemCount", map, 120, TimeUnit.MINUTES); |
| | | } |
| | | } else { |
| | | map = serviceSubtaskService.patItemCount(serviceSubtaskEntity); |
| | | } |
| | | return map; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * æ¯è¾ä¸¤ä¸ªServiceSubtaskVOçæ¥è¯¢æ¡ä»¶æ¯å¦ä¸è´ |
| | | * 使ç¨åå°æ¯è¾ææåæ®µï¼æé¤åé¡µåæ°åæ å
³å段 |
| | | */ |
| | | private boolean isSameCondition(ServiceSubtaskEntity oldCondition, ServiceSubtaskEntity newCondition) { |
| | | // 使ç¨ReflectUtilsçéç¨æ¹æ³æ¯è¾ï¼æé¤åé¡µåæ°çæ å
³å段 |
| | | return ReflectUtils.equalsAllFields(oldCondition, newCondition, |
| | | // æé¤çåæ®µï¼å页忰ãåºååIDãæ¶é´æ³ç |
| | | "pageNum", "pageSize", "serialVersionUID", "createBy", "createTime", "updateBy", "updateTime", "searchValue", "params"); |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | | import com.ruoyi.common.core.domain.model.LoginUser; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.ruoyi.common.utils.DtoConversionUtils; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.ruoyi.system.service.ISysConfigService; |
| | | import com.smartor.domain.*; |
| | | import com.smartor.domain.DTO.QuestionResultDTO; |
| | | import com.smartor.domain.DTO.ServiceSubtaskDetailDTO; |
| | | import com.smartor.domain.VO.QuestionResultVO; |
| | | import com.smartor.domain.entity.ServiceSubtaskEntity; |
| | | import com.smartor.service.IServiceSubtaskDetailService; |
| | | import com.smartor.service.IServiceSubtaskService; |
| | | import io.swagger.annotations.Api; |
| | |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.*; |
| | | import java.util.stream.Collectors; |
| | | |
| | | import static com.ruoyi.framework.datasource.DynamicDataSourceContextHolder.log; |
| | | |
| | |
| | | map = ServiceSubtaskDetailService.getServiceSubtaskDetails(serviceSubtaskDetailVO); |
| | | return map; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * æ¥è¯¢æ£è
éè®¿ä¿¡æ¯ |
| | | */ |
| | | @ApiOperation("çç«å德满æåº¦æ°æ®ç»è®¡") |
| | | @PostMapping("/sltaMydTotalByScore") |
| | | public Map<String, Object> sltaMydTotal(@RequestBody QuestionResultVO questionResultVO) { |
| | | List<ServiceSubtaskRes> serviceSubtaskResList = null; |
| | | ServiceSubtaskEntity serviceSubtaskEntity = new ServiceSubtaskEntity(); |
| | | serviceSubtaskEntity.setServiceType(questionResultVO.getServiceType()); |
| | | serviceSubtaskEntity.setEndOutHospTime(questionResultVO.getEndOutHospTime()); |
| | | serviceSubtaskEntity.setStartOutHospTime(questionResultVO.getStartOutHospTime()); |
| | | serviceSubtaskEntity.setDeptOrDistrict(questionResultVO.getDeptOrDistrict()); |
| | | serviceSubtaskEntity.setLeavehospitaldistrictcodes(questionResultVO.getLeavehospitaldistrictcodes()); |
| | | if (serviceSubtaskEntity != null) { |
| | | List<ServiceSubtask> serviceSubtasks = serviceSubtaskService.getServiceSubtasks(serviceSubtaskEntity); |
| | | serviceSubtaskResList = DtoConversionUtils.sourceToTarget(serviceSubtasks, ServiceSubtaskRes.class); |
| | | } |
| | | List<ServiceSubtaskDetailRatioExport> detailList = serviceSubtaskService.getDetailRatio(questionResultVO, serviceSubtaskResList); |
| | | |
| | | // æ questiontext åç»å转æ¢ä¸º QuestionResultVO |
| | | List<QuestionResultDTO> result = new ArrayList<>(); |
| | | if (!detailList.isEmpty()) { |
| | | Map<String, List<ServiceSubtaskDetailRatioExport>> groupedMap = detailList.stream() |
| | | .collect(Collectors.groupingBy(ServiceSubtaskDetailRatioExport::getQuestiontext)); |
| | | |
| | | groupedMap.forEach((questionText, exportList) -> { |
| | | QuestionResultDTO questionResultDTO = new QuestionResultDTO(); |
| | | questionResultDTO.setQeustionText(questionText); |
| | | questionResultDTO.setSubtaskDetailRatioExportList(exportList); |
| | | result.add(questionResultDTO); |
| | | }); |
| | | } |
| | | |
| | | return success(result); |
| | | } |
| | | } |
| | |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.ruoyi.common.core.page.TableDataInfo; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.ruoyi.common.utils.PageUtils; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.smartor.domain.DTO.DetailTraceDealDTO; |
| | | import com.smartor.domain.ServiceSubtaskDetailTrace; |
| | | import com.smartor.domain.VO.DetailTraceDealVO; |
| | | import com.smartor.domain.VO.SatisfactionExceptConfigQuestionReqVO; |
| | |
| | | import com.ruoyi.system.service.ISysUserService; |
| | | import com.smartor.domain.SSOTokenResponse; |
| | | import com.smartor.domain.SSOUserInfo; |
| | | import com.smartor.domain.ServiceSubtask; |
| | | import com.smartor.domain.VO.ServiceSubtaskVO; |
| | | import com.smartor.domain.entity.ServiceSubtaskEntity; |
| | | import com.smartor.service.IServiceSubtaskService; |
| | | import com.smartor.service.impl.ServiceSubtaskServiceImpl; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.collections.CollectionUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.http.*; |
| | | import org.springframework.http.client.SimpleClientHttpRequestFactory; |
| | | |
| | | import org.springframework.util.LinkedMultiValueMap; |
| | | import org.springframework.util.MultiValueMap; |
| | | import org.springframework.util.ObjectUtils; |
| | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.IOException; |
| | | import java.net.URLEncoder; |
| | | import java.util.HashMap; |
| | | import java.util.LinkedHashMap; |
| | | import java.util.Map; |
| | | import java.util.*; |
| | | |
| | | /** |
| | | * SSOåç¹ç»å½æ§å¶å¨ |
| | |
| | | private ISysConfigService sysConfigService; |
| | | |
| | | private final RestTemplate restTemplate; |
| | | |
| | | @Autowired |
| | | private IServiceSubtaskService serviceSubtaskService; |
| | | |
| | | public SSOController() { |
| | | // é
ç½®RestTemplateè¶
æ¶ |
| | |
| | | @GetMapping("ssoGoServiceSubtaskList") |
| | | public RedirectView ssoGoServiceSubtaskList(@RequestParam(value = "code", required = false) String code, |
| | | @RequestParam(value = "sfzh", required = false) String sfzh) { |
| | | // éå®åå°å对象(éå®åå°å |
| | | RedirectView redirectView = new RedirectView(); |
| | | |
| | | log.info("æ¶å°ssoGoServiceSubtaskList请æ±ï¼å¼å§éå®åå°æææå¡å¨,code = {}, sfzh = {}",code, sfzh); |
| | | String path = sysConfigService.selectConfigByKey("sys.qddz"); |
| | | String redirectUri = "https://9.208.2.190:8092/prod-api/sso/ssoLoginLyra"; |
| | |
| | | String clientSecret = "suifangxt"; |
| | | String scope = "openid"; |
| | | |
| | | ServiceSubtaskEntity subtask = new ServiceSubtaskEntity(); |
| | | subtask.setSfzh(sfzh); |
| | | subtask.setSort(0); |
| | | List<ServiceSubtask> serviceSubtaskList = serviceSubtaskService.selectServiceSubtaskList(subtask); |
| | | ServiceSubtask serviceSubtask = null; |
| | | if(CollectionUtils.isNotEmpty(serviceSubtaskList)){ |
| | | serviceSubtask = serviceSubtaskList.get(0); |
| | | }else { |
| | | redirectView.setUrl(path + "/login?error=sso_failed"); |
| | | return redirectView; |
| | | } |
| | | |
| | | // String authorizeUrl = lyraPath + "/mediinfo-lyra-authserver/connect/authorize"; |
| | | String accessTokenUrl = lyraPath + "/mediinfo-lyra-authserver/connect/token"; |
| | | String userInfoUrl = lyraPath + "/mediinfo-lyra-authserver/connect/userinfo"; |
| | | // éå®åå°å对象(éå®åå°å |
| | | RedirectView redirectView = new RedirectView(); |
| | | try { |
| | | SSOTokenResponse accessToken = getAccessTokenLyra(code, accessTokenUrl, clientId, clientSecret, redirectUri,true); |
| | | log.info("è·åå°çtokenï¼" + accessToken); |
| | |
| | | return buildRedirect(path + "/login"); |
| | | } |
| | | |
| | | String redirectUrl = path + "/loginSSO?token=" + loginToken + "&orgid=" + orgid + |
| | | "&sfzh=" + sfzh + "&orgname=null&ZuHuID=null&deptCode=null"; |
| | | String voiceType = (StringUtils.isNotEmpty(serviceSubtask.getType()) |
| | | && serviceSubtask.getType().equals("1")) ? "1" : "0"; |
| | | String redirectUrl = path + "/loginSSO?token=" + loginToken + |
| | | "&orgid=" + orgid + "&campusid=" + serviceSubtask.getCampusid() + |
| | | "&taskid=" + serviceSubtask.getTaskid() + "&patid=" + serviceSubtask.getPatid() + |
| | | "&id=" + serviceSubtask.getId() + "&voiceType=" + voiceType + |
| | | "&visitCount=" + serviceSubtask.getVisitCount() + "&sfzh=" + sfzh + |
| | | "&orgname=null&ZuHuID=null&deptCode=null"; |
| | | log.info("ãSSOç»å½ãéå®åå°åï¼{}", redirectUrl); |
| | | return buildRedirect(redirectUrl); |
| | | |
| | |
| | | |
| | | import com.ruoyi.common.constant.Constants; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.ruoyi.common.core.domain.entity.SysDept; |
| | | import com.ruoyi.common.core.domain.entity.SysMenu; |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | | import com.ruoyi.common.core.domain.entity.SysUserDept; |
| | |
| | | //éç¨å¯ç ï¼Hrs#å½åå¹´ææ¥* |
| | | token = loginService.getTokenWN(loginBody.getUsername()); |
| | | } else { |
| | | token = loginService.login(loginBody.getUsername(), loginBody.getPassword(), loginBody.getCode(), loginBody.getUuid(), loginBody.getOrgid(), loginBody.getCampusid()); |
| | | token = loginService.login(loginBody.getUsername(), loginBody.getPassword(), loginBody.getCode(), loginBody.getUuid(), loginBody.getOrgid(), loginBody.getCampusid(), loginBody.getUserType()); |
| | | } |
| | | ajax.put(Constants.TOKEN, token); |
| | | return ajax; |
| | |
| | | // @IpWhitelist |
| | | @GetMapping("/SSOLogin") |
| | | public RedirectView SSOLogin(@RequestParam(required = false) String campusid, @RequestParam(required = false) String deptId, @RequestParam(required = false) String systype, String orgid, String userName, String token) { |
| | | log.info("SSOLoginçå
¥åï¼campusidï¼{}, deptId:{}, systype:{}, orgid:{}, userName:{}, token:{}",campusid,deptId,systype,orgid,userName,token); |
| | | if (StringUtils.isEmpty(userName) && StringUtils.isEmpty(token) && StringUtils.isEmpty(orgid)) { |
| | | throw new BaseException("åæ°ä¸è½ä¸ºç©º"); |
| | | } |
| | | String path = null; |
| | | if (StringUtils.isEmpty(systype)) path = sysConfigService.selectConfigByKey("sys.qddz"); |
| | | else path = sysConfigService.selectConfigByKey("sys.qddz.yd"); |
| | | log.info("qddzçæ¥è¯¢å¼ä¸ºï¼pathï¼{}",path); |
| | | |
| | | if (StringUtils.isEmpty(path)) { |
| | | throw new BaseException("请é
ç½®å端å°å"); |
| | |
| | | ajax.put("user", user); |
| | | ajax.put("roles", roles); |
| | | ajax.put("permissions", permissions); |
| | | List<SysUserDept> sysUserDeptKSs = null; |
| | | List<SysUserDept> sysUserDeptBQs = null; |
| | | List<SysDept> sysDeptKSs = null; |
| | | List<SysDept> sysDeptBQs = null; |
| | | SysUserDept sysUserDept = new SysUserDept(); |
| | | sysUserDept.setUserId(user.getUserId()); |
| | | sysUserDept.setDeptType("1"); |
| | | sysUserDept.setOrgid(user.getOrgid()); |
| | | sysUserDept.setCampusid(user.getCampusid()); |
| | | sysUserDeptKSs = sysUserDeptMapper.selectSysUserDeptList(sysUserDept); |
| | | ajax.put("belongDepts", sysUserDeptKSs); |
| | | sysDeptKSs = sysDeptService.selectLeafSysDeptListBySysUserDept(sysUserDept); |
| | | ajax.put("belongDepts", sysDeptKSs); |
| | | sysUserDept.setDeptType("2"); |
| | | sysUserDeptBQs = sysUserDeptMapper.selectSysUserDeptList(sysUserDept); |
| | | ajax.put("belongWards", sysUserDeptBQs); |
| | | sysDeptBQs = sysDeptService.selectLeafSysDeptListBySysUserDept(sysUserDept); |
| | | ajax.put("belongWards", sysDeptBQs); |
| | | |
| | | return ajax; |
| | | } |
| | |
| | | #æ¬ å° ç信请æ±å°å(è¿ä¸ªæå¡æ¯æä»¬èªå·±åç) |
| | | #xhsmsPath: http://192.168.2.13:8092/sendSms |
| | | #æ°åç信请æ±å°å(è¿ä¸ªæå¡æ¯æä»¬èªå·±åç) |
| | | xhsmsPath: http://192.16.4.220:8092/sendSms |
| | | xhsmsPath: http://192.16.4.220:8092/sms |
| | | #å¸å· |
| | | xhsmsAccount: 911124 |
| | | #æ¥å£å¯ç |
| | |
| | | # å½é
åèµæºæä»¶è·¯å¾ |
| | | basename: i18n/messages |
| | | profiles: |
| | | active: ls |
| | | active: druid |
| | | |
| | | # æä»¶ä¸ä¼ |
| | | servlet: |
| | |
| | | sms_serviceCode: |
| | | sms_appkey: |
| | | sms_flag: |
| | | |
| | | shurl: |
| | | shversion: |
| | |
| | | */ |
| | | private String deptId; |
| | | |
| | | /** |
| | | * ç¨æ·ç±»å |
| | | */ |
| | | private String userType; |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.common.utils; |
| | | |
| | | import java.util.*; |
| | | import java.util.function.Function; |
| | | import java.util.stream.Collectors; |
| | | |
| | | public class ArrayListUtils { |
| | | |
| | | /** |
| | | * æ ¹æ®IDå°ä¸¤ä¸ªListæå为ï¼ä»
List1ç¬æãä»
List2ç¬æã两è
å
±æ |
| | | * |
| | | * @param list1 å表1 |
| | | * @param list2 å表2 |
| | | * @param idExtractor IDæå彿° |
| | | * @return Mapå
å«ä¸ä¸ªKey: "onlyIn1", "onlyIn2", "common" |
| | | */ |
| | | public static <T, K> Map<String, List<T>> splitListsById(List<T> list1, List<T> list2, Function<T, K> idExtractor) { |
| | | // 1. æåIDéåï¼ç¨äºå¿«é夿å卿§ |
| | | Set<K> ids1 = list1.stream().map(idExtractor).collect(Collectors.toSet()); |
| | | Set<K> ids2 = list2.stream().map(idExtractor).collect(Collectors.toSet()); |
| | | |
| | | // 2. 计ç®IDå±é¢çå·®éå交é |
| | | Set<K> onlyIn1Ids = new HashSet<>(ids1); |
| | | onlyIn1Ids.removeAll(ids2); // List1ç¬æçID |
| | | |
| | | Set<K> onlyIn2Ids = new HashSet<>(ids2); |
| | | onlyIn2Ids.removeAll(ids1); // List2ç¬æçID |
| | | |
| | | Set<K> commonIds = new HashSet<>(ids1); |
| | | commonIds.retainAll(ids2); // å
±æçID |
| | | |
| | | // 3. æ ¹æ®IDè¿æ»¤åå§å¯¹è±¡å表 |
| | | List<T> onlyIn1 = list1.stream() |
| | | .filter(item -> onlyIn1Ids.contains(idExtractor.apply(item))) |
| | | .collect(Collectors.toList()); |
| | | |
| | | List<T> onlyIn2 = list2.stream() |
| | | .filter(item -> onlyIn2Ids.contains(idExtractor.apply(item))) |
| | | .collect(Collectors.toList()); |
| | | |
| | | // 注æï¼å
±æé¨åé常å并两个å表ä¸çå
ç´ ï¼æè
åªåå
¶ä¸ä¸ä¸ªã |
| | | // è¿éçç¥æ¯ï¼ä¿çlist1ålist2䏿æIDéåç对象ï¼å¦æä¸å¡è¦æ±å»éæåå¹¶å¯¹è±¡å±æ§ï¼éé¢å¤å¤çï¼ |
| | | List<T> common = new ArrayList<>(); |
| | | common.addAll(list1.stream() |
| | | .filter(item -> commonIds.contains(idExtractor.apply(item))) |
| | | .collect(Collectors.toList())); |
| | | // common.addAll(list2.stream() |
| | | // .filter(item -> commonIds.contains(idExtractor.apply(item))) |
| | | // .collect(Collectors.toList())); |
| | | |
| | | Map<String, List<T>> result = new HashMap<>(); |
| | | result.put("onlyIn1", onlyIn1); |
| | | result.put("onlyIn2", onlyIn2); |
| | | result.put("common", common); |
| | | |
| | | return result; |
| | | } |
| | | } |
| | |
| | | * @param uuid å¯ä¸æ è¯ |
| | | * @return ç»æ |
| | | */ |
| | | public String login(String username, String password, String code, String uuid, String orgid, String campusid) { |
| | | public String login(String username, String password, String code, String uuid, String orgid, String campusid, String userType) { |
| | | boolean captchaEnabled = configService.selectCaptchaEnabled(); |
| | | // éªè¯ç å¼å
³ |
| | | if (captchaEnabled) { |
| | |
| | | Authentication authentication = null; |
| | | try { |
| | | if (StringUtils.isEmpty(campusid)) campusid = "1"; |
| | | UsernamePasswordAuthenticationToken authenticationToken = new UsernamePasswordAuthenticationToken(username + "&" + orgid + "&" + campusid, password); |
| | | UsernamePasswordAuthenticationToken authenticationToken = new UsernamePasswordAuthenticationToken(username + "&" + orgid + "&" + campusid + "&" + userType, password); |
| | | AuthenticationContextHolder.setContext(authenticationToken); |
| | | // è¯¥æ¹æ³ä¼å»è°ç¨UserDetailsServiceImpl.loadUserByUsername |
| | | authentication = authenticationManager.authenticate(authenticationToken); |
| | |
| | | import com.ruoyi.common.core.domain.entity.SysDept; |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | | import com.ruoyi.common.core.domain.entity.SysUserDept; |
| | | import com.ruoyi.common.core.redis.RedisCache; |
| | | import com.ruoyi.common.utils.ArrayListUtils; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.ruoyi.quartz.mapper.CollectHISMapper; |
| | | import com.ruoyi.quartz.service.ICollectHISService; |
| | | import com.smartor.domain.*; |
| | | import com.smartor.domain.entity.ServiceSubtaskEntity; |
| | | import com.smartor.mapper.*; |
| | | import com.smartor.service.IPatMedOuthospService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | |
| | | private PatArchiveMapper patArchiveMapper; |
| | | |
| | | @Autowired |
| | | private ServiceSubtaskMapper serviceSubtaskMapper; |
| | | |
| | | @Autowired |
| | | private ThreadPoolTaskExecutor taskExecutor; |
| | | |
| | | @Autowired |
| | |
| | | |
| | | @Autowired |
| | | private UtilsMapper utilsMapper; |
| | | |
| | | @Autowired |
| | | private RedisCache redisCache; |
| | | |
| | | private static final long SHARDING_THRESHOLD = 5_000_000L; |
| | | private static final String PAT_ARCHIVE_TABLE = "pat_archive"; |
| | |
| | | log.info("åæ¥ææ¯ä¿¡æ¯æ°é" + patMedOperations.size()); |
| | | for (PatMedOperation operation : patMedOperations) { |
| | | try { |
| | | if(ObjectUtils.isNotEmpty(operation.getCanceltime())){ |
| | | //ä½åºå é¤æä½ |
| | | cancelOper(operation); |
| | | continue; |
| | | } |
| | | Long patId = patIdHisMap.get(operation.getPatidHis()); |
| | | if (patId == null) { |
| | | patId = syncSinglePatient(operation.getPatidHis()); |
| | |
| | | operation.setPatid(patId); |
| | | } |
| | | PatMedOperation oper = new PatMedOperation(); |
| | | oper.setOpid(operation.getOpid()); |
| | | oper.setOpreqid(operation.getOpreqid()); |
| | | List<PatMedOperation> patMedOperations1 = patMedOperationMapper.selectPatMedOperationList(oper); |
| | | if (CollectionUtils.isNotEmpty(patMedOperations1)) { |
| | | operation.setId(patMedOperations1.get(0).getId()); |
| | | operation.setUpdateTime(new Date()); |
| | | count += patMedOperationMapper.updatePatMedOperation(patMedOperations1.get(0)); |
| | | count += patMedOperationMapper.updatePatMedOperation(operation); |
| | | syncOperItem(operation); |
| | | } else { |
| | | operation.setCreateTime(new Date()); |
| | |
| | | return count; |
| | | } |
| | | |
| | | private Integer cancelOper(PatMedOperation oper){ |
| | | PatMedOperation operationVo = new PatMedOperation(); |
| | | operationVo.setOpreqid(oper.getOpreqid()); |
| | | List<PatMedOperation> operations = patMedOperationMapper.selectPatMedOperationList(operationVo); |
| | | PatMedOperation operation = new PatMedOperation(); |
| | | if(CollectionUtils.isEmpty(operations)){ |
| | | return 0; |
| | | }else { |
| | | operation = operations.get(0); |
| | | } |
| | | log.info("ææ¯ä½åºid=" + operation.getId()); |
| | | PatMedOperationItem pmoi = new PatMedOperationItem(); |
| | | //è·åéè¦åºé¢ææ¯éè®¿ï¼æªå¤ççæ°æ® |
| | | pmoi.setOpid(operation.getId().toString()); |
| | | List<PatMedOperationItem> patMedOperationItems |
| | | = patMedOperationItemMapper.selectOperationItemList(pmoi); |
| | | List<Long> operationItemIds = patMedOperationItems.stream() |
| | | .map(PatMedOperationItem::getId) |
| | | .filter(Objects::nonNull) |
| | | .distinct() |
| | | .collect(Collectors.toList()); |
| | | |
| | | //ä¸éè¦æå¡äºï¼éè¦éè¿patidåsendstate=1,2,3,5,7廿¥è¯¢ä¸ä¸ï¼service_subtask鿝妿æ£å¨æ§è¡çä»»å¡ï¼ |
| | | //æçè¯ï¼ç«å³åäº |
| | | List<Long> sendstates = Arrays.asList(1L, 2L, 3L, 5L, 7L); |
| | | List<ServiceSubtask> serviceSubtaskList = new ArrayList<>(); |
| | | ServiceSubtaskEntity serviceSubtaskVO = new ServiceSubtaskEntity(); |
| | | serviceSubtaskVO.setOrgid(operation.getOrgid()); |
| | | serviceSubtaskVO.setPatid(operation.getPatid()); |
| | | serviceSubtaskVO.setSendstates(sendstates); |
| | | serviceSubtaskVO.setOperationItemIds(operationItemIds); |
| | | serviceSubtaskList = serviceSubtaskMapper.selectServiceSubtaskList(serviceSubtaskVO); |
| | | //å»redisä¸ï¼æ¥è¯¢æ¯å¦æsubidï¼æçè¯ç§»é¤cache-exist |
| | | if (CollectionUtils.isNotEmpty(serviceSubtaskList)) { |
| | | for (ServiceSubtask serviceSubtask : serviceSubtaskList) { |
| | | log.info("éè¦ç§»é¤çsubId为ï¼{}", serviceSubtask.getId().toString()); |
| | | serviceSubtask.setSendstate(4L); |
| | | serviceSubtask.setRemark("ææ¯æ¤é"); |
| | | serviceSubtaskMapper.updateServiceSubtask(serviceSubtask); |
| | | redisCache.removeElementFromList("cache-exist", serviceSubtask.getId().toString()); |
| | | redisCache.removeElementFromList("cache-0", serviceSubtask.getId().toString()); |
| | | redisCache.removeElementFromList("cache-1", serviceSubtask.getId().toString()); |
| | | redisCache.removeElementFromList("cache-2", serviceSubtask.getId().toString()); |
| | | redisCache.removeElementFromList("cache-3", serviceSubtask.getId().toString()); |
| | | redisCache.removeElementFromList("cache-4", serviceSubtask.getId().toString()); |
| | | } |
| | | } |
| | | operation.setUpdateTime(new Date()); |
| | | patMedOperationMapper.updatePatMedOperation(operation); |
| | | patMedOperationItemMapper.deleteSoftPatMedOperationItemByOpId(operation.getOpid()); |
| | | return 1; |
| | | } |
| | | |
| | | /** |
| | | * åæ¥ææ¯ä¿¡æ¯ |
| | | * |
| | |
| | | * @return |
| | | */ |
| | | private Integer syncOperItem(PatMedOperation operation) { |
| | | if(ObjectUtils.isNotEmpty(operation.getId())){ |
| | | operation.setOpid(operation.getId().toString()); |
| | | } |
| | | operation.setUpdateTime(new Date()); |
| | | patMedOperationMapper.updatePatMedOperation(operation); |
| | | |
| | | Integer count = 0; |
| | | PatMedOperationItem patMedOperationItem = new PatMedOperationItem(); |
| | | patMedOperationItem.setOrgid(operation.getOrgid()); |
| | | if(StringUtils.isNotEmpty(operation.getOpid())){ |
| | | patMedOperationItem.setOpid(operation.getOpid()); |
| | | patMedOperationItem.setLastStartTime(operation.getLastStartTime()); |
| | | patMedOperationItem.setLastEndTime(operation.getLastEndTime()); |
| | | List<PatMedOperationItem> patMedOperationItems = chMapper.selectOperItemList(patMedOperationItem); |
| | | PatMedOperationItem patMedOperationItem = new PatMedOperationItem(); |
| | | //patMedOperation.opReqid = patMedOperationItem.operationid |
| | | List<PatMedOperationItem> patMedOperationItems = new ArrayList<>(); |
| | | if (ObjectUtils.isNotEmpty(operation.getOpreqid())){ |
| | | patMedOperationItem.setOperationid(operation.getOpreqid()); |
| | | patMedOperationItems = chMapper.selectOperItemList(patMedOperationItem); |
| | | }else { |
| | | log.info("åæ¥ææ¯è¯¦æ
ä¿¡æ¯:ææ¯ç³è¯·åID为空!"); |
| | | return count; |
| | | } |
| | | |
| | | PatMedOperationItem operItem = new PatMedOperationItem(); |
| | | operItem.setOperationid(operation.getOpreqid()); |
| | | List<PatMedOperationItem> patMedOperationItems1 = patMedOperationItemMapper.selectPatMedOperationItemList(operItem); |
| | | |
| | | Map<String, List<PatMedOperationItem>> maps = ArrayListUtils.splitListsById(patMedOperationItems, |
| | | patMedOperationItems1, PatMedOperationItem::getOperationid); |
| | | //åªå¨è§å¾çæ°æ®ä¸å¨æ¬å°çæ°æ®ï¼æ§è¡æ°å¢æä½ |
| | | List<PatMedOperationItem> addItems = maps.get("onlyIn1"); |
| | | //åªå¨æ¬å°çæ°æ®ä¸å¨è§å¾çæ°æ®ï¼æ§è¡å é¤æä½ |
| | | List<PatMedOperationItem> delItems = maps.get("onlyIn2"); |
| | | //éå çæ°æ®ï¼æ§è¡æ´æ°æä½ patMedOperationItemsçæ°æ® |
| | | List<PatMedOperationItem> editItems = maps.get("common"); |
| | | |
| | | log.info("åæ¥ææ¯è¯¦æ
ä¿¡æ¯æ°é" + patMedOperationItems.size()); |
| | | for (PatMedOperationItem operationItem : patMedOperationItems) { |
| | | try { |
| | | |
| | | try{ |
| | | for (PatMedOperationItem operationItem : addItems) { |
| | | operationItem.setInhospstate(operation.getInhospstate()); |
| | | operationItem.setSerialnum(operation.getSerialnum()); |
| | | PatMedOperationItem operItem = new PatMedOperationItem(); |
| | | operItem.setOpid(operationItem.getOpid()); |
| | | operItem.setOperationid(operationItem.getOperationid()); |
| | | List<PatMedOperationItem> patMedOperationItems1 = patMedOperationItemMapper.selectPatMedOperationItemList(operItem); |
| | | if (CollectionUtils.isNotEmpty(patMedOperationItems1)) { |
| | | operationItem.setId(patMedOperationItems1.get(0).getId()); |
| | | operationItem.setUpdateTime(new Date()); |
| | | count += patMedOperationItemMapper.updatePatMedOperationItem(operationItem); |
| | | } else { |
| | | operation.setCreateTime(new Date()); |
| | | count += patMedOperationItemMapper.insertPatMedOperationItem(operationItem); |
| | | } |
| | | } catch (Exception ex) { |
| | | log.info("åæ¥ææ¯è¯¦æ
ä¿¡æ¯:" + ex.getMessage()); |
| | | operationItem.setOpid(operation.getId().toString()); |
| | | operationItem.setOperationid(operation.getOpreqid()); |
| | | operationItem.setOpercheckFlag("0"); |
| | | operationItem.setCreateTime(new Date()); |
| | | count += patMedOperationItemMapper.insertPatMedOperationItem(operationItem); |
| | | } |
| | | |
| | | for (PatMedOperationItem operationItem : delItems) { |
| | | operationItem.setUpdateTime(new Date()); |
| | | count += patMedOperationItemMapper.deletePatMedOperationItemByOperationid(operationItem.getOperationid()); |
| | | } |
| | | |
| | | for (PatMedOperationItem operationItem : editItems) { |
| | | operationItem.setInhospstate(operation.getInhospstate()); |
| | | operationItem.setSerialnum(operation.getSerialnum()); |
| | | operationItem.setOpid(operation.getId().toString()); |
| | | operationItem.setOperationid(operation.getOpreqid()); |
| | | operationItem.setUpdateTime(new Date()); |
| | | count += patMedOperationItemMapper.updatePatMedOperationItemByOperationid(operationItem); |
| | | } |
| | | log.info("åæ¥ææ¯id={}详æ
ä¿¡æ¯æ°é, æ°å¢{}æ¡ï¼å é¤{}æ¡ï¼ä¿®æ¹{}æ¡", operation.getId(), addItems.size(), delItems.size(), editItems.size()); |
| | | } catch (Exception ex) { |
| | | log.info("åæ¥ææ¯è¯¦æ
ä¿¡æ¯:" + ex.getMessage()); |
| | | } |
| | | |
| | | // try { |
| | |
| | | iIcd10Service.queryAddIcd10(); |
| | | } |
| | | |
| | | // nhfy/sltdåæº¯30天忮µééå¤æï¼æ¯æ®µæå¤7å¤©ï¼ |
| | | // nhfy/sltdåæº¯30天忮µééå¤æï¼æ¯æ®µæå¤4å¤©ï¼ |
| | | boolean isBackfill = (active.trim().equals("nhfy") || active.trim().equals("sltd")) && StringUtils.isNotBlank(todayZeroStr); |
| | | if (isBackfill) { |
| | | DateTimeFormatter dateFmt = DateTimeFormatter.ofPattern("yyyy-MM-dd"); |
| | |
| | | LocalDate segEndDate = todayZero.toLocalDate(); |
| | | int segCount = 0; |
| | | while (!segStart.isAfter(segEndDate)) { |
| | | LocalDate segEnd = segStart.plusDays(6); |
| | | LocalDate segEnd = segStart.plusDays(3); |
| | | if (segEnd.isAfter(segEndDate)) { |
| | | segEnd = segEndDate; |
| | | } |
| | |
| | | * å¤çè¶
æ¶éè®¿ä»»å¡ |
| | | * @return |
| | | */ |
| | | public void dealSubtaskDeadline(Integer deadlineDay){ |
| | | public void dealSubtaskDeadline(String orgid, Integer deadlineDay){ |
| | | //è·åä»»å¡ä¿¡æ¯ |
| | | ServiceTask st = new ServiceTask(); |
| | | st.setDelFlag("0"); |
| | | st.setLongTask(1); |
| | | st.setNexttaskflag("1"); |
| | | st.setOrgid(orgid); |
| | | List<ServiceTask> serviceTasks = serviceTaskMapper.selectServiceTaskList(st); |
| | | for (ServiceTask serviceTask : serviceTasks) { |
| | | deadlineDay = -deadlineDay; |
| | | Date deadline = DateUtils.addDays(new Date(), deadlineDay); |
| | | //éè¿ä»»å¡IDæ¿å°æ£è
ä¿¡æ¯,å¹¶ä¸é访æ¶é´å¾æ¯ä»å¤©ä¹åç |
| | | ServiceSubtaskEntity serviceSubtaskVO = new ServiceSubtaskEntity(); |
| | | serviceSubtaskVO.setOrgid(orgid); |
| | | serviceSubtaskVO.setSendstate(7L); |
| | | //åªæ«æé¦æ¬¡é访ç |
| | | serviceSubtaskVO.setVisitCount(1); |
| | | serviceSubtaskVO.setTaskid(serviceTask.getTaskid()); |
| | | serviceSubtaskVO.setEndOutHospTime(deadline); |
| | | List<ServiceSubtask> serviceSubtaskList |
| | | = serviceSubtaskMapper.selectServiceSubtaskList(serviceSubtaskVO); |
| | | log.info("ãdealSubtaskDeadlineãè·åå°{}个è¶
æ¶ä»»å¡, taskid={}", serviceSubtaskList.size(), serviceTask.getTaskid()); |
| | | for (ServiceSubtask serviceSubtask : serviceSubtaskList) { |
| | | PatMedInhosp patMedInhospVo = new PatMedInhosp(); |
| | | patMedInhospVo.setOrgid(serviceSubtask.getOrgid()); |
| | | patMedInhospVo.setInhospid(serviceSubtask.getInhospid()); |
| | | List<PatMedInhosp> patMedInhospList = iPatMedInhospService.selectPatMedInhospList(patMedInhospVo); |
| | | PatMedInhosp patMedInhosp = new PatMedInhosp(); |
| | | if (!patMedInhospList.isEmpty()) { |
| | | patMedInhosp = patMedInhospList.get(0); |
| | | }else { |
| | | continue; |
| | | } |
| | | if(ObjectUtils.isEmpty(serviceTask.getNexttaskid())){ |
| | | continue; |
| | | } |
| | | ServiceTask nextServiceTask = serviceTaskMapper.selectServiceTaskByTaskid(serviceTask.getNexttaskid()); |
| | | PatArchive patArchive = patArchiveService.selectPatArchiveByPatid(serviceSubtask.getPatid()); |
| | | String config = configService.selectConfigByKey("visit.early.day"); |
| | | Integer type = 1; |
| | | |
| | | Date deadline = DateUtils.addDays(new Date(), deadlineDay); |
| | | //éè¿ä»»å¡IDæ¿å°æ£è
ä¿¡æ¯,å¹¶ä¸é访æ¶é´å¾æ¯ä»å¤©ä¹åç |
| | | ServiceSubtaskEntity serviceSubtaskVO = new ServiceSubtaskEntity(); |
| | | serviceSubtaskVO.setSendstate(7L); |
| | | serviceSubtaskVO.setVisitCount(1); |
| | | serviceSubtaskVO.setEndOutHospTime(deadline); |
| | | List<ServiceSubtask> serviceSubtaskList |
| | | = serviceSubtaskMapper.selectServiceSubtaskList(serviceSubtaskVO); |
| | | log.info("ãdealSubtaskDeadlineãè·åå°{}个è¶
æ¶ä»»å¡", serviceSubtaskList.size()); |
| | | for (ServiceSubtask serviceSubtask : serviceSubtaskList) { |
| | | PatMedInhosp patMedInhosp = new PatMedInhosp(); |
| | | patMedInhosp.setInhospid(serviceSubtask.getInhospid()); |
| | | List<PatMedInhosp> patMedInhospList = iPatMedInhospService.selectPatMedInhospList(patMedInhosp); |
| | | |
| | | if (patMedInhospList.size() > 0) { |
| | | serviceSubtask.setIsVisitAgain(2); |
| | | serviceSubtask.setRemark(StringUtils.isNotEmpty(serviceSubtask.getRemark()) ? serviceSubtask.getRemark() + ";æ£è
åå
¥é¢äº" : "æ£è
åå
¥é¢äº"); |
| | | serviceSubtask.setSendstate(4L); |
| | | serviceSubtaskMapper.updateServiceSubtask(serviceSubtask); |
| | | //return "æ é忬¡éè®¿ï¼æ£è
åå
¥é¢äº"; |
| | | }else { |
| | | continue; |
| | | } |
| | | //æ°å¢å次éè®¿ä»»å¡ |
| | | ServiceSubtask serviceSubtaskAgain = DtoConversionUtils.sourceToTarget(serviceSubtask, ServiceSubtask.class); |
| | | serviceSubtaskAgain.setId(null); |
| | | serviceSubtaskAgain.setUpid(serviceSubtask.getId().intValue()); |
| | | serviceSubtaskAgain.setVisitCount(serviceSubtask.getVisitCount() + 1); |
| | | serviceSubtaskAgain.setSendstate(2L); |
| | | serviceSubtaskAgain.setCreateTime(new Date()); |
| | | serviceSubtaskAgain.setUpdateTime(new Date()); |
| | | serviceSubtaskAgain.setVisitType(serviceSubtask.getVisitType()); |
| | | serviceSubtaskAgain.setVisitDeptCode(serviceSubtask.getVisitDeptCode()); |
| | | serviceSubtaskAgain.setVisitDeptName(serviceSubtask.getVisitDeptName()); |
| | | int i = serviceSubtaskMapper.insertServiceSubtask(serviceSubtaskAgain); |
| | | if (i == 1) { |
| | | //忬¡é访任å¡å建æååï¼å任塿¹ä¸ºå¤±è´¥ç¶æ |
| | | serviceSubtask.setIsVisitAgain(2); |
| | | serviceSubtask.setSendstate(5L); |
| | | serviceSubtaskMapper.updateServiceSubtask(serviceSubtask); |
| | | //æ°å¢å次éè®¿ä»»å¡ |
| | | ServiceSubtask serviceSubtaskAgain = iPatMedInhospService.boxedServiceSubtask(nextServiceTask, |
| | | patMedInhosp, patArchive, config, type); |
| | | serviceSubtaskAgain.setId(null); |
| | | serviceSubtaskAgain.setUpid(serviceSubtask.getId().intValue()); |
| | | serviceSubtaskAgain.setVisitCount(serviceSubtask.getVisitCount() + 1); |
| | | serviceSubtaskAgain.setSendstate(2L); |
| | | serviceSubtaskAgain.setCreateTime(new Date()); |
| | | serviceSubtaskAgain.setUpdateTime(new Date()); |
| | | serviceSubtaskAgain.setVisitType(serviceSubtask.getVisitType()); |
| | | serviceSubtaskAgain.setVisitDeptCode(serviceSubtask.getVisitDeptCode()); |
| | | serviceSubtaskAgain.setVisitDeptName(serviceSubtask.getVisitDeptName()); |
| | | int i = serviceSubtaskMapper.insertServiceSubtask(serviceSubtaskAgain); |
| | | if (i == 1) { |
| | | //忬¡é访任å¡å建æååï¼å任塿¹ä¸ºå¤±è´¥ç¶æ |
| | | serviceSubtask.setSendstate(5L); |
| | | serviceSubtaskMapper.updateServiceSubtask(serviceSubtask); |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | b.leavehospitaldistrictname, |
| | | b.leavehospitaldistrictid, |
| | | b.deptid, |
| | | b.leaveldeptid |
| | | b.leaveldeptid, |
| | | b.del_flag |
| | | FROM |
| | | healthy_inhosp b |
| | | where 1=1 |
| | |
| | | o.paname, |
| | | o.opreqid, |
| | | o.opreqcode, |
| | | o.canceltime, |
| | | o.opsstatus, |
| | | o.optypecode, |
| | | o.optypename, |
| | |
| | | o.nurse_name , |
| | | o.check_flag , |
| | | o.long_task_reason, |
| | | o.opid , |
| | | null as opid , |
| | | o.opcode , |
| | | o.opdesc, |
| | | o.oplevelcode , |
| | |
| | | where 1=1 |
| | | <if test="orgid != null and orgid != ''"> |
| | | AND o.orgid = #{orgid} |
| | | </if> |
| | | <if test="opreqid != null and opreqid != ''"> |
| | | AND o.opreqid = #{opreqid} |
| | | </if> |
| | | <if test="lastStartTime != null and lastStartTime != ''"> |
| | | and to_char(o.last_Update_Time, 'YYYY-MM-DD HH24:MI:SS') >= #{lastStartTime} |
| | |
| | | resultMap="PatMedOperationItemResult"> |
| | | select |
| | | oi.operationid, |
| | | oi.opid, |
| | | null as opid, |
| | | oi.opcode, |
| | | oi.opdesc, |
| | | oi.main_flag, |
| | |
| | | <if test="opid != null and opid != ''"> |
| | | AND oi.opid = #{opid} |
| | | </if> |
| | | <if test="operationid != null and operationid != ''"> |
| | | AND oi.operationid = #{operationid} |
| | | </if> |
| | | <if test="lastStartTime != null and lastStartTime != ''"> |
| | | and oi.last_Update_Time >= to_date(#{lastStartTime}, 'YYYY-MM-DD HH24:MI:SS') |
| | | </if> |
| | |
| | | import com.ruoyi.common.constant.UserConstants; |
| | | import com.ruoyi.common.core.domain.entity.*; |
| | | import com.ruoyi.common.exception.ServiceException; |
| | | import com.ruoyi.common.exception.base.BaseException; |
| | | import com.ruoyi.common.utils.DtoConversionUtils; |
| | | import com.ruoyi.common.utils.SecurityUtils; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | |
| | | String[] split = userName.split("&"); |
| | | SysUser sysUser = userMapper.selectUserByUserNameByCondition(split[0], split[1], null); |
| | | if (Objects.isNull(sysUser)) return sysUser; |
| | | //è¿éåªå¡ç¨æ·ç±»åä¸ºâæ£è
âç |
| | | if (sysUser.getUserType().equals("æ£è
") && StringUtils.isNotEmpty(split[3]) && !split[3].equals("null") && !sysUser.getUserType().equals(split[3].trim())) |
| | | throw new BaseException("å½åç¨æ·ç±»åä¸ç»å½ç¨æ·ç±»åä¸ä¸è´"); |
| | | |
| | | boolean isAdmin = StringUtils.isNotEmpty(split[0]) && "admin".equals(split[0]); |
| | | IUserExtInfoService userExtInfoService = SpringUtils.getBean(IUserExtInfoService.class); |
| | | Executor executor = SpringUtils.getBean("threadPoolTaskExecutor"); |
| | | |
| | | // === å¹¶è¡æ¥è¯¢: ç¨æ·æºæä¿¡æ¯ + é¨é¨å表 === |
| | | CompletableFuture<Map<String, String>> orgInfoFuture = CompletableFuture.supplyAsync(() -> |
| | | userExtInfoService.getUserOrgInfo(sysUser.getUserId().toString(), split[1], split[2]), executor); |
| | | CompletableFuture<Map<String, String>> orgInfoFuture = CompletableFuture.supplyAsync(() -> userExtInfoService.getUserOrgInfo(sysUser.getUserId().toString(), split[1], split[2]), executor); |
| | | |
| | | CompletableFuture<List<SysDept>> deptsFuture; |
| | | if (isAdmin) { |
| | |
| | | |
| | | //è·åå½åç»éäººçæºæåé¢ï¿½? |
| | | IUserExtInfoService userExtInfoService2 = SpringUtils.getBean(IUserExtInfoService.class); |
| | | Map<String, String> userOrgInfo2 = userExtInfoService2.getUserOrgInfo( |
| | | sysUser.getUserId().toString(), |
| | | split[1], |
| | | split[3]); |
| | | Map<String, String> userOrgInfo2 = userExtInfoService2.getUserOrgInfo(sysUser.getUserId().toString(), split[1], split[3]); |
| | | if (!userOrgInfo2.isEmpty()) { |
| | | sysUser.setOrgid(userOrgInfo2.get("orgid")); |
| | | sysUser.setCampusid(userOrgInfo2.get("campusid")); |
| | |
| | | and d.del_flag = 0 |
| | | and ud.del_flag = 0 |
| | | <if test="orgid != null">and d.orgid = #{orgid} and ud.orgid = #{orgid}</if> |
| | | <if test="campusid != null">and d.campusid = #{campusid} and ud.campusid = #{campusid}</if> |
| | | <if test="campusid != null">and d.campusid = #{campusid}</if> |
| | | <if test="userId != null">and ud.user_id = #{userId}</if> |
| | | <if test="deptType != null and deptType != ''">and d.dept_type = #{deptType}</if> |
| | | </select> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.domain.DTO; |
| | | |
| | | import com.smartor.domain.IvrTaskTemplateTargetoption; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * aiçå
¥å |
| | | */ |
| | | @Data |
| | | public class AiMatcherDto { |
| | | // è天ID |
| | | private Integer memoryId; |
| | | // ç¨æ·åç |
| | | private String userAnswer; |
| | | // é项å表 |
| | | private List<IvrTaskTemplateTargetoption> options; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.domain.DTO; |
| | | |
| | | import com.ruoyi.common.core.domain.BaseEntity; |
| | | import com.smartor.domain.ServiceSubtaskDetailRatioExport; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * é®å·ç»æ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-02-02 |
| | | */ |
| | | |
| | | @ApiModel(value = "QuestionResultDTO", description = "é®å·ç»æ") |
| | | @Data |
| | | public class QuestionResultDTO extends BaseEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * é®å·é¢ç® |
| | | */ |
| | | @ApiModelProperty(value = "é®å·é¢ç®") |
| | | private String qeustionText; |
| | | |
| | | /** |
| | | * é®å·ç»æéå |
| | | */ |
| | | @ApiModelProperty(value = "é®å·ç»æéå") |
| | | private List<ServiceSubtaskDetailRatioExport> subtaskDetailRatioExportList; |
| | | |
| | | |
| | | } |
| | |
| | | @ApiModelProperty(value = "æ¥å¤ç§å®¤è´£ä»»äººç¼ç ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | private String reportDeptPersonCode; |
| | | |
| | | /** |
| | | * æµè½¬ç§å®¤è´£ä»»äººç¼ç (妿å¤ä¸ªç§å®¤ç¨éå·åå²) |
| | | */ |
| | | @Excel(name = "æµè½¬ç§å®¤è´£ä»»äººç¼ç ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | @ApiModelProperty(value = "æµè½¬ç§å®¤è´£ä»»äººç¼ç ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | private String circulationDeptPersonCode; |
| | | |
| | | /** |
| | | * æµè½¬ç§å®¤è´£ä»»äººåç§° (妿å¤ä¸ªç§å®¤ç¨éå·åå²) |
| | | */ |
| | | @Excel(name = "æµè½¬ç§å®¤è´£ä»»äººåç§°ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | @ApiModelProperty(value = "æµè½¬ç§å®¤è´£ä»»äººåç§°ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | private String circulationDeptPersonName; |
| | | |
| | | // /** |
| | | // * é®é¢ç»æï¼ç»âå¼ç±»åâæ¯ææ¬æè
æ°å¼ç¨çï¼ |
| | | // */ |
| | |
| | | @ApiModelProperty(value = "æ¥å¤ç§å®¤è´£ä»»äººç¼ç ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | private String reportDeptPersonCode; |
| | | |
| | | |
| | | /** |
| | | * æµè½¬ç§å®¤è´£ä»»äººç¼ç (妿å¤ä¸ªç§å®¤ç¨éå·åå²) |
| | | */ |
| | | @Excel(name = "æµè½¬ç§å®¤è´£ä»»äººç¼ç ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | @ApiModelProperty(value = "æµè½¬ç§å®¤è´£ä»»äººç¼ç ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | private String circulationDeptPersonCode; |
| | | |
| | | /** |
| | | * æµè½¬ç§å®¤è´£ä»»äººåç§° (妿å¤ä¸ªç§å®¤ç¨éå·åå²) |
| | | */ |
| | | @Excel(name = "æµè½¬ç§å®¤è´£ä»»äººåç§°ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | @ApiModelProperty(value = "æµè½¬ç§å®¤è´£ä»»äººåç§°ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | private String circulationDeptPersonName; |
| | | |
| | | |
| | | |
| | | /** |
| | | * é®é¢é项 |
| | | */ |
| | |
| | | private String reportDeptPersonCode; |
| | | |
| | | /** |
| | | * æµè½¬ç§å®¤è´£ä»»äººç¼ç (妿å¤ä¸ªç§å®¤ç¨éå·åå²) |
| | | */ |
| | | @Excel(name = "æµè½¬ç§å®¤è´£ä»»äººç¼ç ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | @ApiModelProperty(value = "æµè½¬ç§å®¤è´£ä»»äººç¼ç ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | private String circulationDeptPersonCode; |
| | | |
| | | /** |
| | | * æµè½¬ç§å®¤è´£ä»»äººåç§° (妿å¤ä¸ªç§å®¤ç¨éå·åå²) |
| | | */ |
| | | @Excel(name = "æµè½¬ç§å®¤è´£ä»»äººåç§°ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | @ApiModelProperty(value = "æµè½¬ç§å®¤è´£ä»»äººåç§°ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | private String circulationDeptPersonName; |
| | | |
| | | /** |
| | | * è¯æ¯é项 |
| | | */ |
| | | @ApiModelProperty(value = "è¯æ¯é项") |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.domain; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * æ°å¢å¤å¼å®ä¾é
ç½®è¯·æ± VO |
| | | */ |
| | | @Data |
| | | @ApiModel(value = "OutboundConfigAddReqVO", description = "æ°å¢å¤å¼å®ä¾é
置请æ±") |
| | | public class OutboundConfigAddReqVO { |
| | | |
| | | @ApiModelProperty(value = "项ç®åç§°", required = true) |
| | | private String name; |
| | | |
| | | @ApiModelProperty(value = "åå¸å· å¦:10001_1000", required = true) |
| | | private String agent; |
| | | |
| | | @ApiModelProperty(value = "èµæºç»å·", required = true) |
| | | private String tenantId; |
| | | |
| | | @ApiModelProperty(value = "æ§è¡åå¸ç»ä¸»é® ID isVgc çäº 0 æ¶å¿
å¡«") |
| | | private String queueId; |
| | | |
| | | @ApiModelProperty(value = "å¼å«ç±»å 1:颿µè¯;2:é¢è§å¼", required = true) |
| | | private String callType; |
| | | |
| | | @ApiModelProperty(value = "å¤å¼éç isVgc çäº 0 æ¶å¿
å¡«") |
| | | private String ratio; |
| | | |
| | | @ApiModelProperty(value = "IVR æµç¨ ID isVgc çäº 1 æ¶å¿
å¡«") |
| | | private String ivrId; |
| | | |
| | | @ApiModelProperty(value = "æ¯å¦å¯ç¨è¯é³ç¾¤å¼ 0 å¦ 1 å¯å¨ é»è®¤ä¸º 0") |
| | | private String isVgc; |
| | | |
| | | @ApiModelProperty(value = "å¯ä¸å¼ï¼åæ ·è¿åï¼æ¾å°å¯¹åºçååºä¿¡æ¯", required = true) |
| | | private String actionID; |
| | | |
| | | @ApiModelProperty(value = "å·ç æ± çç¥ ID") |
| | | private String numberBatch; |
| | | |
| | | @ApiModelProperty(value = "æå¤§æ¯éæ¶é¿ åä½/ç§ï¼é»è®¤ 60ï¼") |
| | | private String maxRingTime; |
| | | |
| | | @ApiModelProperty(value = "ç¬¬ä¸æ¹å
³èæ°æ®") |
| | | private String data; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.domain; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | | * å¤å¼å®ä¾é
ç½®ååº VO |
| | | */ |
| | | @Data |
| | | @ApiModel(value = "OutboundInstanceResVO", description = "å¤å¼å®ä¾é
ç½®ååº") |
| | | public class OutboundInstanceResVO { |
| | | |
| | | @ApiModelProperty(value = "é¡¹ç® ID") |
| | | private String id; |
| | | |
| | | @ApiModelProperty(value = "项ç®åç§°") |
| | | private String name; |
| | | |
| | | @ApiModelProperty(value = "å建人") |
| | | private String nameCn; |
| | | |
| | | @ApiModelProperty(value = "å¤å¼ç±»å 1:颿µè¯;2:é¢è§å¼") |
| | | private String callType; |
| | | |
| | | @ApiModelProperty(value = "éç") |
| | | private String ratio; |
| | | |
| | | @ApiModelProperty(value = "ç¶æ 2:坿§è¡ 3:æ§è¡ä¸ 4ï¼æåä¸ 5ï¼å·²ç»æ") |
| | | private String status; |
| | | |
| | | @ApiModelProperty(value = "ååæ°") |
| | | private String contactNum; |
| | | |
| | | @ApiModelProperty(value = "æ§è¡æ°") |
| | | private String callNum; |
| | | |
| | | @ApiModelProperty(value = "åºçæ°") |
| | | private String touchNum; |
| | | |
| | | @ApiModelProperty(value = "åä¸åå¸ç»") |
| | | private String queueDn; |
| | | |
| | | @ApiModelProperty(value = "å建æ¶é´") |
| | | private String createTime; |
| | | |
| | | @ApiModelProperty(value = "å¼å§æ¶é´") |
| | | private String startTime; |
| | | |
| | | @ApiModelProperty(value = "ç»ææ¶é´") |
| | | private String endTime; |
| | | |
| | | @ApiModelProperty(value = "äºæ¬¡å¼å«é´é") |
| | | private String idleTime; |
| | | |
| | | @ApiModelProperty(value = "ç¬¬ä¸æ¹å
³èæ°æ®") |
| | | private String data; |
| | | |
| | | @ApiModelProperty(value = "ivr æµç¨ä¸»é® id") |
| | | private String ivrId; |
| | | |
| | | @ApiModelProperty(value = "æå¤§æ¯éæ¶é¿") |
| | | private String maxRingTime; |
| | | |
| | | @ApiModelProperty(value = "èµæºç»å·") |
| | | private String tenantId; |
| | | |
| | | @ApiModelProperty(value = "0 å¦ 1 å¯å¨") |
| | | private String isVgc; |
| | | |
| | | @ApiModelProperty(value = "å·ç æ± id") |
| | | private String numberBatch; |
| | | } |
| | |
| | | */ |
| | | @ApiModelProperty(value = "å
¥é¢ç
åºé¿æä»»å¡ï¼æ¯å¦å¤çï¼0 æªå¤ç 1 å¤çæå 2 å¤ç失败 ") |
| | | private String inWardcheckFlag; |
| | | |
| | | |
| | | /** |
| | | * è¯å宣æé¿æä»»å¡ï¼æ¯å¦å¤çï¼0 æªå¤ç 1 å¤ç |
| | | */ |
| | |
| | | /** |
| | | * åºå
¥é¢æ è¯ |
| | | */ |
| | | @ApiModelProperty("åºå
¥é¢æ è¯ï¼0å
¥é¢ 1åºé¢ 2 è½¬ç§ 3 é¢å
¥é¢") |
| | | @ApiModelProperty("åºå
¥é¢æ è¯ï¼0å
¥é¢ 1åºé¢ 2 è½¬ç§ 3 é¢å
¥é¢ 4.满æåº¦") |
| | | private Integer cry; |
| | | |
| | | /** |
| | |
| | | import lombok.Data; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æ£è
满æåº¦å¯¹è±¡ pat_satisfaction |
| | |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | private Date endTime; |
| | | |
| | | @ApiModelProperty(value = "主é®Idéå") |
| | | private List<Long> ids; |
| | | |
| | | /** |
| | | * pageNum |
| | | */ |
| | |
| | | package com.smartor.domain; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.ruoyi.common.annotation.Excel; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import com.ruoyi.common.annotation.Excel; |
| | | import com.ruoyi.common.core.domain.BaseEntity; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * åä¸ä»»å¡ï¼é访ï¼å¯¹è±¡ ivr_tasksingle |
| | |
| | | /** |
| | | * æ£è
æ¥æº |
| | | */ |
| | | @ApiModelProperty(value = "æ£è
æ¥æºï¼0æ¬å°æ£è
表 1å¤é¨æ£è
表") |
| | | @ApiModelProperty(value = "ä»»å¡ç
äººçæ¥æºï¼0ï¼å»é¢æ£è
ï¼1ï¼å¤é¨æ£è
2:导å
¥æ£è
") |
| | | private String patfrom; |
| | | |
| | | /** |
| | |
| | | @Excel(name = "æ¯ä¾") |
| | | private String ratio; |
| | | |
| | | @Excel(name = "åæ°") |
| | | private String score; |
| | | |
| | | @ApiModelProperty(value = "é®é¢ç±»åï¼1.åé 2å¤é 3é®ç 4填空 5å
¶å®ï¼") |
| | | private String valueType; |
| | | |
| | | @Excel(name = "é项") |
| | | private String targetvalue; |
| | | |
| | | @Excel(name = "ä»»å¡åç§°") |
| | | private String taskname; |
| | | |
| | |
| | | private String dutyDeptPersonCode; |
| | | |
| | | @Excel(name = "æ¥å¤ç§å®¤è´£ä»»äººåç§°ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | @ApiModelProperty(value = "æ¥å¤ç§å®¤åç§°ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | @ApiModelProperty(value = "æ¥å¤ç§å®¤è´£ä»»äººåç§°ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | private String reportDeptPersonName; |
| | | |
| | | @Excel(name = "æ¥å¤ç§å®¤ç¼ç ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | @ApiModelProperty(value = "æ¥å¤ç§å®¤è´£ä»»äººç¼ç ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | private String reportDeptPersonCode; |
| | | |
| | | /** |
| | | * æµè½¬ç§å®¤è´£ä»»äººç¼ç (妿å¤ä¸ªç§å®¤ç¨éå·åå²) |
| | | */ |
| | | @Excel(name = "æµè½¬ç§å®¤è´£ä»»äººç¼ç ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | @ApiModelProperty(value = "æµè½¬ç§å®¤è´£ä»»äººç¼ç ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | private String circulationDeptPersonCode; |
| | | |
| | | /** |
| | | * æµè½¬ç§å®¤è´£ä»»äººåç§° (妿å¤ä¸ªç§å®¤ç¨éå·åå²) |
| | | */ |
| | | @Excel(name = "æµè½¬ç§å®¤è´£ä»»äººåç§°ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | @ApiModelProperty(value = "æµè½¬ç§å®¤è´£ä»»äººåç§°ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | private String circulationDeptPersonName; |
| | | |
| | | /** |
| | | * æµè½¬ç§å®¤è´£ä»»äººç¼ç (妿å¤ä¸ªç§å®¤ç¨éå·åå²) |
| | | */ |
| | | @Excel(name = "æµè½¬ç§å®¤ç¼ç ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | @ApiModelProperty(value = "æµè½¬ç§å®¤ç¼ç ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | private String circulationDeptCode; |
| | | |
| | | /** |
| | | * æµè½¬ç§å®¤è´£ä»»äººåç§° (妿å¤ä¸ªç§å®¤ç¨éå·åå²) |
| | | */ |
| | | @Excel(name = "æµè½¬ç§å®¤åç§°ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | @ApiModelProperty(value = "æµè½¬ç§å®¤åç§°ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | private String circulationDeptName; |
| | | |
| | | /** |
| | | * æµè½¬ç§å®¤è´£ä»»äººåç§° (妿å¤ä¸ªç§å®¤ç¨éå·åå²) |
| | | */ |
| | | @Excel(name = "æµè½¬è¯´æ") |
| | | @ApiModelProperty(value = "æµè½¬è¯´æ") |
| | | private String circulationExplain; |
| | | /** |
| | | * æµè½¬ç§å®¤è´£ä»»äººåç§° (妿å¤ä¸ªç§å®¤ç¨éå·åå²) |
| | | */ |
| | | @Excel(name = "æµè½¬æ¶é´") |
| | | @ApiModelProperty(value = "æµè½¬æ¶é´") |
| | | private Date circulationTime; |
| | | |
| | | /** |
| | | * æµè½¬ç¶æï¼0䏿µè½¬ï¼é»è®¤ï¼ 1æµè½¬ |
| | | */ |
| | | @Excel(name = "æµè½¬ç¶æï¼0䏿µè½¬ï¼é»è®¤ï¼ 1æµè½¬") |
| | | @ApiModelProperty(value = "æµè½¬ç¶æï¼0䏿µè½¬ï¼é»è®¤ï¼ 1æµè½¬") |
| | | private String circulationStatus; |
| | | |
| | | |
| | | @Excel(name = "æµè½¬äººå§å") |
| | | @ApiModelProperty(value = "æµè½¬äººå§å") |
| | | private String circulationPersonName; |
| | | |
| | | @Excel(name = "æµè½¬äººç¼ç ") |
| | | @ApiModelProperty(value = "æµè½¬äººç¼ç ") |
| | | private String circulationPersonCode; |
| | | } |
| | | |
| | |
| | | @Data |
| | | public class ServiceSubtaskExport extends BaseEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | // |
| | | // /** |
| | | // * ç§å®¤åç§° |
| | | // */ |
| | | // @Excel(name = "主é®") |
| | | // @ApiModelProperty(value = "主é®") |
| | | // private Long id; |
| | | |
| | | |
| | | /** |
| | | * ç§å®¤åç§° |
| | |
| | | private String reportDeptPersonCode; |
| | | |
| | | /** |
| | | * æµè½¬ç§å®¤è´£ä»»äººç¼ç (妿å¤ä¸ªç§å®¤ç¨éå·åå²) |
| | | */ |
| | | @Excel(name = "æµè½¬ç§å®¤è´£ä»»äººç¼ç ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | @ApiModelProperty(value = "æµè½¬ç§å®¤è´£ä»»äººç¼ç ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | private String circulationDeptPersonCode; |
| | | |
| | | /** |
| | | * æµè½¬ç§å®¤è´£ä»»äººåç§° (妿å¤ä¸ªç§å®¤ç¨éå·åå²) |
| | | */ |
| | | @Excel(name = "æµè½¬ç§å®¤è´£ä»»äººåç§°ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | @ApiModelProperty(value = "æµè½¬ç§å®¤è´£ä»»äººåç§°ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | private String circulationDeptPersonName; |
| | | |
| | | /** |
| | | * é®å¸é¢ç®åç±»IDéå |
| | | */ |
| | | @ApiModelProperty("满æåº¦æè§å¼å¸¸ï¼åªéå¯¹ææ¬ï¼") |
| | |
| | | @ApiModelProperty(value = "æ¥å¤ç§å®¤è´£ä»»äººç¼ç ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | private String reportDeptPersonCode; |
| | | |
| | | |
| | | /** |
| | | * æµè½¬ç§å®¤è´£ä»»äººç¼ç (妿å¤ä¸ªç§å®¤ç¨éå·åå²) |
| | | */ |
| | | @Excel(name = "æµè½¬ç§å®¤è´£ä»»äººç¼ç ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | @ApiModelProperty(value = "æµè½¬ç§å®¤è´£ä»»äººç¼ç ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | private String circulationDeptPersonCode; |
| | | |
| | | /** |
| | | * æµè½¬ç§å®¤è´£ä»»äººåç§° (妿å¤ä¸ªç§å®¤ç¨éå·åå²) |
| | | */ |
| | | @Excel(name = "æµè½¬ç§å®¤è´£ä»»äººåç§°ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | @ApiModelProperty(value = "æµè½¬ç§å®¤è´£ä»»äººåç§°ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | private String circulationDeptPersonName; |
| | | |
| | | |
| | | @Excel(name = "åç±»IDéå") |
| | | @ApiModelProperty(value = "åç±»IDéå") |
| | | private List<Long> categoryids; |
| | |
| | | private String reportDeptPersonCode; |
| | | |
| | | /** |
| | | * æµè½¬ç§å®¤è´£ä»»äººç¼ç (妿å¤ä¸ªç§å®¤ç¨éå·åå²) |
| | | */ |
| | | @Excel(name = "æµè½¬ç§å®¤è´£ä»»äººç¼ç ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | @ApiModelProperty(value = "æµè½¬ç§å®¤è´£ä»»äººç¼ç ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | private String circulationDeptPersonCode; |
| | | |
| | | /** |
| | | * æµè½¬ç§å®¤è´£ä»»äººåç§° (妿å¤ä¸ªç§å®¤ç¨éå·åå²) |
| | | */ |
| | | @Excel(name = "æµè½¬ç§å®¤è´£ä»»äººåç§°ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | @ApiModelProperty(value = "æµè½¬ç§å®¤è´£ä»»äººåç§°ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | private String circulationDeptPersonName; |
| | | /** |
| | | * é®å¸é¢ç®åç±»IDéå |
| | | */ |
| | | @ApiModelProperty("满æåº¦æè§å¼å¸¸ï¼åªéå¯¹ææ¬ï¼") |
| | |
| | | @ApiModelProperty(value = "æ¥å¤ç§å®¤åç§°ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | private String reportDeptPersonName; |
| | | |
| | | @Excel(name = "æ¥å¤ç§å®¤ç¼ç ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | @Excel(name = "æ¥å¤ç§å®¤è´£ä»»äººç¼ç ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | @ApiModelProperty(value = "æ¥å¤ç§å®¤è´£ä»»äººç¼ç ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | private String reportDeptPersonCode; |
| | | |
| | | /** |
| | | * æµè½¬ç§å®¤è´£ä»»äººç¼ç (妿å¤ä¸ªç§å®¤ç¨éå·åå²) |
| | | */ |
| | | @Excel(name = "æµè½¬ç§å®¤è´£ä»»äººç¼ç ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | @ApiModelProperty(value = "æµè½¬ç§å®¤è´£ä»»äººç¼ç ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | private String circulationDeptPersonCode; |
| | | |
| | | /** |
| | | * æµè½¬ç§å®¤è´£ä»»äººåç§° (妿å¤ä¸ªç§å®¤ç¨éå·åå²) |
| | | */ |
| | | @Excel(name = "æµè½¬ç§å®¤è´£ä»»äººåç§°ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | @ApiModelProperty(value = "æµè½¬ç§å®¤è´£ä»»äººåç§°ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | private String circulationDeptPersonName; |
| | | |
| | | /** |
| | | * é®å¸é¢ç®åç±»IDéå |
| | | */ |
| | | @ApiModelProperty("满æåº¦æè§å¼å¸¸ï¼åªéå¯¹ææ¬ï¼") |
| | |
| | | @Excel(name = "æ¥å¤ç§å®¤ç¼ç ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | @ApiModelProperty(value = "æ¥å¤ç§å®¤è´£ä»»äººç¼ç ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | private String reportDeptPersonCode; |
| | | |
| | | /** |
| | | * æµè½¬ç§å®¤è´£ä»»äººç¼ç (妿å¤ä¸ªç§å®¤ç¨éå·åå²) |
| | | */ |
| | | @Excel(name = "æµè½¬ç§å®¤è´£ä»»äººç¼ç ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | @ApiModelProperty(value = "æµè½¬ç§å®¤è´£ä»»äººç¼ç ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | private String circulationDeptPersonCode; |
| | | |
| | | /** |
| | | * æµè½¬ç§å®¤è´£ä»»äººåç§° (妿å¤ä¸ªç§å®¤ç¨éå·åå²) |
| | | */ |
| | | @Excel(name = "æµè½¬ç§å®¤è´£ä»»äººåç§°ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | @ApiModelProperty(value = "æµè½¬ç§å®¤è´£ä»»äººåç§°ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | private String circulationDeptPersonName; |
| | | |
| | | /** |
| | | * æµè½¬ç§å®¤è´£ä»»äººç¼ç (妿å¤ä¸ªç§å®¤ç¨éå·åå²) |
| | | */ |
| | | @Excel(name = "æµè½¬ç§å®¤ç¼ç ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | @ApiModelProperty(value = "æµè½¬ç§å®¤ç¼ç ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | private String circulationDeptCode; |
| | | |
| | | /** |
| | | * æµè½¬ç§å®¤è´£ä»»äººåç§° (妿å¤ä¸ªç§å®¤ç¨éå·åå²) |
| | | */ |
| | | @Excel(name = "æµè½¬ç§å®¤åç§°ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | @ApiModelProperty(value = "æµè½¬ç§å®¤åç§°ï¼å¦æå¤ä¸ªç§å®¤ç¨éå·åå²ï¼") |
| | | private String circulationDeptName; |
| | | |
| | | /** |
| | | * æµè½¬ç§å®¤è´£ä»»äººåç§° (妿å¤ä¸ªç§å®¤ç¨éå·åå²) |
| | | */ |
| | | @Excel(name = "æµè½¬è¯´æ") |
| | | @ApiModelProperty(value = "æµè½¬è¯´æ") |
| | | private String circulationExplain; |
| | | /** |
| | | * æµè½¬ç§å®¤è´£ä»»äººåç§° (妿å¤ä¸ªç§å®¤ç¨éå·åå²) |
| | | */ |
| | | @Excel(name = "æµè½¬æ¶é´") |
| | | @ApiModelProperty(value = "æµè½¬æ¶é´") |
| | | private Date circulationTime; |
| | | |
| | | /** |
| | | * æµè½¬ç¶æï¼0䏿µè½¬ï¼é»è®¤ï¼ 1æµè½¬ |
| | | */ |
| | | @Excel(name = "æµè½¬ç¶æï¼0䏿µè½¬ï¼é»è®¤ï¼ 1æµè½¬") |
| | | @ApiModelProperty(value = "æµè½¬ç¶æï¼0䏿µè½¬ï¼é»è®¤ï¼ 1æµè½¬") |
| | | private Integer circulationStatus; |
| | | |
| | | @Excel(name = "æµè½¬äººå§å") |
| | | @ApiModelProperty(value = "æµè½¬äººå§å") |
| | | private String circulationPersonName; |
| | | |
| | | @Excel(name = "æµè½¬äººç¼ç ") |
| | | @ApiModelProperty(value = "æµè½¬äººç¼ç ") |
| | | private String circulationPersonCode; |
| | | } |
| | | |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.domain.VO; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.ruoyi.common.annotation.Excel; |
| | | import com.ruoyi.common.core.domain.BaseEntity; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * é®é¢ç»æDTO |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-02-02 |
| | | */ |
| | | |
| | | @ApiModel(value = "QuestionResultVO", description = "é®é¢ç»æVO") |
| | | @Data |
| | | public class QuestionResultVO extends BaseEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * ç§å®¤ä¸ç
åºçæ¥è¯¢æ¯orè¿æ¯and: 1:and(é»è®¤)(离é¢ç
åºä¸ç¦»é¢ç§å®¤ç»å) 2:or(离é¢ç
åºä¸ç¦»é¢ç§å®¤ç»å) 3:and(离é¢ç
åºä¸é访ç§å®¤ç»å) 4:or(离é¢ç
åºä¸é访ç§å®¤ç»å) |
| | | */ |
| | | @ApiModelProperty(value = "ç§å®¤ä¸ç
åºçæ¥è¯¢æ¯orè¿æ¯and: 1:and(é»è®¤)(离é¢ç
åºä¸ç¦»é¢ç§å®¤ç»å) 2:or(离é¢ç
åºä¸ç¦»é¢ç§å®¤ç»å) 3:and(离é¢ç
åºä¸é访ç§å®¤ç»å) 4:or(离é¢ç
åºä¸é访ç§å®¤ç»å)") |
| | | private String deptOrDistrict = "1"; |
| | | |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "主é®id") |
| | | private Long subId; |
| | | |
| | | /** |
| | | * åºé¢ç
åºç¼å· |
| | | */ |
| | | @ApiModelProperty(value = "åºé¢ç
åºéå(å¿
å¡«)") |
| | | private List<String> leavehospitaldistrictcodes; |
| | | |
| | | |
| | | /** |
| | | * 主é®idéå |
| | | */ |
| | | @ApiModelProperty(value = "主é®idéå") |
| | | private List<Long> subIdList; |
| | | |
| | | |
| | | /** |
| | | * å¼å§åºé¢æ¥æ |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | @ApiModelProperty(value = "å¼å§åºé¢æ¥æ") |
| | | private Date startOutHospTime; |
| | | |
| | | /** |
| | | * ç»æåºé¢æ¥æ |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @DateTimeFormat(pattern = "yyyy-MM-dd") |
| | | @ApiModelProperty(value = "ç»æåºé¢æ¥æ") |
| | | private Date endOutHospTime; |
| | | |
| | | |
| | | /** |
| | | * é®é¢å
容 |
| | | */ |
| | | @ApiModelProperty(value = "é®é¢å
容") |
| | | private String questionContent; |
| | | |
| | | /** |
| | | * åæ°æ¥è¯¢å¼å§ |
| | | */ |
| | | @ApiModelProperty(value = "åæ°æ¥è¯¢å¼å§") |
| | | private Double startScore; |
| | | |
| | | /** |
| | | * åæ°æ¥è¯¢ç»æ |
| | | */ |
| | | @ApiModelProperty(value = "åæ°æ¥è¯¢ç»æ") |
| | | private Double endScore; |
| | | |
| | | /** |
| | | * æå¡ç±»å(1ãçæµè¯ä¼°ï¼2ãåºé¢é访ï¼3ãé¨è¯é访ï¼4ã宣æå
³æï¼5ãå¤è¯éç¥ï¼6ãæ»¡æåº¦è°æ¥ï¼7ãæ£è
æ¥åï¼ 8ãå
¶ä»éç¥) |
| | | */ |
| | | @Excel(name = "æå¡ç±»å(1ãçæµè¯ä¼°ï¼2ãåºé¢é访ï¼3ãé¨è¯é访ï¼4ã宣æå
³æï¼5ãå¤è¯ç®¡çï¼6ãæ»¡æåº¦è°æ¥ï¼7ãæ£è
æ¥åï¼ 8ãå
¶ä»éç¥ 9使£é访 10.廿é访 11ï¼å½±åä¸ç§é访 12ãå¿çµä¸ç§éè®¿ï¼ 13ä¸ç§é访)") |
| | | @ApiModelProperty(value = "æå¡ç±»å(1ãçæµè¯ä¼°ï¼2ãåºé¢é访ï¼3ãé¨è¯é访ï¼4ã宣æå
³æï¼5ãå¤è¯ç®¡çï¼6ãæ»¡æåº¦è°æ¥ï¼7ãæ£è
æ¥åï¼ 8ãå
¶ä»éç¥ 9使£é访 10.廿é访 11ï¼å½±åä¸ç§é访 12ãå¿çµä¸ç§éè®¿ï¼ 13ä¸ç§é访)") |
| | | private String serviceType; |
| | | |
| | | @ApiModelProperty(value = "é®é¢ç±»åï¼1.åé 2å¤é 3é®ç 4填空 5å
¶å®ï¼") |
| | | private String valueType; |
| | | } |
| | |
| | | @ApiModelProperty(value = "宿æ¶é´") |
| | | private Date finishtime; |
| | | |
| | | /** |
| | | * 宿æ¶é´ |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @ApiModelProperty(value = "宿æ¶é´(å¼å§æ¥è¯¢)") |
| | | private Date finishtimeStart; |
| | | |
| | | /** |
| | | * 宿æ¶é´(ç»ææ¥è¯¢) |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @ApiModelProperty(value = "宿æ¶é´(ç»ææ¥è¯¢)") |
| | | private Date finishtimeEnd; |
| | | |
| | | |
| | | /** |
| | | * å°±è¯è®°å½ç¼å· |
| | |
| | | @ApiModelProperty(value = "宿æ¶é´") |
| | | private Date finishtime; |
| | | |
| | | /** |
| | | * 宿æ¶é´ |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @ApiModelProperty(value = "宿æ¶é´(å¼å§æ¥è¯¢)") |
| | | private Date finishtimeStart; |
| | | |
| | | /** |
| | | * 宿æ¶é´(ç»ææ¥è¯¢) |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @ApiModelProperty(value = "宿æ¶é´(ç»ææ¥è¯¢)") |
| | | private Date finishtimeEnd; |
| | | |
| | | /** |
| | | * å°±è¯è®°å½ç¼å· |
| | |
| | | // @Excel(name = " åéç¶æ 1 被é¢å(å¨ä»»å¡ä¸æ¯æ°å»ºï¼å¨æå¡ä¸æ¯è¢«é¢å) 2 å¾
åé 3 å·²åé 4 䏿§è¡ 5 åé失败 6 已宿\") ") |
| | | @ApiModelProperty(value = "页é¢å±ç¤ºç¶æ ï¼1ï¼å¾
é访ï¼1 被é¢åã2 å¾
åéã3 å·²åéã5 åé失败ã7ãè¶
æ¶ï¼ï¼2ï¼å·²å®æï¼ 6 已宿ï¼ã3ï¼æ éé访ï¼4 䏿§è¡ï¼") |
| | | private Long sendstateView; |
| | | |
| | | @ApiModelProperty(value = "ææ¯è®°å½id 对åºpat_med_operation_item.id") |
| | | private Long operationItemId; |
| | | |
| | | @ApiModelProperty(value = "ææ¯è®°å½idéå") |
| | | private List<Long> operationItemIds; |
| | | } |
| | |
| | | public int updatePatMedOperationItem(PatMedOperationItem patMedOperationItem); |
| | | |
| | | /** |
| | | * ä¿®æ¹æ£è
æ£æ¥æ£éªè®°å½å |
| | | * |
| | | * @param patMedOperationItem æ£è
æ£æ¥æ£éªè®°å½å |
| | | * @return ç»æ |
| | | */ |
| | | public int updatePatMedOperationItemByOperationid(PatMedOperationItem patMedOperationItem); |
| | | |
| | | /** |
| | | * å 餿£è
æ£æ¥æ£éªè®°å½å |
| | | * |
| | | * @param id æ£è
æ£æ¥æ£éªè®°å½åä¸»é® |
| | |
| | | public int deleteHardPatMedOperationItemByOpId(String opid); |
| | | |
| | | /** |
| | | * å 餿£è
æ£æ¥æ£éªè®°å½å |
| | | * |
| | | * @param operationid æ£è
æ£æ¥æ£éªè®°å½åä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deletePatMedOperationItemByOperationid(Long operationid); |
| | | |
| | | /** |
| | | * å 餿£è
æ£æ¥æ£éªè®°å½å |
| | | * |
| | | * @param opid æ£è
æ£æ¥æ£éªè®°å½åä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteSoftPatMedOperationItemByOpId(String opid); |
| | | |
| | | /** |
| | | * æ¥è¯¢æ£è
æ£æ¥æ£éªè®°å½åå表 |
| | | * |
| | | * @param patMedOperationItem æ£è
æ£æ¥æ£éªè®°å½å |
| | |
| | | * @param scheduleId 计åä¸»é® |
| | | * @param loopCount 轮次ï¼0=é¦è½®ï¼ |
| | | */ |
| | | public int countActiveByScheduleIdAndLoop(@Param("scheduleId") Long scheduleId, |
| | | @Param("loopCount") Long loopCount); |
| | | public int countActiveByScheduleIdAndLoop(@Param("scheduleId") Long scheduleId, @Param("loopCount") Long loopCount); |
| | | |
| | | /** |
| | | * ä»»å¡ç»ï¼appltype=5ï¼ï¼æåæä¸è½®æ¬¡çå
¨é¨ subtaskï¼ç¨äºå
éå°ä¸ä¸è½®ï¼ã |
| | | */ |
| | | public List<ServiceSubtask> selectByScheduleIdAndLoop(@Param("scheduleId") Long scheduleId, |
| | | @Param("loopCount") Long loopCount); |
| | | public List<ServiceSubtask> selectByScheduleIdAndLoop(@Param("scheduleId") Long scheduleId, @Param("loopCount") Long loopCount); |
| | | |
| | | /** |
| | | * éè®¿åæ¶çï¼åºé访æ¶é´<å®é
é访æ¶é´ |
| | |
| | | /** |
| | | * ç»è®¡é®é¢çé项çç¾åæ¯ |
| | | * |
| | | * @param taskIds ä»»å¡ ID å表 (ç¨äºæå¡ç±»å 2) |
| | | * @param startOutHospTime |
| | | * @param endOutHospTime |
| | | * @param taskIds ä»»å¡ ID å表 (ç¨äºæå¡ç±»å 2) |
| | | * @param startOutHospTime |
| | | * @param endOutHospTime |
| | | * @return |
| | | */ |
| | | List<ServiceSubtaskDetailRatioExport> statQuestionOption(@Param("taskIds") List<Long> taskIds, @Param("startOutHospTime") Date startOutHospTime, @Param("endOutHospTime") Date endOutHospTime); |
| | | List<ServiceSubtaskDetailRatioExport> statQuestionOption(@Param("taskIds") List<Long> taskIds, @Param("startOutHospTime") Date startOutHospTime, @Param("endOutHospTime") Date endOutHospTime, @Param("scoreStart") Double scoreStart, @Param("scoreEnd") Double scoreEnd, @Param("questiontext") String questiontext, @Param("valueType") String valueType); |
| | | |
| | | /** |
| | | * æ ¹æ®åä»»å¡ ID ç»è®¡é®é¢çé项çç¾åæ¯ï¼ç¨äºæ»¡æåº¦ç»è®¡ serviceType=6ï¼ |
| | | * |
| | | * @param subtaskIds åä»»å¡ ID å表 (åªè½å个 taskid ä¸çææåä»»å¡ id) |
| | | * @param startOutHospTime |
| | | * @param endOutHospTime |
| | | * @param subtaskIds åä»»å¡ ID å表 (åªè½å个 taskid ä¸çææåä»»å¡ id) |
| | | * @param startOutHospTime |
| | | * @param endOutHospTime |
| | | * @return |
| | | */ |
| | | List<ServiceSubtaskDetailRatioExport> statQuestionOptionBySubtaskIds(@Param("subtaskIds") List<Long> subtaskIds, @Param("startOutHospTime") Date startOutHospTime, @Param("endOutHospTime") Date endOutHospTime); |
| | | List<ServiceSubtaskDetailRatioExport> statQuestionOptionBySubtaskIds(@Param("subtaskIds") List<Long> subtaskIds, @Param("startOutHospTime") Date startOutHospTime, @Param("endOutHospTime") Date endOutHospTime, @Param("scoreStart") Double scoreStart, @Param("scoreEnd") Double scoreEnd, @Param("questiontext") String questiontext, @Param("valueType") String valueType); |
| | | |
| | | } |
| | |
| | | package com.smartor.mapper; |
| | | |
| | | import com.smartor.domain.IvrLibaTemplateScript; |
| | | import com.smartor.domain.SvyLibTemplateScript; |
| | | import com.smartor.domain.SvyLibTemplateScriptVO; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | |
| | | public int insertPatSatisfaction(PatSatisfaction patSatisfaction); |
| | | |
| | | /** |
| | | * æ¹éæ°å¢æ£è
满æåº¦ |
| | | * |
| | | * @param patSatisfactions æ£è
满æåº¦ |
| | | * @return ç»æ |
| | | */ |
| | | public int batchInsert(List<PatSatisfaction> patSatisfactions); |
| | | |
| | | /** |
| | | * ä¿®æ¹æ£è
满æåº¦ |
| | | * |
| | | * @param patSatisfaction æ£è
满æåº¦ |
| | |
| | | public Boolean addOperationInfo(@RequestBody Map dataMap); |
| | | |
| | | /** |
| | | * æ¤éææ¯ä¿¡æ¯ |
| | | */ |
| | | public Boolean cancelOperationInfo(@RequestBody Map dataMap); |
| | | |
| | | |
| | | /** |
| | | * æ°å¢å»çç»å»ç |
| | | */ |
| | | public Boolean addMedicalTeam(Map dataMap); |
| | |
| | | |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.smartor.domain.*; |
| | | import com.smartor.domain.DTO.QuestionResultDTO; |
| | | import com.smartor.domain.ServiceSubtask; |
| | | import com.smartor.domain.VO.HeLibraryCountVO; |
| | | import com.smartor.domain.VO.QuestionResultVO; |
| | | import com.smartor.domain.VO.ServiceSubtaskCotinueCountVO; |
| | | import com.smartor.domain.VO.TransferDeptVO; |
| | | import com.smartor.domain.entity.ServiceSubtaskEntity; |
| | |
| | | */ |
| | | public List<ServiceSubtaskRes> patItem(ServiceSubtaskEntity serviceSubtaskEntity); |
| | | |
| | | public List<ServiceSubtask> getServiceSubtasks(ServiceSubtaskEntity serviceSubtaskEntity); |
| | | |
| | | /** |
| | | * 转移ç§å®¤ç
åº |
| | | * |
| | | * @param transferDeptVO |
| | | * @return |
| | | */ |
| | |
| | | public PhoneCallBackSHVO processResust(PhoneCallResultYQVO phoneCallReqYQVO); |
| | | |
| | | /** |
| | | * é®é¢ç»æå æ¯ |
| | | * |
| | | * @param QuestionResultVO |
| | | * @param serviceSubtaskRes |
| | | * @return |
| | | */ |
| | | public List<ServiceSubtaskDetailRatioExport> getDetailRatio(QuestionResultVO questionResultVO, List<ServiceSubtaskRes> serviceSubtaskRes); |
| | | |
| | | |
| | | /** |
| | | * é¨ç»®ä»»å¡æå |
| | | * |
| | | * @return |
| | |
| | | * @param taskIds |
| | | * @return |
| | | */ |
| | | public List<ServiceSubtaskDetailRatioExport> statQuestionOption(List<Long> taskIds, Date startOutHospTime, Date endOutHospTime); |
| | | public List<ServiceSubtaskDetailRatioExport> statQuestionOption(List<Long> taskIds, Date startOutHospTime, Date endOutHospTime, String scriptContent, Double scoreStart, Double scoreEnd, String valueType); |
| | | |
| | | /** |
| | | * æ ¹æ®åä»»å¡ ID ç»è®¡é®é¢çé项çç¾åæ¯ï¼ç¨äºæ»¡æåº¦ç»è®¡ serviceType=6ï¼ |
| | | * |
| | | * @param subtaskIds åä»»å¡ ID å表 |
| | | * @param subtaskIds åä»»å¡ ID å表 |
| | | * @return |
| | | */ |
| | | public List<ServiceSubtaskDetailRatioExport> statQuestionOptionBySubtaskIds(List<Long> subtaskIds, Date startOutHospTime, Date endOutHospTime); |
| | | public List<ServiceSubtaskDetailRatioExport> statQuestionOptionBySubtaskIds(List<Long> subtaskIds, Date startOutHospTime, Date endOutHospTime, String scriptContent, Double scoreStart, Double scoreEnd, String valueType); |
| | | |
| | | public String scanGenerateSubtask(ServiceTask serviceTaskVo); |
| | | |
| | |
| | | int start = patArchiveImport.getIdcardno().length() - 6; |
| | | String lastSixDigits = patArchiveImport.getIdcardno().substring(start, start + 6); |
| | | sysUser.setUserName(lastSixDigits); |
| | | //å¯ç ï¼xh@123456 |
| | | sysUser.setPassword("$2a$10$zja67LEWTESHutljd8bqEeRy.VgWb./8iJPpFR6VjTUa7ZYNfRRrO"); |
| | | //åå¯ç ï¼xh@123456 |
| | | //sysUser.setPassword("$2a$10$zja67LEWTESHutljd8bqEeRy.VgWb./8iJPpFR6VjTUa7ZYNfRRrO"); |
| | | //æ°å¯ç ï¼123456 |
| | | sysUser.setPassword("$2a$10$1CRhRCwPEqhEI4bkXYFOLu.ga0PLfDhI3pnvVQ1GX0sbHY3N/UJky"); |
| | | |
| | | sysUser.setPhonenumber(patArchiveImport.getTelcode()); |
| | | sysUser.setUserType("æ£è
"); |
| | | sysUser.setDeptId(395L); |
| | |
| | | } catch (Exception e) { |
| | | log.error("人åå
¥é¢ç§å®¤å¤çåºå¼å¸¸äºï¼{}", e.getMessage()); |
| | | patMedInhosp1.setInDeptcheckFlag("2"); |
| | | patMedInhosp1.setLongTaskReason("人åå
¥é¢ç§å®¤å¤çåºå¼å¸¸äºï¼" + e.getMessage()); |
| | | patMedInhosp1.setLongTaskReason("人åå
¥é¢ç§å®¤å¤çåºå¼å¸¸äº"); |
| | | patMedInhospMapper.updatePatMedInhosp(patMedInhosp1); |
| | | } |
| | | } |
| | |
| | | //åå
¥é¢é»è¾ |
| | | //æ¯å® åºé¢é¦æ¬¡ï¼7天ï¼é访ä¸å®è¦å |
| | | boolean firstVisit = false; |
| | | if (orgId.equals("47255004333112711A1001") && serviceSubtask1.getVisitCount() != null && serviceSubtask1.getVisitCount() == 1) { |
| | | if (orgId.equals("47255004333112711A1001")) { |
| | | firstVisit = true; |
| | | } |
| | | if (!firstVisit) { |
| | |
| | | if (CollectionUtils.isEmpty(serviceTasks)) { |
| | | log.info("è¯¥ææ¯å¯¹åºææ¯ç级çé¿æä»»å¡ä¸åå¨,ä»»å¡ID为ï¼{}", taskid); |
| | | patMedOperationItem.setOpercheckFlag("2"); |
| | | patMedOperationItem.setLongTaskReason(longTaskReason + " & è¯¥ææ¯å¯¹åºææ¯ç级çé¿æä»»å¡ä¸åå¨,ä»»å¡ID为:" + taskid); |
| | | patMedOperationItem.setLongTaskReason(" & è¯¥ææ¯å¯¹åºææ¯ç级çé¿æä»»å¡ä¸åå¨,ä»»å¡ID为:" + taskid +";"); |
| | | patMedOperationItemMapper.updatePatMedOperationItem(patMedOperationItem); |
| | | return; |
| | | } else { |
| | |
| | | PatMedOperationItem patMedOperationItem2 = new PatMedOperationItem(); |
| | | patMedOperationItem2.setId(patMedOperationItem.getId()); |
| | | patMedOperationItem2.setOpercheckFlag("2"); |
| | | patMedOperationItem2.setRemark("çæåä»»å¡å¤±è´¥ 4"); |
| | | patMedOperationItem2.setLongTaskReason("çæåä»»å¡å¤±è´¥ 4;"); |
| | | patMedOperationItemMapper.updatePatMedOperationItem(patMedOperationItem2); |
| | | } |
| | | } catch (Exception e) { |
| | |
| | | PatMedOperationItem patMedOperationItem2 = new PatMedOperationItem(); |
| | | patMedOperationItem2.setId(patMedOperationItem.getId()); |
| | | patMedOperationItem2.setOpercheckFlag("2"); |
| | | patMedOperationItem2.setRemark("çæå任塿¥éåæ» 4"); |
| | | patMedOperationItem2.setLongTaskReason("çæå任塿¥éåæ» 4;"); |
| | | patMedOperationItemMapper.updatePatMedOperationItem(patMedOperationItem2); |
| | | e.printStackTrace(); |
| | | } |
| | |
| | | newDate = addDays(patMedInhosp1.getEndtime(), serviceTask.getSendDay().intValue()); |
| | | } else { |
| | | patMedOperationItem.setOpercheckFlag("2"); |
| | | patMedOperationItem.setRemark(patMedOperationItem.getRemark() + "& 该æ£è
ææ¯åºé¢æ¶é´ä¸ºç©º,ææ¯è¯¦æ
ID为:" + patMedOperationItem.getId()); |
| | | patMedOperationItem.setLongTaskReason("该æ£è
ææ¯åºé¢æ¶é´ä¸ºç©º,ææ¯è¯¦æ
ID为:" + patMedOperationItem.getId() + ";"); |
| | | patMedOperationItemMapper.updatePatMedOperationItem(patMedOperationItem); |
| | | // patMedInhosp1.setDeptcheckFlag("2"); |
| | | // patMedInhosp1.setRemark(patMedInhosp1.getRemark() + "& 该æ£è
ææ¯åºé¢æ¶é´ä¸ºç©º,åºé¢è®°å½ID为:" + patMedInhosp1.getInhospid()); |
| | |
| | | } |
| | | //æ¯å® åºé¢é¦æ¬¡ï¼7天ï¼é访ä¸å®è¦å |
| | | boolean firstVisit = false; |
| | | if (serviceSubtask1.getOrgid().equals("47255004333112711A1001") && serviceSubtask1.getVisitCount() != null && serviceSubtask1.getVisitCount() == 1) { |
| | | if (serviceSubtask1.getOrgid().equals("47255004333112711A1001")) { |
| | | firstVisit = true; |
| | | } |
| | | if (!firstVisit) { |
| | |
| | | if (CollectionUtils.isEmpty(serviceTaskopers) || serviceTaskopers.size() == 0) { |
| | | PatMedOperationItem patMedOperationItem = patMedOperationItemMapper.selectPatMedOperationItemById(opItem.getId()); |
| | | patMedOperationItem.setOpercheckFlag("2"); |
| | | patMedOperationItem.setLongTaskReason(patMedOperationItem.getLongTaskReason() + "ææ£çææ¯æªé
ç½®é¿æä»»å¡;"); |
| | | patMedOperationItem.setLongTaskReason("ææ£çææ¯æªé
ç½®é¿æä»»å¡;"); |
| | | patMedOperationItemMapper.updatePatMedOperationItem(patMedOperationItem); |
| | | } else { |
| | | for (ServiceTaskoper serviceTaskoper : serviceTaskopers) { |
| | |
| | | import java.util.*; |
| | | import java.util.stream.Collectors; |
| | | |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | | import com.ruoyi.common.core.domain.entity.SysUserDept; |
| | | import com.ruoyi.common.core.domain.model.LoginUser; |
| | | import com.ruoyi.common.utils.Arith; |
| | | import com.ruoyi.common.utils.ArrayListUtils; |
| | | import com.ruoyi.common.utils.DateUtils; |
| | | import com.ruoyi.common.utils.DtoConversionUtils; |
| | | import com.smartor.domain.*; |
| | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import com.smartor.service.IPatSatisfactionService; |
| | | |
| | | import static com.ruoyi.common.utils.SecurityUtils.getLoginUser; |
| | | |
| | | /** |
| | | * æ£è
满æåº¦Serviceä¸å¡å±å¤ç |
| | |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢æ£è
满æåº¦ |
| | | * |
| | | * @param patSatisfactions æ£è
满æåº¦ |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int batchInsert(List<PatSatisfaction> patSatisfactions) { |
| | | if(CollectionUtils.isEmpty(patSatisfactions)){ |
| | | return 0; |
| | | } |
| | | List<Long> ids = patSatisfactions.stream().map(PatSatisfaction::getId). |
| | | distinct().collect(Collectors.toList()); |
| | | List<PatSatisfaction> patSatisfactionsOld = new ArrayList<>(); |
| | | PatSatisfaction patSatisfactionVo = new PatSatisfaction(); |
| | | patSatisfactionVo.setIds(ids); |
| | | patSatisfactionsOld = patSatisfactionMapper.selectPatSatisfactionList(patSatisfactionVo); |
| | | Map<String, List<PatSatisfaction>> maps = ArrayListUtils.splitListsById(patSatisfactions, |
| | | patSatisfactionsOld, PatSatisfaction::getId); |
| | | //åªå¨patSatisfactionsçæ°æ®ï¼æ§è¡æ°å¢æä½ |
| | | List<PatSatisfaction> addItems = maps.get("onlyIn1"); |
| | | //åªå¨patSatisfactionsOldçæ°æ®ï¼æ§è¡å é¤æä½ |
| | | // List<PatSatisfaction> delItems = maps.get("onlyIn2"); |
| | | //éå çæ°æ®ï¼æ§è¡æ´æ°æä½ |
| | | List<PatSatisfaction> editItems = maps.get("common"); |
| | | Integer count = 0; |
| | | LoginUser loginUser = getLoginUser(); |
| | | SysUser user = loginUser.getUser(); |
| | | for (PatSatisfaction patSatisfaction0 : editItems) { |
| | | patSatisfaction0.setUpdateBy(user.getNickName()); |
| | | patSatisfaction0.setUpdateTime(DateUtils.getNowDate()); |
| | | count = count + patSatisfactionMapper.updatePatSatisfaction(patSatisfaction0); |
| | | } |
| | | |
| | | for (PatSatisfaction patSatisfaction1 : addItems) { |
| | | patSatisfaction1.setCreateBy(user.getNickName()); |
| | | patSatisfaction1.setOrgid(user.getOrgid()); |
| | | patSatisfaction1.setCreateTime(DateUtils.getNowDate()); |
| | | patSatisfaction1.setUpdateTime(DateUtils.getNowDate()); |
| | | count = count + patSatisfactionMapper.insertPatSatisfaction(patSatisfaction1); |
| | | } |
| | | return count; |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹æ£è
满æåº¦ |
| | | * |
| | | * @param patSatisfaction æ£è
满æåº¦ |
| | |
| | | patMedInhosp1.setDiagname(StringUtils.isNotEmpty(patMedInhosp1.getLeavediagname()) ? patMedInhosp1.getLeavediagname() : hospPatientDiagnoseInfos2.get(0).getZhenDuanMC()); |
| | | } |
| | | |
| | | patMedInhosp1.setInhospstate("1"); |
| | | String orgid = ObjectUtils.isNotEmpty(BingRenXX) && ObjectUtils.isNotEmpty(BingRenXX.get("ZuZhiJGID")) ? BingRenXX.get("ZuZhiJGID").toString() : null; |
| | | if(StringUtils.isNotEmpty(orgid) && orgid.equals("47246103233112211A1001")){ |
| | | //ç¼äºäºé¢ ä½é¢è®°å½ä¸æ´æ°ç¶æ |
| | | }else { |
| | | patMedInhosp1.setInhospstate("1"); |
| | | } |
| | | |
| | | if (CollectionUtils.isNotEmpty(patMedInhospList)) { |
| | | patMedInhosp1.setUpdateTime(new Date()); |
| | | patMedInhosp1.setOrgid(ObjectUtils.isNotEmpty(BingRenXX) && ObjectUtils.isNotEmpty(BingRenXX.get("ZuZhiJGID")) ? BingRenXX.get("ZuZhiJGID").toString() : null); |
| | | patMedInhosp1.setOrgid(orgid); |
| | | if (CollectionUtils.isNotEmpty(noLongTask) && noLongTask.contains(patMedInhosp1.getOrgid())) { |
| | | //ä¸éè¦é¿æä»»å¡é访 |
| | | patMedInhosp1.setFuflag("0"); |
| | |
| | | patMedInhosp1.setHospitalcode(ObjectUtils.isNotEmpty(BingRenXX.get("ZuZhiJGID")) ? BingRenXX.get("ZuZhiJGID").toString() : null); |
| | | patMedInhosp1.setLeavehospitaldistrictname(ObjectUtils.isNotEmpty(BingRenXX.get("DangQianBQMC")) ? BingRenXX.get("DangQianBQMC").toString() : null); |
| | | patMedInhosp1.setLeavehospitaldistrictcode(ObjectUtils.isNotEmpty(BingRenXX.get("DangQianBQID")) ? BingRenXX.get("DangQianBQID").toString() : null); |
| | | patMedInhosp1.setOrgid(ObjectUtils.isNotEmpty(BingRenXX.get("ZuZhiJGID")) ? BingRenXX.get("ZuZhiJGID").toString() : null); |
| | | patMedInhosp1.setOrgid(orgid); |
| | | //丽水æ é¢åºï¼é»è®¤å¼æ¯ 1 |
| | | patMedInhosp1.setCampusid("1"); |
| | | patMedInhosp1.setPatno(ObjectUtils.isNotEmpty(BingRenXX.get("BingRenID")) ? BingRenXX.get("BingRenID").toString() : null); |
| | |
| | | return true; |
| | | } |
| | | |
| | | @Override |
| | | public Boolean cancelOperationInfo(Map dataMap) { |
| | | log.info("ServiceExternalServiceImpl---cancelOperationInfoçæ¤éçå¼ä¸ºï¼{}", dataMap); |
| | | |
| | | Map yeWuXX = (Map) dataMap.get("YeWuXX"); |
| | | Map<String, Object> BingRenXX = ObjectUtils.isNotEmpty(yeWuXX) ? (Map<String, Object>) yeWuXX.get("BingRenXX") : null; |
| | | ExternalInHospPatientInfo externalInHospPatientInfo = BeanUtil.mapToBean(BingRenXX, ExternalInHospPatientInfo.class, true); |
| | | PatArchive patArchive = addPatArchive(externalInHospPatientInfo, null, null); |
| | | //ææ¯æ¤é |
| | | Map<String, Object> sscx = ObjectUtils.isNotEmpty(yeWuXX) ? (Map<String, Object>) yeWuXX.get("ShouShuCX") : null; |
| | | ExternalOperationInfo externalOperationInfo = null; |
| | | if (ObjectUtils.isNotEmpty(sscx)) |
| | | externalOperationInfo = BeanUtil.mapToBean(sscx, ExternalOperationInfo.class, true); |
| | | PatMedOperation patMedOperation = new PatMedOperation(); |
| | | patMedOperation.setPatid(patArchive.getId()); |
| | | patMedOperation.setOrgid(patArchive.getOrgid()); |
| | | patMedOperation.setOpreqcode(externalOperationInfo.getShenQingDID()); |
| | | //æ¥è¯¢ä¸ä¸ï¼è¯¥æ£è
æ¯å¦å·²ç»æè¿äºæ°æ® |
| | | List<PatMedOperation> patMedOperations = patMedOperationMapper.selectPatMedOperationList(patMedOperation); |
| | | if (CollectionUtils.isNotEmpty(patMedOperations)) { |
| | | for(PatMedOperation operation : patMedOperations){ |
| | | Long id = operation.getId(); |
| | | //å¦æææ¯æ¤éï¼ç´æ¥å é¤è¯¥æ¡ææ¯ä¿¡æ¯ |
| | | if (ObjectUtils.isNotEmpty(sscx)) { |
| | | operation.setId(id); |
| | | operation.setCheckFlag("1"); |
| | | operation.setDelFlag("1"); |
| | | //忶廿¥è¯¢ï¼æ¯å¦å¨subtaskä¸çæä»»å¡ï¼å¦æçæåºå¾ç«é©¬å é¤ |
| | | // ææ¯é访 |
| | | PatMedOperationItem pmoi = new PatMedOperationItem(); |
| | | //è·åéè¦åºé¢ææ¯éè®¿ï¼æªå¤ççæ°æ® |
| | | pmoi.setOpid(operation.getId().toString()); |
| | | List<PatMedOperationItem> patMedOperationItems |
| | | = patMedOperationItemMapper.selectOperationItemList(pmoi); |
| | | List<Long> operationItemIds = patMedOperationItems.stream() |
| | | .map(PatMedOperationItem::getId) |
| | | .filter(Objects::nonNull) |
| | | .distinct() |
| | | .collect(Collectors.toList()); |
| | | |
| | | |
| | | //ä¸éè¦æå¡äºï¼éè¦éè¿patidåsendstate=1,2,3,5,7廿¥è¯¢ä¸ä¸ï¼service_subtask鿝妿æ£å¨æ§è¡çä»»å¡ï¼ |
| | | //æçè¯ï¼ç«å³åäº |
| | | List<Long> sendstates = Arrays.asList(1L, 2L, 3L, 5L, 7L); |
| | | List<ServiceSubtask> serviceSubtaskList = new ArrayList<>(); |
| | | ServiceSubtaskEntity serviceSubtaskVO = new ServiceSubtaskEntity(); |
| | | serviceSubtaskVO.setOrgid(patArchive.getOrgid()); |
| | | serviceSubtaskVO.setPatid(patArchive.getId()); |
| | | serviceSubtaskVO.setSendstates(sendstates); |
| | | serviceSubtaskVO.setOperationItemIds(operationItemIds); |
| | | serviceSubtaskList = serviceSubtaskMapper.selectServiceSubtaskList(serviceSubtaskVO); |
| | | //å»redisä¸ï¼æ¥è¯¢æ¯å¦æsubidï¼æçè¯ç§»é¤cache-exist |
| | | if (CollectionUtils.isNotEmpty(serviceSubtaskList)) { |
| | | for (ServiceSubtask serviceSubtask : serviceSubtaskList) { |
| | | log.info("éè¦ç§»é¤çsubId为ï¼{}", serviceSubtask.getId().toString()); |
| | | serviceSubtask.setSendstate(4L); |
| | | serviceSubtask.setRemark("ææ¯æ¤é"); |
| | | serviceSubtaskMapper.updateServiceSubtask(serviceSubtask); |
| | | redisCache.removeElementFromList("cache-exist", serviceSubtask.getId().toString()); |
| | | redisCache.removeElementFromList("cache-0", serviceSubtask.getId().toString()); |
| | | redisCache.removeElementFromList("cache-1", serviceSubtask.getId().toString()); |
| | | redisCache.removeElementFromList("cache-2", serviceSubtask.getId().toString()); |
| | | redisCache.removeElementFromList("cache-3", serviceSubtask.getId().toString()); |
| | | redisCache.removeElementFromList("cache-4", serviceSubtask.getId().toString()); |
| | | } |
| | | } |
| | | operation.setUpdateTime(new Date()); |
| | | patMedOperationMapper.updatePatMedOperation(operation); |
| | | patMedOperationItemMapper.deleteSoftPatMedOperationItemByOpId(operation.getOpid()); |
| | | } |
| | | } |
| | | } |
| | | return true; |
| | | } |
| | | |
| | | //æ°å¢æ£è
åºæ¬ä¿¡æ¯ |
| | | private PatArchive addPatArchive(ExternalInHospPatientInfo externalInHospPatientInfo, ExternalInHospPatientAddrInfo externalInHospPatientAddrInfo, ExternalInHospPatientLiaisonInfo externalInHospPatientLiaisonInfo) { |
| | | Date parse = null; |
| | |
| | | return true; |
| | | case "SM_SQ_CheXiao": |
| | | log.info("ææ¯æ¤éå
¥åç±»å为ï¼{}", type); |
| | | cancelOperationInfo(dataMap); |
| | | return true; |
| | | case "TJ_YW_BaoGaoXX": |
| | | log.info("使£æ¥åå
¥åç±»å为ï¼{}", type); |
| | |
| | | log.error("å°è¯¥keyåvalueä»redisä¸,serviceSubtaskçå¼ä¸º--------ï¼{}", serviceSubtask); |
| | | if (score != null && !score.isEmpty()) serviceSubtask.setScore(score); |
| | | serviceSubtaskMapper.updateServiceSubtaskByCondition(serviceSubtask); |
| | | //ä¿®æ¹ä½é¢æ»¡æåº¦ç¶æï¼é¿å
é夿¥è¯¢ï¼ |
| | | if (serviceSubtask.getServiceType() != null && "6".equals(serviceSubtask.getServiceType())) { |
| | | Long inhospid = serviceSubtask.getInhospid(); |
| | | if (inhospid != null) { |
| | | PatMedInhosp patMedInhosp = new PatMedInhosp(); |
| | | patMedInhosp.setInhospMydFlag("1"); |
| | | patMedInhosp.setInhospid(inhospid); |
| | | patMedInhospMapper.updatePatMedInhosp(patMedInhosp); |
| | | } |
| | | } |
| | | |
| | | //å°å½ååéç¶ææ¹æ 9 宿ï¼ç¼å preachform æ¥è¯¢ï¼ |
| | | String currentPreachform = serviceSubtask.getCurrentPreachform(); |
| | |
| | | subtaskDetailTrace.setDutyDeptPersonName(svyTaskTemplateScriptVO.getDutyDeptPersonName()); |
| | | subtaskDetailTrace.setReportDeptPersonCode(svyTaskTemplateScriptVO.getReportDeptPersonCode()); |
| | | subtaskDetailTrace.setReportDeptPersonName(svyTaskTemplateScriptVO.getReportDeptPersonName()); |
| | | subtaskDetailTrace.setCirculationDeptPersonCode(svyTaskTemplateScriptVO.getCirculationDeptPersonCode()); |
| | | subtaskDetailTrace.setCirculationDeptPersonName(svyTaskTemplateScriptVO.getCirculationDeptPersonName()); |
| | | |
| | | Long existTraceId = existingTraceIdMap.get(subtaskDetailTrace.getScriptid()); |
| | | if (existTraceId != null) { |
| | |
| | | import com.smartor.common.MtSubmitSmUtil; |
| | | import com.smartor.common.ScheduleSubtaskBuilder; |
| | | import com.smartor.config.PhoneUtils; |
| | | import com.smartor.domain.DTO.QuestionResultDTO; |
| | | import com.smartor.domain.DTO.ServiceSubtaskDetailDTO; |
| | | import com.smartor.domain.*; |
| | | import com.smartor.domain.VO.HeLibraryCountVO; |
| | | import com.smartor.domain.VO.QuestionResultVO; |
| | | import com.smartor.domain.VO.ServiceSubtaskCotinueCountVO; |
| | | import com.smartor.domain.VO.TransferDeptVO; |
| | | import com.smartor.domain.entity.ServiceSubtaskEntity; |
| | |
| | | import org.apache.commons.lang3.ObjectUtils; |
| | | import org.checkerframework.checker.nullness.qual.NonNull; |
| | | import org.junit.Test; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.cache.annotation.Cacheable; |
| | |
| | | |
| | | @Override |
| | | public List<ServiceSubtaskRes> patItem(ServiceSubtaskEntity serviceSubtaskEntity) { |
| | | if (serviceSubtaskEntity.getSendstateView() != null) { |
| | | // 1ï¼å¾
é访ï¼1 被é¢åã2 å¾
åéã3 å·²åéã5 åé失败ã7ãè¶
æ¶ï¼ï¼2ï¼å·²å®æï¼ 6 已宿ï¼ã3ï¼æ éé访ï¼4 䏿§è¡ï¼ |
| | | if (serviceSubtaskEntity.getSendstateView() == 1) |
| | | serviceSubtaskEntity.setSendstates(new ArrayList<>(Arrays.asList(1L, 2L, 3L, 5L, 7L))); |
| | | if (serviceSubtaskEntity.getSendstateView() == 2) |
| | | serviceSubtaskEntity.setSendstates(new ArrayList<>(Arrays.asList(6L))); |
| | | if (serviceSubtaskEntity.getSendstateView() == 3) |
| | | serviceSubtaskEntity.setSendstates(new ArrayList<>(Arrays.asList(4L))); |
| | | } |
| | | //æ£è
è·åé访任å¡-éè¦æ¥è¯¢å个æ£è
ï¼èº«ä»½è¯ï¼ææçä»»å¡ æ¯å® |
| | | if (StringUtils.isNotEmpty(serviceSubtaskEntity.getOrgid()) && serviceSubtaskEntity.getOrgid().equals("47255004333112711A1001")) { |
| | | if (ObjectUtils.isNotEmpty(serviceSubtaskEntity.getPatid())) { |
| | | PatArchive patArchive = patArchiveService.selectPatArchiveByPatid(serviceSubtaskEntity.getPatid()); |
| | | if (ObjectUtils.isNotEmpty(patArchive) && StringUtils.isNotEmpty(patArchive.getIdcardno())) { |
| | | serviceSubtaskEntity.setPatid(null); |
| | | serviceSubtaskEntity.setSfzh(patArchive.getIdcardno()); |
| | | } |
| | | } |
| | | } |
| | | List<ServiceSubtask> selectServiceSubtaskList = this.selectServiceSubtaskList(serviceSubtaskEntity); |
| | | List<ServiceSubtask> selectServiceSubtaskList = getServiceSubtasks(serviceSubtaskEntity); |
| | | |
| | | List<ServiceSubtaskRes> serviceSubtaskResList = new ArrayList<>(); |
| | | for (ServiceSubtask serviceSubtask : selectServiceSubtaskList) { |
| | |
| | | serviceSubtaskResList.add(serviceSubtaskRes); |
| | | } |
| | | return serviceSubtaskResList; |
| | | } |
| | | |
| | | public List<ServiceSubtask> getServiceSubtasks(ServiceSubtaskEntity serviceSubtaskEntity) { |
| | | if (serviceSubtaskEntity.getSendstateView() != null) { |
| | | // 1ï¼å¾
é访ï¼1 被é¢åã2 å¾
åéã3 å·²åéã5 åé失败ã7ãè¶
æ¶ï¼ï¼2ï¼å·²å®æï¼ 6 已宿ï¼ã3ï¼æ éé访ï¼4 䏿§è¡ï¼ |
| | | if (serviceSubtaskEntity.getSendstateView() == 1) |
| | | serviceSubtaskEntity.setSendstates(new ArrayList<>(Arrays.asList(1L, 2L, 3L, 5L, 7L))); |
| | | if (serviceSubtaskEntity.getSendstateView() == 2) |
| | | serviceSubtaskEntity.setSendstates(new ArrayList<>(Arrays.asList(6L))); |
| | | if (serviceSubtaskEntity.getSendstateView() == 3) |
| | | serviceSubtaskEntity.setSendstates(new ArrayList<>(Arrays.asList(4L))); |
| | | } |
| | | //æ£è
è·åé访任å¡-éè¦æ¥è¯¢å个æ£è
ï¼èº«ä»½è¯ï¼ææçä»»å¡ æ¯å® |
| | | if (StringUtils.isNotEmpty(serviceSubtaskEntity.getOrgid()) && serviceSubtaskEntity.getOrgid().equals("47255004333112711A1001")) { |
| | | if (ObjectUtils.isNotEmpty(serviceSubtaskEntity.getPatid())) { |
| | | PatArchive patArchive = patArchiveService.selectPatArchiveByPatid(serviceSubtaskEntity.getPatid()); |
| | | if (ObjectUtils.isNotEmpty(patArchive) && StringUtils.isNotEmpty(patArchive.getIdcardno())) { |
| | | serviceSubtaskEntity.setPatid(null); |
| | | serviceSubtaskEntity.setSfzh(patArchive.getIdcardno()); |
| | | } |
| | | } |
| | | } |
| | | List<ServiceSubtask> selectServiceSubtaskList = this.selectServiceSubtaskList(serviceSubtaskEntity); |
| | | return selectServiceSubtaskList; |
| | | } |
| | | |
| | | @Override |
| | |
| | | */ |
| | | @Override |
| | | public Map<String, Object> insertServiceSubtask(ServiceSubtask serviceSubtask) { |
| | | List<ServiceSubtask> serviceSubtasks = null; |
| | | //å
æ¥è¯¢ä¸ä¸è¯¥æ£è
æ¯å¦å·²ç»åå»ºæ ¹æ®serviceType,sendstate,inhospid,patid,orgid |
| | | ServiceSubtaskEntity serviceSubtaskVO = new ServiceSubtaskEntity(); |
| | | serviceSubtaskVO.setServiceType(serviceSubtask.getServiceType()); |
| | | serviceSubtaskVO.setSendstates(new ArrayList<>(Arrays.asList(1L, 2L, 3L, 5L, 7L))); |
| | | serviceSubtaskVO.setPatid(serviceSubtask.getPatid()); |
| | | serviceSubtaskVO.setOrgid(serviceSubtask.getOrgid()); |
| | | serviceSubtaskVO.setCampusid(serviceSubtask.getCampusid()); |
| | | List<ServiceSubtask> serviceSubtasks = serviceSubtaskMapper.selectServiceSubtaskList(serviceSubtaskVO); |
| | | //è¿æ ·å¤æä¸»è¦æ¯ä¸ºäºæ³è®©æ°åå»é¢çå¤é¨å¯¼å
¥æ£è
å建任å¡ï¼ä¹è½ç¨è¿ä¸ªæ¥å£ |
| | | if (StringUtils.isEmpty(serviceSubtask.getPatfrom()) || !serviceSubtask.getPatfrom().equals("2")) { |
| | | ServiceSubtaskEntity serviceSubtaskVO = new ServiceSubtaskEntity(); |
| | | serviceSubtaskVO.setServiceType(serviceSubtask.getServiceType()); |
| | | serviceSubtaskVO.setInhospid(serviceSubtask.getInhospid()); |
| | | serviceSubtaskVO.setSendstates(new ArrayList<>(Arrays.asList(1L, 2L, 3L, 5L, 7L))); |
| | | serviceSubtaskVO.setPatid(serviceSubtask.getPatid()); |
| | | serviceSubtaskVO.setOrgid(serviceSubtask.getOrgid()); |
| | | serviceSubtaskVO.setCampusid(serviceSubtask.getCampusid()); |
| | | serviceSubtasks = serviceSubtaskMapper.selectServiceSubtaskList(serviceSubtaskVO); |
| | | } |
| | | RSAPublicKeyExample rsaPublicKeyExample = new RSAPublicKeyExample(); |
| | | String format = null; |
| | | if (CollectionUtils.isNotEmpty(serviceSubtasks)) { |
| | |
| | | serviceSubtask = serviceSubtask1; |
| | | } else { |
| | | //妿ä¸åå¨ï¼åæ°å¢ |
| | | ServiceTask serviceTask = serviceTaskService.selectServiceTaskByTaskid(serviceSubtask.getTaskid()); |
| | | if (ObjectUtils.isNotEmpty(serviceTask)) { |
| | | serviceSubtask.setDeptcode(serviceTask.getDeptcode()); |
| | | serviceSubtask.setTaskDesc(serviceTask.getTaskDesc()); |
| | | serviceSubtask.setTaskName(serviceTask.getTaskName()); |
| | | serviceSubtask.setDeptname(serviceTask.getDeptname()); |
| | | serviceSubtask.setTemplatename(serviceTask.getTemplatename()); |
| | | } |
| | | |
| | | serviceSubtask.setCreateTime(DateUtils.getNowDate()); |
| | | serviceSubtaskMapper.insertServiceSubtask(serviceSubtask); |
| | | //ä¿®æ¹ä½é¢æ»¡æåº¦ç¶æï¼é¿å
é夿¥è¯¢ï¼ |
| | | if (serviceSubtask.getServiceType() != null && "6".equals(serviceSubtask.getServiceType())) { |
| | | Long inhospid = serviceSubtask.getInhospid(); |
| | | if (inhospid != null) { |
| | | PatMedInhosp patMedInhosp = new PatMedInhosp(); |
| | | patMedInhosp.setInhospMydFlag("1"); |
| | | patMedInhosp.setInhospid(inhospid); |
| | | patMedInhospMapper.updatePatMedInhosp(patMedInhosp); |
| | | } |
| | | } |
| | | format = getOutPath(serviceSubtask, rsaPublicKeyExample); |
| | | } |
| | | |
| | |
| | | patMedInhosp.setInhospstate("0"); |
| | | List<PatMedInhosp> patMedInhospList = patMedInhospMapper.selectPatMedInhospList(patMedInhosp); |
| | | PatArchive patArchive = patArchiveMapper.selectPatArchiveByPatid(serviceSubtask1.getPatid()); |
| | | |
| | | if (patMedInhospList.size() > 0) { |
| | | //æ¯å® æ°å¢å次é访ä¸è½è§¦åæ£è
åå
¥é¢ |
| | | boolean inhospAgain = true; |
| | | if (serviceSubtask1.getOrgid().equals("47255004333112711A1001")) { |
| | | inhospAgain = false; |
| | | } |
| | | if (patMedInhospList.size() > 0 && inhospAgain) { |
| | | serviceSubtask1.setIsVisitAgain(2); |
| | | serviceSubtask1.setRemark(StringUtils.isNotEmpty(serviceSubtask.getRemark()) ? serviceSubtask.getRemark() + ";æ£è
åå
¥é¢äº" : "æ£è
åå
¥é¢äº"); |
| | | serviceSubtask1.setSendstate(4L); |
| | |
| | | collect = rawData.stream().collect(Collectors.groupingBy(subtask -> Optional.ofNullable(subtask.getDrcode()).orElse("Unknown"))); |
| | | break; |
| | | case "management_doctor_code": |
| | | rawData = rawData.stream() |
| | | .peek(item -> { |
| | | item.setDrname(item.getManagementDoctor()); |
| | | item.setDrcode(item.getManagementDoctorCode()); |
| | | }) |
| | | .collect(Collectors.toList()); |
| | | collect = rawData.stream().collect(Collectors.groupingBy(subtask -> Optional.ofNullable(subtask.getManagementDoctorCode()).orElse("Unknown"))); |
| | | break; |
| | | case "deptcode": |
| | |
| | | } |
| | | |
| | | @Override |
| | | public List<ServiceSubtaskDetailRatioExport> statQuestionOption(List<Long> taskIds, Date startOutHospTime, Date endOutHospTime) { |
| | | public List<ServiceSubtaskDetailRatioExport> statQuestionOption(List<Long> taskIds, Date startOutHospTime, Date endOutHospTime, String scriptContent, Double scoreStart, Double scoreEnd,String valueType) { |
| | | //å
æ¸
çä¸ä¸é夿°æ® |
| | | List<Long> repeatIds = serviceSubtaskDetailMapper.selectRepeatDetailIds(); |
| | | if (!CollectionUtils.isEmpty(repeatIds)) { |
| | | serviceSubtaskDetailMapper.deleteRepeatDetailByIds(repeatIds); |
| | | } |
| | | return serviceSubtaskMapper.statQuestionOption(taskIds, startOutHospTime, endOutHospTime); |
| | | List<ServiceSubtaskDetailRatioExport> serviceSubtaskDetailRatioExports = serviceSubtaskMapper.statQuestionOption(taskIds, startOutHospTime, endOutHospTime, scoreStart, scoreEnd, scriptContent, valueType); |
| | | |
| | | // å¤ç targetvalueï¼æ & å岿夿¡è®°å½ |
| | | List<ServiceSubtaskDetailRatioExport> result = new ArrayList<>(); |
| | | for (ServiceSubtaskDetailRatioExport export : serviceSubtaskDetailRatioExports) { |
| | | if (StringUtils.isNotEmpty(export.getTargetvalue()) && export.getTargetvalue().contains("&")) { |
| | | String[] values = export.getTargetvalue().split("&"); |
| | | // 妿æå¤æ¡ç®æ å¼ï¼æåæå¤è¡ |
| | | for (String value : values) { |
| | | //å
å» result 䏿¥ä¸ä¸ï¼ææ²¡æè¿ä¸ª questiontext å对åºç targetvalue |
| | | ServiceSubtaskDetailRatioExport existingExport = result.stream() |
| | | .filter(e -> e.getQuestiontext().equals(export.getQuestiontext()) |
| | | && value.trim().equals(e.getTargetvalue())) |
| | | .findFirst() |
| | | .orElse(null); |
| | | if (existingExport != null && existingExport.getRatio().equals("0") && existingExport.getCount().equals("0")) { |
| | | //妿åå¨ï¼åå° result éçè¿ä¸ªé®é¢æå¯¹åºç Targetvalue=value è¿æ¡æ°æ®æ´æ°æå½åè¿æ¡æ°æ® |
| | | if(value.equals(export.getOptionresult())) { |
| | | existingExport.setRatio(export.getRatio()); |
| | | existingExport.setScore(export.getScore()); |
| | | existingExport.setCount(export.getCount()); |
| | | existingExport.setOptionresult(export.getOptionresult()); |
| | | } |
| | | } else if (existingExport != null && !existingExport.getRatio().equals("0")) { |
| | | continue; |
| | | } else { |
| | | ServiceSubtaskDetailRatioExport newExport = DtoConversionUtils.sourceToTarget(export, ServiceSubtaskDetailRatioExport.class); |
| | | newExport.setTargetvalue(value.trim()); // targetvalue æ¾ç¤ºå个é项 |
| | | if (!value.equals(export.getOptionresult())) { |
| | | newExport.setOptionresult(null); |
| | | newExport.setCount("0"); |
| | | newExport.setRatio("0"); |
| | | } |
| | | result.add(newExport); |
| | | } |
| | | } |
| | | } else { |
| | | // targetvalue ä¸å
å« &ï¼ç´æ¥æ·»å å°ç»æ |
| | | result.add(export); |
| | | } |
| | | } |
| | | |
| | | return result; |
| | | } |
| | | |
| | | @Override |
| | | public List<ServiceSubtaskDetailRatioExport> statQuestionOptionBySubtaskIds(List<Long> subtaskIds, Date startOutHospTime, Date endOutHospTime) { |
| | | public List<ServiceSubtaskDetailRatioExport> statQuestionOptionBySubtaskIds(List<Long> subtaskIds, Date startOutHospTime, Date endOutHospTime, String scriptContent, Double scoreStart, Double scoreEnd,String valueType) { |
| | | //å
æ¸
çä¸ä¸é夿°æ® |
| | | List<Long> repeatIds = serviceSubtaskDetailMapper.selectRepeatDetailIds(); |
| | | if (!CollectionUtils.isEmpty(repeatIds)) { |
| | | serviceSubtaskDetailMapper.deleteRepeatDetailByIds(repeatIds); |
| | | } |
| | | return serviceSubtaskMapper.statQuestionOptionBySubtaskIds(subtaskIds, startOutHospTime, endOutHospTime); |
| | | |
| | | List<ServiceSubtaskDetailRatioExport> serviceSubtaskDetailRatioExports = serviceSubtaskMapper.statQuestionOptionBySubtaskIds(subtaskIds, startOutHospTime, endOutHospTime, scoreStart, scoreEnd, scriptContent,valueType); |
| | | // å¤ç targetvalueï¼æ & å岿夿¡è®°å½ |
| | | List<ServiceSubtaskDetailRatioExport> result = new ArrayList<>(); |
| | | for (ServiceSubtaskDetailRatioExport export : serviceSubtaskDetailRatioExports) { |
| | | if (StringUtils.isNotEmpty(export.getTargetvalue()) && export.getTargetvalue().contains("&")) { |
| | | String[] values = export.getTargetvalue().split("&"); |
| | | // 妿æå¤æ¡ç®æ å¼ï¼æåæå¤è¡ |
| | | for (String value : values) { |
| | | //å
å» result 䏿¥ä¸ä¸ï¼ææ²¡æè¿ä¸ª questiontext å对åºç targetvalue |
| | | ServiceSubtaskDetailRatioExport existingExport = result.stream() |
| | | .filter(e -> e.getQuestiontext().equals(export.getQuestiontext()) |
| | | && value.trim().equals(e.getTargetvalue())) |
| | | .findFirst() |
| | | .orElse(null); |
| | | if (existingExport != null && existingExport.getRatio().equals("0") && existingExport.getCount().equals("0")) { |
| | | //妿åå¨ï¼åå° result éçè¿ä¸ªé®é¢æå¯¹åºç Targetvalue=value è¿æ¡æ°æ®æ´æ°æå½åè¿æ¡æ°æ® |
| | | if(value.equals(export.getOptionresult())) { |
| | | existingExport.setRatio(export.getRatio()); |
| | | existingExport.setScore(export.getScore()); |
| | | existingExport.setCount(export.getCount()); |
| | | existingExport.setOptionresult(export.getOptionresult()); |
| | | } |
| | | } else if (existingExport != null && !existingExport.getRatio().equals("0")) { |
| | | continue; |
| | | } else { |
| | | ServiceSubtaskDetailRatioExport newExport = DtoConversionUtils.sourceToTarget(export, ServiceSubtaskDetailRatioExport.class); |
| | | newExport.setTargetvalue(value.trim()); // targetvalue æ¾ç¤ºå个é项 |
| | | if (!value.equals(export.getOptionresult())) { |
| | | newExport.setOptionresult(null); |
| | | newExport.setCount("0"); |
| | | newExport.setRatio("0"); |
| | | } |
| | | result.add(newExport); |
| | | } |
| | | } |
| | | } else { |
| | | // targetvalue ä¸å
å« &ï¼ç´æ¥æ·»å å°ç»æ |
| | | result.add(export); |
| | | } |
| | | } |
| | | |
| | | return result; |
| | | } |
| | | |
| | | /** |
| | |
| | | return back; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * é®é¢ç»æå æ¯ |
| | | * |
| | | * @param serviceSubtaskEntity |
| | | * @param serviceSubtaskRes |
| | | * @return |
| | | */ |
| | | public List<ServiceSubtaskDetailRatioExport> getDetailRatio(QuestionResultVO questionResultVO, List<ServiceSubtaskRes> serviceSubtaskRes) { |
| | | List<ServiceSubtaskDetailRatioExport> serviceSubtaskDetailRatioExports = null; |
| | | if (StringUtils.isNotEmpty(questionResultVO.getServiceType()) && questionResultVO.getServiceType().equals("2")) { |
| | | //è·åserviceSubtaskListä¸çæætaskid |
| | | List<Long> taskIds = serviceSubtaskRes.stream().map(ServiceSubtaskRes::getTaskid).filter(ObjectUtils::isNotEmpty).distinct().collect(Collectors.toList()); |
| | | serviceSubtaskDetailRatioExports = statQuestionOption(taskIds, questionResultVO.getStartOutHospTime(), questionResultVO.getEndOutHospTime(), questionResultVO.getQuestionContent(), questionResultVO.getStartScore(), questionResultVO.getEndScore(),questionResultVO.getValueType()); |
| | | } else if (StringUtils.isNotEmpty(questionResultVO.getServiceType()) && questionResultVO.getServiceType().equals("6")) { |
| | | //满æåº¦ç»è®¡ ï¼éè¿ subtask ç id å»ç»è®¡ï¼ |
| | | List<Long> subtaskIds = serviceSubtaskRes.stream().map(ServiceSubtaskRes::getId).collect(Collectors.toList()); |
| | | serviceSubtaskDetailRatioExports = statQuestionOptionBySubtaskIds(subtaskIds, questionResultVO.getStartOutHospTime(), questionResultVO.getEndOutHospTime(), questionResultVO.getQuestionContent(), questionResultVO.getStartScore(), questionResultVO.getEndScore(),questionResultVO.getValueType()); |
| | | } |
| | | return serviceSubtaskDetailRatioExports; |
| | | } |
| | | |
| | | //è·åä»»å¡ç»ä¿¡æ¯ |
| | | private void findServiceTaskScheduleVO(ServiceTaskVO serviceTaskVO) { |
| | | if (StringUtils.isNotEmpty(serviceTaskVO.getAppltype()) && serviceTaskVO.getAppltype().equals("5")) { |
| | |
| | | <result property="dutyDeptPersonCode" column="duty_dept_person_code"/> |
| | | <result property="reportDeptPersonCode" column="report_dept_person_name"/> |
| | | <result property="reportDeptPersonName" column="report_dept_person_code"/> |
| | | <result property="circulationDeptPersonCode" column="circulation_dept_person_code"/> |
| | | <result property="circulationDeptPersonName" column="circulation_dept_person_name"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectIvrLibaTemplateScriptVo"> |
| | |
| | | duty_dept_person_code, |
| | | report_dept_person_name, |
| | | report_dept_person_code, |
| | | circulation_dept_person_code, |
| | | circulation_dept_person_name, |
| | | dimension, |
| | | sort, |
| | | script_assortname, |
| | |
| | | <if test="reportDeptPersonCode != null and reportDeptPersonCode != ''">and report_dept_person_code like concat('%', #{reportDeptPersonCode}, |
| | | '%') |
| | | </if> |
| | | <if test="circulationDeptPersonCode != null and circulationDeptPersonCode != ''">and circulation_dept_person_code like concat('%', #{circulationDeptPersonCode}, |
| | | '%') |
| | | </if> |
| | | <if test="circulationDeptPersonName != null and circulationDeptPersonName != ''">and circulation_dept_person_name like concat('%', #{circulationDeptPersonName}, |
| | | '%') |
| | | </if> |
| | | </select> |
| | | |
| | | |
| | |
| | | <if test="dutyDeptPersonCode != null and dutyDeptPersonCode != ''">duty_dept_person_code,</if> |
| | | <if test="reportDeptPersonName != null and reportDeptPersonName != ''">report_dept_person_name,</if> |
| | | <if test="reportDeptPersonCode != null and reportDeptPersonCode != ''">report_dept_person_code,</if> |
| | | <if test="circulationDeptPersonCode != null and circulationDeptPersonCode != ''">circulation_dept_person_code,</if> |
| | | <if test="circulationDeptPersonName != null and circulationDeptPersonName != ''">circulation_dept_person_name,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="scriptno != null">#{scriptno},</if> |
| | |
| | | <if test="dutyDeptPersonCode != null and dutyDeptPersonCode != ''">#{dutyDeptPersonCode},</if> |
| | | <if test="reportDeptPersonName != null and reportDeptPersonName != ''">#{reportDeptPersonName},</if> |
| | | <if test="reportDeptPersonCode != null and reportDeptPersonCode != ''">#{reportDeptPersonCode},</if> |
| | | <if test="circulationDeptPersonCode != null and circulationDeptPersonCode != ''">#{circulationDeptPersonCode},</if> |
| | | <if test="circulationDeptPersonName != null and circulationDeptPersonName != ''">#{circulationDeptPersonName},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="dutyDeptPersonCode != null and dutyDeptPersonCode != ''">duty_dept_person_code = #{dutyDeptPersonCode},</if> |
| | | <if test="reportDeptPersonName != null and reportDeptPersonName != ''">report_dept_person_name = #{reportDeptPersonName},</if> |
| | | <if test="reportDeptPersonCode != null and reportDeptPersonCode != ''">report_dept_person_code = #{reportDeptPersonCode},</if> |
| | | <if test="circulationDeptPersonName != null and circulationDeptPersonName != ''">circulation_dept_person_name = #{circulationDeptPersonName},</if> |
| | | <if test="circulationDeptPersonCode != null and circulationDeptPersonCode != ''">circulation_dept_person_code = #{circulationDeptPersonCode},</if> |
| | | <if test="targetid != null">targetid = #{targetid},</if> |
| | | <if test="scriptTopic != null">script_topic = #{scriptTopic},</if> |
| | | <if test="nextScriptno != null">next_scriptno = #{nextScriptno},</if> |
| | |
| | | <result property="dutyDeptPersonCode" column="duty_dept_person_code"/> |
| | | <result property="reportDeptPersonCode" column="report_dept_person_name"/> |
| | | <result property="reportDeptPersonName" column="report_dept_person_code"/> |
| | | <result property="circulationDeptPersonCode" column="circulation_dept_person_code"/> |
| | | <result property="circulationDeptPersonName" column="circulation_dept_person_name"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectIvrTaskTemplateScriptVo"> |
| | |
| | | duty_dept_person_code, |
| | | report_dept_person_name, |
| | | report_dept_person_code, |
| | | circulation_dept_person_code, |
| | | circulation_dept_person_name, |
| | | sort, |
| | | ivrtext, |
| | | script_type, |
| | |
| | | #{reportDeptPersonCode}, |
| | | '%') |
| | | </if> |
| | | <if test="circulationDeptPersonCode != null and circulationDeptPersonCode != ''">and circulation_dept_person_code like concat('%', |
| | | #{circulationDeptPersonCode}, |
| | | '%') |
| | | </if> |
| | | <if test="circulationDeptPersonName != null and circulationDeptPersonName != ''">and circulation_dept_person_name like concat('%', |
| | | #{circulationDeptPersonName}, |
| | | '%') |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="selectIvrTaskTemplateScriptByID" parameterType="Long" resultMap="IvrTaskTemplateScriptResult"> |
| | |
| | | <if test="dutyDeptPersonCode != null and dutyDeptPersonCode != ''">duty_dept_person_code,</if> |
| | | <if test="reportDeptPersonName != null and reportDeptPersonName != ''">report_dept_person_name,</if> |
| | | <if test="reportDeptPersonCode != null and reportDeptPersonCode != ''">report_dept_person_code,</if> |
| | | <if test="circulationDeptPersonCode != null and circulationDeptPersonCode != ''">circulation_dept_person_code,</if> |
| | | <if test="circulationDeptPersonName != null and circulationDeptPersonName != ''">circulation_dept_person_name,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="taskid != null">#{taskid},</if> |
| | |
| | | <if test="dutyDeptPersonCode != null and dutyDeptPersonCode != ''">#{dutyDeptPersonCode},</if> |
| | | <if test="reportDeptPersonName != null and reportDeptPersonName != ''">#{reportDeptPersonName},</if> |
| | | <if test="reportDeptPersonCode != null and reportDeptPersonCode != ''">#{reportDeptPersonCode},</if> |
| | | <if test="circulationDeptPersonCode != null and circulationDeptPersonCode != ''">#{circulationDeptPersonCode},</if> |
| | | <if test="circulationDeptPersonName != null and circulationDeptPersonName != ''">#{circulationDeptPersonName},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="dutyDeptPersonCode != null and dutyDeptPersonCode != ''">duty_dept_person_code = #{dutyDeptPersonCode},</if> |
| | | <if test="reportDeptPersonName != null and reportDeptPersonName != ''">report_dept_person_name = #{reportDeptPersonName},</if> |
| | | <if test="reportDeptPersonCode != null and reportDeptPersonCode != ''">report_dept_person_code = #{reportDeptPersonCode},</if> |
| | | <if test="circulationDeptPersonName != null and circulationDeptPersonName != ''">circulation_dept_person_name = #{circulationDeptPersonName},</if> |
| | | <if test="circulationDeptPersonCode != null and circulationDeptPersonCode != ''">circulation_dept_person_code = #{circulationDeptPersonCode},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | |
| | | AND a.del_flag = 0 |
| | | AND b.del_flag = 0 |
| | | AND a.idcardno IS NOT NULL |
| | | <if test="inhospid != null">and b.inhospid = #{inhospid}</if> |
| | | <if test="startOutHospTime != null ">and date_format(b.endtime,'%y%m%d') >= |
| | | date_format(#{startOutHospTime},'%y%m%d') |
| | | </if> |
| | |
| | | order by b.endtime desc |
| | | </if> |
| | | <if test="cry != null and cry==0"> |
| | | order by b.starttime desc |
| | | order by b.starttime desc , b.bed_no asc |
| | | </if> |
| | | </select> |
| | | |
| | |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <update id="updatePatMedOperationItemByOperationid" parameterType="com.smartor.domain.PatMedOperationItem"> |
| | | update pat_med_operation_item |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="opid != null">opid = |
| | | #{opid}, |
| | | </if> |
| | | <if test="opcode != null">opcode = |
| | | #{opcode}, |
| | | </if> |
| | | <if test="opdesc != null">opdesc = |
| | | #{opdesc}, |
| | | </if> |
| | | <if test="mainFlag != null">main_flag = |
| | | #{mainFlag}, |
| | | </if> |
| | | <if test="incitypecode != null">incitypecode = |
| | | #{incitypecode}, |
| | | </if> |
| | | <if test="incitypedesc != null">incitypedesc = |
| | | #{incitypedesc}, |
| | | </if> |
| | | <if test="oplevelcode != null">oplevelcode = |
| | | #{oplevelcode}, |
| | | </if> |
| | | <if test="opleveldesc != null">opleveldesc = |
| | | #{opleveldesc}, |
| | | </if> |
| | | <if test="opposition != null">opposition = |
| | | #{opposition}, |
| | | </if> |
| | | <if test="delFlag != null">del_flag = |
| | | #{delFlag}, |
| | | </if> |
| | | <if test="updateBy != null">update_by = |
| | | #{updateBy}, |
| | | </if> |
| | | <if test="updateTime != null">update_time = |
| | | #{updateTime}, |
| | | </if> |
| | | <if test="createBy != null">create_by = |
| | | #{createBy}, |
| | | </if> |
| | | <if test="createTime != null">create_time = |
| | | #{createTime}, |
| | | </if> |
| | | <if test="isupload != null">isupload = |
| | | #{isupload}, |
| | | </if> |
| | | <if test="uploadTime != null">upload_time = |
| | | #{uploadTime}, |
| | | </if> |
| | | <if test="orgid != null">orgid = |
| | | #{orgid}, |
| | | </if> |
| | | <if test="pguid != null">pguid = |
| | | #{pguid}, |
| | | </if> |
| | | <if test="guid != null">guid = |
| | | #{guid}, |
| | | </if> |
| | | <if test="pid != null">pid = |
| | | #{pid}, |
| | | </if> |
| | | <if test="opercheckFlag != null">opercheck_flag = |
| | | #{opercheckFlag}, |
| | | </if> |
| | | <if test="longTaskReason != null">long_task_reason = |
| | | #{longTaskReason}, |
| | | </if> |
| | | <if test="inhospstate != null">inhospstate = |
| | | #{inhospstate}, |
| | | </if> |
| | | <if test="serialnum != null">serialnum = |
| | | #{serialnum}, |
| | | </if> |
| | | </trim> |
| | | where operationid = #{operationid} |
| | | and opcode = #{opcode} |
| | | </update> |
| | | |
| | | <insert id="insertPatMedOperationItems"> |
| | | insert into pat_med_operation_item |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | |
| | | <delete id="deleteHardPatMedOperationItemByOpId" parameterType="String"> |
| | | delete from pat_med_operation_item |
| | | where opid = #{opid} |
| | | and opercheck_flag != 1 |
| | | </delete> |
| | | |
| | | <update id="deletePatMedOperationItemByOperationid" parameterType="Long"> |
| | | update pat_med_operation_item |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | del_flag =1 |
| | | </trim> |
| | | where operationid = #{operationid} |
| | | and opercheck_flag != 1 |
| | | </update> |
| | | |
| | | <update id="deleteSoftPatMedOperationItemByOpId" parameterType="String"> |
| | | update pat_med_operation_item |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | del_flag =1 |
| | | </trim> |
| | | where opid = #{opid} |
| | | </update> |
| | | |
| | | <select id="selectOperationItemList" parameterType="com.smartor.domain.PatMedOperationItem" |
| | | resultMap="PatMedOperationItemResult"> |
| | |
| | | from pat_med_operation pmo |
| | | join pat_med_operation_item pmoi |
| | | on pmoi.opid = pmo.opid |
| | | left join pat_med_inhosp pmi |
| | | join pat_med_inhosp pmi |
| | | on pmo.serialnum = pmi.serialnum |
| | | where |
| | | pmo.del_flag = '0' |
| | |
| | | <if test="endTime != null"> |
| | | AND date_format(update_time,'%y%m%d') <= date_format(#{endTime},'%y%m%d') |
| | | </if> |
| | | <if test="ids != null and ids.size()>0"> |
| | | AND id IN |
| | | <foreach collection="ids" item="idItem" open="(" separator="," |
| | | close=")"> |
| | | #{idItem} |
| | | </foreach> |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="selectPatSatisfactionById" parameterType="Long" |
| | |
| | | <result property="dutyDeptPersonCode" column="duty_dept_person_code"/> |
| | | <result property="reportDeptPersonCode" column="report_dept_person_name"/> |
| | | <result property="reportDeptPersonName" column="report_dept_person_code"/> |
| | | <result property="circulationDeptPersonCode" column="circulation_dept_person_code"/> |
| | | <result property="circulationDeptPersonName" column="circulation_dept_person_name"/> |
| | | <result property="circulationDeptCode" column="circulation_dept_code"/> |
| | | <result property="circulationDeptName" column="circulation_dept_name"/> |
| | | <result property="circulationExplain" column="circulation_explain"/> |
| | | <result property="circulationTime" column="circulation_time"/> |
| | | <result property="circulationStatus" column="circulation_status"/> |
| | | <result property="circulationPersonName" column="circulation_person_name"/> |
| | | <result property="circulationPersonCode" column="circulation_person_code"/> |
| | | |
| | | </resultMap> |
| | | |
| | | <sql id="selectServiceSubtaskDetailTtraceVo"> |
| | | select id, |
| | | circulation_status, |
| | | circulation_person_name, |
| | | circulation_person_code, |
| | | duty_dept_person_name, |
| | | duty_dept_person_code, |
| | | report_dept_person_name, |
| | | report_dept_person_code, |
| | | circulation_dept_person_code, |
| | | circulation_dept_person_name, |
| | | circulation_dept_code, |
| | | circulation_dept_name, |
| | | circulation_explain, |
| | | circulation_time, |
| | | detail_id, |
| | | is_myd_exception, |
| | | dimension, |
| | |
| | | <if test="reportDeptPersonCode != null and reportDeptPersonCode != ''"> |
| | | and report_dept_person_code like concat('%', #{reportDeptPersonCode}, '%') |
| | | </if> |
| | | <if test="circulationDeptPersonCode != null and circulationDeptPersonCode != ''"> |
| | | and circulation_dept_person_code like concat('%', #{circulationDeptPersonCode}, '%') |
| | | </if> |
| | | <if test="circulationDeptPersonName != null and circulationDeptPersonName != ''"> |
| | | and circulation_dept_person_name like concat('%', #{circulationDeptPersonName}, '%') |
| | | </if> |
| | | <if test="circulationDeptCode != null and circulationDeptCode != ''"> |
| | | and circulation_dept_code like concat('%', #{circulationDeptCode}, '%') |
| | | </if> |
| | | <if test="circulationDeptName != null and circulationDeptName != ''"> |
| | | and circulation_dept_name like concat('%', #{circulationDeptName}, '%') |
| | | </if> |
| | | <if test="circulationExplain != null and circulationExplain != ''"> |
| | | and circulation_explain like concat('%', #{circulationExplain}, '%') |
| | | </if> |
| | | <if test="circulationTime != null "> |
| | | and circulation_time = #{circulationTime} |
| | | </if> |
| | | <if test="circulationStatus != null "> |
| | | and circulation_status = #{circulationStatus} |
| | | </if> |
| | | <if test="circulationPersonName != null and circulationPersonName != ''"> |
| | | and circulation_person_name like concat('%', #{circulationPersonName}, '%') |
| | | </if> |
| | | <if test="circulationPersonCode != null and circulationPersonCode != ''"> |
| | | and circulation_person_code =#{circulationPersonCode} |
| | | </if> |
| | | <if test="pageSize != null and pageNum != null">limit ${pageSize} OFFSET ${pageNum}</if> |
| | | </select> |
| | | |
| | |
| | | </if> |
| | | <if test="reportDeptPersonCode != null and reportDeptPersonCode != ''"> |
| | | and report_dept_person_code like concat('%', #{reportDeptPersonCode}, '%') |
| | | </if> |
| | | <if test="circulationDeptPersonCode != null and circulationDeptPersonCode != ''"> |
| | | and circulation_dept_person_code like concat('%', #{circulationDeptPersonCode}, '%') |
| | | </if> |
| | | <if test="circulationDeptPersonName != null and circulationDeptPersonName != ''"> |
| | | and circulation_dept_person_name like concat('%', #{circulationDeptPersonName}, '%') |
| | | </if> |
| | | <if test="circulationDeptCode != null and circulationDeptCode != ''"> |
| | | and circulation_dept_code like concat('%', #{circulationDeptCode}, '%') |
| | | </if> |
| | | <if test="circulationDeptName != null and circulationDeptName != ''"> |
| | | and circulation_dept_name like concat('%', #{circulationDeptName}, '%') |
| | | </if> |
| | | <if test="circulationExplain != null and circulationExplain != ''"> |
| | | and circulation_explain like concat('%', #{circulationExplain}, '%') |
| | | </if> |
| | | <if test="circulationTime != null "> |
| | | and circulation_time = #{circulationTime} |
| | | </if> |
| | | <if test="circulationStatus != null "> |
| | | and circulation_status = #{circulationStatus} |
| | | </if> |
| | | <if test="circulationPersonName != null and circulationPersonName != ''"> |
| | | and circulation_person_name like concat('%', #{circulationPersonName}, '%') |
| | | </if> |
| | | <if test="circulationPersonCode != null and circulationPersonCode != ''"> |
| | | and circulation_person_code =#{circulationPersonCode} |
| | | </if> |
| | | </select> |
| | | |
| | |
| | | </if> |
| | | <if test="reportDeptPersonCode != null">report_dept_person_code, |
| | | </if> |
| | | <if test="circulationDeptPersonCode != null">circulation_dept_person_code, |
| | | </if> |
| | | <if test="circulationDeptPersonName != null">circulation_dept_person_name, |
| | | </if> |
| | | <if test="circulationDeptCode != null "> |
| | | circulation_dept_code, |
| | | </if> |
| | | <if test="circulationDeptName != null"> |
| | | circulation_dept_name, |
| | | </if> |
| | | <if test="circulationExplain != null "> |
| | | circulation_explain, |
| | | </if> |
| | | <if test="circulationTime != null "> |
| | | circulation_time, |
| | | </if> |
| | | <if test="circulationStatus != null "> |
| | | circulation_status, |
| | | </if> |
| | | <if test="circulationPersonName != null and circulationPersonName != ''"> |
| | | circulation_person_name, |
| | | </if> |
| | | <if test="circulationPersonCode != null and circulationPersonCode != ''"> |
| | | circulation_person_code, |
| | | </if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="detailId != null">#{detailId}, |
| | |
| | | <if test="reportDeptPersonName != null">#{reportDeptPersonName}, |
| | | </if> |
| | | <if test="reportDeptPersonCode != null">#{reportDeptPersonCode}, |
| | | </if> |
| | | <if test="circulationDeptPersonCode != null">#{circulationDeptPersonCode}, |
| | | </if> |
| | | <if test="circulationDeptPersonName != null">#{circulationDeptPersonName}, |
| | | </if> |
| | | <if test="circulationDeptCode != null"> |
| | | #{circulationDeptCode}, |
| | | </if> |
| | | <if test="circulationDeptName != null"> |
| | | #{circulationDeptName}, |
| | | </if> |
| | | <if test="circulationExplain != null"> |
| | | #{circulationExplain}, |
| | | </if> |
| | | <if test="circulationTime != null "> |
| | | #{circulationTime}, |
| | | </if> |
| | | <if test="circulationStatus != null "> |
| | | #{circulationStatus}, |
| | | </if> |
| | | <if test="circulationPersonName != null and circulationPersonName != ''"> |
| | | #{circulationPersonName}, |
| | | </if> |
| | | <if test="circulationPersonCode != null and circulationPersonCode != ''"> |
| | | #{circulationPersonCode}, |
| | | </if> |
| | | </trim> |
| | | </insert> |
| | |
| | | <if test="reportDeptPersonCode != null">report_dept_person_code = |
| | | #{reportDeptPersonCode}, |
| | | </if> |
| | | <if test="circulationDeptPersonCode != null">circulation_dept_person_code = |
| | | #{circulationDeptPersonCode}, |
| | | </if> |
| | | <if test="circulationDeptPersonName != null">circulation_dept_person_name = |
| | | #{circulationDeptPersonName}, |
| | | </if> |
| | | <if test="circulationDeptCode != null">circulation_dept_code = |
| | | #{circulationDeptCode}, |
| | | </if> |
| | | <if test="circulationDeptName != null">circulation_dept_name = |
| | | #{circulationDeptName}, |
| | | </if> |
| | | <if test="circulationExplain != null">circulation_explain = |
| | | #{circulationExplain}, |
| | | </if> |
| | | <if test="circulationTime != null">circulation_time = |
| | | #{circulationTime}, |
| | | </if> |
| | | <if test="circulationStatus != null "> |
| | | circulation_status = #{circulationStatus}, |
| | | </if> |
| | | <if test="circulationPersonName != null and circulationPersonName != ''"> |
| | | circulation_person_name =#{circulationPersonName}, |
| | | </if> |
| | | <if test="circulationPersonCode != null and circulationPersonCode != ''"> |
| | | circulation_person_code =#{circulationPersonCode}, |
| | | </if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | |
| | | #{itemTaskId} |
| | | </foreach> |
| | | </if> |
| | | <if test="operationItemIds != null and operationItemIds.size() > 0"> |
| | | AND operation_item_id IN |
| | | <foreach collection="operationItemIds" item="operationItemIdItem" open="(" separator="," close=")"> |
| | | #{operationItemIdItem} |
| | | </foreach> |
| | | </if> |
| | | <if test="templateid != null and templateid != ''">and templateid = #{templateid}</if> |
| | | <if test="templatename != null and templatename != ''">and templatename like concat('%', #{templatename}, |
| | | '%') |
| | |
| | | </if> |
| | | <if test="endSendDateTime != null"> |
| | | AND date_format(visit_time,'%y%m%d') <= date_format(#{endSendDateTime},'%y%m%d') |
| | | </if> |
| | | <if test="finishtimeStart != null"> |
| | | AND date_format(finishtime,'%y%m%d') >= date_format(#{finishtimeStart},'%y%m%d') |
| | | </if> |
| | | <if test="finishtimeEnd != null"> |
| | | AND date_format(finishtime,'%y%m%d') <= date_format(#{finishtimeEnd},'%y%m%d') |
| | | </if> |
| | | <if test="longSendTime != null"> |
| | | AND date_format(long_send_time,'%y%m%d') <= date_format(#{longSendTime},'%y%m%d') |
| | |
| | | <if test="libtemplatename != null ">and libtemplatename = #{libtemplatename}</if> |
| | | <if test="openid != null ">and openid = #{openid}</if> |
| | | <if test="sendstate != null ">and sendstate = #{sendstate}</if> |
| | | <if test="operationItemId != null ">and operation_item_id = #{operationItemId}</if> |
| | | <if test="drname != null and drname != ''">and drname like concat('%', #{drname}, '%')</if> |
| | | <if test="taskName != null and taskName != ''">and task_name like concat('%', #{taskName}, '%')</if> |
| | | <if test="drcode != null and drcode != ''">and (drcode = #{drcode}</if> |
| | |
| | | t.taskid AS taskid, |
| | | t.task_name AS taskName, |
| | | d.asrtext AS optionresult, |
| | | d.score AS score, |
| | | d.targetvalue AS targetvalue, |
| | | d.value_type AS valueType, |
| | | COUNT(*) AS count, |
| | | CONCAT(ROUND(COUNT(*) * 100.0 / t2.total_count, 2), '%') AS ratio |
| | | FROM |
| | |
| | | service_task t |
| | | INNER JOIN service_subtask s ON s.taskid = t.taskid |
| | | INNER JOIN service_subtask_detail d ON d.sub_id = s.id |
| | | WHERE t.taskid IN |
| | | <foreach collection="taskIds" item="taskId" open="(" separator="," close=")"> |
| | | #{taskId} |
| | | </foreach> |
| | | WHERE 1=1 |
| | | <if test="taskIds != null and taskIds.size() > 0"> |
| | | AND t.taskid IN |
| | | <foreach collection="taskIds" item="taskId" open="(" separator="," close=")"> |
| | | #{taskId} |
| | | </foreach> |
| | | </if> |
| | | <if test="valueType != null">AND d.value_type = #{valueType}</if> |
| | | <if test="scoreStart != null">AND d.score >= #{scoreStart}</if> |
| | | <if test="scoreEnd != null">AND d.score <= #{scoreEnd}</if> |
| | | <if test="questiontext != null and questiontext != ''">and d.questiontext like concat('%', #{questiontext}, |
| | | '%') |
| | | </if> |
| | | and s.sendstate=6 |
| | | and d.del_flag=0 |
| | | GROUP BY |
| | | t.taskid, |
| | | d.questiontext |
| | | ) t2 ON t2.taskid = t.taskid AND t2.questiontext = d.questiontext |
| | | WHERE t.taskid IN |
| | | <foreach collection="taskIds" item="taskId" open="(" separator="," close=")"> |
| | | #{taskId} |
| | | </foreach> |
| | | WHERE 1=1 |
| | | <if test="taskIds != null and taskIds.size() > 0"> |
| | | AND t.taskid IN |
| | | <foreach collection="taskIds" item="taskId" open="(" separator="," close=")"> |
| | | #{taskId} |
| | | </foreach> |
| | | </if> |
| | | <if test="valueType != null">AND d.value_type = #{valueType}</if> |
| | | <if test="scoreStart != null">AND d.score >= #{scoreStart}</if> |
| | | <if test="scoreEnd != null">AND d.score <= #{scoreEnd}</if> |
| | | <if test="questiontext != null and questiontext != ''">and d.questiontext like concat('%', #{questiontext}, |
| | | '%') |
| | | </if> |
| | | AND s.sendstate = 6 |
| | | and d.del_flag=0 |
| | | <if test="startOutHospTime != null"> |
| | | AND date_format(s.endtime,'%y%m%d') >= date_format(#{startOutHospTime},'%y%m%d') |
| | | </if> |
| | | <if test="startOutHospTime != null"> |
| | | AND date_format(s.endtime,'%y%m%d') >= date_format(#{startOutHospTime},'%y%m%d') |
| | | </if> |
| | | <if test="endOutHospTime != null"> |
| | | AND date_format(s.endtime,'%y%m%d') <= date_format(#{endOutHospTime},'%y%m%d') |
| | | </if> |
| | | GROUP BY |
| | | t.taskid, |
| | | d.questiontext, |
| | | d.asrtext |
| | | d.score, |
| | | d.targetvalue, |
| | | d.asrtext, |
| | | d.value_type |
| | | ORDER BY |
| | | d.questiontext, |
| | | t.taskid |
| | |
| | | t.taskid AS taskid, |
| | | t.task_name AS taskName, |
| | | d.asrtext AS optionresult, |
| | | d.score AS score, |
| | | d.targetvalue AS targetvalue, |
| | | d.value_type AS valueType, |
| | | COUNT(*) AS count, |
| | | CONCAT(ROUND(COUNT(*) * 100.0 / t2.total_count, 2), '%') AS ratio |
| | | FROM |
| | |
| | | service_task t |
| | | INNER JOIN service_subtask s ON s.taskid = t.taskid |
| | | INNER JOIN service_subtask_detail d ON d.sub_id = s.id |
| | | WHERE s.id IN |
| | | WHERE 1=1 |
| | | <if test="subtaskIds != null and subtaskIds.size() > 0"> |
| | | AND s.id IN |
| | | <foreach collection="subtaskIds" item="subtaskId" open="(" separator="," close=")"> |
| | | #{subtaskId} |
| | | </foreach> |
| | | </if> |
| | | <if test="valueType != null">AND d.value_type >= #{valueType}</if> |
| | | <if test="scoreStart != null">AND d.score = #{scoreStart}</if> |
| | | <if test="scoreEnd != null">AND d.score <= #{scoreEnd}</if> |
| | | <if test="questiontext != null and questiontext != ''">and d.questiontext like concat('%', #{questiontext}, '%')</if> |
| | | AND s.sendstate = 6 |
| | | AND d.del_flag=0 |
| | | GROUP BY d.questiontext -- â å
³é®ä¿®æ¹ï¼æé¢ç®åç»ç»è®¡æ¯ä¸ªé¢ç®çæ»æ° |
| | | ) t2 ON t2.questiontext = d.questiontext -- â å
³èå°å½åé¢ç® |
| | | WHERE s.id IN |
| | | GROUP BY d.questiontext |
| | | ) t2 ON t2.questiontext = d.questiontext |
| | | WHERE 1=1 |
| | | <if test="subtaskIds != null and subtaskIds.size() > 0"> |
| | | AND s.id IN |
| | | <foreach collection="subtaskIds" item="subtaskId" open="(" separator="," close=")"> |
| | | #{subtaskId} |
| | | </foreach> |
| | | </if> |
| | | AND s.sendstate = 6 |
| | | AND d.del_flag=0 |
| | | <if test="valueType != null">AND d.value_type >= #{valueType}</if> |
| | | <if test="scoreStart != null">AND d.score >= #{scoreStart}</if> |
| | | <if test="scoreEnd != null">AND d.score <= #{scoreEnd}</if> |
| | | <if test="questiontext != null and questiontext != ''">and d.questiontext like concat('%', #{questiontext}, '%')</if> |
| | | <if test="startOutHospTime != null"> |
| | | AND date_format(s.endtime,'%y%m%d') >= date_format(#{startOutHospTime},'%y%m%d') |
| | | </if> |
| | |
| | | GROUP BY |
| | | t.taskid, |
| | | d.questiontext, |
| | | d.score, |
| | | d.targetvalue, |
| | | d.asrtext |
| | | ORDER BY |
| | | d.questiontext, |
| | |
| | | <result property="reportDeptPersonName" column="report_dept_person_code"/> |
| | | <result property="isMydException" column="is_myd_exception"/> |
| | | <result property="dimension" column="dimension"/> |
| | | <result property="circulationDeptPersonCode" column="circulation_dept_person_code"/> |
| | | <result property="circulationDeptPersonName" column="circulation_dept_person_name"/> |
| | | |
| | | </resultMap> |
| | | |
| | |
| | | script_picture, |
| | | script_topic, |
| | | isavailable, language, otherdata, value_type, reply, scoretype |
| | | , circulation_dept_person_code, circulation_dept_person_name |
| | | from svy_lib_template_script |
| | | </sql> |
| | | |
| | |
| | | #{reportDeptPersonCode}, |
| | | '%') |
| | | </if> |
| | | <if test="circulationDeptPersonCode != null and circulationDeptPersonCode != ''">and circulation_dept_person_code like concat('%', |
| | | #{circulationDeptPersonCode}, |
| | | '%') |
| | | </if> |
| | | <if test="circulationDeptPersonName != null and circulationDeptPersonName != ''">and circulation_dept_person_name like concat('%', |
| | | #{circulationDeptPersonName}, |
| | | '%') |
| | | </if> |
| | | <if test="pageSize != null and pageNum != null">limit ${pageSize} OFFSET ${pageNum}</if> |
| | | </select> |
| | | |
| | |
| | | </if> |
| | | <if test="reportDeptPersonCode != null and reportDeptPersonCode != ''">and report_dept_person_code like concat('%', |
| | | #{reportDeptPersonCode}, |
| | | '%') |
| | | </if> |
| | | <if test="circulationDeptPersonCode != null and circulationDeptPersonCode != ''">and circulation_dept_person_code like concat('%', |
| | | #{circulationDeptPersonCode}, |
| | | '%') |
| | | </if> |
| | | <if test="circulationDeptPersonName != null and circulationDeptPersonName != ''">and circulation_dept_person_name like concat('%', |
| | | #{circulationDeptPersonName}, |
| | | '%') |
| | | </if> |
| | | <if test="dimensionList == null ">and dimension IS NOT NULL </if> |
| | |
| | | <if test="dutyDeptPersonCode != null and dutyDeptPersonCode != ''">duty_dept_person_code,</if> |
| | | <if test="reportDeptPersonName != null and reportDeptPersonName != ''">report_dept_person_name,</if> |
| | | <if test="reportDeptPersonCode != null and reportDeptPersonCode != ''">report_dept_person_code,</if> |
| | | <if test="circulationDeptPersonCode != null and circulationDeptPersonCode != ''">circulation_dept_person_code,</if> |
| | | <if test="circulationDeptPersonName != null and circulationDeptPersonName != ''">circulation_dept_person_name,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="nextScriptno != null">#{nextScriptno},</if> |
| | |
| | | <if test="dutyDeptPersonCode != null and dutyDeptPersonCode != ''">#{dutyDeptPersonCode},</if> |
| | | <if test="reportDeptPersonName != null and reportDeptPersonName != ''">#{reportDeptPersonName},</if> |
| | | <if test="reportDeptPersonCode != null and reportDeptPersonCode != ''">#{reportDeptPersonCode},</if> |
| | | <if test="circulationDeptPersonCode != null and circulationDeptPersonCode != ''">#{circulationDeptPersonCode},</if> |
| | | <if test="circulationDeptPersonName != null and circulationDeptPersonName != ''">#{circulationDeptPersonName},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="dutyDeptPersonCode != null and dutyDeptPersonCode != ''">duty_dept_person_code = #{dutyDeptPersonCode},</if> |
| | | <if test="reportDeptPersonName != null and reportDeptPersonName != ''">report_dept_person_name = #{reportDeptPersonName},</if> |
| | | <if test="reportDeptPersonCode != null and reportDeptPersonCode != ''">report_dept_person_code = #{reportDeptPersonCode},</if> |
| | | <if test="circulationDeptPersonName != null and circulationDeptPersonName != ''">circulation_dept_person_name = #{circulationDeptPersonName},</if> |
| | | <if test="circulationDeptPersonCode != null and circulationDeptPersonCode != ''">circulation_dept_person_code = #{circulationDeptPersonCode},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | |
| | | <result property="reportDeptPersonName" column="report_dept_person_code"/> |
| | | <result property="isMydException" column="is_myd_exception"/> |
| | | <result property="dimension" column="dimension"/> |
| | | <result property="circulationDeptPersonCode" column="circulation_dept_person_code"/> |
| | | <result property="circulationDeptPersonName" column="circulation_dept_person_name"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectSvyTaskTemplateScriptVo"> |
| | |
| | | scriptid, |
| | | script_topic, language, categoryName, script_content, is_must, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, orgid, pid, guid, value_type, targetoptions, script_type, targetid, targetvalue, next_scriptno, script_result, otherdata, picture_path |
| | | , duty_dept_person_name, duty_dept_person_code, report_dept_person_name, report_dept_person_code |
| | | , circulation_dept_person_code, circulation_dept_person_name |
| | | from svy_task_template_script |
| | | </sql> |
| | | |
| | |
| | | <if test="reportDeptPersonCode != null and reportDeptPersonCode != ''">and report_dept_person_code like concat('%', #{reportDeptPersonCode}, |
| | | '%') |
| | | </if> |
| | | <if test="circulationDeptPersonCode != null and circulationDeptPersonCode != ''">and circulation_dept_person_code like concat('%', #{circulationDeptPersonCode}, |
| | | '%') |
| | | </if> |
| | | <if test="circulationDeptPersonName != null and circulationDeptPersonName != ''">and circulation_dept_person_name like concat('%', #{circulationDeptPersonName}, |
| | | '%') |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="selectSvyTaskTemplateScriptByID" parameterType="Long" resultMap="SvyTaskTemplateScriptResult"> |
| | |
| | | <if test="dutyDeptPersonCode != null and dutyDeptPersonCode != ''">duty_dept_person_code,</if> |
| | | <if test="reportDeptPersonName != null and reportDeptPersonName != ''">report_dept_person_name,</if> |
| | | <if test="reportDeptPersonCode != null and reportDeptPersonCode != ''">report_dept_person_code,</if> |
| | | <if test="circulationDeptPersonCode != null and circulationDeptPersonCode != ''">circulation_dept_person_code,</if> |
| | | <if test="circulationDeptPersonName != null and circulationDeptPersonName != ''">circulation_dept_person_name,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="taskid != null">#{taskid},</if> |
| | |
| | | <if test="dutyDeptPersonCode != null and dutyDeptPersonCode != ''">#{dutyDeptPersonCode},</if> |
| | | <if test="reportDeptPersonName != null and reportDeptPersonName != ''">#{reportDeptPersonName},</if> |
| | | <if test="reportDeptPersonCode != null and reportDeptPersonCode != ''">#{reportDeptPersonCode},</if> |
| | | <if test="circulationDeptPersonCode != null and circulationDeptPersonCode != ''">#{circulationDeptPersonCode},</if> |
| | | <if test="circulationDeptPersonName != null and circulationDeptPersonName != ''">#{circulationDeptPersonName},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="dutyDeptPersonCode != null and dutyDeptPersonCode != ''">duty_dept_person_code = #{dutyDeptPersonCode},</if> |
| | | <if test="reportDeptPersonName != null and reportDeptPersonName != ''">report_dept_person_name = #{reportDeptPersonName},</if> |
| | | <if test="reportDeptPersonCode != null and reportDeptPersonCode != ''">report_dept_person_code = #{reportDeptPersonCode},</if> |
| | | <if test="circulationDeptPersonName != null and circulationDeptPersonName != ''">circulation_dept_person_name = #{circulationDeptPersonName},</if> |
| | | <if test="circulationDeptPersonCode != null and circulationDeptPersonCode != ''">circulation_dept_person_code = #{circulationDeptPersonCode},</if> |
| | | </trim> |
| | | where id = #{d} |
| | | </update> |