|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | log.info("==============================Targetregexçå¼ä¸ºï¼{},   Targetregex2çå¼ä¸ºï¼{}", ivrLibaTemplateScriptVO.getIvrLibaScriptTargetoptionList().get(j).getTargetregex(), ivrLibaTemplateScriptVO.getIvrLibaScriptTargetoptionList().get(j).getTargetregex2()); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | if (StringUtils.isNotEmpty(ivrLibaTemplateScriptVO.getIvrLibaScriptTargetoptionList().get(j).getTargetregex()) && matcher.matches() && StringUtils.isNotEmpty(ivrLibaTemplateScriptVO.getIvrLibaScriptTargetoptionList().get(j).getTargetregex2()) && matcher2.matches() || StringUtils.isEmpty(ivrLibaTemplateScriptVO.getIvrLibaScriptTargetoptionList().get(j).getTargetregex()) && StringUtils.isNotEmpty(ivrLibaTemplateScriptVO.getIvrLibaScriptTargetoptionList().get(j).getTargetregex2()) && matcher2.matches() || StringUtils.isEmpty(ivrLibaTemplateScriptVO.getIvrLibaScriptTargetoptionList().get(j).getTargetregex2()) && StringUtils.isNotEmpty(ivrLibaTemplateScriptVO.getIvrLibaScriptTargetoptionList().get(j).getTargetregex()) && matcher.matches()) { | 
|---|
|  |  |  | if (StringUtils.isNotEmpty(ivrLibaTemplateScriptVO.getIvrLibaScriptTargetoptionList().get(j).getTargetregex2()) && matcher2.matches() && StringUtils.isNotEmpty(ivrLibaTemplateScriptVO.getIvrLibaScriptTargetoptionList().get(j).getTargetregex()) && matcher.matches() || StringUtils.isEmpty(ivrLibaTemplateScriptVO.getIvrLibaScriptTargetoptionList().get(j).getTargetregex2()) && StringUtils.isNotEmpty(ivrLibaTemplateScriptVO.getIvrLibaScriptTargetoptionList().get(j).getTargetregex()) && matcher.matches()) { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //说æå¹é
æ£ç¡®äº | 
|---|
|  |  |  | ivrLibaTemplateScriptVO.getIvrLibaScriptTargetoptionList().get(j).setIsUserOperation(true); | 
|---|
|  |  |  | List<IvrLibaTemplateScriptVO> backQuset = redisCache.getCacheObject(userId + "backQuset"); | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | return rspData; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * ææ æµè¯é®é¢å¹é
 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @ApiOperation("ææ æµè¯é®é¢å¹é
") | 
|---|
|  |  |  | @PostMapping("/targetQuesMate") | 
|---|
|  |  |  | public AjaxResult targetQuesMate(@RequestBody IvrLibaTargetVO ivrLibaTarget) { | 
|---|
|  |  |  | return success(ivrLibaTargetService.targetQuesMate(ivrLibaTarget)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | import com.ruoyi.common.utils.DtoConversionUtils; | 
|---|
|  |  |  | import com.ruoyi.common.utils.PageUtils; | 
|---|
|  |  |  | import com.ruoyi.common.utils.poi.ExcelUtil; | 
|---|
|  |  |  | import com.smartor.domain.*; | 
|---|
|  |  |  | import com.smartor.domain.IvrTaskSingle; | 
|---|
|  |  |  | import com.smartor.domain.IvrTaskSingleVO; | 
|---|
|  |  |  | import com.smartor.domain.PhoneCallBackVO; | 
|---|
|  |  |  | import com.smartor.service.IIvrTaskSingleService; | 
|---|
|  |  |  | import io.swagger.annotations.Api; | 
|---|
|  |  |  | import io.swagger.annotations.ApiOperation; | 
|---|
|  |  |  | import lombok.extern.slf4j.Slf4j; | 
|---|
|  |  |  | import org.springframework.beans.factory.annotation.Autowired; | 
|---|
|  |  |  | import org.springframework.security.access.prepost.PreAuthorize; | 
|---|
|  |  |  | import org.springframework.web.bind.annotation.*; | 
|---|
|  |  |  | 
|---|
|  |  |  | * @author ruoyi | 
|---|
|  |  |  | * @date 2024-02-02 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Slf4j | 
|---|
|  |  |  | @Api(description = "åä¸ä»»å¡ï¼é访宣æï¼") | 
|---|
|  |  |  | @RestController | 
|---|
|  |  |  | @RequestMapping("/smartor/tasksingle") | 
|---|
|  |  |  | public class IvrTaskSingleController extends BaseController { | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | private IIvrTaskSingleService ivrTaskcallService; | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * æ¥è¯¢æ£è
éè®¿ä¿¡æ¯ | 
|---|
|  |  |  | 
|---|
|  |  |  | return success(ivrTaskSingleVO); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * ä»»å¡åéæ§è¡ | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | 
|---|
|  |  |  | return toAjax(ivrTaskcallService.heTaskSend(ivrTaskcallVO)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * çµè¯åè°ä»»å¡ | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @ApiOperation("çµè¯åè°ä»»å¡") | 
|---|
|  |  |  | @PostMapping("/phoneCallBack") | 
|---|
|  |  |  | public AjaxResult phoneCallBack(@RequestBody PhoneCallBackVO phoneCallBackVO) { | 
|---|
|  |  |  | //妿uuidå¨redis䏿¾ä¸å°ï¼é£å°±ç´æ¥æ¥å¼å¸¸ | 
|---|
|  |  |  | return success(ivrTaskcallService.phoneCallBack(phoneCallBackVO)); | 
|---|
|  |  |  | log.error("çµè¯åè°ä»»å¡æåäºä¸ï¼{}", phoneCallBackVO); | 
|---|
|  |  |  | ivrTaskcallService.phoneCallBack(phoneCallBackVO); | 
|---|
|  |  |  | return success(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|
| ¶Ô±ÈÐÂÎļþ | 
|  |  |  | 
|---|
|  |  |  | package com.ruoyi.web.controller.smartor; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 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.poi.ExcelUtil; | 
|---|
|  |  |  | import com.smartor.domain.PatArchiveOut; | 
|---|
|  |  |  | import com.smartor.service.IPatArchiveOutService; | 
|---|
|  |  |  | import io.swagger.annotations.Api; | 
|---|
|  |  |  | import io.swagger.annotations.ApiOperation; | 
|---|
|  |  |  | import org.springframework.beans.factory.annotation.Autowired; | 
|---|
|  |  |  | import org.springframework.security.access.prepost.PreAuthorize; | 
|---|
|  |  |  | import org.springframework.web.bind.annotation.*; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import javax.servlet.http.HttpServletResponse; | 
|---|
|  |  |  | import java.util.List; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * å¤é¨æ£è
æ¡£æ¡Controller | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * @author ruoyi | 
|---|
|  |  |  | * @date 2024-04-29 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Api(description = "å¤é¨æ£è
æ¡£æ¡") | 
|---|
|  |  |  | @RestController | 
|---|
|  |  |  | @RequestMapping("/smartor/patarchiveout") | 
|---|
|  |  |  | public class PatArchiveOutController extends BaseController { | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | private IPatArchiveOutService patArchiveOutService; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * æ¥è¯¢å¤é¨æ£è
æ¡£æ¡å表 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @ApiOperation("æ¥è¯¢å¤é¨æ£è
æ¡£æ¡å表") | 
|---|
|  |  |  | @PostMapping("/list") | 
|---|
|  |  |  | public TableDataInfo list(PatArchiveOut patArchiveOut) { | 
|---|
|  |  |  | startPage(); | 
|---|
|  |  |  | List<PatArchiveOut> list = patArchiveOutService.selectPatArchiveOutList(patArchiveOut); | 
|---|
|  |  |  | return getDataTable(list); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * å¯¼åºå¤é¨æ£è
æ¡£æ¡å表 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @ApiOperation("导åºå¤é¨æ£è
æ¡£æ¡å表") | 
|---|
|  |  |  | @PostMapping("/export") | 
|---|
|  |  |  | public void export(HttpServletResponse response, PatArchiveOut patArchiveOut) { | 
|---|
|  |  |  | List<PatArchiveOut> list = patArchiveOutService.selectPatArchiveOutList(patArchiveOut); | 
|---|
|  |  |  | ExcelUtil<PatArchiveOut> util = new ExcelUtil<PatArchiveOut>(PatArchiveOut.class); | 
|---|
|  |  |  | util.exportExcel(response, list, "å¤é¨æ£è
æ¡£æ¡æ°æ®"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * è·åå¤é¨æ£è
æ¡£æ¡è¯¦ç»ä¿¡æ¯ | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @ApiOperation("è·åå¤é¨æ£è
æ¡£æ¡è¯¦ç»ä¿¡æ¯") | 
|---|
|  |  |  | @GetMapping(value = "/getInfo/{patid}") | 
|---|
|  |  |  | public AjaxResult getInfo(@PathVariable("patid") Long patid) { | 
|---|
|  |  |  | return success(patArchiveOutService.selectPatArchiveOutByPatid(patid)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * æ°å¢å¤é¨æ£è
æ¡£æ¡ | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @ApiOperation("æ°å¢å¤é¨æ£è
æ¡£æ¡") | 
|---|
|  |  |  | @PostMapping("/add") | 
|---|
|  |  |  | public AjaxResult add(@RequestBody PatArchiveOut patArchiveOut) { | 
|---|
|  |  |  | return toAjax(patArchiveOutService.insertPatArchiveOut(patArchiveOut)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * ä¿®æ¹å¤é¨æ£è
æ¡£æ¡ | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @ApiOperation("ä¿®æ¹å¤é¨æ£è
æ¡£æ¡") | 
|---|
|  |  |  | @PostMapping("/edit") | 
|---|
|  |  |  | public AjaxResult edit(@RequestBody PatArchiveOut patArchiveOut) { | 
|---|
|  |  |  | return toAjax(patArchiveOutService.updatePatArchiveOut(patArchiveOut)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * å é¤å¤é¨æ£è
æ¡£æ¡ | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @ApiOperation("å é¤å¤é¨æ£è
æ¡£æ¡") | 
|---|
|  |  |  | @GetMapping("/remove/{patids}") | 
|---|
|  |  |  | public AjaxResult remove(@PathVariable Long[] patids) { | 
|---|
|  |  |  | return toAjax(patArchiveOutService.deletePatArchiveOutByPatids(patids)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * èåä¿¡æ¯ | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * @author ruoyi | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @RestController | 
|---|
|  |  |  | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @PreAuthorize("@ss.hasPermi('system:menu:add')") | 
|---|
|  |  |  | @Log(title = "èå管ç", businessType = BusinessType.INSERT) | 
|---|
|  |  |  | @PostMapping | 
|---|
|  |  |  | @PostMapping("/add") | 
|---|
|  |  |  | public AjaxResult add(@Validated @RequestBody SysMenu menu) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | if (UserConstants.NOT_UNIQUE.equals(menuService.checkMenuNameUnique(menu))) | 
|---|
|  |  |  | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @PreAuthorize("@ss.hasPermi('system:menu:remove')") | 
|---|
|  |  |  | @Log(title = "èå管ç", businessType = BusinessType.DELETE) | 
|---|
|  |  |  | @DeleteMapping("/{menuId}") | 
|---|
|  |  |  | @GetMapping("/remove/{menuId}") | 
|---|
|  |  |  | public AjaxResult remove(@PathVariable("menuId") Long menuId) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | if (menuService.hasChildByMenuId(menuId)) | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return toAjax(menuService.deleteMenuById(menuId)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | package com.ruoyi.web.task; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import com.alibaba.fastjson2.JSON; | 
|---|
|  |  |  | import com.fasterxml.jackson.databind.ObjectMapper; | 
|---|
|  |  |  | import com.rabbitmq.client.Channel; | 
|---|
|  |  |  | import com.ruoyi.common.core.redis.RedisCache; | 
|---|
|  |  |  | import com.ruoyi.common.utils.uuid.IdUtils; | 
|---|
|  |  |  | 
|---|
|  |  |  | import com.smartor.domain.IvrLibaTemplateVO; | 
|---|
|  |  |  | import com.smartor.domain.IvrTaskSingle; | 
|---|
|  |  |  | import com.smartor.domain.QuestionMessage; | 
|---|
|  |  |  | import com.smartor.mapper.IvrTaskSingleMapper; | 
|---|
|  |  |  | import org.springframework.amqp.core.Message; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import java.io.IOException; | 
|---|
|  |  |  | 
|---|
|  |  |  | redisCache.setCacheObject(uuid + "ivrLibaTemplateVO", ivrLibaTemplateVO, 120, TimeUnit.MINUTES); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //è°ç¨æºå¨äººçµè¯ï¼å¼å§çµè¯ï¼éè¦å°åè°æ¹æ³ä¼ å
¥ï¼è¿ä¸ªçâçµè¯æ¹âåè¯æä¹ä¼ ï¼ç°å¨å
空ç,è¿æç¬¬ä¸å¥é®é¢è¯æ¯ï¼ | 
|---|
|  |  |  | //            phoneUtils.ob(uuid, null, ivrTaskcall.getPhone(), null, null, null, null, null, null, null, null); | 
|---|
|  |  |  | String ob = phoneUtils.ob("", "", "", "", "", "", "", "3001", "", true); | 
|---|
|  |  |  | String ob = phoneUtils.ob("", "", "", "", "", "", "", ivrTaskcall.getPhone(), uuid, true); | 
|---|
|  |  |  | System.out.println("OBçå¼ä¸ºï¼" + ob); | 
|---|
|  |  |  | //éäºä¹åï¼ç«é©¬å»è°å¼åºç½ | 
|---|
|  |  |  | phoneUtils.ttsPlayback(ivrLibaTemplateVO.getRevisitBefore()+returnQues.getNowQuestion().getQuestionText(), uuid); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //é祠MQ æ¶æ¯å·²è¢«æ¥æ¶,å¯ä»¥ACK(ä»éåä¸å é¤)亠  ï¼è¿ä¸ªéè¦æ ¹æ®ä¸å¡åå»å¤çACKï¼ | 
|---|
|  |  |  |  | 
|---|
|  |  |  | channel.basicAck(message.getMessageProperties().getDeliveryTag(), false); | 
|---|
|  |  |  | 
|---|
|  |  |  | import org.springframework.beans.factory.annotation.Autowired; | 
|---|
|  |  |  | import org.springframework.core.SpringVersion; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import java.util.regex.Matcher; | 
|---|
|  |  |  | import java.util.regex.Pattern; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //@SpringBootTest | 
|---|
|  |  |  | //@RunWith(SpringRunner.class) | 
|---|
|  |  |  | public class MQTest { | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Test | 
|---|
|  |  |  | public void testSend() { | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | Pattern pattern = Pattern.compile("(?=.*(?:è¿è¡|æºå¥½|å¯ä»¥|ä¸é)).*$"); | 
|---|
|  |  |  | Matcher matcher = pattern.matcher("è¿è¡å§ï¼å°±æ¯è¿æç¹ç¼"); | 
|---|
|  |  |  | System.out.println(matcher.matches()); | 
|---|
|  |  |  | System.out.println("Spring Frameworkçæ¬ï¼" + SpringVersion.getVersion()); | 
|---|
|  |  |  | //        rabbitTemplate.convertAndSend(RabbitMqConfig.EXCHANGE_NAME, "phone.001", "æµè¯æ°æ®001"); | 
|---|
|  |  |  | //        rabbitTemplate.convertAndSend(RabbitMqConfig.EXCHANGE_NAME, "phone.002", "æµè¯æ°æ®002"); | 
|---|
|  |  |  | 
|---|
|  |  |  | # æ°æ®æºé
ç½® | 
|---|
|  |  |  | spring: | 
|---|
|  |  |  | rabbitmq: | 
|---|
|  |  |  | host: 116.62.18.175 | 
|---|
|  |  |  | #    host: 127.0.0.1 | 
|---|
|  |  |  | #    host: 116.62.18.175 | 
|---|
|  |  |  | host: 127.0.0.1 | 
|---|
|  |  |  | password: guest | 
|---|
|  |  |  | port: 5672 | 
|---|
|  |  |  | username: guest | 
|---|
|  |  |  | 
|---|
|  |  |  | </root> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <!--ç³»ç»æä½æ¥å¿--> | 
|---|
|  |  |  | <root level="debug"> | 
|---|
|  |  |  | <root level="info"> | 
|---|
|  |  |  | <appender-ref ref="file_info" /> | 
|---|
|  |  |  | <appender-ref ref="file_error" /> | 
|---|
|  |  |  | </root> | 
|---|
|  |  |  | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public String hangup(String kg_uuid, String dnis, String data, String app_id, String ani, String special_ch, String sign, Boolean call_uuid) { | 
|---|
|  |  |  | public String hangup(String kg_uuid, String dnis, String data, String app_id, String ani, String special_ch, String sign, String call_uuid) { | 
|---|
|  |  |  | Map<String, Object> map = new HashMap<>(); | 
|---|
|  |  |  | map.put("kg_uuid", kg_uuid); | 
|---|
|  |  |  | map.put("data", data); | 
|---|
|  |  |  | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @ApiModelProperty("æ å¹é
è¯æ¯") | 
|---|
|  |  |  | @Excel(name = "æ å¹é
è¯æ¯") | 
|---|
|  |  |  | private String nomatchtext; | 
|---|
|  |  |  | private String noMatchText; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * æ å¹é
è¯æ¯è¯é³ | 
|---|
|  |  |  | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @ApiModelProperty("éé»è¯æ¯") | 
|---|
|  |  |  | @Excel(name = "éé»è¯æ¯") | 
|---|
|  |  |  | private String sliencetext; | 
|---|
|  |  |  | private String slienceText; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * éé»è¯æ¯è¯é³ | 
|---|
|  |  |  | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @ApiModelProperty("å¬ä¸æ¸
è¯æ¯") | 
|---|
|  |  |  | @Excel(name = "å¬ä¸æ¸
è¯æ¯") | 
|---|
|  |  |  | private String noclearlytext; | 
|---|
|  |  |  | private String noClearlyText; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * å¬ä¸æ¸
è¯æ¯è¯é³ | 
|---|
|  |  |  | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @ApiModelProperty("æ å¹é
è¯æ¯") | 
|---|
|  |  |  | @Excel(name = "æ å¹é
è¯æ¯") | 
|---|
|  |  |  | private String nomatchtext; | 
|---|
|  |  |  | private String noMatchText; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * æ å¹é
è¯æ¯è¯é³ | 
|---|
|  |  |  | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @ApiModelProperty("éé»è¯æ¯") | 
|---|
|  |  |  | @Excel(name = "éé»è¯æ¯") | 
|---|
|  |  |  | private String sliencetext; | 
|---|
|  |  |  | private String slienceText; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * éé»è¯æ¯è¯é³ | 
|---|
|  |  |  | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @ApiModelProperty("å¬ä¸æ¸
è¯æ¯") | 
|---|
|  |  |  | @Excel(name = "å¬ä¸æ¸
è¯æ¯") | 
|---|
|  |  |  | private String noclearlytext; | 
|---|
|  |  |  | private String noClearlyText; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * å¬ä¸æ¸
è¯æ¯è¯é³ | 
|---|
|  |  |  | 
|---|
|  |  |  | @ApiModelProperty(value = "åå¤ï¼æé®é¢çåå¤ï¼ç»é®çé¢ç¨çï¼") | 
|---|
|  |  |  | private String reply; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * è¯´è¯å
容 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Excel(name = "说è¯å
容") | 
|---|
|  |  |  | @ApiModelProperty(value = "说è¯å
容") | 
|---|
|  |  |  | private String content; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | * @author ruoyi | 
|---|
|  |  |  | * @date 2023-12-14 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Data | 
|---|
|  |  |  | @ApiModel(value = "IvrLibaTargetoption", description = "ææ é项åºå¯¹è±¡") | 
|---|
|  |  |  | public class IvrLibaTargetoption extends BaseEntity { | 
|---|
|  |  |  | private static final long serialVersionUID = 1L; | 
|---|
|  |  |  | 
|---|
|  |  |  | @Excel(name = "pageSize") | 
|---|
|  |  |  | private Integer pageSize; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public Long getTargetoptionid() { | 
|---|
|  |  |  | return targetoptionid; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setTargetoptionid(Long targetoptionid) { | 
|---|
|  |  |  | this.targetoptionid = targetoptionid; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public Long getTargetid() { | 
|---|
|  |  |  | return targetid; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setTargetid(Long targetid) { | 
|---|
|  |  |  | this.targetid = targetid; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getTargettype() { | 
|---|
|  |  |  | return targettype; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setTargettype(String targettype) { | 
|---|
|  |  |  | this.targettype = targettype; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getCategoryName() { | 
|---|
|  |  |  | return categoryName; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setCategoryName(String categoryName) { | 
|---|
|  |  |  | this.categoryName = categoryName; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getTargetvalue() { | 
|---|
|  |  |  | return targetvalue; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setTargetvalue(String targetvalue) { | 
|---|
|  |  |  | this.targetvalue = targetvalue; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getTargetregex() { | 
|---|
|  |  |  | return targetregex; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setTargetregex(String targetregex) { | 
|---|
|  |  |  | this.targetregex = targetregex; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getTargetregex2() { | 
|---|
|  |  |  | return targetregex2; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setTargetregex2(String targetregex2) { | 
|---|
|  |  |  | this.targetregex2 = targetregex2; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getNodynamiccruxsJson() { | 
|---|
|  |  |  | return nodynamiccruxsJson; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setNodynamiccruxsJson(String nodynamiccruxsJson) { | 
|---|
|  |  |  | this.nodynamiccruxsJson = nodynamiccruxsJson; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getDynamiccruxsJson() { | 
|---|
|  |  |  | return dynamiccruxsJson; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setDynamiccruxsJson(String dynamiccruxsJson) { | 
|---|
|  |  |  | this.dynamiccruxsJson = dynamiccruxsJson; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public List<String> getNodynamiccruxs() { | 
|---|
|  |  |  | return nodynamiccruxs; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setNodynamiccruxs(List<String> nodynamiccruxs) { | 
|---|
|  |  |  | this.nodynamiccruxs = nodynamiccruxs; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public List<String> getDynamiccruxs() { | 
|---|
|  |  |  | return dynamiccruxs; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setDynamiccruxs(List<String> dynamiccruxs) { | 
|---|
|  |  |  | this.dynamiccruxs = dynamiccruxs; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getOptiondesc() { | 
|---|
|  |  |  | return optiondesc; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setOptiondesc(String optiondesc) { | 
|---|
|  |  |  | this.optiondesc = optiondesc; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getLanguage() { | 
|---|
|  |  |  | return language; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setLanguage(String language) { | 
|---|
|  |  |  | this.language = language; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public Long getVersion() { | 
|---|
|  |  |  | return version; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setVersion(Long version) { | 
|---|
|  |  |  | this.version = version; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getGroupid() { | 
|---|
|  |  |  | return groupid; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setGroupid(String groupid) { | 
|---|
|  |  |  | this.groupid = groupid; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public Long getIsabnormal() { | 
|---|
|  |  |  | return isabnormal; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setIsabnormal(Long isabnormal) { | 
|---|
|  |  |  | this.isabnormal = isabnormal; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public Long getWarnup() { | 
|---|
|  |  |  | return warnup; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setWarnup(Long warnup) { | 
|---|
|  |  |  | this.warnup = warnup; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public Long getWarndown() { | 
|---|
|  |  |  | return warndown; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setWarndown(Long warndown) { | 
|---|
|  |  |  | this.warndown = warndown; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getDelFlag() { | 
|---|
|  |  |  | return delFlag; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setDelFlag(String delFlag) { | 
|---|
|  |  |  | this.delFlag = delFlag; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public Long getIsupload() { | 
|---|
|  |  |  | return isupload; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setIsupload(Long isupload) { | 
|---|
|  |  |  | this.isupload = isupload; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public Date getUploadTime() { | 
|---|
|  |  |  | return uploadTime; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setUploadTime(Date uploadTime) { | 
|---|
|  |  |  | this.uploadTime = uploadTime; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getOrgid() { | 
|---|
|  |  |  | return orgid; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setOrgid(String orgid) { | 
|---|
|  |  |  | this.orgid = orgid; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public Long getPid() { | 
|---|
|  |  |  | return pid; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setPid(Long pid) { | 
|---|
|  |  |  | this.pid = pid; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getGuid() { | 
|---|
|  |  |  | return guid; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setGuid(String guid) { | 
|---|
|  |  |  | this.guid = guid; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public Integer getIsoperation() { | 
|---|
|  |  |  | return isoperation; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setIsoperation(Integer isoperation) { | 
|---|
|  |  |  | this.isoperation = isoperation; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public Integer getAllitems() { | 
|---|
|  |  |  | return allitems; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setAllitems(Integer allitems) { | 
|---|
|  |  |  | this.allitems = allitems; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public Integer getPageNum() { | 
|---|
|  |  |  | return pageNum; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setPageNum(Integer pageNum) { | 
|---|
|  |  |  | this.pageNum = pageNum; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public Integer getPageSize() { | 
|---|
|  |  |  | return pageSize; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setPageSize(Integer pageSize) { | 
|---|
|  |  |  | this.pageSize = pageSize; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Override | 
|---|
|  |  |  | public String toString() { | 
|---|
|  |  |  | return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("targetoptionid", getTargetoptionid()).append("targetid", getTargetid()).append("targettype", getTargettype()).append("categoryName", getCategoryName()).append("targetvalue", getTargetvalue()).append("targetregex", getTargetregex()).append("optiondesc", getOptiondesc()).append("language", getLanguage()).append("version", getVersion()).append("groupid", getGroupid()).append("isabnormal", getIsabnormal()).append("warnup", getWarnup()).append("warndown", getWarndown()).append("delFlag", getDelFlag()).append("updateBy", getUpdateBy()).append("updateTime", getUpdateTime()).append("createBy", getCreateBy()).append("createTime", getCreateTime()).append("isupload", getIsupload()).append("uploadTime", getUploadTime()).append("orgid", getOrgid()).append("pid", getPid()).append("guid", getGuid()).toString(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | @ApiModelProperty("pageSize") | 
|---|
|  |  |  | private Integer pageSize; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * å°±è¯ç±»åï¼1é¨è¯  2åºé¢ï¼ | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Excel(name = "  å°±è¯ç±»åï¼1é¨è¯  2åºé¢ï¼") | 
|---|
|  |  |  | @ApiModelProperty(value = "å°±è¯ç±»åï¼1é¨è¯  2åºé¢ 3.ä¸ç
ï¼") | 
|---|
|  |  |  | private String hospType; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * å°±è¯ç¼å·ï¼å¯¹åºçouthospnoãinhospnoï¼ | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Excel(name = "  å°±è¯ç¼å·ï¼å¯¹åºçouthospnoãinhospnoï¼  ") | 
|---|
|  |  |  | @ApiModelProperty(value = "å°±è¯ç¼å·ï¼å¯¹åºçouthospnoãinhospnoï¼") | 
|---|
|  |  |  | private String hospno; | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | import com.fasterxml.jackson.annotation.JsonFormat; | 
|---|
|  |  |  | import com.ruoyi.common.annotation.Excel; | 
|---|
|  |  |  | import com.ruoyi.common.core.domain.BaseEntity; | 
|---|
|  |  |  | import io.swagger.annotations.ApiModelProperty; | 
|---|
|  |  |  | import lombok.Data; | 
|---|
|  |  |  | import org.apache.commons.lang3.builder.ToStringBuilder; | 
|---|
|  |  |  | import org.apache.commons.lang3.builder.ToStringStyle; | 
|---|
|  |  |  | 
|---|
|  |  |  | @Excel(name = " æªåé ") | 
|---|
|  |  |  | private Long wfs; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * å°±è¯ç±»åï¼1é¨è¯  2åºé¢ï¼ | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Excel(name = "  å°±è¯ç±»åï¼1é¨è¯  2åºé¢ï¼") | 
|---|
|  |  |  | @ApiModelProperty(value = "å°±è¯ç±»åï¼1é¨è¯  2åºé¢ 3.ä¸ç
ï¼") | 
|---|
|  |  |  | private String hospType; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * å°±è¯ç¼å·ï¼å¯¹åºçouthospnoãinhospnoï¼ | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Excel(name = "  å°±è¯ç¼å·ï¼å¯¹åºçouthospnoãinhospnoï¼  ") | 
|---|
|  |  |  | @ApiModelProperty(value = "å°±è¯ç¼å·ï¼å¯¹åºçouthospnoãinhospnoï¼") | 
|---|
|  |  |  | private String hospno; | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @ApiModelProperty("建档æ¶é´") | 
|---|
|  |  |  | @Excel(name = " å»ºæ¡£æ¶é´ ") | 
|---|
|  |  |  | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") | 
|---|
|  |  |  | private Date archivetime; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | 
|---|
|  |  |  | @Excel(name = " ç§å®¤ ") | 
|---|
|  |  |  | private String bedNo; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * ä¼å屿§:0éä¼åï¼1ä¸è¬ä¼åã2éè¦ä¼å | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @ApiModelProperty("ä¼å屿§:0éä¼åï¼1ä¸è¬ä¼åã2éè¦ä¼å") | 
|---|
|  |  |  | @Excel(name = " ä¼å屿§:0éä¼åï¼1ä¸è¬ä¼åã2éè¦ä¼å ") | 
|---|
|  |  |  | private String membertype; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Override | 
|---|
|  |  |  | public String toString() { | 
|---|
|  |  |  | return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("patid", getPatid()).append("name", getName()).append("sex", getSex()).append("idcardno", getIdcardno()).append("birthdate", getBirthdate()).append("age", getAge()).append("source", getSource()).append("archivetime", getArchivetime()).append("archiveby", getArchiveby()).append("telcode", getTelcode()).append("relativetelcode", getRelativetelcode()).append("idcardtype", getIdcardtype()).append("orgid", getOrgid()).append("openid", getOpenid()).append("delFlag", getDelFlag()).append("updateBy", getUpdateBy()).append("updateTime", getUpdateTime()).append("createBy", getCreateBy()).append("createTime", getCreateTime()).append("isupload", getIsupload()).append("uploadTime", getUploadTime()).toString(); | 
|---|
| ¶Ô±ÈÐÂÎļþ | 
|  |  |  | 
|---|
|  |  |  | package com.smartor.domain; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 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.apache.commons.lang3.builder.ToStringBuilder; | 
|---|
|  |  |  | import org.apache.commons.lang3.builder.ToStringStyle; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import java.util.Date; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * å¤é¨æ£è
æ¡£æ¡å¯¹è±¡ pat_archive_out | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * @author ruoyi | 
|---|
|  |  |  | * @date 2024-04-29 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @ApiModel(value = "PatArchiveOut", description = "å¤é¨æ£è
æ¡£æ¡å¯¹è±¡") | 
|---|
|  |  |  | @Data | 
|---|
|  |  |  | public class PatArchiveOut extends BaseEntity { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | private static final long serialVersionUID = 1L; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * èªå¢ID | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @ApiModelProperty("é®é¢è¯æ¯idï¼ä¸»é®ï¼") | 
|---|
|  |  |  | private Long patid; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * æ£è
ç¼å· | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Excel(name = "æ£è
ç¼å·") | 
|---|
|  |  |  | @ApiModelProperty("æ£è
ç¼å·") | 
|---|
|  |  |  | private String patientno; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * æ£è
ç±»åï¼1ãé¨è¯ã2ãä½é¢ã3ã使£ | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Excel(name = "æ£è
ç±»åï¼1ãé¨è¯ã2ãä½é¢ã3ã使£") | 
|---|
|  |  |  | @ApiModelProperty("æ£è
ç±»åï¼1ãé¨è¯ã2ãä½é¢ã3ã使£") | 
|---|
|  |  |  | private String pattype; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * å§å | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Excel(name = " å§å ") | 
|---|
|  |  |  | @ApiModelProperty("å§å") | 
|---|
|  |  |  | private String name; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * æ§å«   1:ç·  2:女 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Excel(name = " æ§å«   1:ç·  2:女") | 
|---|
|  |  |  | @ApiModelProperty("æ§å«   1:ç·  2:女") | 
|---|
|  |  |  | private Long sex; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * æ°æ | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Excel(name = "æ°æ") | 
|---|
|  |  |  | @ApiModelProperty("æ°æ") | 
|---|
|  |  |  | private String nation; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * ç±è´¯ | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Excel(name = "ç±è´¯") | 
|---|
|  |  |  | @ApiModelProperty("ç±è´¯") | 
|---|
|  |  |  | private String nativePlace; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * å±
ä½å° | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Excel(name = "å±
ä½å°") | 
|---|
|  |  |  | @ApiModelProperty("å±
ä½å°") | 
|---|
|  |  |  | private String placeOfResidence; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * åºçå° | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Excel(name = "åºçå°") | 
|---|
|  |  |  | @ApiModelProperty("åºçå°") | 
|---|
|  |  |  | private String birthplace; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * è¯ä»¶å·ç  | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Excel(name = " è¯ä»¶å·ç  ") | 
|---|
|  |  |  | @ApiModelProperty("è¯ä»¶å·ç ") | 
|---|
|  |  |  | private String idcardno; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * çæ¥ | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @JsonFormat(pattern = "yyyy-MM-dd") | 
|---|
|  |  |  | @Excel(name = " ç楠", width = 30, dateFormat = "yyyy-MM-dd") | 
|---|
|  |  |  | @ApiModelProperty("çæ¥") | 
|---|
|  |  |  | private Date birthdate; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * å¹´é¾ | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Excel(name = " å¹´é¾ ") | 
|---|
|  |  |  | @ApiModelProperty("å¹´é¾") | 
|---|
|  |  |  | private Long age; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * å»ºæ¡£æ¶é´ | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @JsonFormat(pattern = "yyyy-MM-dd") | 
|---|
|  |  |  | @Excel(name = " å»ºæ¡£æ¶é´ ", width = 30, dateFormat = "yyyy-MM-dd") | 
|---|
|  |  |  | @ApiModelProperty("建档æ¶é´") | 
|---|
|  |  |  | private Date archivetime; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * å»ºæ¡£äºº | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Excel(name = " å»ºæ¡£äºº ") | 
|---|
|  |  |  | @ApiModelProperty("建档人") | 
|---|
|  |  |  | private String archiveby; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * ææºå·ç  | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Excel(name = " ææºå·ç  ") | 
|---|
|  |  |  | @ApiModelProperty("ææºå·ç ") | 
|---|
|  |  |  | private String telcode; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * äº²å±å·ç  | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Excel(name = " äº²å±å·ç  ") | 
|---|
|  |  |  | @ApiModelProperty("亲å±å·ç ") | 
|---|
|  |  |  | private String relativetelcode; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * è¯ä»¶ç±»å | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Excel(name = "è¯ä»¶ç±»å ") | 
|---|
|  |  |  | @ApiModelProperty("è¯ä»¶ç±»å") | 
|---|
|  |  |  | private String idcardtype; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * æºæID | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Excel(name = "æºæID ") | 
|---|
|  |  |  | @ApiModelProperty("æºæID") | 
|---|
|  |  |  | private String orgid; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * å¾®ä¿¡openid | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Excel(name = "微信openid ") | 
|---|
|  |  |  | @ApiModelProperty("微信openid") | 
|---|
|  |  |  | private String openid; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * ééå· | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Excel(name = "ééå·") | 
|---|
|  |  |  | @ApiModelProperty("ééå·") | 
|---|
|  |  |  | private String dduserid; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * å é¤æ è®° | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @ApiModelProperty("å é¤æ è®°") | 
|---|
|  |  |  | private String delFlag; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * æ¥æº(1ï¼HISï¼2ï¼æ°æ®å¹³å°ï¼3ï¼æä»¶å¯¼å
¥ï¼ | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Excel(name = " æ¥æº(1ï¼HISï¼2ï¼æ°æ®å¹³å°ï¼3ï¼æä»¶å¯¼å
¥ï¼") | 
|---|
|  |  |  | @ApiModelProperty("æ¥æº(1ï¼HISï¼2ï¼æ°æ®å¹³å°ï¼3ï¼æä»¶å¯¼å
¥ï¼") | 
|---|
|  |  |  | private Long source; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * ä¸ä¼ æ è®° | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Excel(name = " ä¸ä¼ æ è®° ") | 
|---|
|  |  |  | @ApiModelProperty("ä¸ä¼ æ è®°") | 
|---|
|  |  |  | private Long isupload; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * ä¸ä¼ æ¶é´ | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @JsonFormat(pattern = "yyyy-MM-dd") | 
|---|
|  |  |  | @Excel(name = " ä¸ä¼ æ¶é´ ", width = 30, dateFormat = "yyyy-MM-dd") | 
|---|
|  |  |  | @ApiModelProperty("ä¸ä¼ æ¶é´") | 
|---|
|  |  |  | private Date uploadTime; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * ç¶ID | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Excel(name = "ç¶ID") | 
|---|
|  |  |  | @ApiModelProperty("ç¶ID") | 
|---|
|  |  |  | private Long pid; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * GUID | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Excel(name = "GUID") | 
|---|
|  |  |  | @ApiModelProperty("GUID") | 
|---|
|  |  |  | private String guid; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * ä¼å屿§ï¼0éä¼åï¼1ä¸è¬ä¼åã2éè¦ä¼å | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Excel(name = "ä¼å屿§ï¼0éä¼åï¼1ä¸è¬ä¼åã2éè¦ä¼å") | 
|---|
|  |  |  | @ApiModelProperty("ä¼å屿§ï¼0éä¼åï¼1ä¸è¬ä¼åã2éè¦ä¼å") | 
|---|
|  |  |  | private String membertype; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | private String visitno; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | *  é¢åºåç§° | 
|---|
|  |  |  | * é¢åºåç§° | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @ApiModelProperty(value = " é¢åºåç§° ") | 
|---|
|  |  |  | private String hospitaldistrictname; | 
|---|
|  |  |  | 
|---|
|  |  |  | @ApiModelProperty(value = "æ¹æ¡ç¶ææä½æ¶é´") | 
|---|
|  |  |  | private Date schemetime; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * æ£è
å§å | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @ApiModelProperty(value = "æ£è
å§å") | 
|---|
|  |  |  | private String patname; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * æ£è
ç¼å· | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @ApiModelProperty(value = "æ£è
ç¼å·") | 
|---|
|  |  |  | private String patno; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | private Long patid; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * ç
人å§å | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @ApiModelProperty(value = " ç
人å§å") | 
|---|
|  |  |  | private String patname; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * å»é¢åç§° | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @ApiModelProperty(value = "å»é¢åç§°") | 
|---|
|  |  |  | 
|---|
|  |  |  | import com.fasterxml.jackson.annotation.JsonFormat; | 
|---|
|  |  |  | import io.swagger.annotations.ApiModel; | 
|---|
|  |  |  | import io.swagger.annotations.ApiModelProperty; | 
|---|
|  |  |  | import lombok.Data; | 
|---|
|  |  |  | import org.apache.commons.lang3.builder.ToStringBuilder; | 
|---|
|  |  |  | import org.apache.commons.lang3.builder.ToStringStyle; | 
|---|
|  |  |  | import com.ruoyi.common.annotation.Excel; | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * æ£è
使£è®°å½å¯¹è±¡ pat_med_physical | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * @author smartor | 
|---|
|  |  |  | * @date 2023-03-04 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Data | 
|---|
|  |  |  | @ApiModel(value = "PatMedPhysical", description = "æ£è
使£è®°å½å¯¹è±¡") | 
|---|
|  |  |  | public class PatMedPhysical extends BaseEntity | 
|---|
|  |  |  | { | 
|---|
|  |  |  | 
|---|
|  |  |  | @Excel(name = " ç§å®¤åç§° ") | 
|---|
|  |  |  | private String deptname; | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /**  ç
人å§å  */ | 
|---|
|  |  |  | @ApiModelProperty(value = "ç
人å§å") | 
|---|
|  |  |  | @Excel(name = " ç
人å§å ") | 
|---|
|  |  |  | private String patname; | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /**   æ£è
æ¡£æ¡ç¼å·  */ | 
|---|
|  |  |  | @ApiModelProperty(value = " æ£è
æ¡£æ¡ç¼å·") | 
|---|
|  |  |  | @Excel(name = "  æ£è
æ¡£æ¡ç¼å· ") | 
|---|
|  |  |  | private String patno; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /**  ä½æ£é¡¹ç®åç§°  */ | 
|---|
|  |  |  | @ApiModelProperty(value = "使£é¡¹ç®åç§°") | 
|---|
|  |  |  | @Excel(name = " ä½æ£é¡¹ç®åç§° ") | 
|---|
|  |  |  | 
|---|
|  |  |  | @ApiModelProperty(value = "æ¹æ¡ç¶ææä½æ¶é´") | 
|---|
|  |  |  | private Date schemetime; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setId(Long id) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | this.id = id; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public Long getId() | 
|---|
|  |  |  | { | 
|---|
|  |  |  | return id; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | public void setSerialnum(String serialnum) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | this.serialnum = serialnum; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getSerialnum() | 
|---|
|  |  |  | { | 
|---|
|  |  |  | return serialnum; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | public void setPatid(Long patid) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | this.patid = patid; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public Long getPatid() | 
|---|
|  |  |  | { | 
|---|
|  |  |  | return patid; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | public void setDrcode(String drcode) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | this.drcode = drcode; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getDrcode() | 
|---|
|  |  |  | { | 
|---|
|  |  |  | return drcode; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | public void setDrname(String drname) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | this.drname = drname; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getDrname() | 
|---|
|  |  |  | { | 
|---|
|  |  |  | return drname; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | public void setHospitalcode(String hospitalcode) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | this.hospitalcode = hospitalcode; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getHospitalcode() | 
|---|
|  |  |  | { | 
|---|
|  |  |  | return hospitalcode; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | public void setHospitalname(String hospitalname) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | this.hospitalname = hospitalname; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getHospitalname() | 
|---|
|  |  |  | { | 
|---|
|  |  |  | return hospitalname; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | public void setPhysicaldate(Date physicaldate) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | this.physicaldate = physicaldate; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public Date getPhysicaldate() | 
|---|
|  |  |  | { | 
|---|
|  |  |  | return physicaldate; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | public void setOrgid(String orgid) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | this.orgid = orgid; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getOrgid() | 
|---|
|  |  |  | { | 
|---|
|  |  |  | return orgid; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | public void setDelFlag(String delFlag) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | this.delFlag = delFlag; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getDelFlag() | 
|---|
|  |  |  | { | 
|---|
|  |  |  | return delFlag; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | public void setIsupload(Long isupload) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | this.isupload = isupload; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public Long getIsupload() | 
|---|
|  |  |  | { | 
|---|
|  |  |  | return isupload; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | public void setUploadTime(Date uploadTime) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | this.uploadTime = uploadTime; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public Date getUploadTime() | 
|---|
|  |  |  | { | 
|---|
|  |  |  | return uploadTime; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | public void setDeptcode(String deptcode) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | this.deptcode = deptcode; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getDeptcode() | 
|---|
|  |  |  | { | 
|---|
|  |  |  | return deptcode; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | public void setDeptname(String deptname) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | this.deptname = deptname; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getDeptname() | 
|---|
|  |  |  | { | 
|---|
|  |  |  | return deptname; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | public void setProjectname(String projectname) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | this.projectname = projectname; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getProjectname() | 
|---|
|  |  |  | { | 
|---|
|  |  |  | return projectname; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | public void setProjectcode(String projectcode) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | this.projectcode = projectcode; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getProjectcode() | 
|---|
|  |  |  | { | 
|---|
|  |  |  | return projectcode; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | public void setState(Long state) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | this.state = state; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public Long getState() | 
|---|
|  |  |  | { | 
|---|
|  |  |  | return state; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | public void setSchemestatus(Long schemestatus) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | this.schemestatus = schemestatus; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public Long getSchemestatus() | 
|---|
|  |  |  | { | 
|---|
|  |  |  | return schemestatus; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | public void setGeneralschemestatus(Long generalschemestatus) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | this.generalschemestatus = generalschemestatus; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public Long getGeneralschemestatus() | 
|---|
|  |  |  | { | 
|---|
|  |  |  | return generalschemestatus; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | public void setDeptid(Long deptid) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | this.deptid = deptid; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public Long getDeptid() | 
|---|
|  |  |  | { | 
|---|
|  |  |  | return deptid; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | public void setProjectid(Long projectid) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | this.projectid = projectid; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public Long getProjectid() | 
|---|
|  |  |  | { | 
|---|
|  |  |  | return projectid; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | public void setSchemetime(Date schemetime) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | this.schemetime = schemetime; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public Date getSchemetime() | 
|---|
|  |  |  | { | 
|---|
|  |  |  | return schemetime; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Override | 
|---|
|  |  |  | public String toString() { | 
|---|
|  |  |  | return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) | 
|---|
|  |  |  | .append("id", getId()) | 
|---|
|  |  |  | .append("serialnum", getSerialnum()) | 
|---|
|  |  |  | .append("patid", getPatid()) | 
|---|
|  |  |  | .append("drcode", getDrcode()) | 
|---|
|  |  |  | .append("drname", getDrname()) | 
|---|
|  |  |  | .append("hospitalcode", getHospitalcode()) | 
|---|
|  |  |  | .append("hospitalname", getHospitalname()) | 
|---|
|  |  |  | .append("physicaldate", getPhysicaldate()) | 
|---|
|  |  |  | .append("orgid", getOrgid()) | 
|---|
|  |  |  | .append("delFlag", getDelFlag()) | 
|---|
|  |  |  | .append("updateBy", getUpdateBy()) | 
|---|
|  |  |  | .append("updateTime", getUpdateTime()) | 
|---|
|  |  |  | .append("createBy", getCreateBy()) | 
|---|
|  |  |  | .append("createTime", getCreateTime()) | 
|---|
|  |  |  | .append("isupload", getIsupload()) | 
|---|
|  |  |  | .append("uploadTime", getUploadTime()) | 
|---|
|  |  |  | .append("deptcode", getDeptcode()) | 
|---|
|  |  |  | .append("deptname", getDeptname()) | 
|---|
|  |  |  | .append("projectname", getProjectname()) | 
|---|
|  |  |  | .append("projectcode", getProjectcode()) | 
|---|
|  |  |  | .append("state", getState()) | 
|---|
|  |  |  | .append("schemestatus", getSchemestatus()) | 
|---|
|  |  |  | .append("generalschemestatus", getGeneralschemestatus()) | 
|---|
|  |  |  | .append("deptid", getDeptid()) | 
|---|
|  |  |  | .append("projectid", getProjectid()) | 
|---|
|  |  |  | .append("schemetime", getSchemetime()) | 
|---|
|  |  |  | .toString(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * è¯é³è¯å«ç»æä¸æ¥æ¥å£ | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | //è¯é³è¯å«ç»æææ¬ | 
|---|
|  |  |  | @ApiModelProperty(value = "è¯é³è¯å«ç»æææ¬") | 
|---|
|  |  |  | private String textResult; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | //è¿åçå
容 | 
|---|
|  |  |  | private String content; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //å¼åºç½ | 
|---|
|  |  |  | //å¼åºç½(ç»æµè¯åè½ç¨ç) | 
|---|
|  |  |  | private String kcb = null; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //ç»æè¯ | 
|---|
|  |  |  | //ç»æè¯(ç»æµè¯åè½ç¨ç) | 
|---|
|  |  |  | private String jsy = null; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //å½åé®é¢ | 
|---|
| ¶Ô±ÈÐÂÎļþ | 
|  |  |  | 
|---|
|  |  |  | package com.smartor.mapper; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import com.smartor.domain.PatArchiveOut; | 
|---|
|  |  |  | import org.apache.ibatis.annotations.Mapper; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import java.util.List; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * å¤é¨æ£è
æ¡£æ¡Mapperæ¥å£ | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * @author ruoyi | 
|---|
|  |  |  | * @date 2024-04-29 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Mapper | 
|---|
|  |  |  | public interface PatArchiveOutMapper | 
|---|
|  |  |  | { | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * æ¥è¯¢å¤é¨æ£è
æ¡£æ¡ | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * @param patid å¤é¨æ£è
æ¡£æ¡ä¸»é® | 
|---|
|  |  |  | * @return å¤é¨æ£è
æ¡£æ¡ | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public PatArchiveOut selectPatArchiveOutByPatid(Long patid); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * æ¥è¯¢å¤é¨æ£è
æ¡£æ¡å表 | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * @param patArchiveOut å¤é¨æ£è
æ¡£æ¡ | 
|---|
|  |  |  | * @return å¤é¨æ£è
æ¡£æ¡éå | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public List<PatArchiveOut> selectPatArchiveOutList(PatArchiveOut patArchiveOut); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * æ°å¢å¤é¨æ£è
æ¡£æ¡ | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * @param patArchiveOut å¤é¨æ£è
æ¡£æ¡ | 
|---|
|  |  |  | * @return ç»æ | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public int insertPatArchiveOut(PatArchiveOut patArchiveOut); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * ä¿®æ¹å¤é¨æ£è
æ¡£æ¡ | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * @param patArchiveOut å¤é¨æ£è
æ¡£æ¡ | 
|---|
|  |  |  | * @return ç»æ | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public int updatePatArchiveOut(PatArchiveOut patArchiveOut); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * å é¤å¤é¨æ£è
æ¡£æ¡ | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * @param patid å¤é¨æ£è
æ¡£æ¡ä¸»é® | 
|---|
|  |  |  | * @return ç»æ | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public int deletePatArchiveOutByPatid(Long patid); | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * æ¥è¯¢ææ éé¡¹åº | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * @param targetID ææ é项åºä¸»é® | 
|---|
|  |  |  | * @param id ææ é项åºä¸»é® | 
|---|
|  |  |  | * @return ææ éé¡¹åº | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public IvrLibaTarget selectIvrLibaTargetByTargetID(Long id); | 
|---|
|  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * æ¹éå é¤ææ éé¡¹åº | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * @param targetIDs éè¦å é¤çææ é项åºä¸»é®éå | 
|---|
|  |  |  | * @param ids éè¦å é¤çææ é项åºä¸»é®éå | 
|---|
|  |  |  | * @return ç»æ | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public int deleteIvrLibaTargetByTargetIDs(Long[] ids); | 
|---|
|  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * å é¤ææ é项åºä¿¡æ¯ | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * @param targetID ææ é项åºä¸»é® | 
|---|
|  |  |  | * @param id ææ é项åºä¸»é® | 
|---|
|  |  |  | * @return ç»æ | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public int deleteIvrLibaTargetByTargetID(Long id); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * ææ æµè¯é®é¢å¹é
 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public String targetQuesMate(IvrLibaTargetVO ivrLibaTargetVO); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | * @param phoneCallBackVO | 
|---|
|  |  |  | * @return ç»æ | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public PhoneCallBackVO phoneCallBack(PhoneCallBackVO phoneCallBackVO); | 
|---|
|  |  |  | public void phoneCallBack(PhoneCallBackVO phoneCallBackVO); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|
| ¶Ô±ÈÐÂÎļþ | 
|  |  |  | 
|---|
|  |  |  | package com.smartor.service; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import com.smartor.domain.PatArchiveOut; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import java.util.List; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * å¤é¨æ£è
æ¡£æ¡Serviceæ¥å£ | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * @author ruoyi | 
|---|
|  |  |  | * @date 2024-04-29 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public interface IPatArchiveOutService | 
|---|
|  |  |  | { | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * æ¥è¯¢å¤é¨æ£è
æ¡£æ¡ | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * @param patid å¤é¨æ£è
æ¡£æ¡ä¸»é® | 
|---|
|  |  |  | * @return å¤é¨æ£è
æ¡£æ¡ | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public PatArchiveOut selectPatArchiveOutByPatid(Long patid); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * æ¥è¯¢å¤é¨æ£è
æ¡£æ¡å表 | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * @param patArchiveOut å¤é¨æ£è
æ¡£æ¡ | 
|---|
|  |  |  | * @return å¤é¨æ£è
æ¡£æ¡éå | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public List<PatArchiveOut> selectPatArchiveOutList(PatArchiveOut patArchiveOut); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * æ°å¢å¤é¨æ£è
æ¡£æ¡ | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * @param patArchiveOut å¤é¨æ£è
æ¡£æ¡ | 
|---|
|  |  |  | * @return ç»æ | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public int insertPatArchiveOut(PatArchiveOut patArchiveOut); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * ä¿®æ¹å¤é¨æ£è
æ¡£æ¡ | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * @param patArchiveOut å¤é¨æ£è
æ¡£æ¡ | 
|---|
|  |  |  | * @return ç»æ | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public int updatePatArchiveOut(PatArchiveOut patArchiveOut); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * æ¹éå é¤å¤é¨æ£è
æ¡£æ¡ | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * @param patids éè¦å é¤çå¤é¨æ£è
æ¡£æ¡ä¸»é®éå | 
|---|
|  |  |  | * @return ç»æ | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public int deletePatArchiveOutByPatids(Long[] patids); | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | import org.springframework.transaction.annotation.Transactional; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import java.util.List; | 
|---|
|  |  |  | import java.util.regex.Matcher; | 
|---|
|  |  |  | import java.util.regex.Pattern; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * ææ é项åºServiceä¸å¡å±å¤ç | 
|---|
|  |  |  | 
|---|
|  |  |  | public int deleteIvrLibaTargetByTargetID(Long id) { | 
|---|
|  |  |  | return ivrLibaTargetMapper.deleteIvrLibaTargetByTargetID(id); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * ææ æµè¯é®é¢å¹é
 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Override | 
|---|
|  |  |  | public String targetQuesMate(IvrLibaTargetVO ivrLibaTargetVO) { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | for (IvrLibaTargetoption ivrLibaTargetoption : ivrLibaTargetVO.getTargetoptionList()) { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | Matcher matcher = null; | 
|---|
|  |  |  | if (StringUtils.isNotEmpty(ivrLibaTargetoption.getTargetregex())) { | 
|---|
|  |  |  | Pattern pattern = Pattern.compile(ivrLibaTargetoption.getTargetregex()); | 
|---|
|  |  |  | matcher = pattern.matcher(ivrLibaTargetVO.getContent()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | //ä¸å
å« | 
|---|
|  |  |  | Matcher matcher2 = null; | 
|---|
|  |  |  | if (StringUtils.isNotEmpty(ivrLibaTargetoption.getTargetregex2())) { | 
|---|
|  |  |  | Pattern pattern2 = Pattern.compile(ivrLibaTargetoption.getTargetregex2()); | 
|---|
|  |  |  | matcher2 = pattern2.matcher(ivrLibaTargetVO.getContent()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (StringUtils.isNotEmpty(ivrLibaTargetoption.getTargetregex2()) && matcher2.matches() && StringUtils.isNotEmpty(ivrLibaTargetoption.getTargetregex()) && matcher.matches() || StringUtils.isEmpty(ivrLibaTargetoption.getTargetregex2()) && StringUtils.isNotEmpty(ivrLibaTargetoption.getTargetregex()) && matcher.matches()) { | 
|---|
|  |  |  | return ivrLibaTargetoption.getOptiondesc(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return null; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Override | 
|---|
|  |  |  | public PhoneCallBackVO phoneCallBack(PhoneCallBackVO phoneCallBackVO) { | 
|---|
|  |  |  | log.info("phoneCallBackVOçå
¥åï¼{},{},{},{},{},{},{}", phoneCallBackVO.getResultType(), phoneCallBackVO.getUuid(), phoneCallBackVO.getErrResult(), phoneCallBackVO.getTextResult(), phoneCallBackVO.getHangUpResult(), phoneCallBackVO.getEnumState(), phoneCallBackVO.getUint8()); | 
|---|
|  |  |  | public void phoneCallBack(PhoneCallBackVO phoneCallBackVO) {phoneCallBackVO.setTextResult(phoneCallBackVO.getTextResult().substring(0, phoneCallBackVO.getTextResult().length() - 1)); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //è·åæ°æ® | 
|---|
|  |  |  | Boolean aBoolean = redisCache.hasKey(phoneCallBackVO.getUuid()); | 
|---|
|  |  |  | if (!aBoolean) { | 
|---|
|  |  |  | new BaseException("该uuidä¸åå¨"); | 
|---|
|  |  |  | throw new BaseException("该uuidä¸åå¨"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | Integer hangupValue = redisCache.getCacheObject(phoneCallBackVO.getUuid() + "hangup"); | 
|---|
|  |  |  | PhoneUtils phoneUtils = new PhoneUtils(); | 
|---|
|  |  |  | if (hangupValue != null && hangupValue == 1) { | 
|---|
|  |  |  | log.info("çµè¯è¦ææäº"); | 
|---|
|  |  |  | //hangupValue == 1  éè®¿ç»æï¼ç´æ¥å¯ä»¥æçµè¯ | 
|---|
|  |  |  | PhoneUtils phoneUtils = new PhoneUtils(); | 
|---|
|  |  |  | phoneUtils.hangup(phoneCallBackVO.getUuid(), null, null, null, null, null, null, null); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | phoneUtils.hangup(null, null, null, null, null, null, null, phoneCallBackVO.getUuid()); | 
|---|
|  |  |  | log.info("çµè¯ææ----------------------------"); | 
|---|
|  |  |  | return; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | String cacheObject = redisCache.getCacheObject(phoneCallBackVO.getUuid()); | 
|---|
|  |  |  | ObjectMapper objectMapper = new ObjectMapper(); | 
|---|
|  |  |  | Map<String, Object> map = null; | 
|---|
|  |  |  | try { | 
|---|
|  |  |  | map = objectMapper.readValue(cacheObject, Map.class); | 
|---|
|  |  |  | } catch (JsonProcessingException e) { | 
|---|
|  |  |  | e.printStackTrace(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | Map<String, Object> map = redisCache.getCacheObject(phoneCallBackVO.getUuid()); | 
|---|
|  |  |  | IvrTaskSingle ivrTaskcall = (IvrTaskSingle) map.get("ivrTaskcall"); | 
|---|
|  |  |  | List<IvrLibaTemplateScriptVO> ivrLibaTemplateScriptVOs = (List<IvrLibaTemplateScriptVO>) map.get("ivrLibaTemplateScriptVO"); | 
|---|
|  |  |  | //å°uuidæ´æ°å°æ°æ®åºä¸ | 
|---|
|  |  |  | 
|---|
|  |  |  | //è·å模æ¿ä¿¡æ¯ | 
|---|
|  |  |  | IvrLibaTemplateVO ivrLibaTemplateVO = redisCache.getCacheObject(phoneCallBackVO.getUuid() + "ivrLibaTemplateVO"); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //è¯é³è¯å«ç»æä¸æ¥æ¥å£: 3 | 
|---|
|  |  |  | Integer noVoice = redisCache.getCacheObject(phoneCallBackVO.getUuid() + "noVoice"); | 
|---|
|  |  |  | QuestionMessage returnQues = redisCache.getCacheObject(phoneCallBackVO.getUuid() + "returnQues"); | 
|---|
|  |  |  | //å°ä¼ åçç»ææ¾å°åå¤å¯¹è±¡ä¸ | 
|---|
|  |  |  | returnQues.setContent(phoneCallBackVO.getTextResult()); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //é¦å
夿resultType | 
|---|
|  |  |  | if (phoneCallBackVO.getResultType() == 1) { | 
|---|
|  |  |  | //å¼å«ç»ææ¥å£: 1 | 
|---|
|  |  |  | if (phoneCallBackVO.getUint8() == 1) { | 
|---|
|  |  |  | //å¼å«å¤±è´¥ï¼å»redisä¸è®°å½ä¸ä¸å¤±è´¥æ¬¡æ°ï¼è¿è¡å次å¼å« | 
|---|
|  |  |  | Integer integer = redisCache.getCacheObject(phoneCallBackVO.getUuid() + "uint8"); | 
|---|
|  |  |  | if (integer != null) { | 
|---|
|  |  |  | redisCache.setCacheObject(phoneCallBackVO.getUuid() + "uint8", integer + 1, 120, TimeUnit.MINUTES); | 
|---|
|  |  |  | IvrLibaTemplateScriptVO nowQuestion = returnQues.getNowQuestion(); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | if (StringUtils.isEmpty(returnQues.getContent())) { | 
|---|
|  |  |  | //æ åè¯ | 
|---|
|  |  |  | //夿noVoiceæ¯å¦å·²ç»å°äºæå¤§å¼ | 
|---|
|  |  |  | if (noVoice == ivrLibaTemplateVO.getNoVoiceNum().intValue()) { | 
|---|
|  |  |  | //å·²ç»é®äºå¯¹åºçéæ°ï¼å°±å¤ææ¯å¦è¿æä¸ä¸é¢ | 
|---|
|  |  |  | if (nowQuestion.getTargetid() == ivrLibaTemplateScriptVOs.size()) { | 
|---|
|  |  |  | //没æä¸ä¸é¢äºï¼å°±ææçµè¯ï¼ææ¾ç»æè¯ | 
|---|
|  |  |  | redisCache.setCacheObject(phoneCallBackVO.getUuid() + "hangup", 1, 120, TimeUnit.MINUTES); | 
|---|
|  |  |  | phoneUtils.ttsPlayback(ivrLibaTemplateVO.getRevisitAfter(), phoneCallBackVO.getUuid()); | 
|---|
|  |  |  | return; | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | redisCache.setCacheObject(phoneCallBackVO.getUuid() + "uint8", 1, 120, TimeUnit.MINUTES); | 
|---|
|  |  |  | //æä¸ä¸é¢ | 
|---|
|  |  |  | redisCache.setCacheObject(phoneCallBackVO.getUuid() + "noVoice", 0, 120, TimeUnit.MINUTES); | 
|---|
|  |  |  | IvrLibaTemplateScriptVO nextQuestion = getNextQuestion(ivrLibaTemplateScriptVOs, nowQuestion); | 
|---|
|  |  |  | // é®é¢ï¼  å»è°ç¨âttsåæåææ¾âæ¥å£ | 
|---|
|  |  |  | phoneUtils.ttsPlayback(nowQuestion.getQuestionText(), phoneCallBackVO.getUuid()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | if (integer != null && integer == ivrTaskcall.getRecallcount().intValue()) { | 
|---|
|  |  |  | log.info("æ äººæ¥å¬ï¼{},   {}", phoneCallBackVO.getErrResult(), phoneCallBackVO.getUuid()); | 
|---|
|  |  |  | //è¿ç»æè§å®æ¬¡ï¼å¦æè¦æ²¡äººæ¥ï¼é£å°±ç»æ | 
|---|
|  |  |  | ivrTaskcall.setResult(phoneCallBackVO.getErrResult()); | 
|---|
|  |  |  | ivrTaskSingleMapper.updateIvrTaskcall(ivrTaskcall); | 
|---|
|  |  |  | redisCache.deleteObject(phoneCallBackVO.getUuid() + "uint8"); | 
|---|
|  |  |  | } else if (integer != null && integer < ivrTaskcall.getRecallcount().intValue()) { | 
|---|
|  |  |  | //è¿è¡éæ¨ | 
|---|
|  |  |  | PhoneUtils phoneUtils = new PhoneUtils(); | 
|---|
|  |  |  | phoneUtils.ob(null, null, null, null, null, null, null, ivrTaskcall.getPhone(), phoneCallBackVO.getUuid(), true); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } else if (phoneCallBackVO.getResultType() == 2) { | 
|---|
|  |  |  | //éè¯ç¶ææ´æ°æ¥å£: 2 | 
|---|
|  |  |  | if (phoneCallBackVO.getEnumState() == 0) { | 
|---|
|  |  |  | // 0-æ¯é | 
|---|
|  |  |  | Integer integer = redisCache.getCacheObject(phoneCallBackVO.getUuid() + "enumState"); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | if (integer != null && integer < ivrTaskcall.getRecallcount().intValue()) { | 
|---|
|  |  |  | redisCache.setCacheObject(phoneCallBackVO.getUuid() + "enumState", integer + 1, 120, TimeUnit.MINUTES); | 
|---|
|  |  |  | } else if (integer == null) { | 
|---|
|  |  |  | redisCache.setCacheObject(phoneCallBackVO.getUuid() + "enumState", 1, 120, TimeUnit.MINUTES); | 
|---|
|  |  |  | } else if (integer != null && integer == ivrTaskcall.getRecallcount().intValue()) { | 
|---|
|  |  |  | ivrTaskcall.setResult("æ äººæ¥å¬"); | 
|---|
|  |  |  | ivrTaskSingleMapper.updateIvrTaskcall(ivrTaskcall); | 
|---|
|  |  |  | redisCache.deleteObject(phoneCallBackVO.getUuid() + "enumState"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } else if (phoneCallBackVO.getEnumState() == 2) { | 
|---|
|  |  |  | //æ£è
ææçµè¯ | 
|---|
|  |  |  | log.info("æ£è
ææçµè¯ï¼{}", phoneCallBackVO.getUuid()); | 
|---|
|  |  |  | ivrTaskcall.setResult(phoneCallBackVO.getHangUpResult()); | 
|---|
|  |  |  | ivrTaskSingleMapper.updateIvrTaskcall(ivrTaskcall); | 
|---|
|  |  |  | redisCache.deleteObject(phoneCallBackVO.getUuid() + "enumState"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } else if (phoneCallBackVO.getResultType() == 3) { | 
|---|
|  |  |  | //è¯é³è¯å«ç»æä¸æ¥æ¥å£: 3 | 
|---|
|  |  |  | Integer noVoice = redisCache.getCacheObject(phoneCallBackVO.getUuid() + "noVoice"); | 
|---|
|  |  |  | QuestionMessage returnQues = redisCache.getCacheObject(phoneCallBackVO.getUuid() + "returnQues"); | 
|---|
|  |  |  | IvrLibaTemplateScriptVO nowQuestion = returnQues.getNowQuestion(); | 
|---|
|  |  |  | PhoneUtils phoneUtils = new PhoneUtils(); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | if (StringUtils.isEmpty(phoneCallBackVO.getTextResult())) { | 
|---|
|  |  |  | //æ åè¯ | 
|---|
|  |  |  | //夿noVoiceæ¯å¦å·²ç»å°äºæå¤§å¼ | 
|---|
|  |  |  | if (noVoice == ivrLibaTemplateVO.getNoVoiceNum().intValue()) { | 
|---|
|  |  |  | //å·²ç»é®äºå¯¹åºçéæ°ï¼å°±å¤ææ¯å¦è¿æä¸ä¸é¢ | 
|---|
|  |  |  | if (nowQuestion.getTargetid() == ivrLibaTemplateScriptVOs.size()) { | 
|---|
|  |  |  | //没æä¸ä¸é¢äºï¼å°±ææçµè¯ï¼ææ¾ç»æè¯ | 
|---|
|  |  |  | redisCache.setCacheObject(phoneCallBackVO.getUuid() + "hangup", 1, 120, TimeUnit.MINUTES); | 
|---|
|  |  |  | phoneUtils.ttsPlayback(ivrLibaTemplateVO.getRevisitAfter(), phoneCallBackVO.getUuid()); | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | //æä¸ä¸é¢ | 
|---|
|  |  |  | redisCache.setCacheObject(phoneCallBackVO.getUuid() + "noVoice", 0, 120, TimeUnit.MINUTES); | 
|---|
|  |  |  | IvrLibaTemplateScriptVO nextQuestion = getNextQuestion(ivrLibaTemplateScriptVOs, nowQuestion); | 
|---|
|  |  |  | // é®é¢ï¼  å»è°ç¨âttsåæåææ¾âæ¥å£ | 
|---|
|  |  |  | phoneUtils.ttsPlayback(nowQuestion.getQuestionText(), phoneCallBackVO.getUuid()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | redisCache.setCacheObject(phoneCallBackVO.getUuid() + "noVoice", noVoice + 1, 120, TimeUnit.MINUTES); | 
|---|
|  |  |  | //è°ç¨ivrLibaTemplateScriptVOä¸çslienceText(éé»è¯æ¯) | 
|---|
|  |  |  | String slienceText = nowQuestion.getSlienceText(); | 
|---|
|  |  |  | //éé»è¯æ¯  + é®é¢ï¼  å»è°ç¨âttsåæåææ¾âæ¥å£ | 
|---|
|  |  |  | phoneUtils.ttsPlayback(slienceText + nowQuestion.getQuestionText(), phoneCallBackVO.getUuid()); | 
|---|
|  |  |  | return new PhoneCallBackVO(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | //æåè¯ï¼å¯¹åççé®é¢,è¿è¡æ£åå¹é
ï¼è¿éåªé坹鿩é¢ï¼å
¶å®é¢åä¸è¡ï¼ | 
|---|
|  |  |  | for (int j = 0; j < nowQuestion.getIvrLibaScriptTargetoptionList().size(); j++) { | 
|---|
|  |  |  | //å
å« | 
|---|
|  |  |  | Matcher matcher = null; | 
|---|
|  |  |  | if (StringUtils.isNotEmpty(nowQuestion.getIvrLibaScriptTargetoptionList().get(j).getTargetregex())) { | 
|---|
|  |  |  | Pattern pattern = Pattern.compile(nowQuestion.getIvrLibaScriptTargetoptionList().get(j).getTargetregex()); | 
|---|
|  |  |  | matcher = pattern.matcher(phoneCallBackVO.getTextResult()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | //ä¸å
å« | 
|---|
|  |  |  | Matcher matcher2 = null; | 
|---|
|  |  |  | if (StringUtils.isNotEmpty(nowQuestion.getIvrLibaScriptTargetoptionList().get(j).getTargetregex2())) { | 
|---|
|  |  |  | Pattern pattern2 = Pattern.compile(nowQuestion.getIvrLibaScriptTargetoptionList().get(j).getTargetregex2()); | 
|---|
|  |  |  | matcher2 = pattern2.matcher(phoneCallBackVO.getTextResult()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | log.info("phoneCallBack--Targetregexçå¼ä¸ºï¼{}, phoneCallBack--Targetregex2çå¼ä¸ºï¼{}", nowQuestion.getIvrLibaScriptTargetoptionList().get(j).getTargetregex(), nowQuestion.getIvrLibaScriptTargetoptionList().get(j).getTargetregex2()); | 
|---|
|  |  |  | if (StringUtils.isNotEmpty(nowQuestion.getIvrLibaScriptTargetoptionList().get(j).getTargetregex()) && matcher.matches() && StringUtils.isNotEmpty(nowQuestion.getIvrLibaScriptTargetoptionList().get(j).getTargetregex2()) && matcher2.matches() || StringUtils.isEmpty(nowQuestion.getIvrLibaScriptTargetoptionList().get(j).getTargetregex()) && StringUtils.isNotEmpty(nowQuestion.getIvrLibaScriptTargetoptionList().get(j).getTargetregex2()) && matcher2.matches() || StringUtils.isEmpty(nowQuestion.getIvrLibaScriptTargetoptionList().get(j).getTargetregex2()) && StringUtils.isNotEmpty(nowQuestion.getIvrLibaScriptTargetoptionList().get(j).getTargetregex()) && matcher.matches()) { | 
|---|
|  |  |  | //说æå¹é
æ£ç¡®äº | 
|---|
|  |  |  | //è¿éåºè¯¥å
å¤æç±»åï¼å»åä¿®æ¹ï¼è®¾ç½®IsUserOperationæ¯åéé¢çæ¹æ³ | 
|---|
|  |  |  | nowQuestion.getIvrLibaScriptTargetoptionList().get(j).setIsUserOperation(true); | 
|---|
|  |  |  | ivrLibaScriptTargetoptionMapper.updateIvrLibaTemplateTargetoption(nowQuestion.getIvrLibaScriptTargetoptionList().get(j)); | 
|---|
|  |  |  | redisCache.setCacheObject(phoneCallBackVO.getUuid() + "noVoice", noVoice + 1, 120, TimeUnit.MINUTES); | 
|---|
|  |  |  | //è°ç¨ivrLibaTemplateScriptVOä¸çslienceText(éé»è¯æ¯) | 
|---|
|  |  |  | String slienceText = nowQuestion.getSlienceText(); | 
|---|
|  |  |  | //éé»è¯æ¯  + é®é¢ï¼  å»è°ç¨âttsåæåææ¾âæ¥å£ | 
|---|
|  |  |  | phoneUtils.ttsPlayback(slienceText + nowQuestion.getQuestionText(), phoneCallBackVO.getUuid()); | 
|---|
|  |  |  | return; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //å°éé»ç½®ä¸º0 | 
|---|
|  |  |  | redisCache.setCacheObject(phoneCallBackVO.getUuid() + "noVoice", 0, 120, TimeUnit.MINUTES); | 
|---|
|  |  |  | redisCache.setCacheObject(phoneCallBackVO.getUuid() + "mateNum", 0, 120, TimeUnit.MINUTES); | 
|---|
|  |  |  | //è·åä¸ä¸é¢ | 
|---|
|  |  |  | Integer nextQuestion = nowQuestion.getIvrLibaScriptTargetoptionList().get(j).getNextQuestion(); | 
|---|
|  |  |  | for (IvrLibaTemplateScriptVO script : ivrLibaTemplateScriptVOs) { | 
|---|
|  |  |  | if (script.getTargetid() == nextQuestion) { | 
|---|
|  |  |  | QuestionMessage questionMessage = new QuestionMessage(); | 
|---|
|  |  |  | questionMessage.setNowQuestion(script); | 
|---|
|  |  |  | questionMessage.setQuestionList(ivrLibaTemplateScriptVOs); | 
|---|
|  |  |  | redisCache.setCacheObject(phoneCallBackVO.getUuid() + "returnQues", questionMessage, 120, TimeUnit.MINUTES); | 
|---|
|  |  |  | break; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | break; | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | //没æå¹é
å° | 
|---|
|  |  |  | Integer mateNum = redisCache.getCacheObject(phoneCallBackVO.getUuid() + "mateNum"); | 
|---|
|  |  |  | //æ å¹é
次æ°å»å¤ææ¯å¦å°æå¤§è¯¢é®æ¬¡æ°ï¼å¹¶ä¸ææçé项é½å¹é
å®äº | 
|---|
|  |  |  | if (mateNum == ivrLibaTemplateVO.getMateNum().intValue() && j == nowQuestion.getIvrLibaScriptTargetoptionList().size() - 1) { | 
|---|
|  |  |  | //妿ä¸ä¸é¢ä¸ºç©º.åæ°çæ°æ®è¿å,å¹¶å ä¸æè°¢è¯ | 
|---|
|  |  |  | if (nowQuestion.getTargetid() < ivrLibaTemplateScriptVOs.size()) { | 
|---|
|  |  |  | QuestionMessage questionMessage = new QuestionMessage(); | 
|---|
|  |  |  | IvrLibaTemplateScriptVO nextQuestion = getNextQuestion(ivrLibaTemplateScriptVOs, nowQuestion); | 
|---|
|  |  |  | questionMessage.setQuestionList(ivrLibaTemplateScriptVOs); | 
|---|
|  |  |  | questionMessage.setNowQuestion(nextQuestion); | 
|---|
|  |  |  | redisCache.setCacheObject(phoneCallBackVO.getUuid() + "returnQues", questionMessage, 120, TimeUnit.MINUTES); | 
|---|
|  |  |  | redisCache.setCacheObject(phoneCallBackVO.getUuid() + "mateNum", 0, 120, TimeUnit.MINUTES); | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | //å°±å¯ä»¥ææçµè¯äº | 
|---|
|  |  |  | redisCache.setCacheObject(phoneCallBackVO.getUuid() + "hangup", 1, 120, TimeUnit.MINUTES); | 
|---|
|  |  |  | phoneUtils.ttsPlayback(ivrLibaTemplateVO.getRevisitAfter(), phoneCallBackVO.getUuid()); | 
|---|
|  |  |  | break; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } else if (mateNum < ivrLibaTemplateVO.getMateNum().intValue() && j == nowQuestion.getIvrLibaScriptTargetoptionList().size() - 1) { | 
|---|
|  |  |  | //没æé®å°è§å®æ¬¡æ° | 
|---|
|  |  |  | mateNum = mateNum + 1; | 
|---|
|  |  |  | redisCache.setCacheObject(phoneCallBackVO.getUuid() + "mateNum", mateNum, 120, TimeUnit.MINUTES); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | //æåè¯ï¼å¯¹åççé®é¢,è¿è¡æ£åå¹é
ï¼è¿éåªé坹鿩é¢ï¼å
¶å®é¢åä¸è¡ï¼ | 
|---|
|  |  |  | for (int j = 0; j < nowQuestion.getIvrLibaScriptTargetoptionList().size(); j++) { | 
|---|
|  |  |  | //å
å« | 
|---|
|  |  |  | Matcher matcher = null; | 
|---|
|  |  |  | if (StringUtils.isNotEmpty(nowQuestion.getIvrLibaScriptTargetoptionList().get(j).getTargetregex())) { | 
|---|
|  |  |  | Pattern pattern = Pattern.compile(nowQuestion.getIvrLibaScriptTargetoptionList().get(j).getTargetregex()); | 
|---|
|  |  |  | matcher = pattern.matcher(phoneCallBackVO.getTextResult()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | //é项å¹é
宿åï¼éè¦åå»éè¿åºåè¿è¡å¹é
䏿¬¡ | 
|---|
|  |  |  | String extemplateID = ivrLibaTemplateVO.getSubmoduleID(); | 
|---|
|  |  |  | String[] split = extemplateID.split(","); | 
|---|
|  |  |  | List<String> list = Arrays.asList(split); | 
|---|
|  |  |  | List<Long> list1 = new ArrayList<>(); | 
|---|
|  |  |  | if (StringUtils.isNotEmpty(extemplateID)) { | 
|---|
|  |  |  | for (String str : list) { | 
|---|
|  |  |  | list1.add(Long.valueOf(str)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | List<IvrLibaExtemplatescript> ivrLibaExtemplatescripts = ivrLibaExtemplatescriptMapper.queryIvrLibaExtemplatescriptList(list1); | 
|---|
|  |  |  | for (IvrLibaExtemplatescript ivrLibaExtemplatescript : ivrLibaExtemplatescripts) { | 
|---|
|  |  |  | Matcher matcher = null; | 
|---|
|  |  |  | if (StringUtils.isNotEmpty(ivrLibaExtemplatescript.getSelfRegex())) { | 
|---|
|  |  |  | Pattern pattern = Pattern.compile(ivrLibaExtemplatescript.getSelfRegex()); | 
|---|
|  |  |  | matcher = pattern.matcher(returnQues.getContent()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | //ä¸å
å« | 
|---|
|  |  |  | Matcher matcher2 = null; | 
|---|
|  |  |  | if (StringUtils.isNotEmpty(nowQuestion.getIvrLibaScriptTargetoptionList().get(j).getTargetregex2())) { | 
|---|
|  |  |  | Pattern pattern2 = Pattern.compile(nowQuestion.getIvrLibaScriptTargetoptionList().get(j).getTargetregex2()); | 
|---|
|  |  |  | matcher2 = pattern2.matcher(phoneCallBackVO.getTextResult()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | log.info("phoneCallBack--Targetregexçå¼ä¸ºï¼{}, phoneCallBack--Targetregex2çå¼ä¸ºï¼{}", nowQuestion.getIvrLibaScriptTargetoptionList().get(j).getTargetregex(), nowQuestion.getIvrLibaScriptTargetoptionList().get(j).getTargetregex2()); | 
|---|
|  |  |  | if (StringUtils.isNotEmpty(nowQuestion.getIvrLibaScriptTargetoptionList().get(j).getTargetregex()) && matcher.matches() && StringUtils.isNotEmpty(nowQuestion.getIvrLibaScriptTargetoptionList().get(j).getTargetregex2()) && matcher2.matches() || StringUtils.isEmpty(nowQuestion.getIvrLibaScriptTargetoptionList().get(j).getTargetregex()) && StringUtils.isNotEmpty(nowQuestion.getIvrLibaScriptTargetoptionList().get(j).getTargetregex2()) && matcher2.matches() || StringUtils.isEmpty(nowQuestion.getIvrLibaScriptTargetoptionList().get(j).getTargetregex2()) && StringUtils.isNotEmpty(nowQuestion.getIvrLibaScriptTargetoptionList().get(j).getTargetregex()) && matcher.matches()) { | 
|---|
|  |  |  | //说æå¹é
æ£ç¡®äº | 
|---|
|  |  |  | //è¿éåºè¯¥å
å¤æç±»åï¼å»åä¿®æ¹ï¼è®¾ç½®IsUserOperationæ¯åéé¢çæ¹æ³ | 
|---|
|  |  |  | nowQuestion.getIvrLibaScriptTargetoptionList().get(j).setIsUserOperation(true); | 
|---|
|  |  |  | ivrLibaScriptTargetoptionMapper.updateIvrLibaTemplateTargetoption(nowQuestion.getIvrLibaScriptTargetoptionList().get(j)); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | Matcher matcher2 = null; | 
|---|
|  |  |  | if (StringUtils.isNotEmpty(ivrLibaExtemplatescript.getSelfRegex2())) { | 
|---|
|  |  |  | Pattern pattern2 = Pattern.compile(ivrLibaExtemplatescript.getSelfRegex2()); | 
|---|
|  |  |  | matcher2 = pattern2.matcher(returnQues.getContent()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | log.info("++++++++++++++++++++++++++éç¨åºæ¯å¦ä¸ºç©ºï¼selfRegex : {} , selfRegex2 : {}", ivrLibaExtemplatescript.getSelfRegex(), ivrLibaExtemplatescript.getSelfRegex2()); | 
|---|
|  |  |  | if (StringUtils.isNotEmpty(ivrLibaExtemplatescript.getSelfRegex()) && matcher.matches() && StringUtils.isNotEmpty(ivrLibaExtemplatescript.getSelfRegex2()) && matcher2.matches() || StringUtils.isEmpty(ivrLibaExtemplatescript.getSelfRegex()) && StringUtils.isNotEmpty(ivrLibaExtemplatescript.getSelfRegex2()) && matcher2.matches() || StringUtils.isEmpty(ivrLibaExtemplatescript.getSelfRegex2()) && StringUtils.isNotEmpty(ivrLibaExtemplatescript.getSelfRegex()) && matcher.matches()) { | 
|---|
|  |  |  | QuestionMessage questionMessage = redisCache.getCacheObject(phoneCallBackVO.getUuid() + "returnQues"); | 
|---|
|  |  |  | IvrLibaTemplateScriptVO ivrLibaTemplateScriptVO = returnQues.getNowQuestion(); | 
|---|
|  |  |  | ivrLibaTemplateScriptVO.setSubmoduleText(ivrLibaExtemplatescript.getSwitchText()); | 
|---|
|  |  |  | ivrLibaTemplateScriptVO.setSubmoduleVoice(ivrLibaExtemplatescript.getSwitchWav()); | 
|---|
|  |  |  | //å°éé»ç½®ä¸º0 | 
|---|
|  |  |  | redisCache.setCacheObject(phoneCallBackVO.getUuid() + "noVoice", 0, 120, TimeUnit.MINUTES); | 
|---|
|  |  |  | redisCache.setCacheObject(phoneCallBackVO.getUuid() + "mateNum", 0, 120, TimeUnit.MINUTES); | 
|---|
|  |  |  | //è·åä¸ä¸é¢ | 
|---|
|  |  |  | Integer nextQuestion = nowQuestion.getIvrLibaScriptTargetoptionList().get(j).getNextQuestion(); | 
|---|
|  |  |  | for (IvrLibaTemplateScriptVO script : ivrLibaTemplateScriptVOs) { | 
|---|
|  |  |  | if (script.getTargetid() == nextQuestion) { | 
|---|
|  |  |  | QuestionMessage questionMessage = new QuestionMessage(); | 
|---|
|  |  |  | questionMessage.setNowQuestion(script); | 
|---|
|  |  |  | questionMessage.setQuestionList(ivrLibaTemplateScriptVOs); | 
|---|
|  |  |  | redisCache.setCacheObject(phoneCallBackVO.getUuid() + "returnQues", questionMessage, 120, TimeUnit.MINUTES); | 
|---|
|  |  |  | if (ivrLibaExtemplatescript.getIsEnd() == 1) { | 
|---|
|  |  |  | //å°é®é¢ç½®ç©º | 
|---|
|  |  |  | IvrLibaTemplateScriptVO nowQuestion1 = questionMessage.getNowQuestion(); | 
|---|
|  |  |  | nowQuestion1.setQuestionText(null); | 
|---|
|  |  |  | nowQuestion1.setQuestionVoice(null); | 
|---|
|  |  |  | questionMessage.setNowQuestion(nowQuestion1); | 
|---|
|  |  |  | redisCache.setCacheObject(phoneCallBackVO.getUuid() + "returnQues", questionMessage, 120, TimeUnit.MINUTES); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | redisCache.setCacheObject(phoneCallBackVO.getUuid() + "isOver", 1, 120, TimeUnit.MINUTES); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //è°ç¨â15ãttsåæåææ¾ï¼ tts_playbackâå°ç»æä¼ å | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | phoneUtils.ttsPlayback(script.getQuestionText(), phoneCallBackVO.getUuid()); | 
|---|
|  |  |  | return; | 
|---|
|  |  |  | } else if (nextQuestion > ivrLibaTemplateScriptVOs.size()) { | 
|---|
|  |  |  | //没æä¸ä¸é¢äºï¼å°±ç»æäº | 
|---|
|  |  |  | redisCache.setCacheObject(phoneCallBackVO.getUuid() + "hangup", 1, 120, TimeUnit.MINUTES); | 
|---|
|  |  |  | phoneUtils.ttsPlayback(ivrLibaTemplateVO.getRevisitAfter(), phoneCallBackVO.getUuid()); | 
|---|
|  |  |  | phoneUtils.hangup(null, null, null, null, null, null, null, phoneCallBackVO.getUuid()); | 
|---|
|  |  |  | return; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | break; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return; | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | //没æå¹é
å° | 
|---|
|  |  |  | Integer mateNum = redisCache.getCacheObject(phoneCallBackVO.getUuid() + "mateNum"); | 
|---|
|  |  |  | if (mateNum == null) mateNum = 0; | 
|---|
|  |  |  | //æ å¹é
次æ°å»å¤ææ¯å¦å°æå¤§è¯¢é®æ¬¡æ°ï¼å¹¶ä¸ææçé项é½å¹é
å®äº | 
|---|
|  |  |  | if (mateNum == ivrLibaTemplateVO.getMateNum().intValue() && j == nowQuestion.getIvrLibaScriptTargetoptionList().size() - 1) { | 
|---|
|  |  |  | //妿ä¸ä¸é¢ä¸ºç©º.åæ°çæ°æ®è¿å,å¹¶å ä¸æè°¢è¯ | 
|---|
|  |  |  | if (nowQuestion.getTargetid() < ivrLibaTemplateScriptVOs.size()) { | 
|---|
|  |  |  | QuestionMessage questionMessage = new QuestionMessage(); | 
|---|
|  |  |  | IvrLibaTemplateScriptVO nextQuestion = getNextQuestion(ivrLibaTemplateScriptVOs, nowQuestion); | 
|---|
|  |  |  | questionMessage.setQuestionList(ivrLibaTemplateScriptVOs); | 
|---|
|  |  |  | questionMessage.setNowQuestion(nextQuestion); | 
|---|
|  |  |  | redisCache.setCacheObject(phoneCallBackVO.getUuid() + "returnQues", questionMessage, 120, TimeUnit.MINUTES); | 
|---|
|  |  |  | redisCache.setCacheObject(phoneCallBackVO.getUuid() + "mateNum", 0, 120, TimeUnit.MINUTES); | 
|---|
|  |  |  | phoneUtils.ttsPlayback(nextQuestion.getQuestionText(), phoneCallBackVO.getUuid()); | 
|---|
|  |  |  | return; | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | //å°±å¯ä»¥ææçµè¯äº | 
|---|
|  |  |  | redisCache.setCacheObject(phoneCallBackVO.getUuid() + "hangup", 1, 120, TimeUnit.MINUTES); | 
|---|
|  |  |  | phoneUtils.ttsPlayback(ivrLibaTemplateVO.getRevisitAfter(), phoneCallBackVO.getUuid()); | 
|---|
|  |  |  | phoneUtils.hangup(null, null, null, null, null, null, null, phoneCallBackVO.getUuid()); | 
|---|
|  |  |  | return; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } else if (mateNum < ivrLibaTemplateVO.getMateNum().intValue() && j == nowQuestion.getIvrLibaScriptTargetoptionList().size() - 1) { | 
|---|
|  |  |  | //没æé®å°è§å®æ¬¡æ° | 
|---|
|  |  |  | mateNum = mateNum + 1; | 
|---|
|  |  |  | redisCache.setCacheObject(phoneCallBackVO.getUuid() + "mateNum", mateNum, 120, TimeUnit.MINUTES); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | //é项å¹é
宿åï¼éè¦åå»éè¿åºåè¿è¡å¹é
䏿¬¡ | 
|---|
|  |  |  | String extemplateID = ivrLibaTemplateVO.getSubmoduleID(); | 
|---|
|  |  |  | String[] split = extemplateID.split(","); | 
|---|
|  |  |  | List<String> list = Arrays.asList(split); | 
|---|
|  |  |  | List<Long> list1 = new ArrayList<>(); | 
|---|
|  |  |  | if (StringUtils.isNotEmpty(extemplateID)) { | 
|---|
|  |  |  | for (String str : list) { | 
|---|
|  |  |  | list1.add(Long.valueOf(str)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | List<IvrLibaExtemplatescript> ivrLibaExtemplatescripts = ivrLibaExtemplatescriptMapper.queryIvrLibaExtemplatescriptList(list1); | 
|---|
|  |  |  | for (IvrLibaExtemplatescript ivrLibaExtemplatescript : ivrLibaExtemplatescripts) { | 
|---|
|  |  |  | Matcher matcher = null; | 
|---|
|  |  |  | if (StringUtils.isNotEmpty(ivrLibaExtemplatescript.getSelfRegex())) { | 
|---|
|  |  |  | Pattern pattern = Pattern.compile(ivrLibaExtemplatescript.getSelfRegex()); | 
|---|
|  |  |  | matcher = pattern.matcher(returnQues.getContent()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | Matcher matcher2 = null; | 
|---|
|  |  |  | if (StringUtils.isNotEmpty(ivrLibaExtemplatescript.getSelfRegex2())) { | 
|---|
|  |  |  | Pattern pattern2 = Pattern.compile(ivrLibaExtemplatescript.getSelfRegex2()); | 
|---|
|  |  |  | matcher2 = pattern2.matcher(returnQues.getContent()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | log.info("++++++++++++++++++++++++++éç¨åºæ¯å¦ä¸ºç©ºï¼selfRegex : {} , selfRegex2 : {}", ivrLibaExtemplatescript.getSelfRegex(), ivrLibaExtemplatescript.getSelfRegex2()); | 
|---|
|  |  |  | if (StringUtils.isNotEmpty(ivrLibaExtemplatescript.getSelfRegex()) && matcher.matches() && StringUtils.isNotEmpty(ivrLibaExtemplatescript.getSelfRegex2()) && matcher2.matches() || StringUtils.isEmpty(ivrLibaExtemplatescript.getSelfRegex()) && StringUtils.isNotEmpty(ivrLibaExtemplatescript.getSelfRegex2()) && matcher2.matches() || StringUtils.isEmpty(ivrLibaExtemplatescript.getSelfRegex2()) && StringUtils.isNotEmpty(ivrLibaExtemplatescript.getSelfRegex()) && matcher.matches()) { | 
|---|
|  |  |  | QuestionMessage questionMessage = redisCache.getCacheObject(phoneCallBackVO.getUuid() + "returnQues"); | 
|---|
|  |  |  | IvrLibaTemplateScriptVO ivrLibaTemplateScriptVO = returnQues.getNowQuestion(); | 
|---|
|  |  |  | ivrLibaTemplateScriptVO.setSubmoduleText(ivrLibaExtemplatescript.getSwitchText()); | 
|---|
|  |  |  | ivrLibaTemplateScriptVO.setSubmoduleVoice(ivrLibaExtemplatescript.getSwitchWav()); | 
|---|
|  |  |  | redisCache.setCacheObject(phoneCallBackVO.getUuid() + "returnQues", questionMessage, 120, TimeUnit.MINUTES); | 
|---|
|  |  |  | if (ivrLibaExtemplatescript.getIsEnd() == 1) { | 
|---|
|  |  |  | //å°é®é¢ç½®ç©º | 
|---|
|  |  |  | IvrLibaTemplateScriptVO nowQuestion1 = questionMessage.getNowQuestion(); | 
|---|
|  |  |  | nowQuestion1.setQuestionText(null); | 
|---|
|  |  |  | nowQuestion1.setQuestionVoice(null); | 
|---|
|  |  |  | questionMessage.setNowQuestion(nowQuestion1); | 
|---|
|  |  |  | redisCache.setCacheObject(phoneCallBackVO.getUuid() + "returnQues", questionMessage, 120, TimeUnit.MINUTES); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | redisCache.setCacheObject(phoneCallBackVO.getUuid() + "isOver", 1, 120, TimeUnit.MINUTES); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | //è°ç¨â15ãttsåæåææ¾ï¼ tts_playbackâå°ç»æä¼ å | 
|---|
|  |  |  | phoneUtils.ttsPlayback(nowQuestion.getQuestionText() + ivrLibaTemplateScriptVO.getSubmoduleText(), phoneCallBackVO.getUuid()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | break; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | phoneUtils.ttsPlayback(nowQuestion.getQuestionText(), phoneCallBackVO.getUuid()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return phoneCallBackVO; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //ä¸é¢ç代ç ä¸è½å é¤ï¼ä¸é¢çæ¹æ³åªæ¯é
åçµè¯ç«¯èè°ç¨çï¼ | 
|---|
|  |  |  | //    @Override | 
|---|
|  |  |  | //    public PhoneCallBackVO phoneCallBack(PhoneCallBackVO phoneCallBackVO) { | 
|---|
|  |  |  | //        log.error("phoneCallBackVOçå
¥åï¼{},{},{},{},{},{},{}", phoneCallBackVO.getResultType(), phoneCallBackVO.getUuid(), phoneCallBackVO.getErrResult(), phoneCallBackVO.getTextResult(), phoneCallBackVO.getHangUpResult(), phoneCallBackVO.getEnumState(), phoneCallBackVO.getUint8()); | 
|---|
|  |  |  | //        //è·åæ°æ® | 
|---|
|  |  |  | //        Boolean aBoolean = redisCache.hasKey(phoneCallBackVO.getUuid()); | 
|---|
|  |  |  | //        if (!aBoolean) { | 
|---|
|  |  |  | //            throw new BaseException("该uuidä¸åå¨"); | 
|---|
|  |  |  | //        } | 
|---|
|  |  |  | //        Integer hangupValue = redisCache.getCacheObject(phoneCallBackVO.getUuid() + "hangup"); | 
|---|
|  |  |  | //        if (hangupValue != null && hangupValue == 1) { | 
|---|
|  |  |  | //            //hangupValue == 1  éè®¿ç»æï¼ç´æ¥å¯ä»¥æçµè¯ | 
|---|
|  |  |  | //            PhoneUtils phoneUtils = new PhoneUtils(); | 
|---|
|  |  |  | //            phoneUtils.hangup(phoneCallBackVO.getUuid(), null, null, null, null, null, null, null); | 
|---|
|  |  |  | // | 
|---|
|  |  |  | //        } | 
|---|
|  |  |  | // | 
|---|
|  |  |  | //        Map<String, Object> map = redisCache.getCacheObject(phoneCallBackVO.getUuid()); | 
|---|
|  |  |  | ////        ObjectMapper objectMapper = new ObjectMapper(); | 
|---|
|  |  |  | ////        Map<String, Object> map = null; | 
|---|
|  |  |  | ////        try { | 
|---|
|  |  |  | ////            map = objectMapper.readValue(cacheObject, Map.class); | 
|---|
|  |  |  | ////        } catch (JsonProcessingException e) { | 
|---|
|  |  |  | ////            e.printStackTrace(); | 
|---|
|  |  |  | ////        } | 
|---|
|  |  |  | // | 
|---|
|  |  |  | //        IvrTaskSingle ivrTaskcall = (IvrTaskSingle) map.get("ivrTaskcall"); | 
|---|
|  |  |  | //        List<IvrLibaTemplateScriptVO> ivrLibaTemplateScriptVOs = (List<IvrLibaTemplateScriptVO>) map.get("ivrLibaTemplateScriptVO"); | 
|---|
|  |  |  | //        //å°uuidæ´æ°å°æ°æ®åºä¸ | 
|---|
|  |  |  | //        ivrTaskcall.setSenduuid(phoneCallBackVO.getUuid()); | 
|---|
|  |  |  | //        ivrTaskSingleMapper.updateIvrTaskcall(ivrTaskcall); | 
|---|
|  |  |  | // | 
|---|
|  |  |  | //        //è·å模æ¿ä¿¡æ¯ | 
|---|
|  |  |  | //        IvrLibaTemplateVO ivrLibaTemplateVO = redisCache.getCacheObject(phoneCallBackVO.getUuid() + "ivrLibaTemplateVO"); | 
|---|
|  |  |  | // | 
|---|
|  |  |  | // | 
|---|
|  |  |  | //        //é¦å
夿resultType | 
|---|
|  |  |  | //        if (phoneCallBackVO.getResultType() == 1) { | 
|---|
|  |  |  | //            //å¼å«ç»ææ¥å£: 1 | 
|---|
|  |  |  | //            if (phoneCallBackVO.getUint8() == 1) { | 
|---|
|  |  |  | //                //å¼å«å¤±è´¥ï¼å»redisä¸è®°å½ä¸ä¸å¤±è´¥æ¬¡æ°ï¼è¿è¡å次å¼å« | 
|---|
|  |  |  | //                Integer integer = redisCache.getCacheObject(phoneCallBackVO.getUuid() + "uint8"); | 
|---|
|  |  |  | //                if (integer != null) { | 
|---|
|  |  |  | //                    redisCache.setCacheObject(phoneCallBackVO.getUuid() + "uint8", integer + 1, 120, TimeUnit.MINUTES); | 
|---|
|  |  |  | //                } else { | 
|---|
|  |  |  | //                    redisCache.setCacheObject(phoneCallBackVO.getUuid() + "uint8", 1, 120, TimeUnit.MINUTES); | 
|---|
|  |  |  | //                } | 
|---|
|  |  |  | // | 
|---|
|  |  |  | //                if (integer != null && integer == ivrTaskcall.getRecallcount().intValue()) { | 
|---|
|  |  |  | //                    log.info("æ äººæ¥å¬ï¼{},   {}", phoneCallBackVO.getErrResult(), phoneCallBackVO.getUuid()); | 
|---|
|  |  |  | //                    //è¿ç»æè§å®æ¬¡ï¼å¦æè¦æ²¡äººæ¥ï¼é£å°±ç»æ | 
|---|
|  |  |  | //                    ivrTaskcall.setResult(phoneCallBackVO.getErrResult()); | 
|---|
|  |  |  | //                    ivrTaskSingleMapper.updateIvrTaskcall(ivrTaskcall); | 
|---|
|  |  |  | //                    redisCache.deleteObject(phoneCallBackVO.getUuid() + "uint8"); | 
|---|
|  |  |  | //                } else if (integer != null && integer < ivrTaskcall.getRecallcount().intValue()) { | 
|---|
|  |  |  | //                    //è¿è¡éæ¨ | 
|---|
|  |  |  | //                    PhoneUtils phoneUtils = new PhoneUtils(); | 
|---|
|  |  |  | //                    phoneUtils.ob(null, null, null, null, null, null, null, ivrTaskcall.getPhone(), phoneCallBackVO.getUuid(), true); | 
|---|
|  |  |  | //                } | 
|---|
|  |  |  | //            } | 
|---|
|  |  |  | // | 
|---|
|  |  |  | //        } else if (phoneCallBackVO.getResultType() == 2) { | 
|---|
|  |  |  | //            //éè¯ç¶ææ´æ°æ¥å£: 2 | 
|---|
|  |  |  | //            if (phoneCallBackVO.getEnumState() == 0) { | 
|---|
|  |  |  | //                // 0-æ¯é | 
|---|
|  |  |  | //                Integer integer = redisCache.getCacheObject(phoneCallBackVO.getUuid() + "enumState"); | 
|---|
|  |  |  | // | 
|---|
|  |  |  | //                if (integer != null && integer < ivrTaskcall.getRecallcount().intValue()) { | 
|---|
|  |  |  | //                    redisCache.setCacheObject(phoneCallBackVO.getUuid() + "enumState", integer + 1, 120, TimeUnit.MINUTES); | 
|---|
|  |  |  | //                } else if (integer == null) { | 
|---|
|  |  |  | //                    redisCache.setCacheObject(phoneCallBackVO.getUuid() + "enumState", 1, 120, TimeUnit.MINUTES); | 
|---|
|  |  |  | //                } else if (integer != null && integer == ivrTaskcall.getRecallcount().intValue()) { | 
|---|
|  |  |  | //                    ivrTaskcall.setResult("æ äººæ¥å¬"); | 
|---|
|  |  |  | //                    ivrTaskSingleMapper.updateIvrTaskcall(ivrTaskcall); | 
|---|
|  |  |  | //                    redisCache.deleteObject(phoneCallBackVO.getUuid() + "enumState"); | 
|---|
|  |  |  | //                } | 
|---|
|  |  |  | //            } else if (phoneCallBackVO.getEnumState() == 2) { | 
|---|
|  |  |  | //                //æ£è
ææçµè¯ | 
|---|
|  |  |  | //                log.info("æ£è
ææçµè¯ï¼{}", phoneCallBackVO.getUuid()); | 
|---|
|  |  |  | //                ivrTaskcall.setResult(phoneCallBackVO.getHangUpResult()); | 
|---|
|  |  |  | //                ivrTaskSingleMapper.updateIvrTaskcall(ivrTaskcall); | 
|---|
|  |  |  | //                redisCache.deleteObject(phoneCallBackVO.getUuid() + "enumState"); | 
|---|
|  |  |  | //            } | 
|---|
|  |  |  | // | 
|---|
|  |  |  | // | 
|---|
|  |  |  | //        } else if (phoneCallBackVO.getResultType() == 3) { | 
|---|
|  |  |  | //            //è¯é³è¯å«ç»æä¸æ¥æ¥å£: 3 | 
|---|
|  |  |  | //            Integer noVoice = redisCache.getCacheObject(phoneCallBackVO.getUuid() + "noVoice"); | 
|---|
|  |  |  | //            QuestionMessage returnQues = redisCache.getCacheObject(phoneCallBackVO.getUuid() + "returnQues"); | 
|---|
|  |  |  | //            IvrLibaTemplateScriptVO nowQuestion = returnQues.getNowQuestion(); | 
|---|
|  |  |  | //            PhoneUtils phoneUtils = new PhoneUtils(); | 
|---|
|  |  |  | // | 
|---|
|  |  |  | //            if (StringUtils.isEmpty(phoneCallBackVO.getTextResult())) { | 
|---|
|  |  |  | //                //æ åè¯ | 
|---|
|  |  |  | //                //夿noVoiceæ¯å¦å·²ç»å°äºæå¤§å¼ | 
|---|
|  |  |  | //                if (noVoice == ivrLibaTemplateVO.getNoVoiceNum().intValue()) { | 
|---|
|  |  |  | //                    //å·²ç»é®äºå¯¹åºçéæ°ï¼å°±å¤ææ¯å¦è¿æä¸ä¸é¢ | 
|---|
|  |  |  | //                    if (nowQuestion.getTargetid() == ivrLibaTemplateScriptVOs.size()) { | 
|---|
|  |  |  | //                        //没æä¸ä¸é¢äºï¼å°±ææçµè¯ï¼ææ¾ç»æè¯ | 
|---|
|  |  |  | //                        redisCache.setCacheObject(phoneCallBackVO.getUuid() + "hangup", 1, 120, TimeUnit.MINUTES); | 
|---|
|  |  |  | //                        phoneUtils.ttsPlayback(ivrLibaTemplateVO.getRevisitAfter(), phoneCallBackVO.getUuid()); | 
|---|
|  |  |  | //                    } else { | 
|---|
|  |  |  | //                        //æä¸ä¸é¢ | 
|---|
|  |  |  | //                        redisCache.setCacheObject(phoneCallBackVO.getUuid() + "noVoice", 0, 120, TimeUnit.MINUTES); | 
|---|
|  |  |  | //                        IvrLibaTemplateScriptVO nextQuestion = getNextQuestion(ivrLibaTemplateScriptVOs, nowQuestion); | 
|---|
|  |  |  | //                        // é®é¢ï¼  å»è°ç¨âttsåæåææ¾âæ¥å£ | 
|---|
|  |  |  | //                        phoneUtils.ttsPlayback(nowQuestion.getQuestionText(), phoneCallBackVO.getUuid()); | 
|---|
|  |  |  | //                    } | 
|---|
|  |  |  | //                } else { | 
|---|
|  |  |  | //                    redisCache.setCacheObject(phoneCallBackVO.getUuid() + "noVoice", noVoice + 1, 120, TimeUnit.MINUTES); | 
|---|
|  |  |  | //                    //è°ç¨ivrLibaTemplateScriptVOä¸çslienceText(éé»è¯æ¯) | 
|---|
|  |  |  | //                    String slienceText = nowQuestion.getSlienceText(); | 
|---|
|  |  |  | //                    //éé»è¯æ¯  + é®é¢ï¼  å»è°ç¨âttsåæåææ¾âæ¥å£ | 
|---|
|  |  |  | //                    phoneUtils.ttsPlayback(slienceText + nowQuestion.getQuestionText(), phoneCallBackVO.getUuid()); | 
|---|
|  |  |  | //                    return new PhoneCallBackVO(); | 
|---|
|  |  |  | //                } | 
|---|
|  |  |  | // | 
|---|
|  |  |  | //            } else { | 
|---|
|  |  |  | //                //æåè¯ï¼å¯¹åççé®é¢,è¿è¡æ£åå¹é
ï¼è¿éåªé坹鿩é¢ï¼å
¶å®é¢åä¸è¡ï¼ | 
|---|
|  |  |  | //                for (int j = 0; j < nowQuestion.getIvrLibaScriptTargetoptionList().size(); j++) { | 
|---|
|  |  |  | //                    //å
å« | 
|---|
|  |  |  | //                    Matcher matcher = null; | 
|---|
|  |  |  | //                    if (StringUtils.isNotEmpty(nowQuestion.getIvrLibaScriptTargetoptionList().get(j).getTargetregex())) { | 
|---|
|  |  |  | //                        Pattern pattern = Pattern.compile(nowQuestion.getIvrLibaScriptTargetoptionList().get(j).getTargetregex()); | 
|---|
|  |  |  | //                        matcher = pattern.matcher(phoneCallBackVO.getTextResult()); | 
|---|
|  |  |  | //                    } | 
|---|
|  |  |  | //                    //ä¸å
å« | 
|---|
|  |  |  | //                    Matcher matcher2 = null; | 
|---|
|  |  |  | //                    if (StringUtils.isNotEmpty(nowQuestion.getIvrLibaScriptTargetoptionList().get(j).getTargetregex2())) { | 
|---|
|  |  |  | //                        Pattern pattern2 = Pattern.compile(nowQuestion.getIvrLibaScriptTargetoptionList().get(j).getTargetregex2()); | 
|---|
|  |  |  | //                        matcher2 = pattern2.matcher(phoneCallBackVO.getTextResult()); | 
|---|
|  |  |  | //                    } | 
|---|
|  |  |  | //                    log.info("phoneCallBack--Targetregexçå¼ä¸ºï¼{}, phoneCallBack--Targetregex2çå¼ä¸ºï¼{}", nowQuestion.getIvrLibaScriptTargetoptionList().get(j).getTargetregex(), nowQuestion.getIvrLibaScriptTargetoptionList().get(j).getTargetregex2()); | 
|---|
|  |  |  | //                    if (StringUtils.isNotEmpty(nowQuestion.getIvrLibaScriptTargetoptionList().get(j).getTargetregex()) && matcher.matches() && StringUtils.isNotEmpty(nowQuestion.getIvrLibaScriptTargetoptionList().get(j).getTargetregex2()) && matcher2.matches() || StringUtils.isEmpty(nowQuestion.getIvrLibaScriptTargetoptionList().get(j).getTargetregex()) && StringUtils.isNotEmpty(nowQuestion.getIvrLibaScriptTargetoptionList().get(j).getTargetregex2()) && matcher2.matches() || StringUtils.isEmpty(nowQuestion.getIvrLibaScriptTargetoptionList().get(j).getTargetregex2()) && StringUtils.isNotEmpty(nowQuestion.getIvrLibaScriptTargetoptionList().get(j).getTargetregex()) && matcher.matches()) { | 
|---|
|  |  |  | //                        //说æå¹é
æ£ç¡®äº | 
|---|
|  |  |  | //                        //è¿éåºè¯¥å
å¤æç±»åï¼å»åä¿®æ¹ï¼è®¾ç½®IsUserOperationæ¯åéé¢çæ¹æ³ | 
|---|
|  |  |  | //                        nowQuestion.getIvrLibaScriptTargetoptionList().get(j).setIsUserOperation(true); | 
|---|
|  |  |  | //                        ivrLibaScriptTargetoptionMapper.updateIvrLibaTemplateTargetoption(nowQuestion.getIvrLibaScriptTargetoptionList().get(j)); | 
|---|
|  |  |  | // | 
|---|
|  |  |  | // | 
|---|
|  |  |  | //                        //å°éé»ç½®ä¸º0 | 
|---|
|  |  |  | //                        redisCache.setCacheObject(phoneCallBackVO.getUuid() + "noVoice", 0, 120, TimeUnit.MINUTES); | 
|---|
|  |  |  | //                        redisCache.setCacheObject(phoneCallBackVO.getUuid() + "mateNum", 0, 120, TimeUnit.MINUTES); | 
|---|
|  |  |  | //                        //è·åä¸ä¸é¢ | 
|---|
|  |  |  | //                        Integer nextQuestion = nowQuestion.getIvrLibaScriptTargetoptionList().get(j).getNextQuestion(); | 
|---|
|  |  |  | //                        for (IvrLibaTemplateScriptVO script : ivrLibaTemplateScriptVOs) { | 
|---|
|  |  |  | //                            if (script.getTargetid() == nextQuestion) { | 
|---|
|  |  |  | //                                QuestionMessage questionMessage = new QuestionMessage(); | 
|---|
|  |  |  | //                                questionMessage.setNowQuestion(script); | 
|---|
|  |  |  | //                                questionMessage.setQuestionList(ivrLibaTemplateScriptVOs); | 
|---|
|  |  |  | //                                redisCache.setCacheObject(phoneCallBackVO.getUuid() + "returnQues", questionMessage, 120, TimeUnit.MINUTES); | 
|---|
|  |  |  | //                                break; | 
|---|
|  |  |  | //                            } | 
|---|
|  |  |  | //                        } | 
|---|
|  |  |  | //                        break; | 
|---|
|  |  |  | //                    } else { | 
|---|
|  |  |  | //                        //没æå¹é
å° | 
|---|
|  |  |  | //                        Integer mateNum = redisCache.getCacheObject(phoneCallBackVO.getUuid() + "mateNum"); | 
|---|
|  |  |  | //                        //æ å¹é
次æ°å»å¤ææ¯å¦å°æå¤§è¯¢é®æ¬¡æ°ï¼å¹¶ä¸ææçé项é½å¹é
å®äº | 
|---|
|  |  |  | //                        if (mateNum == ivrLibaTemplateVO.getMateNum().intValue() && j == nowQuestion.getIvrLibaScriptTargetoptionList().size() - 1) { | 
|---|
|  |  |  | //                            //妿ä¸ä¸é¢ä¸ºç©º.åæ°çæ°æ®è¿å,å¹¶å ä¸æè°¢è¯ | 
|---|
|  |  |  | //                            if (nowQuestion.getTargetid() < ivrLibaTemplateScriptVOs.size()) { | 
|---|
|  |  |  | //                                QuestionMessage questionMessage = new QuestionMessage(); | 
|---|
|  |  |  | //                                IvrLibaTemplateScriptVO nextQuestion = getNextQuestion(ivrLibaTemplateScriptVOs, nowQuestion); | 
|---|
|  |  |  | //                                questionMessage.setQuestionList(ivrLibaTemplateScriptVOs); | 
|---|
|  |  |  | //                                questionMessage.setNowQuestion(nextQuestion); | 
|---|
|  |  |  | //                                redisCache.setCacheObject(phoneCallBackVO.getUuid() + "returnQues", questionMessage, 120, TimeUnit.MINUTES); | 
|---|
|  |  |  | //                                redisCache.setCacheObject(phoneCallBackVO.getUuid() + "mateNum", 0, 120, TimeUnit.MINUTES); | 
|---|
|  |  |  | //                            } else { | 
|---|
|  |  |  | //                                //å°±å¯ä»¥ææçµè¯äº | 
|---|
|  |  |  | //                                redisCache.setCacheObject(phoneCallBackVO.getUuid() + "hangup", 1, 120, TimeUnit.MINUTES); | 
|---|
|  |  |  | //                                phoneUtils.ttsPlayback(ivrLibaTemplateVO.getRevisitAfter(), phoneCallBackVO.getUuid()); | 
|---|
|  |  |  | //                                break; | 
|---|
|  |  |  | //                            } | 
|---|
|  |  |  | //                        } else if (mateNum < ivrLibaTemplateVO.getMateNum().intValue() && j == nowQuestion.getIvrLibaScriptTargetoptionList().size() - 1) { | 
|---|
|  |  |  | //                            //没æé®å°è§å®æ¬¡æ° | 
|---|
|  |  |  | //                            mateNum = mateNum + 1; | 
|---|
|  |  |  | //                            redisCache.setCacheObject(phoneCallBackVO.getUuid() + "mateNum", mateNum, 120, TimeUnit.MINUTES); | 
|---|
|  |  |  | //                        } | 
|---|
|  |  |  | //                    } | 
|---|
|  |  |  | // | 
|---|
|  |  |  | //                } | 
|---|
|  |  |  | //                //é项å¹é
宿åï¼éè¦åå»éè¿åºåè¿è¡å¹é
䏿¬¡ | 
|---|
|  |  |  | //                String extemplateID = ivrLibaTemplateVO.getSubmoduleID(); | 
|---|
|  |  |  | //                String[] split = extemplateID.split(","); | 
|---|
|  |  |  | //                List<String> list = Arrays.asList(split); | 
|---|
|  |  |  | //                List<Long> list1 = new ArrayList<>(); | 
|---|
|  |  |  | //                if (StringUtils.isNotEmpty(extemplateID)) { | 
|---|
|  |  |  | //                    for (String str : list) { | 
|---|
|  |  |  | //                        list1.add(Long.valueOf(str)); | 
|---|
|  |  |  | //                    } | 
|---|
|  |  |  | //                    List<IvrLibaExtemplatescript> ivrLibaExtemplatescripts = ivrLibaExtemplatescriptMapper.queryIvrLibaExtemplatescriptList(list1); | 
|---|
|  |  |  | //                    for (IvrLibaExtemplatescript ivrLibaExtemplatescript : ivrLibaExtemplatescripts) { | 
|---|
|  |  |  | //                        Matcher matcher = null; | 
|---|
|  |  |  | //                        if (StringUtils.isNotEmpty(ivrLibaExtemplatescript.getSelfRegex())) { | 
|---|
|  |  |  | //                            Pattern pattern = Pattern.compile(ivrLibaExtemplatescript.getSelfRegex()); | 
|---|
|  |  |  | //                            matcher = pattern.matcher(returnQues.getContent()); | 
|---|
|  |  |  | //                        } | 
|---|
|  |  |  | // | 
|---|
|  |  |  | //                        Matcher matcher2 = null; | 
|---|
|  |  |  | //                        if (StringUtils.isNotEmpty(ivrLibaExtemplatescript.getSelfRegex2())) { | 
|---|
|  |  |  | //                            Pattern pattern2 = Pattern.compile(ivrLibaExtemplatescript.getSelfRegex2()); | 
|---|
|  |  |  | //                            matcher2 = pattern2.matcher(returnQues.getContent()); | 
|---|
|  |  |  | //                        } | 
|---|
|  |  |  | //                        log.info("++++++++++++++++++++++++++éç¨åºæ¯å¦ä¸ºç©ºï¼selfRegex : {} , selfRegex2 : {}", ivrLibaExtemplatescript.getSelfRegex(), ivrLibaExtemplatescript.getSelfRegex2()); | 
|---|
|  |  |  | //                        if (StringUtils.isNotEmpty(ivrLibaExtemplatescript.getSelfRegex()) && matcher.matches() && StringUtils.isNotEmpty(ivrLibaExtemplatescript.getSelfRegex2()) && matcher2.matches() || StringUtils.isEmpty(ivrLibaExtemplatescript.getSelfRegex()) && StringUtils.isNotEmpty(ivrLibaExtemplatescript.getSelfRegex2()) && matcher2.matches() || StringUtils.isEmpty(ivrLibaExtemplatescript.getSelfRegex2()) && StringUtils.isNotEmpty(ivrLibaExtemplatescript.getSelfRegex()) && matcher.matches()) { | 
|---|
|  |  |  | //                            QuestionMessage questionMessage = redisCache.getCacheObject(phoneCallBackVO.getUuid() + "returnQues"); | 
|---|
|  |  |  | //                            IvrLibaTemplateScriptVO ivrLibaTemplateScriptVO = returnQues.getNowQuestion(); | 
|---|
|  |  |  | //                            ivrLibaTemplateScriptVO.setSubmoduleText(ivrLibaExtemplatescript.getSwitchText()); | 
|---|
|  |  |  | //                            ivrLibaTemplateScriptVO.setSubmoduleVoice(ivrLibaExtemplatescript.getSwitchWav()); | 
|---|
|  |  |  | //                            redisCache.setCacheObject(phoneCallBackVO.getUuid() + "returnQues", questionMessage, 120, TimeUnit.MINUTES); | 
|---|
|  |  |  | //                            if (ivrLibaExtemplatescript.getIsEnd() == 1) { | 
|---|
|  |  |  | //                                //å°é®é¢ç½®ç©º | 
|---|
|  |  |  | //                                IvrLibaTemplateScriptVO nowQuestion1 = questionMessage.getNowQuestion(); | 
|---|
|  |  |  | //                                nowQuestion1.setQuestionText(null); | 
|---|
|  |  |  | //                                nowQuestion1.setQuestionVoice(null); | 
|---|
|  |  |  | //                                questionMessage.setNowQuestion(nowQuestion1); | 
|---|
|  |  |  | //                                redisCache.setCacheObject(phoneCallBackVO.getUuid() + "returnQues", questionMessage, 120, TimeUnit.MINUTES); | 
|---|
|  |  |  | // | 
|---|
|  |  |  | //                                redisCache.setCacheObject(phoneCallBackVO.getUuid() + "isOver", 1, 120, TimeUnit.MINUTES); | 
|---|
|  |  |  | //                            } | 
|---|
|  |  |  | // | 
|---|
|  |  |  | //                            //è°ç¨â15ãttsåæåææ¾ï¼ tts_playbackâå°ç»æä¼ å | 
|---|
|  |  |  | // | 
|---|
|  |  |  | // | 
|---|
|  |  |  | //                        } | 
|---|
|  |  |  | //                        break; | 
|---|
|  |  |  | //                    } | 
|---|
|  |  |  | //                } | 
|---|
|  |  |  | // | 
|---|
|  |  |  | //            } | 
|---|
|  |  |  | //        } | 
|---|
|  |  |  | //        return phoneCallBackVO; | 
|---|
|  |  |  | //    } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | private IvrLibaTemplateScriptVO getNextQuestion(List<IvrLibaTemplateScriptVO> ivrLibaTemplateScriptVOList, IvrLibaTemplateScriptVO ivrLibaTemplateScriptVO) { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | for (int j = 0; j < ivrLibaTemplateScriptVOList.size(); j++) { | 
|---|
| ¶Ô±ÈÐÂÎļþ | 
|  |  |  | 
|---|
|  |  |  | package com.smartor.service.impl; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import com.ruoyi.common.utils.DateUtils; | 
|---|
|  |  |  | import com.smartor.domain.PatArchiveOut; | 
|---|
|  |  |  | import com.smartor.mapper.PatArchiveOutMapper; | 
|---|
|  |  |  | import com.smartor.service.IPatArchiveOutService; | 
|---|
|  |  |  | import org.springframework.beans.factory.annotation.Autowired; | 
|---|
|  |  |  | import org.springframework.stereotype.Service; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import java.util.List; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * å¤é¨æ£è
æ¡£æ¡Serviceä¸å¡å±å¤ç | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * @author ruoyi | 
|---|
|  |  |  | * @date 2024-04-29 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Service | 
|---|
|  |  |  | public class PatArchiveOutServiceImpl implements IPatArchiveOutService { | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | private PatArchiveOutMapper patArchiveOutMapper; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * æ¥è¯¢å¤é¨æ£è
æ¡£æ¡ | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * @param patid å¤é¨æ£è
æ¡£æ¡ä¸»é® | 
|---|
|  |  |  | * @return å¤é¨æ£è
æ¡£æ¡ | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Override | 
|---|
|  |  |  | public PatArchiveOut selectPatArchiveOutByPatid(Long patid) { | 
|---|
|  |  |  | return patArchiveOutMapper.selectPatArchiveOutByPatid(patid); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * æ¥è¯¢å¤é¨æ£è
æ¡£æ¡å表 | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * @param patArchiveOut å¤é¨æ£è
æ¡£æ¡ | 
|---|
|  |  |  | * @return å¤é¨æ£è
æ¡£æ¡ | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Override | 
|---|
|  |  |  | public List<PatArchiveOut> selectPatArchiveOutList(PatArchiveOut patArchiveOut) { | 
|---|
|  |  |  | return patArchiveOutMapper.selectPatArchiveOutList(patArchiveOut); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * æ°å¢å¤é¨æ£è
æ¡£æ¡ | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * @param patArchiveOut å¤é¨æ£è
æ¡£æ¡ | 
|---|
|  |  |  | * @return ç»æ | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Override | 
|---|
|  |  |  | public int insertPatArchiveOut(PatArchiveOut patArchiveOut) { | 
|---|
|  |  |  | patArchiveOut.setCreateTime(DateUtils.getNowDate()); | 
|---|
|  |  |  | return patArchiveOutMapper.insertPatArchiveOut(patArchiveOut); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * ä¿®æ¹å¤é¨æ£è
æ¡£æ¡ | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * @param patArchiveOut å¤é¨æ£è
æ¡£æ¡ | 
|---|
|  |  |  | * @return ç»æ | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Override | 
|---|
|  |  |  | public int updatePatArchiveOut(PatArchiveOut patArchiveOut) { | 
|---|
|  |  |  | patArchiveOut.setUpdateTime(DateUtils.getNowDate()); | 
|---|
|  |  |  | return patArchiveOutMapper.updatePatArchiveOut(patArchiveOut); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * æ¹éå é¤å¤é¨æ£è
æ¡£æ¡ | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * @param patids éè¦å é¤çå¤é¨æ£è
æ¡£æ¡ä¸»é® | 
|---|
|  |  |  | * @return ç»æ | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Override | 
|---|
|  |  |  | public int deletePatArchiveOutByPatids(Long[] patids) { | 
|---|
|  |  |  | for (Long patid : patids) { | 
|---|
|  |  |  | patArchiveOutMapper.deletePatArchiveOutByPatid(patid); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | return 1; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | <result property="questiontitle" column="questiontitle"/> | 
|---|
|  |  |  | <result property="questionText" column="questionText"/> | 
|---|
|  |  |  | <result property="questionvoice" column="questionvoice"/> | 
|---|
|  |  |  | <result property="nomatchtext" column="nomatchtext"/> | 
|---|
|  |  |  | <result property="noMatchText" column="nomatchtext"/> | 
|---|
|  |  |  | <result property="nomatchvoice" column="nomatchvoice"/> | 
|---|
|  |  |  | <result property="sliencetext" column="sliencetext"/> | 
|---|
|  |  |  | <result property="slienceText" column="sliencetext"/> | 
|---|
|  |  |  | <result property="sliencevoice" column="sliencevoice"/> | 
|---|
|  |  |  | <result property="submoduletext" column="submoduletext"/> | 
|---|
|  |  |  | <result property="submodulevoice" column="submodulevoice"/> | 
|---|
|  |  |  | <result property="noclearlytext" column="noclearlytext"/> | 
|---|
|  |  |  | <result property="noClearlyText" column="noclearlytext"/> | 
|---|
|  |  |  | <result property="noclearlyvoice" column="noclearlyvoice"/> | 
|---|
|  |  |  | <result property="questiontype" column="questiontype"/> | 
|---|
|  |  |  | <result property="targetid" column="targetid"/> | 
|---|
|  |  |  | 
|---|
|  |  |  | <include refid="selectIvrLibaScriptVo"/> | 
|---|
|  |  |  | <where> | 
|---|
|  |  |  | <if test="id != null ">and id = #{id}</if> | 
|---|
|  |  |  | <if test="questiontitle != null  and questiontitle != ''">and questiontitle = #{questiontitle}</if> | 
|---|
|  |  |  | <if test="deptIds != null  and deptIds != ''">and deptIds = #{deptIds}</if> | 
|---|
|  |  |  | <if test="deptNames != null  and deptNames != ''">and deptNames like concat('%', #{deptNames}, '%')</if> | 
|---|
|  |  |  | <if test="questiontitle != null  and questiontitle != ''">and questiontitle like concat('%', #{questiontitle}, '%')</if> | 
|---|
|  |  |  | <if test="campus != null  and campus != ''">and campus = #{campus}</if> | 
|---|
|  |  |  | <if test="tag != null  and tag != ''">and tag = #{tag}</if> | 
|---|
|  |  |  | <if test="suitway != null  and suitway != ''">and suitway = #{suitway}</if> | 
|---|
|  |  |  | 
|---|
|  |  |  | <if test="valueType != null ">and value_type = #{valueType}</if> | 
|---|
|  |  |  | <if test="questionText != null  and questionText != ''">and questionText = #{questionText}</if> | 
|---|
|  |  |  | <if test="questionvoice != null  and questionvoice != ''">and questionvoice = #{questionvoice}</if> | 
|---|
|  |  |  | <if test="nomatchtext != null  and nomatchtext != ''">and nomatchtext = #{nomatchtext}</if> | 
|---|
|  |  |  | <if test="noMatchText != null  and noMatchText != ''">and nomatchtext = #{noMatchText}</if> | 
|---|
|  |  |  | <if test="nomatchvoice != null  and nomatchvoice != ''">and nomatchvoice = #{nomatchvoice}</if> | 
|---|
|  |  |  | <if test="sliencetext != null  and sliencetext != ''">and sliencetext = #{sliencetext}</if> | 
|---|
|  |  |  | <if test="slienceText != null  and slienceText != ''">and sliencetext = #{slienceText}</if> | 
|---|
|  |  |  | <if test="sliencevoice != null  and sliencevoice != ''">and sliencevoice = #{sliencevoice}</if> | 
|---|
|  |  |  | <if test="submoduletext != null  and submoduletext != ''">and submoduletext = #{submoduletext}</if> | 
|---|
|  |  |  | <if test="submodulevoice != null  and submodulevoice != ''">and submodulevoice = #{submodulevoice}</if> | 
|---|
|  |  |  | <if test="noclearlytext != null  and noclearlytext != ''">and noclearlytext = #{noclearlytext}</if> | 
|---|
|  |  |  | <if test="noClearlyText != null  and noClearlyText != ''">and noclearlytext = #{noClearlyText}</if> | 
|---|
|  |  |  | <if test="noclearlyvoice != null  and noclearlyvoice != ''">and noclearlyvoice = #{noclearlyvoice}</if> | 
|---|
|  |  |  | <if test="questiontype != null  and questiontype != ''">and questiontype = #{questiontype}</if> | 
|---|
|  |  |  | <if test="targetid != null ">and targetid = #{targetid}</if> | 
|---|
|  |  |  | 
|---|
|  |  |  | <if test="reply != null">reply,</if> | 
|---|
|  |  |  | <if test="questionText != null">questionText,</if> | 
|---|
|  |  |  | <if test="questionvoice != null">questionvoice,</if> | 
|---|
|  |  |  | <if test="nomatchtext != null">nomatchtext,</if> | 
|---|
|  |  |  | <if test="noMatchText != null">nomatchtext,</if> | 
|---|
|  |  |  | <if test="nomatchvoice != null">nomatchvoice,</if> | 
|---|
|  |  |  | <if test="sliencetext != null">sliencetext,</if> | 
|---|
|  |  |  | <if test="slienceText != null">sliencetext,</if> | 
|---|
|  |  |  | <if test="sliencevoice != null">sliencevoice,</if> | 
|---|
|  |  |  | <if test="submoduletext != null">submoduletext,</if> | 
|---|
|  |  |  | <if test="submodulevoice != null">submodulevoice,</if> | 
|---|
|  |  |  | <if test="noclearlytext != null">noclearlytext,</if> | 
|---|
|  |  |  | <if test="noClearlyText != null">noclearlytext,</if> | 
|---|
|  |  |  | <if test="noclearlyvoice != null">noclearlyvoice,</if> | 
|---|
|  |  |  | <if test="questiontype != null">questiontype,</if> | 
|---|
|  |  |  | <if test="targetid != null">targetid,</if> | 
|---|
|  |  |  | 
|---|
|  |  |  | <if test="reply != null">#{reply},</if> | 
|---|
|  |  |  | <if test="questionText != null">#{questionText},</if> | 
|---|
|  |  |  | <if test="questionvoice != null">#{questionvoice},</if> | 
|---|
|  |  |  | <if test="nomatchtext != null">#{nomatchtext},</if> | 
|---|
|  |  |  | <if test="noMatchText != null">#{noMatchText},</if> | 
|---|
|  |  |  | <if test="nomatchvoice != null">#{nomatchvoice},</if> | 
|---|
|  |  |  | <if test="sliencetext != null">#{sliencetext},</if> | 
|---|
|  |  |  | <if test="slienceText != null">#{slienceText},</if> | 
|---|
|  |  |  | <if test="sliencevoice != null">#{sliencevoice},</if> | 
|---|
|  |  |  | <if test="submoduletext != null">#{submoduletext},</if> | 
|---|
|  |  |  | <if test="submodulevoice != null">#{submodulevoice},</if> | 
|---|
|  |  |  | <if test="noclearlytext != null">#{noclearlytext},</if> | 
|---|
|  |  |  | <if test="noClearlyText != null">#{noClearlyText},</if> | 
|---|
|  |  |  | <if test="noclearlyvoice != null">#{noclearlyvoice},</if> | 
|---|
|  |  |  | <if test="questiontype != null">#{questiontype},</if> | 
|---|
|  |  |  | <if test="targetid != null">#{targetid},</if> | 
|---|
|  |  |  | 
|---|
|  |  |  | <if test="reply != null">reply = #{reply},</if> | 
|---|
|  |  |  | <if test="questionText != null">questionText = #{questionText},</if> | 
|---|
|  |  |  | <if test="questionvoice != null">questionvoice = #{questionvoice},</if> | 
|---|
|  |  |  | <if test="nomatchtext != null">nomatchtext = #{nomatchtext},</if> | 
|---|
|  |  |  | <if test="noMatchText != null">nomatchtext = #{noMatchText},</if> | 
|---|
|  |  |  | <if test="nomatchvoice != null">nomatchvoice = #{nomatchvoice},</if> | 
|---|
|  |  |  | <if test="sliencetext != null">sliencetext = #{sliencetext},</if> | 
|---|
|  |  |  | <if test="slienceText != null">sliencetext = #{slienceText},</if> | 
|---|
|  |  |  | <if test="sliencevoice != null">sliencevoice = #{sliencevoice},</if> | 
|---|
|  |  |  | <if test="submoduletext != null">submoduletext = #{submoduletext},</if> | 
|---|
|  |  |  | <if test="submodulevoice != null">submodulevoice = #{submodulevoice},</if> | 
|---|
|  |  |  | <if test="noclearlytext != null">noclearlytext = #{noclearlytext},</if> | 
|---|
|  |  |  | <if test="noClearlyText != null">noclearlytext = #{noClearlyText},</if> | 
|---|
|  |  |  | <if test="noclearlyvoice != null">noclearlyvoice = #{noclearlyvoice},</if> | 
|---|
|  |  |  | <if test="questiontype != null">questiontype = #{questiontype},</if> | 
|---|
|  |  |  | <if test="targetid != null">targetid = #{targetid},</if> | 
|---|
|  |  |  | 
|---|
|  |  |  | <if test="submoduleVoice != null  and submoduleVoice != ''">and submoduleVoice = #{submoduleVoice}</if> | 
|---|
|  |  |  | <if test="noClearlyText != null  and noClearlyText != ''">and noClearlyText = #{noClearlyText}</if> | 
|---|
|  |  |  | <if test="noClearlyVoice != null  and noClearlyVoice != ''">and noClearlyVoice = #{noClearlyVoice}</if> | 
|---|
|  |  |  | <if test="questiontitle != null  and questiontitle != ''">and questiontitle = #{questiontitle}</if> | 
|---|
|  |  |  | <if test="nextQuestion != null  and nextQuestion != ''">and next_question = #{nextQuestion}</if> | 
|---|
|  |  |  | <if test="questionResult != null  and questionResult != ''">and question_result = #{questionResult}</if> | 
|---|
|  |  |  | <if test="categoryName != null  and categoryName != ''">and categoryName like concat('%', #{categoryName}, | 
|---|
|  |  |  | '%') | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="questiontitle != null  and questiontitle != ''">and questiontitle like concat('%', #{questiontitle}, | 
|---|
|  |  |  | '%') | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="targetOptions != null  and targetOptions != ''">and targetOptions = #{targetOptions}</if> | 
|---|
|  |  |  | <if test="language != null  and language != ''">and language = #{language}</if> | 
|---|
|  |  |  | <if test="playWavOnly != null ">and playWavOnly = #{playWavOnly}</if> | 
|---|
|  |  |  | 
|---|
|  |  |  | <result property="isSend" column="is_send"/> | 
|---|
|  |  |  | <result property="sendState" column="send_state"/> | 
|---|
|  |  |  | <result property="param" column="param"/> | 
|---|
|  |  |  | <result property="hospType" column="hosp_type"/> | 
|---|
|  |  |  | <result property="hospno" column="hospno"/> | 
|---|
|  |  |  | </resultMap> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <sql id="selectIvrTaskVo"> | 
|---|
|  |  |  | 
|---|
|  |  |  | checkusername, | 
|---|
|  |  |  | checktime, | 
|---|
|  |  |  | type, | 
|---|
|  |  |  | hosp_type, | 
|---|
|  |  |  | hospno, | 
|---|
|  |  |  | typename, | 
|---|
|  |  |  | usebqsms, | 
|---|
|  |  |  | usebhsms, | 
|---|
|  |  |  | 
|---|
|  |  |  | <if test="isupload != null ">and isupload = #{isupload}</if> | 
|---|
|  |  |  | <if test="uploadTime != null ">and upload_time = #{uploadTime}</if> | 
|---|
|  |  |  | <if test="orgid != null  and orgid != ''">and orgid = #{orgid}</if> | 
|---|
|  |  |  | <if test="hospType != null  and hospType != ''">and hosp_type = #{hospType}</if> | 
|---|
|  |  |  | <if test="hospno != null  and hospno != ''">and orgid = #{hospno}</if> | 
|---|
|  |  |  | </where> | 
|---|
|  |  |  | order by update_time desc,taskid desc | 
|---|
|  |  |  | </select> | 
|---|
|  |  |  | 
|---|
|  |  |  | <if test="isSend != null">is_send,</if> | 
|---|
|  |  |  | <if test="sendState != null">send_state,</if> | 
|---|
|  |  |  | <if test="param != null">param,</if> | 
|---|
|  |  |  | <if test="hospType != null  and hospType != ''">hosp_type,</if> | 
|---|
|  |  |  | <if test="hospno != null  and hospno != ''">hospno,</if> | 
|---|
|  |  |  | </trim> | 
|---|
|  |  |  | <trim prefix="values (" suffix=")" suffixOverrides=","> | 
|---|
|  |  |  | <if test="taskName != null">#{taskName},</if> | 
|---|
|  |  |  | 
|---|
|  |  |  | <if test="isSend != null">#{isSend},</if> | 
|---|
|  |  |  | <if test="sendState != null">#{sendState},</if> | 
|---|
|  |  |  | <if test="param != null">#{param},</if> | 
|---|
|  |  |  | <if test="hospType != null  and hospType != ''">#{hospType},</if> | 
|---|
|  |  |  | <if test="hospno != null  and hospno != ''">#{hospno},</if> | 
|---|
|  |  |  | </trim> | 
|---|
|  |  |  | </insert> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | <if test="isSend != null">is_send = #{isSend},</if> | 
|---|
|  |  |  | <if test="sendState != null">send_state = #{sendState},</if> | 
|---|
|  |  |  | <if test="param != null">param = #{param},</if> | 
|---|
|  |  |  | <if test="hospType != null  and hospType != ''">hosp_type = #{hospType},</if> | 
|---|
|  |  |  | <if test="hospno != null  and hospno != ''">hospno = #{hospno},</if> | 
|---|
|  |  |  | </trim> | 
|---|
|  |  |  | where taskid = #{taskid} | 
|---|
|  |  |  | </update> | 
|---|
|  |  |  | 
|---|
|  |  |  | <select id="selectIvrTaskcallList" parameterType="com.smartor.domain.IvrTaskSingle" resultMap="IvrTaskcallResult"> | 
|---|
|  |  |  | <include refid="selectIvrTaskcallVo"/> | 
|---|
|  |  |  | <where> | 
|---|
|  |  |  | del_flag=0 | 
|---|
|  |  |  | <if test="sendname != null  and sendname != ''">and sendname like concat('%', #{sendname}, '%')</if> | 
|---|
|  |  |  | <if test="phone != null  and phone != ''">and phone = #{phone}</if> | 
|---|
|  |  |  | <if test="sex != null  and sex != ''">and sex = #{sex}</if> | 
|---|
|  |  |  | 
|---|
|  |  |  | WHERE jt.begantime > #{beganTime} | 
|---|
|  |  |  | AND jt.begantime <= #{endTime} | 
|---|
|  |  |  | AND sendstate IS NULL | 
|---|
|  |  |  | AND del_flag = 0 | 
|---|
|  |  |  | </select> | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | <result property="pattype" column="pattype"/> | 
|---|
|  |  |  | <result property="bedNo" column="bedno"/> | 
|---|
|  |  |  | <result property="inhosptime" column="inhosptime"/> | 
|---|
|  |  |  | <result property="membertype" column="membertype"/> | 
|---|
|  |  |  | </resultMap> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <sql id="selectPatArchiveVo"> | 
|---|
|  |  |  | 
|---|
|  |  |  | create_time, | 
|---|
|  |  |  | isupload, | 
|---|
|  |  |  | pattype, | 
|---|
|  |  |  | membertype, | 
|---|
|  |  |  | upload_time | 
|---|
|  |  |  | from pat_archive | 
|---|
|  |  |  | </sql> | 
|---|
|  |  |  | 
|---|
|  |  |  | <if test="patid != null  and patid != ''">and patid = #{patid}</if> | 
|---|
|  |  |  | <if test="isupload != null ">and isupload = #{isupload}</if> | 
|---|
|  |  |  | <if test="uploadTime != null ">and upload_time = #{uploadTime}</if> | 
|---|
|  |  |  | <if test="membertype != null ">and membertype = #{membertype}</if> | 
|---|
|  |  |  | </where> | 
|---|
|  |  |  | </select> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | a.telcode, | 
|---|
|  |  |  | a.create_time, | 
|---|
|  |  |  | a.update_time, | 
|---|
|  |  |  | a.membertype, | 
|---|
|  |  |  | a.birthdate | 
|---|
|  |  |  | from pat_archive a,pat_archivetag b ,base_tag c | 
|---|
|  |  |  | <where> | 
|---|
|  |  |  | 
|---|
|  |  |  | <!--        </trim>--> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | insert into | 
|---|
|  |  |  | pat_archive(name,sex,idcardno,birthdate,age,source,archivetime,archiveby,telcode,relativetelcode,idcardtype,orgid,openid,dduserid,update_by,update_time | 
|---|
|  |  |  | pat_archive(name,membertype,sex,idcardno,birthdate,age,source,archivetime,archiveby,telcode,relativetelcode,idcardtype,orgid,openid,dduserid,update_by,update_time | 
|---|
|  |  |  | ,create_by,create_time,isupload,upload_time,pattype,place_of_residence,nation,birthplace,native_place) values | 
|---|
|  |  |  | <foreach item="item" index="index" collection="list" separator=","> | 
|---|
|  |  |  | (#{item.name},#{item.sex},#{item.idcardno},#{item.birthdate},#{item.age},#{item.source},#{item.archivetime},#{item.archiveby} | 
|---|
|  |  |  | (#{item.name},#{item.membertype},#{item.sex},#{item.idcardno},#{item.birthdate},#{item.age},#{item.source},#{item.archivetime},#{item.archiveby} | 
|---|
|  |  |  | ,#{item.telcode},#{item.archiveby},#{item.idcardtype},#{item.orgid},#{item.openid},#{item.dduserid},#{item.updateBy}, | 
|---|
|  |  |  | #{item.updateTime},#{item.createBy},#{item.createTime},#{item.isupload},#{item.uploadTime},#{item.pattype},#{item.placeOfResidence},#{item.nation},#{item.birthplace},#{item.nativePlace} | 
|---|
|  |  |  | ) | 
|---|
|  |  |  | 
|---|
|  |  |  | <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="membertype != null">membertype = #{membertype},</if> | 
|---|
|  |  |  | </trim> | 
|---|
|  |  |  | where patid = #{patid} | 
|---|
|  |  |  | </update> | 
|---|
|  |  |  | 
|---|
|  |  |  | a.create_time, | 
|---|
|  |  |  | a.isupload, | 
|---|
|  |  |  | a.upload_time, | 
|---|
|  |  |  | a.membertype, | 
|---|
|  |  |  | a.pattype | 
|---|
|  |  |  | from pat_archive a,pat_archivetag b ,base_tag c | 
|---|
|  |  |  | <where> | 
|---|
|  |  |  | 
|---|
|  |  |  | a.relativetelcode, | 
|---|
|  |  |  | a.idcardtype, | 
|---|
|  |  |  | a.orgid, | 
|---|
|  |  |  | a.membertype, | 
|---|
|  |  |  | a.openid, | 
|---|
|  |  |  | a.del_flag, | 
|---|
|  |  |  | a.update_by, | 
|---|
|  |  |  | 
|---|
|  |  |  | a.idcardno, | 
|---|
|  |  |  | a.birthdate, | 
|---|
|  |  |  | a.age, | 
|---|
|  |  |  | a.membertype, | 
|---|
|  |  |  | a.source, | 
|---|
|  |  |  | a.archivetime, | 
|---|
|  |  |  | a.archiveby, | 
|---|
|  |  |  | 
|---|
|  |  |  | a.native_place, | 
|---|
|  |  |  | a.place_of_residence, | 
|---|
|  |  |  | a.birthplace, | 
|---|
|  |  |  | a.membertype, | 
|---|
|  |  |  | a.idcardno, | 
|---|
|  |  |  | a.birthdate, | 
|---|
|  |  |  | a.age, | 
|---|
| ¶Ô±ÈÐÂÎļþ | 
|  |  |  | 
|---|
|  |  |  | <?xml version="1.0" encoding="UTF-8" ?> | 
|---|
|  |  |  | <!DOCTYPE mapper | 
|---|
|  |  |  | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | 
|---|
|  |  |  | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | 
|---|
|  |  |  | <mapper namespace="com.smartor.mapper.PatArchiveOutMapper"> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <resultMap type="com.smartor.domain.PatArchiveOut" id="PatArchiveOutResult"> | 
|---|
|  |  |  | <result property="patid" column="patid"/> | 
|---|
|  |  |  | <result property="patientno" column="patientno"/> | 
|---|
|  |  |  | <result property="pattype" column="pattype"/> | 
|---|
|  |  |  | <result property="name" column="name"/> | 
|---|
|  |  |  | <result property="sex" column="sex"/> | 
|---|
|  |  |  | <result property="nation" column="nation"/> | 
|---|
|  |  |  | <result property="nativePlace" column="native_place"/> | 
|---|
|  |  |  | <result property="placeOfResidence" column="place_of_residence"/> | 
|---|
|  |  |  | <result property="birthplace" column="birthplace"/> | 
|---|
|  |  |  | <result property="idcardno" column="idcardno"/> | 
|---|
|  |  |  | <result property="birthdate" column="birthdate"/> | 
|---|
|  |  |  | <result property="age" column="age"/> | 
|---|
|  |  |  | <result property="archivetime" column="archivetime"/> | 
|---|
|  |  |  | <result property="archiveby" column="archiveby"/> | 
|---|
|  |  |  | <result property="telcode" column="telcode"/> | 
|---|
|  |  |  | <result property="relativetelcode" column="relativetelcode"/> | 
|---|
|  |  |  | <result property="idcardtype" column="idcardtype"/> | 
|---|
|  |  |  | <result property="orgid" column="orgid"/> | 
|---|
|  |  |  | <result property="openid" column="openid"/> | 
|---|
|  |  |  | <result property="dduserid" column="dduserid"/> | 
|---|
|  |  |  | <result property="delFlag" column="del_flag"/> | 
|---|
|  |  |  | <result property="source" column="source"/> | 
|---|
|  |  |  | <result property="updateBy" column="update_by"/> | 
|---|
|  |  |  | <result property="updateTime" column="update_time"/> | 
|---|
|  |  |  | <result property="createBy" column="create_by"/> | 
|---|
|  |  |  | <result property="createTime" column="create_time"/> | 
|---|
|  |  |  | <result property="isupload" column="isupload"/> | 
|---|
|  |  |  | <result property="uploadTime" column="upload_time"/> | 
|---|
|  |  |  | <result property="pid" column="pid"/> | 
|---|
|  |  |  | <result property="guid" column="guid"/> | 
|---|
|  |  |  | <result property="membertype" column="membertype"/> | 
|---|
|  |  |  | </resultMap> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <sql id="selectPatArchiveOutVo"> | 
|---|
|  |  |  | select patid, | 
|---|
|  |  |  | patientno, | 
|---|
|  |  |  | pattype, | 
|---|
|  |  |  | name, | 
|---|
|  |  |  | sex, | 
|---|
|  |  |  | nation, | 
|---|
|  |  |  | native_place, | 
|---|
|  |  |  | place_of_residence, | 
|---|
|  |  |  | birthplace, | 
|---|
|  |  |  | idcardno, | 
|---|
|  |  |  | birthdate, | 
|---|
|  |  |  | age, | 
|---|
|  |  |  | archivetime, | 
|---|
|  |  |  | archiveby, | 
|---|
|  |  |  | telcode, | 
|---|
|  |  |  | relativetelcode, | 
|---|
|  |  |  | idcardtype, | 
|---|
|  |  |  | orgid, | 
|---|
|  |  |  | openid, | 
|---|
|  |  |  | dduserid, | 
|---|
|  |  |  | del_flag, | 
|---|
|  |  |  | source, | 
|---|
|  |  |  | update_by, | 
|---|
|  |  |  | update_time, | 
|---|
|  |  |  | create_by, | 
|---|
|  |  |  | create_time, | 
|---|
|  |  |  | isupload, | 
|---|
|  |  |  | upload_time, | 
|---|
|  |  |  | pid, | 
|---|
|  |  |  | guid, | 
|---|
|  |  |  | membertype | 
|---|
|  |  |  | from pat_archive_out | 
|---|
|  |  |  | </sql> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <select id="selectPatArchiveOutList" parameterType="com.smartor.domain.PatArchiveOut" | 
|---|
|  |  |  | resultMap="PatArchiveOutResult"> | 
|---|
|  |  |  | <include refid="selectPatArchiveOutVo"/> | 
|---|
|  |  |  | <where> | 
|---|
|  |  |  | <if test="patientno != null  and patientno != ''">and patientno = #{patientno}</if> | 
|---|
|  |  |  | <if test="pattype != null  and pattype != ''">and pattype = #{pattype}</if> | 
|---|
|  |  |  | <if test="name != null  and name != ''">and name like concat('%', #{name}, '%')</if> | 
|---|
|  |  |  | <if test="sex != null ">and sex = #{sex}</if> | 
|---|
|  |  |  | <if test="nation != null  and nation != ''">and nation = #{nation}</if> | 
|---|
|  |  |  | <if test="nativePlace != null  and nativePlace != ''">and native_place = #{nativePlace}</if> | 
|---|
|  |  |  | <if test="placeOfResidence != null  and placeOfResidence != ''">and place_of_residence = | 
|---|
|  |  |  | #{placeOfResidence} | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="birthplace != null  and birthplace != ''">and birthplace = #{birthplace}</if> | 
|---|
|  |  |  | <if test="idcardno != null  and idcardno != ''">and idcardno = #{idcardno}</if> | 
|---|
|  |  |  | <if test="birthdate != null ">and birthdate = #{birthdate}</if> | 
|---|
|  |  |  | <if test="age != null ">and age = #{age}</if> | 
|---|
|  |  |  | <if test="archivetime != null ">and archivetime = #{archivetime}</if> | 
|---|
|  |  |  | <if test="archiveby != null  and archiveby != ''">and archiveby = #{archiveby}</if> | 
|---|
|  |  |  | <if test="telcode != null  and telcode != ''">and telcode = #{telcode}</if> | 
|---|
|  |  |  | <if test="relativetelcode != null  and relativetelcode != ''">and relativetelcode = #{relativetelcode}</if> | 
|---|
|  |  |  | <if test="idcardtype != null  and idcardtype != ''">and idcardtype = #{idcardtype}</if> | 
|---|
|  |  |  | <if test="orgid != null  and orgid != ''">and orgid = #{orgid}</if> | 
|---|
|  |  |  | <if test="openid != null  and openid != ''">and openid = #{openid}</if> | 
|---|
|  |  |  | <if test="dduserid != null  and dduserid != ''">and dduserid = #{dduserid}</if> | 
|---|
|  |  |  | <if test="source != null ">and source = #{source}</if> | 
|---|
|  |  |  | <if test="isupload != null ">and isupload = #{isupload}</if> | 
|---|
|  |  |  | <if test="uploadTime != null ">and upload_time = #{uploadTime}</if> | 
|---|
|  |  |  | <if test="pid != null ">and pid = #{pid}</if> | 
|---|
|  |  |  | <if test="guid != null  and guid != ''">and guid = #{guid}</if> | 
|---|
|  |  |  | <if test="membertype != null  and membertype != ''">and membertype = #{membertype}</if> | 
|---|
|  |  |  | </where> | 
|---|
|  |  |  | </select> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <select id="selectPatArchiveOutByPatid" parameterType="Long" resultMap="PatArchiveOutResult"> | 
|---|
|  |  |  | <include refid="selectPatArchiveOutVo"/> | 
|---|
|  |  |  | where patid = #{patid} | 
|---|
|  |  |  | </select> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <insert id="insertPatArchiveOut" parameterType="com.smartor.domain.PatArchiveOut" useGeneratedKeys="true" | 
|---|
|  |  |  | keyProperty="patid"> | 
|---|
|  |  |  | insert into pat_archive_out | 
|---|
|  |  |  | <trim prefix="(" suffix=")" suffixOverrides=","> | 
|---|
|  |  |  | <if test="patientno != null">patientno,</if> | 
|---|
|  |  |  | <if test="pattype != null">pattype,</if> | 
|---|
|  |  |  | <if test="name != null">name,</if> | 
|---|
|  |  |  | <if test="sex != null">sex,</if> | 
|---|
|  |  |  | <if test="nation != null">nation,</if> | 
|---|
|  |  |  | <if test="nativePlace != null">native_place,</if> | 
|---|
|  |  |  | <if test="placeOfResidence != null">place_of_residence,</if> | 
|---|
|  |  |  | <if test="birthplace != null">birthplace,</if> | 
|---|
|  |  |  | <if test="idcardno != null">idcardno,</if> | 
|---|
|  |  |  | <if test="birthdate != null">birthdate,</if> | 
|---|
|  |  |  | <if test="age != null">age,</if> | 
|---|
|  |  |  | <if test="archivetime != null">archivetime,</if> | 
|---|
|  |  |  | <if test="archiveby != null">archiveby,</if> | 
|---|
|  |  |  | <if test="telcode != null">telcode,</if> | 
|---|
|  |  |  | <if test="relativetelcode != null">relativetelcode,</if> | 
|---|
|  |  |  | <if test="idcardtype != null">idcardtype,</if> | 
|---|
|  |  |  | <if test="orgid != null">orgid,</if> | 
|---|
|  |  |  | <if test="openid != null">openid,</if> | 
|---|
|  |  |  | <if test="dduserid != null">dduserid,</if> | 
|---|
|  |  |  | <if test="delFlag != null and delFlag != ''">del_flag,</if> | 
|---|
|  |  |  | <if test="source != null">source,</if> | 
|---|
|  |  |  | <if test="updateBy != null">update_by,</if> | 
|---|
|  |  |  | <if test="updateTime != null">update_time,</if> | 
|---|
|  |  |  | <if test="createBy != null">create_by,</if> | 
|---|
|  |  |  | <if test="createTime != null">create_time,</if> | 
|---|
|  |  |  | <if test="isupload != null">isupload,</if> | 
|---|
|  |  |  | <if test="uploadTime != null">upload_time,</if> | 
|---|
|  |  |  | <if test="pid != null">pid,</if> | 
|---|
|  |  |  | <if test="guid != null">guid,</if> | 
|---|
|  |  |  | <if test="membertype != null">membertype,</if> | 
|---|
|  |  |  | </trim> | 
|---|
|  |  |  | <trim prefix="values (" suffix=")" suffixOverrides=","> | 
|---|
|  |  |  | <if test="patientno != null">#{patientno},</if> | 
|---|
|  |  |  | <if test="pattype != null">#{pattype},</if> | 
|---|
|  |  |  | <if test="name != null">#{name},</if> | 
|---|
|  |  |  | <if test="sex != null">#{sex},</if> | 
|---|
|  |  |  | <if test="nation != null">#{nation},</if> | 
|---|
|  |  |  | <if test="nativePlace != null">#{nativePlace},</if> | 
|---|
|  |  |  | <if test="placeOfResidence != null">#{placeOfResidence},</if> | 
|---|
|  |  |  | <if test="birthplace != null">#{birthplace},</if> | 
|---|
|  |  |  | <if test="idcardno != null">#{idcardno},</if> | 
|---|
|  |  |  | <if test="birthdate != null">#{birthdate},</if> | 
|---|
|  |  |  | <if test="age != null">#{age},</if> | 
|---|
|  |  |  | <if test="archivetime != null">#{archivetime},</if> | 
|---|
|  |  |  | <if test="archiveby != null">#{archiveby},</if> | 
|---|
|  |  |  | <if test="telcode != null">#{telcode},</if> | 
|---|
|  |  |  | <if test="relativetelcode != null">#{relativetelcode},</if> | 
|---|
|  |  |  | <if test="idcardtype != null">#{idcardtype},</if> | 
|---|
|  |  |  | <if test="orgid != null">#{orgid},</if> | 
|---|
|  |  |  | <if test="openid != null">#{openid},</if> | 
|---|
|  |  |  | <if test="dduserid != null">#{dduserid},</if> | 
|---|
|  |  |  | <if test="delFlag != null and delFlag != ''">#{delFlag},</if> | 
|---|
|  |  |  | <if test="source != null">#{source},</if> | 
|---|
|  |  |  | <if test="updateBy != null">#{updateBy},</if> | 
|---|
|  |  |  | <if test="updateTime != null">#{updateTime},</if> | 
|---|
|  |  |  | <if test="createBy != null">#{createBy},</if> | 
|---|
|  |  |  | <if test="createTime != null">#{createTime},</if> | 
|---|
|  |  |  | <if test="isupload != null">#{isupload},</if> | 
|---|
|  |  |  | <if test="uploadTime != null">#{uploadTime},</if> | 
|---|
|  |  |  | <if test="pid != null">#{pid},</if> | 
|---|
|  |  |  | <if test="guid != null">#{guid},</if> | 
|---|
|  |  |  | <if test="membertype != null">#{membertype},</if> | 
|---|
|  |  |  | </trim> | 
|---|
|  |  |  | </insert> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <update id="updatePatArchiveOut" parameterType="com.smartor.domain.PatArchiveOut"> | 
|---|
|  |  |  | update pat_archive_out | 
|---|
|  |  |  | <trim prefix="SET" suffixOverrides=","> | 
|---|
|  |  |  | <if test="patientno != null">patientno = #{patientno},</if> | 
|---|
|  |  |  | <if test="pattype != null">pattype = #{pattype},</if> | 
|---|
|  |  |  | <if test="name != null">name = #{name},</if> | 
|---|
|  |  |  | <if test="sex != null">sex = #{sex},</if> | 
|---|
|  |  |  | <if test="nation != null">nation = #{nation},</if> | 
|---|
|  |  |  | <if test="nativePlace != null">native_place = #{nativePlace},</if> | 
|---|
|  |  |  | <if test="placeOfResidence != null">place_of_residence = #{placeOfResidence},</if> | 
|---|
|  |  |  | <if test="birthplace != null">birthplace = #{birthplace},</if> | 
|---|
|  |  |  | <if test="idcardno != null">idcardno = #{idcardno},</if> | 
|---|
|  |  |  | <if test="birthdate != null">birthdate = #{birthdate},</if> | 
|---|
|  |  |  | <if test="age != null">age = #{age},</if> | 
|---|
|  |  |  | <if test="archivetime != null">archivetime = #{archivetime},</if> | 
|---|
|  |  |  | <if test="archiveby != null">archiveby = #{archiveby},</if> | 
|---|
|  |  |  | <if test="telcode != null">telcode = #{telcode},</if> | 
|---|
|  |  |  | <if test="relativetelcode != null">relativetelcode = #{relativetelcode},</if> | 
|---|
|  |  |  | <if test="idcardtype != null">idcardtype = #{idcardtype},</if> | 
|---|
|  |  |  | <if test="orgid != null">orgid = #{orgid},</if> | 
|---|
|  |  |  | <if test="openid != null">openid = #{openid},</if> | 
|---|
|  |  |  | <if test="dduserid != null">dduserid = #{dduserid},</if> | 
|---|
|  |  |  | <if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if> | 
|---|
|  |  |  | <if test="source != null">source = #{source},</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="pid != null">pid = #{pid},</if> | 
|---|
|  |  |  | <if test="guid != null">guid = #{guid},</if> | 
|---|
|  |  |  | <if test="membertype != null">membertype = #{membertype},</if> | 
|---|
|  |  |  | </trim> | 
|---|
|  |  |  | where patid = #{patid} | 
|---|
|  |  |  | </update> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <update id="deletePatArchiveOutByPatid" parameterType="Long"> | 
|---|
|  |  |  | update pat_archive_out | 
|---|
|  |  |  | <trim prefix="SET" suffixOverrides=","> | 
|---|
|  |  |  | del_flag =1 | 
|---|
|  |  |  | </trim> | 
|---|
|  |  |  | where patid = #{patid} | 
|---|
|  |  |  | </update> | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | </mapper> | 
|---|
|  |  |  | 
|---|
|  |  |  | <result property="deptid"    column="deptid"    /> | 
|---|
|  |  |  | <result property="leaveldeptid"    column="leaveldeptid"    /> | 
|---|
|  |  |  | <result property="schemetime"    column="schemetime"    /> | 
|---|
|  |  |  | <result property="patname"    column="patname"    /> | 
|---|
|  |  |  | <result property="patno"    column="patno"    /> | 
|---|
|  |  |  | </resultMap> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <sql id="selectPatMedInhospVo"> | 
|---|
|  |  |  | 
|---|
|  |  |  | <include refid="selectPatMedInhospVo"/> | 
|---|
|  |  |  | <where> | 
|---|
|  |  |  | <if test="hospitalname != null  and hospitalname != ''"> and hospitalname like concat('%', #{hospitalname}, '%')</if> | 
|---|
|  |  |  | <if test="patname != null  and patname != ''"> and patname like concat('%', #{patname}, '%')</if> | 
|---|
|  |  |  | <if test="hospitaldistrictname != null  and hospitaldistrictname != ''"> and hospitaldistrictname like concat('%', #{hospitaldistrictname}, '%')</if> | 
|---|
|  |  |  | <if test="endtime != null "> and endtime = #{endtime}</if> | 
|---|
|  |  |  | <if test="patno != null "> and patno = #{patno}</if> | 
|---|
|  |  |  | <if test="leavediagname != null  and leavediagname != ''"> and leavediagname like concat('%', #{leavediagname}, '%')</if> | 
|---|
|  |  |  | <if test="drname != null  and drname != ''"> and drname like concat('%', #{drname}, '%')</if> | 
|---|
|  |  |  | <if test="leaveldeptname != null  and leaveldeptname != ''"> and leaveldeptname like concat('%', #{leaveldeptname}, '%')</if> | 
|---|
|  |  |  | 
|---|
|  |  |  | <if test="deptid != null">deptid,</if> | 
|---|
|  |  |  | <if test="leaveldeptid != null">leaveldeptid,</if> | 
|---|
|  |  |  | <if test="schemetime != null">schemetime,</if> | 
|---|
|  |  |  | <if test="patname!= null">patname,</if> | 
|---|
|  |  |  | <if test="patno != null">patno,</if> | 
|---|
|  |  |  | </trim> | 
|---|
|  |  |  | <trim prefix="values (" suffix=")" suffixOverrides=","> | 
|---|
|  |  |  | <if test="serialnum != null">#{serialnum},</if> | 
|---|
|  |  |  | 
|---|
|  |  |  | <if test="deptid != null">#{deptid},</if> | 
|---|
|  |  |  | <if test="leaveldeptid != null">#{leaveldeptid},</if> | 
|---|
|  |  |  | <if test="schemetime != null">#{schemetime},</if> | 
|---|
|  |  |  | <if test="patname!= null">#{patname},</if> | 
|---|
|  |  |  | <if test="patno != null">#{patno},</if> | 
|---|
|  |  |  | </trim> | 
|---|
|  |  |  | </insert> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | <if test="deptid != null">deptid = #{deptid},</if> | 
|---|
|  |  |  | <if test="leaveldeptid != null">leaveldeptid = #{leaveldeptid},</if> | 
|---|
|  |  |  | <if test="schemetime != null">schemetime = #{schemetime},</if> | 
|---|
|  |  |  | <if test="patname!= null">patname = #{patname},</if> | 
|---|
|  |  |  | <if test="patno != null">patno = #{patno},</if> | 
|---|
|  |  |  | </trim> | 
|---|
|  |  |  | where inhospid = #{inhospid} | 
|---|
|  |  |  | </update> | 
|---|
|  |  |  | 
|---|
|  |  |  | <result property="hpi" column="hpi"/> | 
|---|
|  |  |  | <result property="mainsuit" column="mainsuit"/> | 
|---|
|  |  |  | <result property="outhospno" column="outhospno"/> | 
|---|
|  |  |  | <result property="patname" column="patname"/> | 
|---|
|  |  |  | </resultMap> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <sql id="selectPatMedOuthospVo"> | 
|---|
|  |  |  | 
|---|
|  |  |  | deptid, | 
|---|
|  |  |  | schemetime, | 
|---|
|  |  |  | hpi, | 
|---|
|  |  |  | patname, | 
|---|
|  |  |  | mainsuit | 
|---|
|  |  |  | from pat_med_outhosp | 
|---|
|  |  |  | </sql> | 
|---|
|  |  |  | 
|---|
|  |  |  | <if test="hpi != null">hpi,</if> | 
|---|
|  |  |  | <if test="mainsuit != null">mainsuit,</if> | 
|---|
|  |  |  | <if test="outhospno != null">outhospno,</if> | 
|---|
|  |  |  | <if test="patname != null">patname,</if> | 
|---|
|  |  |  | </trim> | 
|---|
|  |  |  | <trim prefix="values (" suffix=")" suffixOverrides=","> | 
|---|
|  |  |  | <if test="serialnum != null">#{serialnum},</if> | 
|---|
|  |  |  | 
|---|
|  |  |  | <if test="hpi != null">#{hpi},</if> | 
|---|
|  |  |  | <if test="mainsuit != null">#{mainsuit},</if> | 
|---|
|  |  |  | <if test="outhospno != null">#{outhospno},</if> | 
|---|
|  |  |  | <if test="patname != null">#{patname},</if> | 
|---|
|  |  |  | </trim> | 
|---|
|  |  |  | </insert> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | <if test="hpi != null">hpi = #{hpi},</if> | 
|---|
|  |  |  | <if test="mainsuit != null">mainsuit = #{mainsuit},</if> | 
|---|
|  |  |  | <if test="outhospno != null">outhospno = #{outhospno},</if> | 
|---|
|  |  |  | <if test="patname != null">patname = #{patname},</if> | 
|---|
|  |  |  | </trim> | 
|---|
|  |  |  | where id = #{id} | 
|---|
|  |  |  | </update> | 
|---|
|  |  |  | 
|---|
|  |  |  | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" | 
|---|
|  |  |  | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | 
|---|
|  |  |  | <mapper namespace="com.smartor.mapper.PatMedPhysicalMapper"> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <resultMap type="PatMedPhysical" id="PatMedPhysicalResult"> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <resultMap type="com.smartor.domain.PatMedPhysical" id="PatMedPhysicalResult"> | 
|---|
|  |  |  | <result property="id"    column="id"    /> | 
|---|
|  |  |  | <result property="serialnum"    column="serialnum"    /> | 
|---|
|  |  |  | <result property="patid"    column="patid"    /> | 
|---|
|  |  |  | 
|---|
|  |  |  | <result property="deptid"    column="deptid"    /> | 
|---|
|  |  |  | <result property="projectid"    column="projectid"    /> | 
|---|
|  |  |  | <result property="schemetime"    column="schemetime"    /> | 
|---|
|  |  |  | <result property="patname"    column="patname"    /> | 
|---|
|  |  |  | <result property="patno"    column="patno"    /> | 
|---|
|  |  |  | </resultMap> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <sql id="selectPatMedPhysicalVo"> | 
|---|
|  |  |  | select id, serialnum, patid, drcode, drname, hospitalcode, hospitalname, physicaldate, orgid, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, deptcode, deptname, projectname, projectcode, state, schemestatus, generalschemestatus, deptid, projectid, schemetime from pat_med_physical | 
|---|
|  |  |  | select id, serialnum, patid, patname, patno, drcode, drname, hospitalcode, hospitalname, physicaldate, orgid, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, deptcode, deptname, projectname, projectcode, state, schemestatus, generalschemestatus, deptid, projectid, schemetime from pat_med_physical | 
|---|
|  |  |  | </sql> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <select id="selectPatMedPhysicalList" parameterType="PatMedPhysical" resultMap="PatMedPhysicalResult"> | 
|---|
|  |  |  | <select id="selectPatMedPhysicalList" parameterType="com.smartor.domain.PatMedPhysical" resultMap="PatMedPhysicalResult"> | 
|---|
|  |  |  | <include refid="selectPatMedPhysicalVo"/> | 
|---|
|  |  |  | <where> | 
|---|
|  |  |  | <where> | 
|---|
|  |  |  | <if test="hospitalname != null  and hospitalname != ''"> and hospitalname like concat('%', #{hospitalname}, '%')</if> | 
|---|
|  |  |  | <if test="physicaldate != null "> and physicaldate = #{physicaldate}</if> | 
|---|
|  |  |  | <if test="orgid != null  and orgid != ''"> and orgid = #{orgid}</if> | 
|---|
|  |  |  | <if test="patno != null  and patno != ''"> and patno = #{patno}</if> | 
|---|
|  |  |  | <if test="deptname != null  and deptname != ''"> and deptname like concat('%', #{deptname}, '%')</if> | 
|---|
|  |  |  | <if test="patname != null  and patname != ''"> and patname like concat('%', #{patname}, '%')</if> | 
|---|
|  |  |  | <if test="projectname != null  and projectname != ''"> and projectname like concat('%', #{projectname}, '%')</if> | 
|---|
|  |  |  | </where> | 
|---|
|  |  |  | </select> | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <select id="selectPatMedPhysicalById" parameterType="Long" resultMap="PatMedPhysicalResult"> | 
|---|
|  |  |  | <include refid="selectPatMedPhysicalVo"/> | 
|---|
|  |  |  | where id = #{id} | 
|---|
|  |  |  | </select> | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <insert id="insertPatMedPhysical" parameterType="PatMedPhysical" useGeneratedKeys="true" keyProperty="id"> | 
|---|
|  |  |  | insert into pat_med_physical | 
|---|
|  |  |  | <trim prefix="(" suffix=")" suffixOverrides=","> | 
|---|
|  |  |  | 
|---|
|  |  |  | <if test="deptid != null">deptid,</if> | 
|---|
|  |  |  | <if test="projectid != null">projectid,</if> | 
|---|
|  |  |  | <if test="schemetime != null">schemetime,</if> | 
|---|
|  |  |  | <if test="patname != null">patname,</if> | 
|---|
|  |  |  | <if test="patno != null">patno,</if> | 
|---|
|  |  |  | </trim> | 
|---|
|  |  |  | <trim prefix="values (" suffix=")" suffixOverrides=","> | 
|---|
|  |  |  | <if test="serialnum != null">#{serialnum},</if> | 
|---|
|  |  |  | 
|---|
|  |  |  | <if test="deptid != null">#{deptid},</if> | 
|---|
|  |  |  | <if test="projectid != null">#{projectid},</if> | 
|---|
|  |  |  | <if test="schemetime != null">#{schemetime},</if> | 
|---|
|  |  |  | <if test="patname != null">#{patname},</if> | 
|---|
|  |  |  | <if test="patno != null">#{patno},</if> | 
|---|
|  |  |  | </trim> | 
|---|
|  |  |  | </insert> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | <if test="deptid != null">deptid = #{deptid},</if> | 
|---|
|  |  |  | <if test="projectid != null">projectid = #{projectid},</if> | 
|---|
|  |  |  | <if test="schemetime != null">schemetime = #{schemetime},</if> | 
|---|
|  |  |  | <if test="patname != null">patname = #{patname},</if> | 
|---|
|  |  |  | <if test="patno != null">patno = #{patno},</if> | 
|---|
|  |  |  | </trim> | 
|---|
|  |  |  | where id = #{id} | 
|---|
|  |  |  | </update> | 
|---|
|  |  |  | 
|---|
|  |  |  | </delete> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <delete id="deletePatMedPhysicalByIds" parameterType="String"> | 
|---|
|  |  |  | delete from pat_med_physical where id in | 
|---|
|  |  |  | delete from pat_med_physical where id in | 
|---|
|  |  |  | <foreach item="id" collection="array" open="(" separator="," close=")"> | 
|---|
|  |  |  | #{id} | 
|---|
|  |  |  | </foreach> | 
|---|
|  |  |  | </delete> | 
|---|
|  |  |  | </mapper> | 
|---|
|  |  |  | </mapper> | 
|---|