已删除7个文件
已重命名1个文件
已修改35个文件
已添加33个文件
| | |
| | | import com.fasterxml.jackson.databind.ObjectMapper; |
| | | import com.rabbitmq.client.Channel; |
| | | import com.ruoyi.common.core.redis.RedisCache; |
| | | import com.ruoyi.common.enums.ServiceFromEnum; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.ruoyi.web.task.PhoneTask; |
| | | import com.smartor.common.SendService; |
| | | import com.smartor.config.PhoneUtils; |
| | | import com.smartor.config.RabbitMqCallPhoneConfig; |
| | | import com.smartor.config.RobotPhoneUtils; |
| | | import com.smartor.domain.*; |
| | | import com.smartor.mapper.IvrTaskMapper; |
| | | import com.smartor.mapper.IvrTaskSingleMapper; |
| | | import com.smartor.service.IIvrLibaTemplateService; |
| | | import com.smartor.service.IIvrTaskTemplateService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.amqp.core.Message; |
| | | import org.springframework.amqp.rabbit.annotation.RabbitListener; |
| | |
| | | import org.springframework.amqp.rabbit.connection.ConnectionFactory; |
| | | import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.context.annotation.Bean; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | |
| | | @Component//ç嬿¤éå |
| | | public class RabbitMqReceiver { |
| | | |
| | | @Value("${phonePath}") |
| | | private String phonePath; |
| | | |
| | | private static IIvrLibaTemplateService ivrLibaTemplateService; |
| | | private static IIvrTaskTemplateService ivrTaskTemplateService; |
| | | |
| | | private static IvrTaskSingleMapper ivrTaskcallMapper; |
| | | |
| | |
| | | |
| | | private static RabbitMqCallPhoneConfig rabbitMqCallPhoneConfig; |
| | | |
| | | private static RobotPhoneUtils robotPhoneUtils; |
| | | |
| | | // å建åºå®å¤§å°ççº¿ç¨æ± |
| | | private static final ExecutorService executorService = Executors.newFixedThreadPool(10); |
| | | |
| | | @Autowired |
| | | public void setIIvrTaskTemplateService(IIvrTaskTemplateService ivrTaskTemplateService) { |
| | | RabbitMqReceiver.ivrTaskTemplateService = ivrTaskTemplateService; |
| | | } |
| | | |
| | | @Autowired |
| | | public void setIIvrLibaTemplateService(IIvrLibaTemplateService ivrLibaTemplateService) { |
| | | RabbitMqReceiver.ivrLibaTemplateService = ivrLibaTemplateService; |
| | | public void setRobotPhoneUtilsService(RobotPhoneUtils robotPhoneUtils) { |
| | | RabbitMqReceiver.robotPhoneUtils = robotPhoneUtils; |
| | | } |
| | | |
| | | @Autowired |
| | |
| | | } |
| | | |
| | | /** |
| | | * çµè¯é访 |
| | | * ä»»å¡é访 |
| | | * concurrency = "50" å¹¶åæ°ä¸º50 |
| | | */ |
| | | @RabbitListener(queues = "phone_queue", concurrency = "50") |
| | | @RabbitListener(queues = "task_queue", concurrency = "50") |
| | | public void phoneVisit(String content, Message message, Channel channel) throws IOException { |
| | | |
| | | try { |
| | | IvrTaskcallMQ ivrTaskcallMQ = null; |
| | | |
| | |
| | | } catch (JsonProcessingException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | //éè¿æ¨¡æ¿IDè·å模æ¿é®é¢ |
| | | IvrLibaTemplateVO ivrLibaTemplateVO = new IvrLibaTemplateVO(); |
| | | ivrLibaTemplateVO.setID(Long.valueOf(ivrTaskcallMQ.getTemplateid())); |
| | | IvrLibaTemplateVO ivrLibaTemplateVO1 = ivrLibaTemplateService.selectInfoByCondition(ivrLibaTemplateVO); |
| | | |
| | | //éè¿ä»»å¡IDæ¿å°æ£è
ä¿¡æ¯ |
| | | IvrTaskSingle ivrTaskcall = new IvrTaskSingle(); |
| | | ivrTaskcall.setTaskid(ivrTaskcallMQ.getTaskid()); |
| | | List<IvrTaskSingle> ivrTaskcalls = ivrTaskcallMapper.selectIvrTaskcallList(ivrTaskcall); |
| | | |
| | | for (IvrTaskSingle ivrTaskcall1 : ivrTaskcalls) { |
| | | IvrTask ivrTask = ivrTaskMapper.selectIvrTaskByTaskid(ivrTaskcall1.getTaskid()); |
| | | if (StringUtils.isNotEmpty(ivrTask.getSendState()) && ivrTask.getSendState().equals(3) || StringUtils.isNotEmpty(ivrTask.getSendState()) && ivrTask.getSendState().equals(4)) { |
| | | //å¦ä½ä»»å¡è¢«âæåâæâç»æ¢â |
| | | break; |
| | | } |
| | | // //éè¿å¤çº¿ç¨çæ¹å¼å»æçµè¯ |
| | | executorService.submit(new PhoneTask(ivrTaskcall1, ivrLibaTemplateVO1, redisCache, rabbitMqCallPhoneConfig, message, sendService)); |
| | | //夿ä¸ä¸ivrTaskcallMQä¸çstopstateæ¯å¦ä¸ivr_taskä¸çä¸è´ï¼ä¸ä¸è´ï¼åè¯´ææ¯æåäº |
| | | IvrTask ivrTask1 = ivrTaskMapper.selectIvrTaskByTaskid(ivrTaskcallMQ.getTaskid()); |
| | | if (ivrTask1.getStopState() != ivrTaskcallMQ.getStopState()) { |
| | | //å°æ¶æ¯ä»éåä¸åé¤ |
| | | channel.basicAck(message.getMessageProperties().getDeliveryTag(), false); |
| | | return; |
| | | } |
| | | //éç¥ MQ æ¶æ¯å·²è¢«æ¥æ¶,å¯ä»¥ACK(ä»éåä¸å é¤)äº ï¼è¿ä¸ªéè¦æ ¹æ®ä¸å¡åå»å¤çACKï¼ |
| | | channel.basicAck(message.getMessageProperties().getDeliveryTag(), false); |
| | | |
| | | if (StringUtils.isNotEmpty(ivrTaskcallMQ.getServicefrom())) { |
| | | //å¦ä½ä»»å¡åéæ¹å¼ä¸ä¸ºç©º |
| | | String[] split = ivrTaskcallMQ.getServicefrom().split(","); |
| | | for (String serviceFrom : split) { |
| | | String descByCode = ServiceFromEnum.getDescByCode(Integer.valueOf(serviceFrom)); |
| | | //è¿éå¯ä»¥èèç¨çç¥æ¨¡å¼ä¼åä¸ä¸ï¼ä¸ç¶å¤ªé¾çäº |
| | | if (descByCode.equals("çµè¯")) { |
| | | //éè¿æ¨¡æ¿IDè·å模æ¿é®é¢ |
| | | IvrTaskTemplateVO ivrTaskTemplateVO = new IvrTaskTemplateVO(); |
| | | ivrTaskTemplateVO.setID(Long.valueOf(ivrTaskcallMQ.getTemplateid())); |
| | | IvrTaskTemplateVO ivrTaskTemplateVO1 = ivrTaskTemplateService.selectInfoByCondition(ivrTaskTemplateVO); |
| | | |
| | | //éè¿ä»»å¡IDæ¿å°æ£è
ä¿¡æ¯ |
| | | IvrTaskSingle ivrTaskcall = new IvrTaskSingle(); |
| | | ivrTaskcall.setTaskid(ivrTaskcallMQ.getTaskid()); |
| | | List<IvrTaskSingle> ivrTaskcalls = ivrTaskcallMapper.selectIvrTaskcallList(ivrTaskcall); |
| | | |
| | | for (IvrTaskSingle ivrTaskcall1 : ivrTaskcalls) { |
| | | IvrTask ivrTask = ivrTaskMapper.selectIvrTaskByTaskid(ivrTaskcall1.getTaskid()); |
| | | if (StringUtils.isNotEmpty(ivrTask.getSendState()) && ivrTask.getSendState().equals(3) || StringUtils.isNotEmpty(ivrTask.getSendState()) && ivrTask.getSendState().equals(4)) { |
| | | //å¦ä½ä»»å¡è¢«âæåâæâç»æ¢â |
| | | break; |
| | | } |
| | | //éè¿å¤çº¿ç¨çæ¹å¼å»æçµè¯ |
| | | executorService.submit(new PhoneTask(ivrTaskcall1, ivrTaskTemplateVO1, redisCache, rabbitMqCallPhoneConfig, message, sendService, phonePath, robotPhoneUtils)); |
| | | } |
| | | } else if (descByCode.equals("å
¬ä¼å·")) { |
| | | |
| | | } |
| | | //éç¥ MQ æ¶æ¯å·²è¢«æ¥æ¶,å¯ä»¥ACK(ä»éåä¸å é¤)äº ï¼è¿ä¸ªéè¦æ ¹æ®ä¸å¡åå»å¤çACKï¼ |
| | | channel.basicAck(message.getMessageProperties().getDeliveryTag(), false); |
| | | } |
| | | } |
| | | } catch (Exception e) { |
| | | log.error("============æ¶è´¹å¤±è´¥,å°è¯æ¶æ¯è¡¥å忬¡æ¶è´¹!=============="); |
| | | log.error(e.getMessage()); |
| | | channel.basicReject(message.getMessageProperties().getDeliveryTag(), true); |
| | | } |
| | | |
| | | } |
| | | |
| | | /** |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | @Bean |
| | | public SimpleRabbitListenerContainerFactory jsonContainerFactory(ConnectionFactory connectionFactory) { |
| | | SimpleRabbitListenerContainerFactory factory = new SimpleRabbitListenerContainerFactory(); |
| | |
| | | import com.smartor.domain.*; |
| | | import com.smartor.mapper.IvrLibaExtemplatescriptMapper; |
| | | import com.smartor.service.IIvrLibaTemplateService; |
| | | import com.smartor.service.IIvrTaskTemplateService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Component; |
| | |
| | | |
| | | private static RedisCache redisCache; |
| | | |
| | | private static IIvrLibaTemplateService ivrLibaTemplateService; |
| | | private static IIvrTaskTemplateService ivrTaskTemplateService; |
| | | |
| | | private static IvrLibaExtemplatescriptMapper ivrLibaExtemplatescriptMapper; |
| | | |
| | |
| | | } |
| | | |
| | | @Autowired |
| | | public void setTodayReaderService(IIvrLibaTemplateService ivrLibaTemplateService) { |
| | | ChatWebSocketHandler.ivrLibaTemplateService = ivrLibaTemplateService; |
| | | public void setTodayReaderService(IIvrTaskTemplateService ivrTaskTemplateService) { |
| | | ChatWebSocketHandler.ivrTaskTemplateService = ivrTaskTemplateService; |
| | | } |
| | | |
| | | @Autowired |
| | |
| | | if (session != null && session.isOpen()) { |
| | | if (socketMessage.getTemplateId() != null) { |
| | | //éè¿æ¨¡æ¿IDè·å模æ¿é®é¢ |
| | | IvrLibaTemplateVO ivrLibaTemplateVO = new IvrLibaTemplateVO(); |
| | | ivrLibaTemplateVO.setID(socketMessage.getTemplateId()); |
| | | IvrLibaTemplateVO ivrLibaTemplateVO1 = ivrLibaTemplateService.selectInfoByCondition(ivrLibaTemplateVO); |
| | | redisCache.setCacheObject(userId + "ivrLibaTemplateVO1", ivrLibaTemplateVO1, 120, TimeUnit.MINUTES); |
| | | IvrTaskTemplateVO ivrTaskTemplateVO = new IvrTaskTemplateVO(); |
| | | ivrTaskTemplateVO.setID(socketMessage.getTemplateId()); |
| | | IvrTaskTemplateVO ivrTaskTemplateVO1 = ivrTaskTemplateService.selectInfoByCondition(ivrTaskTemplateVO); |
| | | redisCache.setCacheObject(userId + "ivrTaskTemplateVO1", ivrTaskTemplateVO1, 120, TimeUnit.MINUTES); |
| | | //å°æ¥åºæ¥çé®é¢,æ¾å°å
¨å±åéä¸å» |
| | | List<IvrLibaTemplateScriptVO> ivrLibaTemplateScriptVOList = ivrLibaTemplateVO1.getIvrLibaTemplateScriptVOList(); |
| | | List<IvrTaskTemplateScriptVO> ivrTaskTemplateScriptVOList = ivrTaskTemplateVO1.getIvrTaskTemplateScriptVOList(); |
| | | //æ ¹æ®åºå·è¿è¡æåº |
| | | Collections.sort(ivrLibaTemplateScriptVOList, Comparator.comparing(IvrLibaTemplateScriptVO::getTargetid)); |
| | | Collections.sort(ivrTaskTemplateScriptVOList, Comparator.comparing(IvrTaskTemplateScriptVO::getTargetid)); |
| | | |
| | | //å°æ¥åºæ¥çæ°æ®æ¾å°redisä¸ |
| | | redisCache.setCacheObject(userId + "ivrLibaTemplateScriptVOList", ivrLibaTemplateScriptVOList, 120, TimeUnit.MINUTES); |
| | | redisCache.setCacheObject(userId + "ivrTaskTemplateScriptVOList", ivrTaskTemplateScriptVOList, 120, TimeUnit.MINUTES); |
| | | //ç¨æ¥è¿åè°æ¥çæ»ç»æ |
| | | redisCache.setCacheObject(userId + "backQuset", new ArrayList<>(), 120, TimeUnit.MINUTES); |
| | | //ç¨æ¥è®°å½æ 声ååºæ¬¡æ° |
| | |
| | | //ç¨æ¥è¿åå½åéè¦é®çé®é¢ä¿¡æ¯ |
| | | QuestionMessage returnQues = new QuestionMessage(); |
| | | |
| | | for (IvrLibaTemplateScriptVO ivrLibaTemplateScriptVO : ivrLibaTemplateScriptVOList) { |
| | | if (ivrLibaTemplateScriptVO.getTargetid() == ivrLibaTemplateVO1.getFirstQuestionNum().intValue()) |
| | | for (IvrTaskTemplateScriptVO ivrTaskTemplateScriptVO : ivrTaskTemplateScriptVOList) { |
| | | if (ivrTaskTemplateScriptVO.getTargetid() == ivrTaskTemplateVO1.getFirstQuestionNum().intValue()) |
| | | //è·å第ä¸é¢çé®é¢ |
| | | returnQues.setNowQuestion(ivrLibaTemplateScriptVO); |
| | | // returnQues.setCode(ivrLibaTemplateScriptVO.getTargetid() + 1); |
| | | returnQues.setNowQuestion(ivrTaskTemplateScriptVO); |
| | | // returnQues.setCode(ivrTaskTemplateScriptVO.getTargetid() + 1); |
| | | } |
| | | // 设置å¼åºç½ |
| | | returnQues.setKcb(ivrLibaTemplateVO1.getRevisitBefore()); |
| | | returnQues.setKcb(ivrTaskTemplateVO1.getRevisitBefore()); |
| | | |
| | | //è®°å½ååº |
| | | redisCache.setCacheObject(userId + "returnQues", returnQues, 120, TimeUnit.MINUTES); |
| | |
| | | } |
| | | |
| | | QuestionMessage questionMessage = socketMessage.getQuestionMessage(); |
| | | List<IvrLibaTemplateScriptVO> ivrLibaTemplateScriptVOList = redisCache.getCacheObject(userId + "ivrLibaTemplateScriptVOList"); |
| | | List<IvrTaskTemplateScriptVO> ivrTaskTemplateScriptVOList = redisCache.getCacheObject(userId + "ivrTaskTemplateScriptVOList"); |
| | | //æ ¹æ®åç«¯ä¼ åçæ¡ä»¶ï¼è·åå½åé¢ç® |
| | | IvrLibaTemplateScriptVO ivrLibaTemplateScriptVO = questionMessage.getNowQuestion(); |
| | | if (ivrLibaTemplateScriptVO.getID() == null) { |
| | | IvrTaskTemplateScriptVO ivrTaskTemplateScriptVO = questionMessage.getNowQuestion(); |
| | | if (ivrTaskTemplateScriptVO.getID() == null) { |
| | | QuestionMessage returnQues = redisCache.getCacheObject(userId + "returnQues"); |
| | | ivrLibaTemplateScriptVO = returnQues.getNowQuestion(); |
| | | ivrTaskTemplateScriptVO = returnQues.getNowQuestion(); |
| | | } |
| | | //è·å模æ¿ä¿¡æ¯ |
| | | IvrLibaTemplateVO ivrLibaTemplateVO1 = redisCache.getCacheObject(userId + "ivrLibaTemplateVO1"); |
| | | IvrTaskTemplateVO ivrTaskTemplateVO1 = redisCache.getCacheObject(userId + "ivrTaskTemplateVO1"); |
| | | |
| | | if (StringUtils.isEmpty(questionMessage.getContent())) { |
| | | //è°ç¨ivrLibaTemplateScriptVOä¸çslienceText(éé»è¯æ¯) |
| | | //è°ç¨ivrTaskTemplateScriptVOä¸çslienceText(éé»è¯æ¯) |
| | | Integer noVoice = redisCache.getCacheObject(userId + "noVoice"); |
| | | //å®é
é黿¬¡æ°æ¯å¦ çäº æ¨¡æ¿ä¸é
ç½®çæ¬¡æ° |
| | | if (noVoice == ivrLibaTemplateVO1.getNoVoiceNum().intValue()) { |
| | | if (noVoice == ivrTaskTemplateVO1.getNoVoiceNum().intValue()) { |
| | | //ç¨æ¥è¿åè°æ¥çæ»ç»æ |
| | | List<IvrLibaTemplateScriptVO> backQuset = new ArrayList<>(); |
| | | backQuset.add(ivrLibaTemplateScriptVO); |
| | | List<IvrTaskTemplateScriptVO> backQuset = new ArrayList<>(); |
| | | backQuset.add(ivrTaskTemplateScriptVO); |
| | | redisCache.setCacheObject(userId + "backQuset", backQuset, 120, TimeUnit.MINUTES); |
| | | |
| | | //å¦æå æ¬¡é½æ²¡ååºï¼å°±ä¸ä¸é¢ï¼éè¦å
夿æ¯å¦æä¸ä¸é¢ï¼ |
| | | if (ivrLibaTemplateScriptVO.getTargetid() == ivrLibaTemplateScriptVOList.size()) { |
| | | if (ivrTaskTemplateScriptVO.getTargetid() == ivrTaskTemplateScriptVOList.size()) { |
| | | //妿ä¸ä¸é¢æ²¡æäºï¼å°±ç»æäº |
| | | QuestionMessage returnQues = new QuestionMessage(); |
| | | // returnQues.setCode(null); |
| | | List<IvrLibaTemplateScriptVO> backQusetRedis = redisCache.getCacheObject(userId + "backQuset"); |
| | | List<IvrTaskTemplateScriptVO> backQusetRedis = redisCache.getCacheObject(userId + "backQuset"); |
| | | returnQues.setContent(JSON.toJSONString(backQusetRedis)); |
| | | returnQues.setJsy(ivrLibaTemplateVO1.getRevisitAfter()); |
| | | returnQues.setJsy(ivrTaskTemplateVO1.getRevisitAfter()); |
| | | redisCache.setCacheObject(userId + "returnQues", returnQues, 120, TimeUnit.MINUTES); |
| | | redisCache.setCacheObject(userId + "isOver", 1, 120, TimeUnit.MINUTES); |
| | | |
| | | } else { |
| | | //妿æä¸ä¸é¢ï¼å°±æ ¹æ®å½åteagetID+1 è·åä¸ä¸é¢ |
| | | QuestionMessage returnQues = getNextQuestion(ivrLibaTemplateScriptVOList, ivrLibaTemplateScriptVO); |
| | | QuestionMessage returnQues = getNextQuestion(ivrTaskTemplateScriptVOList, ivrTaskTemplateScriptVO); |
| | | redisCache.setCacheObject(userId + "returnQues", returnQues, 120, TimeUnit.MINUTES); |
| | | redisCache.setCacheObject(userId + "noVoice", 0, 120, TimeUnit.MINUTES); |
| | | } |
| | |
| | | } |
| | | } else { |
| | | //éè¿valueType夿æ¯ä»ä¹é¢åï¼å¼ç±»åï¼1 é项 2 ææ¬ 3 æ°å¼ï¼ï¼ |
| | | if (ivrLibaTemplateScriptVO.getValueType() == 2 || ivrLibaTemplateScriptVO.getValueType() == 3) { |
| | | ivrLibaTemplateScriptVO.setQuestionResult(questionMessage.getContent()); |
| | | if (ivrTaskTemplateScriptVO.getValueType() == 2 || ivrTaskTemplateScriptVO.getValueType() == 3) { |
| | | ivrTaskTemplateScriptVO.setQuestionResult(questionMessage.getContent()); |
| | | |
| | | List<IvrLibaTemplateScriptVO> backQusetList = redisCache.getCacheObject(userId + "backQuset"); |
| | | List<IvrTaskTemplateScriptVO> backQusetList = redisCache.getCacheObject(userId + "backQuset"); |
| | | //å¹é
宿å,å°ç»æä¿åå°æ°çæ°ç» |
| | | backQusetList.add(ivrLibaTemplateScriptVO); |
| | | backQusetList.add(ivrTaskTemplateScriptVO); |
| | | redisCache.setCacheObject(userId + "backQuset", backQusetList, 120, TimeUnit.MINUTES); |
| | | //å°éé»ç½®ä¸º0 |
| | | redisCache.setCacheObject(userId + "noVoice", 0, 120, TimeUnit.MINUTES); |
| | | //è·åä¸ä¸é¢ |
| | | Integer nextQuestion = ivrLibaTemplateScriptVO.getTargetid() + 1; |
| | | if (nextQuestion > ivrLibaTemplateScriptVOList.size()) { |
| | | Long nextQuestion = ivrTaskTemplateScriptVO.getTargetid() + 1; |
| | | if (nextQuestion > ivrTaskTemplateScriptVOList.size()) { |
| | | //妿ä¸ä¸é¢æ²¡æäºï¼å°±ç»æäº |
| | | QuestionMessage returnQues = new QuestionMessage(); |
| | | List<IvrLibaTemplateScriptVO> backQusetRedis = redisCache.getCacheObject(userId + "backQuset"); |
| | | List<IvrTaskTemplateScriptVO> backQusetRedis = redisCache.getCacheObject(userId + "backQuset"); |
| | | returnQues.setContent(JSON.toJSONString(backQusetRedis)); |
| | | returnQues.setJsy(ivrLibaTemplateVO1.getRevisitAfter()); |
| | | returnQues.setJsy(ivrTaskTemplateVO1.getRevisitAfter()); |
| | | redisCache.setCacheObject(userId + "returnQues", returnQues, 120, TimeUnit.MINUTES); |
| | | redisCache.setCacheObject(userId + "isOver", 1, 120, TimeUnit.MINUTES); |
| | | } else { |
| | | for (IvrLibaTemplateScriptVO script : ivrLibaTemplateScriptVOList) { |
| | | for (IvrTaskTemplateScriptVO script : ivrTaskTemplateScriptVOList) { |
| | | if (script.getTargetid() == nextQuestion) { |
| | | QuestionMessage returnQues = new QuestionMessage(); |
| | | returnQues.setNowQuestion(script); |
| | |
| | | } |
| | | } |
| | | |
| | | } else if (ivrLibaTemplateScriptVO.getValueType() == 1) { |
| | | } else if (ivrTaskTemplateScriptVO.getValueType() == 1) { |
| | | |
| | | //对åççé®é¢,è¿è¡æ£åå¹é
ï¼è¿éåªé坹鿩é¢ï¼å
¶å®é¢åä¸è¡ï¼x |
| | | for (int j = 0; j < ivrLibaTemplateScriptVO.getIvrLibaScriptTargetoptionList().size(); j++) { |
| | | for (int j = 0; j < ivrTaskTemplateScriptVO.getIvrTaskScriptTargetoptionList().size(); j++) { |
| | | //å
å« |
| | | Matcher matcher = null; |
| | | if (StringUtils.isNotEmpty(ivrLibaTemplateScriptVO.getIvrLibaScriptTargetoptionList().get(j).getTargetregex())) { |
| | | Pattern pattern = Pattern.compile(ivrLibaTemplateScriptVO.getIvrLibaScriptTargetoptionList().get(j).getTargetregex()); |
| | | if (StringUtils.isNotEmpty(ivrTaskTemplateScriptVO.getIvrTaskScriptTargetoptionList().get(j).getTargetregex())) { |
| | | Pattern pattern = Pattern.compile(ivrTaskTemplateScriptVO.getIvrTaskScriptTargetoptionList().get(j).getTargetregex()); |
| | | matcher = pattern.matcher(questionMessage.getContent()); |
| | | } |
| | | //ä¸å
å« |
| | | Matcher matcher2 = null; |
| | | if (StringUtils.isNotEmpty(ivrLibaTemplateScriptVO.getIvrLibaScriptTargetoptionList().get(j).getTargetregex2())) { |
| | | Pattern pattern2 = Pattern.compile(ivrLibaTemplateScriptVO.getIvrLibaScriptTargetoptionList().get(j).getTargetregex2()); |
| | | if (StringUtils.isNotEmpty(ivrTaskTemplateScriptVO.getIvrTaskScriptTargetoptionList().get(j).getTargetregex2())) { |
| | | Pattern pattern2 = Pattern.compile(ivrTaskTemplateScriptVO.getIvrTaskScriptTargetoptionList().get(j).getTargetregex2()); |
| | | matcher2 = pattern2.matcher(questionMessage.getContent()); |
| | | } |
| | | log.info("==============================Targetregexçå¼ä¸ºï¼{}, Targetregex2çå¼ä¸ºï¼{}", ivrLibaTemplateScriptVO.getIvrLibaScriptTargetoptionList().get(j).getTargetregex(), ivrLibaTemplateScriptVO.getIvrLibaScriptTargetoptionList().get(j).getTargetregex2()); |
| | | log.info("==============================Targetregexçå¼ä¸ºï¼{}, Targetregex2çå¼ä¸ºï¼{}", ivrTaskTemplateScriptVO.getIvrTaskScriptTargetoptionList().get(j).getTargetregex(), ivrTaskTemplateScriptVO.getIvrTaskScriptTargetoptionList().get(j).getTargetregex2()); |
| | | |
| | | 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()) { |
| | | if (StringUtils.isNotEmpty(ivrTaskTemplateScriptVO.getIvrTaskScriptTargetoptionList().get(j).getTargetregex2()) && matcher2.matches() && StringUtils.isNotEmpty(ivrTaskTemplateScriptVO.getIvrTaskScriptTargetoptionList().get(j).getTargetregex()) && matcher.matches() || StringUtils.isEmpty(ivrTaskTemplateScriptVO.getIvrTaskScriptTargetoptionList().get(j).getTargetregex2()) && StringUtils.isNotEmpty(ivrTaskTemplateScriptVO.getIvrTaskScriptTargetoptionList().get(j).getTargetregex()) && matcher.matches()) { |
| | | |
| | | //说æå¹é
æ£ç¡®äº |
| | | ivrLibaTemplateScriptVO.getIvrLibaScriptTargetoptionList().get(j).setIsUserOperation(true); |
| | | List<IvrLibaTemplateScriptVO> backQuset = redisCache.getCacheObject(userId + "backQuset"); |
| | | ivrTaskTemplateScriptVO.getIvrTaskScriptTargetoptionList().get(j).setIsUserOperation(true); |
| | | List<IvrTaskTemplateScriptVO> backQuset = redisCache.getCacheObject(userId + "backQuset"); |
| | | //å¹é
宿å,å°ç»æä¿åå°æ°çæ°ç» |
| | | backQuset.add(ivrLibaTemplateScriptVO); |
| | | backQuset.add(ivrTaskTemplateScriptVO); |
| | | redisCache.setCacheObject(userId + "backQuset", backQuset, 120, TimeUnit.MINUTES); |
| | | //å°éé»ç½®ä¸º0 |
| | | redisCache.setCacheObject(userId + "noVoice", 0, 120, TimeUnit.MINUTES); |
| | | //è·åä¸ä¸é¢ |
| | | Integer nextQuestion = ivrLibaTemplateScriptVO.getIvrLibaScriptTargetoptionList().get(j).getNextQuestion(); |
| | | if (nextQuestion > ivrLibaTemplateScriptVOList.size()) { |
| | | Long nextQuestion = ivrTaskTemplateScriptVO.getIvrTaskScriptTargetoptionList().get(j).getNextQuestion(); |
| | | if (nextQuestion > ivrTaskTemplateScriptVOList.size()) { |
| | | //妿ä¸ä¸é¢æ²¡æäºï¼å°±ç»æäº |
| | | QuestionMessage returnQues = new QuestionMessage(); |
| | | List<IvrLibaTemplateScriptVO> backQusetRedis = redisCache.getCacheObject(userId + "backQuset"); |
| | | List<IvrTaskTemplateScriptVO> backQusetRedis = redisCache.getCacheObject(userId + "backQuset"); |
| | | returnQues.setContent(JSON.toJSONString(backQusetRedis)); |
| | | returnQues.setJsy(ivrLibaTemplateVO1.getRevisitAfter()); |
| | | returnQues.setJsy(ivrTaskTemplateVO1.getRevisitAfter()); |
| | | redisCache.setCacheObject(userId + "returnQues", returnQues, 120, TimeUnit.MINUTES); |
| | | redisCache.setCacheObject(userId + "isOver", 1, 120, TimeUnit.MINUTES); |
| | | } else { |
| | | for (IvrLibaTemplateScriptVO script : ivrLibaTemplateScriptVOList) { |
| | | for (IvrTaskTemplateScriptVO script : ivrTaskTemplateScriptVOList) { |
| | | if (script.getTargetid() == nextQuestion) { |
| | | QuestionMessage returnQues = new QuestionMessage(); |
| | | returnQues.setNowQuestion(script); |
| | |
| | | Integer mateNum = redisCache.getCacheObject(userId + "mateNum"); |
| | | |
| | | //æ å¹é
次æ°å»å¤ææ¯å¦å°æå¤§è¯¢é®æ¬¡æ°ï¼å¹¶ä¸ææçé项é½å¹é
å®äº |
| | | if (mateNum == ivrLibaTemplateVO1.getMateNum().intValue() && j == ivrLibaTemplateScriptVO.getIvrLibaScriptTargetoptionList().size() - 1) { |
| | | if (mateNum == ivrTaskTemplateVO1.getMateNum().intValue() && j == ivrTaskTemplateScriptVO.getIvrTaskScriptTargetoptionList().size() - 1) { |
| | | //é®äºæå¤§è¯¢é®æ¬¡æ°åï¼è¿æ¯æ²¡æå¹é
ä¸,å°ç»æä¿åå°æ°çæ°ç» |
| | | List<IvrLibaTemplateScriptVO> backQuset = redisCache.getCacheObject(userId + "backQuset"); |
| | | backQuset.add(ivrLibaTemplateScriptVO); |
| | | List<IvrTaskTemplateScriptVO> backQuset = redisCache.getCacheObject(userId + "backQuset"); |
| | | backQuset.add(ivrTaskTemplateScriptVO); |
| | | redisCache.setCacheObject(userId + "backQuset", backQuset, 120, TimeUnit.MINUTES); |
| | | |
| | | //妿ä¸ä¸é¢ä¸ºç©º.åæ°çæ°æ®è¿å,å¹¶å ä¸æè°¢è¯ |
| | | if (ivrLibaTemplateScriptVO.getTargetid() < ivrLibaTemplateScriptVOList.size()) { |
| | | QuestionMessage returnQues = getNextQuestion(ivrLibaTemplateScriptVOList, ivrLibaTemplateScriptVO); |
| | | if (ivrTaskTemplateScriptVO.getTargetid() < ivrTaskTemplateScriptVOList.size()) { |
| | | QuestionMessage returnQues = getNextQuestion(ivrTaskTemplateScriptVOList, ivrTaskTemplateScriptVO); |
| | | redisCache.setCacheObject(userId + "returnQues", returnQues, 120, TimeUnit.MINUTES); |
| | | redisCache.setCacheObject(userId + "mateNum", 0, 120, TimeUnit.MINUTES); |
| | | } else { |
| | | QuestionMessage returnQues2 = new QuestionMessage(); |
| | | // returnQues2.setCode(null); |
| | | List<IvrLibaTemplateScriptVO> backQusetRedis = redisCache.getCacheObject(userId + "backQuset"); |
| | | List<IvrTaskTemplateScriptVO> backQusetRedis = redisCache.getCacheObject(userId + "backQuset"); |
| | | returnQues2.setQuestionList(backQusetRedis); |
| | | returnQues2.setJsy("æè°¢æ¨çèå¿åçï¼åè§"); |
| | | redisCache.setCacheObject(userId + "returnQues", returnQues2, 120, TimeUnit.MINUTES); |
| | | redisCache.setCacheObject(userId + "isOver", 1, 120, TimeUnit.MINUTES); |
| | | break; |
| | | } |
| | | } else if (mateNum < ivrLibaTemplateVO1.getMateNum().intValue() && j == ivrLibaTemplateScriptVO.getIvrLibaScriptTargetoptionList().size() - 1) { |
| | | } else if (mateNum < ivrTaskTemplateVO1.getMateNum().intValue() && j == ivrTaskTemplateScriptVO.getIvrTaskScriptTargetoptionList().size() - 1) { |
| | | //没æé®å°è§å®æ¬¡æ° |
| | | mateNum = mateNum + 1; |
| | | redisCache.setCacheObject(userId + "mateNum", mateNum, 120, TimeUnit.MINUTES); |
| | |
| | | } |
| | | } |
| | | //é项å¹é
宿åï¼éè¦åå»éè¿åºåè¿è¡å¹é
䏿¬¡ |
| | | String extemplateID = ivrLibaTemplateVO1.getSubmoduleID(); |
| | | String extemplateID = ivrTaskTemplateVO1.getSubmoduleID(); |
| | | String[] split = extemplateID.split(","); |
| | | List<String> list = Arrays.asList(split); |
| | | List<Long> list1 = new ArrayList<>(); |
| | |
| | | |
| | | 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 returnQues = redisCache.getCacheObject(userId + "returnQues"); |
| | | IvrLibaTemplateScriptVO nowQuestion = returnQues.getNowQuestion(); |
| | | IvrTaskTemplateScriptVO nowQuestion = returnQues.getNowQuestion(); |
| | | nowQuestion.setSubmoduleText(ivrLibaExtemplatescript.getSwitchText()); |
| | | nowQuestion.setSubmoduleVoice(ivrLibaExtemplatescript.getSwitchWav()); |
| | | redisCache.setCacheObject(userId + "returnQues", returnQues, 120, TimeUnit.MINUTES); |
| | | if (ivrLibaExtemplatescript.getIsEnd() == 1) { |
| | | //å°é®é¢ç½®ç©º |
| | | IvrLibaTemplateScriptVO nowQuestion1 = returnQues.getNowQuestion(); |
| | | IvrTaskTemplateScriptVO nowQuestion1 = returnQues.getNowQuestion(); |
| | | nowQuestion1.setQuestionText(null); |
| | | nowQuestion1.setQuestionVoice(null); |
| | | returnQues.setNowQuestion(nowQuestion1); |
| | |
| | | |
| | | } |
| | | QuestionMessage returnQues = redisCache.getCacheObject(userId + "returnQues"); |
| | | List<IvrLibaTemplateScriptVO> backQusetRedis = redisCache.getCacheObject(userId + "backQuset"); |
| | | List<IvrTaskTemplateScriptVO> backQusetRedis = redisCache.getCacheObject(userId + "backQuset"); |
| | | returnQues.setQuestionList(backQusetRedis); |
| | | session.sendMessage(new TextMessage(JSON.toJSONString(returnQues).getBytes(StandardCharsets.UTF_8))); |
| | | |
| | | //æ´ä¸ªæµç¨æ¯å¦ç»æï¼å°redisä¸ç该userIdä¸çæ°æ®å é¤; |
| | | Integer isOver = redisCache.getCacheObject(userId + "isOver"); |
| | | if (isOver == 1) { |
| | | redisCache.deleteObject(userId + "ivrLibaTemplateScriptVOList"); |
| | | redisCache.deleteObject(userId + "ivrTaskTemplateScriptVOList"); |
| | | redisCache.deleteObject(userId + "backQuset"); |
| | | redisCache.deleteObject(userId + "noVoice"); |
| | | redisCache.deleteObject(userId + "returnQues"); |
| | | redisCache.deleteObject(userId + "isOver"); |
| | | redisCache.deleteObject(userId + "ivrLibaTemplateVO1"); |
| | | redisCache.deleteObject(userId + "ivrTaskTemplateVO1"); |
| | | try { |
| | | //æå¼é¾æ¥ |
| | | afterConnectionClosed(session, null); |
| | |
| | | } |
| | | |
| | | //è·åä¸ä¸é¢ï¼è¿ä¸ªæ¹æ³ä¸éåé项ä¸çnextQuestionï¼ |
| | | private QuestionMessage getNextQuestion(List<IvrLibaTemplateScriptVO> ivrLibaTemplateScriptVOList, IvrLibaTemplateScriptVO ivrLibaTemplateScriptVO) { |
| | | private QuestionMessage getNextQuestion(List<IvrTaskTemplateScriptVO> ivrTaskTemplateScriptVOList, IvrTaskTemplateScriptVO ivrTaskTemplateScriptVO) { |
| | | QuestionMessage returnQues = new QuestionMessage(); |
| | | for (int j = 0; j < ivrLibaTemplateScriptVOList.size(); j++) { |
| | | if (ivrLibaTemplateScriptVOList.get(j).getTargetid() == ivrLibaTemplateScriptVO.getTargetid() + 1) { |
| | | for (int j = 0; j < ivrTaskTemplateScriptVOList.size(); j++) { |
| | | if (ivrTaskTemplateScriptVOList.get(j).getTargetid() == ivrTaskTemplateScriptVO.getTargetid() + 1) { |
| | | // 对该æ¡templateScriptVOè¿è¡å¤ç |
| | | returnQues.setNowQuestion(ivrLibaTemplateScriptVOList.get(j)); |
| | | returnQues.setNowQuestion(ivrTaskTemplateScriptVOList.get(j)); |
| | | } |
| | | } |
| | | return returnQues; |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.web.controller.smartor.AIRobot; |
| | | |
| | | 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.domain.entity.SysUser; |
| | | import com.ruoyi.common.core.domain.model.LoginUser; |
| | | import com.ruoyi.common.core.page.TableDataInfo; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.ruoyi.common.utils.DtoConversionUtils; |
| | | import com.ruoyi.common.utils.PageUtils; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.smartor.config.RobotPhoneUtils; |
| | | import com.smartor.domain.IvrTaskSingle; |
| | | import com.smartor.domain.IvrTaskSingleVO; |
| | | import com.smartor.domain.PhoneCallBackVO; |
| | | import com.smartor.domain.SendTaskVO; |
| | | import com.smartor.domain.robot.RobotScritpTemplateVO; |
| | | import com.smartor.domain.robot.back.RobotAIDialogBack; |
| | | import com.smartor.domain.robot.back.RobotCallBack; |
| | | import com.smartor.domain.robot.back.RobotcdrInfoBack; |
| | | import com.smartor.service.AIRobotPhoneCallBackService; |
| | | 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.*; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * åä¸ä»»å¡ï¼é访ï¼Controller |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-02-02 |
| | | */ |
| | | @Slf4j |
| | | @Api(description = "AIRobotåè°") |
| | | @RestController |
| | | @RequestMapping("/smartor/robot") |
| | | public class AIRobotPhoneCallBackController extends BaseController { |
| | | @Autowired |
| | | private AIRobotPhoneCallBackService aiRobotPhoneCallBackService; |
| | | |
| | | /** |
| | | * AIRobotå¼å«å°è¾¾çº¿è·¯åçç¶æè¿åæ¥å£ |
| | | */ |
| | | @ApiOperation("AIRobotå¼å«å°è¾¾çº¿è·¯åçç¶æè¿åæ¥å£") |
| | | @PostMapping("/callstatus") |
| | | public AjaxResult callstatus(@RequestBody RobotCallBack robotCallBack) { |
| | | log.error("AIRobotå¼å«å°è¾¾çº¿è·¯åçç¶æè¿åæ¥å£---------{}", robotCallBack); |
| | | aiRobotPhoneCallBackService.callstatus(robotCallBack); |
| | | return success(); |
| | | } |
| | | |
| | | /** |
| | | * ç¨æ· AI äº¤äºæ°æ®è¿åæ¥å£(å
æ¬ n ç§èç¹çè¿åæ°æ®å
) |
| | | */ |
| | | @ApiOperation("AIRobotç¨æ· AI äº¤äºæ°æ®è¿åæ¥å£(å
æ¬ n ç§èç¹çè¿åæ°æ®å
)") |
| | | @PostMapping("/aidialog") |
| | | public AjaxResult aidialog(@RequestBody RobotAIDialogBack robotAIDialogBack) { |
| | | log.error("ç¨æ· AI äº¤äºæ°æ®è¿åæ¥å£(å
æ¬ n ç§èç¹çè¿åæ°æ®å
)-----------{}", robotAIDialogBack); |
| | | aiRobotPhoneCallBackService.aidialog(robotAIDialogBack); |
| | | return success(); |
| | | } |
| | | |
| | | /** |
| | | * ææºè®¡è´¹ä¿¡æ¯è¿åæ°æ®æ¥å£ |
| | | */ |
| | | @ApiOperation("ææºè®¡è´¹ä¿¡æ¯è¿åæ°æ®æ¥å£") |
| | | @PostMapping("/cdrinfo") |
| | | public AjaxResult cdrinfo(@RequestBody RobotcdrInfoBack robotAIDialogBack) { |
| | | log.error("ææºè®¡è´¹ä¿¡æ¯è¿åæ°æ®æ¥å£-----------{}", robotAIDialogBack); |
| | | aiRobotPhoneCallBackService.cdrinfo(robotAIDialogBack); |
| | | return success(); |
| | | } |
| | | // |
| | | // /** |
| | | // * å¤å¼åèµ·è¯·æ±æ¥å£(æ¨¡æ¿æ°æ®æå 坿¨¡æ¿æä»¶è·¯å¾)æµè¯ç¨ç |
| | | // */ |
| | | // @PostMapping("/outbound") |
| | | // public AjaxResult outbound(RobotScritpTemplateVO robotScritpTemplateVO) { |
| | | // RobotPhoneUtils robotPhoneUtils = new RobotPhoneUtils(); |
| | | // robotPhoneUtils.outbound(new RobotScritpTemplateVO()); |
| | | // return success(); |
| | | // } |
| | | } |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import com.alibaba.fastjson2.JSON; |
| | | import com.github.pagehelper.util.StringUtil; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | |
| | | @ApiOperation("æ¥è¯¢æ¨¡æ¿è¯¦æ
æ ¹æ®æ¡ä»¶") |
| | | @PostMapping("/selectInfoByCondition") |
| | | public AjaxResult selectInfoByCondition(@RequestBody IvrLibaTemplateVO ivrLibaTemplateVO) { |
| | | if (ObjectUtils.isEmpty(ivrLibaTemplateVO)) { |
| | | throw new BaseException("æ¥è¯¢æ¨¡æ¿è¯¦æ
å
¥å为空ï¼è¯·æ£æ¥å
¥å"); |
| | | if (ivrLibaTemplateVO.getID() == null) { |
| | | return success(); |
| | | } |
| | | return success(ivrLibaTemplateService.selectInfoByCondition(ivrLibaTemplateVO)); |
| | | } |
| | |
| | | import com.smartor.domain.IvrTaskSingle; |
| | | import com.smartor.domain.IvrTaskSingleVO; |
| | | import com.smartor.domain.PhoneCallBackVO; |
| | | import com.smartor.domain.SendTaskVO; |
| | | import com.smartor.domain.robot.back.RobotAIDialogBack; |
| | | import com.smartor.domain.robot.back.RobotCallBack; |
| | | import com.smartor.service.IIvrTaskSingleService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | |
| | | } |
| | | |
| | | /** |
| | | * ä»»å¡åéæ§è¡ |
| | | * ä»»å¡çåéæ§è¡ãæåãç»æ¢ |
| | | */ |
| | | @ApiOperation("ä»»å¡åéæ§è¡") |
| | | @ApiOperation("ä»»å¡çåéæ§è¡ãæåãç»æ¢") |
| | | @PostMapping("/taskSend") |
| | | public AjaxResult heTaskSend(@RequestBody IvrTaskSingleVO ivrTaskcallVO) { |
| | | return toAjax(ivrTaskcallService.heTaskSend(ivrTaskcallVO)); |
| | | public AjaxResult heTaskSend(@RequestBody SendTaskVO sendTaskVO) { |
| | | return toAjax(ivrTaskcallService.heTaskSend(sendTaskVO)); |
| | | } |
| | | |
| | | /** |
| | | * çµè¯åè°ä»»å¡ |
| | | * çµè¯åè°ä»»å¡(䏿µ·) |
| | | */ |
| | | @ApiOperation("çµè¯åè°ä»»å¡") |
| | | @PostMapping("/phoneCallBack") |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | 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.IvrTaskTemplate; |
| | | import com.smartor.domain.IvrTaskTemplateVO; |
| | | import com.smartor.service.IIvrTaskTemplateService; |
| | | 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-05-13 |
| | | */ |
| | | @Api(description = "é访任å¡é访模æ¿åºController") |
| | | @RestController |
| | | @RequestMapping("/smartor/ivrTaskTemplate") |
| | | public class IvrTaskTemplateController extends BaseController { |
| | | @Autowired |
| | | private IIvrTaskTemplateService ivrTaskTemplateService; |
| | | |
| | | /** |
| | | * æ¥è¯¢é访任å¡é访模æ¿åºå表 |
| | | */ |
| | | @ApiOperation("æ¥è¯¢é访任å¡é访模æ¿åºå表") |
| | | @PreAuthorize("@ss.hasPermi('system:template:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody IvrTaskTemplate ivrTaskTemplate) { |
| | | startPage(); |
| | | List<IvrTaskTemplate> list = ivrTaskTemplateService.selectIvrTaskTemplateList(ivrTaskTemplate); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * 导åºé访任å¡é访模æ¿åºå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:template:export')") |
| | | @ApiOperation("导åºé访任å¡é访模æ¿åºå表") |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, IvrTaskTemplate ivrTaskTemplate) { |
| | | List<IvrTaskTemplate> list = ivrTaskTemplateService.selectIvrTaskTemplateList(ivrTaskTemplate); |
| | | ExcelUtil<IvrTaskTemplate> util = new ExcelUtil<IvrTaskTemplate>(IvrTaskTemplate.class); |
| | | util.exportExcel(response, list, "é访任å¡é访模æ¿åºæ°æ®"); |
| | | } |
| | | |
| | | /** |
| | | * è·åé访任å¡é访模æ¿åºè¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:template:query')") |
| | | @ApiOperation("è·åé访任å¡é访模æ¿åºè¯¦ç»ä¿¡æ¯") |
| | | @GetMapping(value = "/getInfo/{ID}") |
| | | public AjaxResult getInfo(@PathVariable("ID") Long ID) { |
| | | return success(ivrTaskTemplateService.selectIvrTaskTemplateByID(ID)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢é访任å¡é访模æ¿åº |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:template:add')") |
| | | @ApiOperation("æ°å¢é访任å¡é访模æ¿åº") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrTaskTemplate ivrTaskTemplate) { |
| | | return toAjax(ivrTaskTemplateService.insertIvrTaskTemplate(ivrTaskTemplate)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢æä¿®æ¹é访任å¡é访模æ¿åº |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:template:add')") |
| | | @ApiOperation("æ°å¢æä¿®æ¹é访任å¡é访模æ¿åº") |
| | | @PostMapping("/saveOrUpdateTempScript") |
| | | public AjaxResult saveOrUpdateTempScript(@RequestBody IvrTaskTemplateVO ivrTaskTemplateVO) { |
| | | return AjaxResult.success(ivrTaskTemplateService.saveOrUpdateTempScript(ivrTaskTemplateVO)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹é访任å¡é访模æ¿åº |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:template:edit')") |
| | | @ApiOperation("ä¿®æ¹é访任å¡é访模æ¿åº") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrTaskTemplate ivrTaskTemplate) { |
| | | return toAjax(ivrTaskTemplateService.updateIvrTaskTemplate(ivrTaskTemplate)); |
| | | } |
| | | |
| | | /** |
| | | * å é¤é访任å¡é访模æ¿åº |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:template:remove')") |
| | | @ApiOperation("å é¤é访任å¡é访模æ¿åº") |
| | | @GetMapping("/remove/{IDs}") |
| | | public AjaxResult remove(@PathVariable Long[] IDs) { |
| | | return toAjax(ivrTaskTemplateService.deleteIvrTaskTemplateByIDs(IDs)); |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | 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.IvrTaskTemplateScript; |
| | | import com.smartor.service.IIvrTaskTemplateScriptService; |
| | | 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-05-13 |
| | | */ |
| | | @Api(description = "éè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åºController") |
| | | @RestController |
| | | @RequestMapping("/smartor/taskTemplateScript") |
| | | public class IvrTaskTemplateScriptController extends BaseController |
| | | { |
| | | @Autowired |
| | | private IIvrTaskTemplateScriptService ivrTaskTemplateScriptService; |
| | | |
| | | /** |
| | | * æ¥è¯¢éè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åºå表 |
| | | */ |
| | | @ApiOperation("æ¥è¯¢éè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åºå表") |
| | | @PreAuthorize("@ss.hasPermi('system:script:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody IvrTaskTemplateScript ivrTaskTemplateScript) |
| | | { |
| | | startPage(); |
| | | List<IvrTaskTemplateScript> list = ivrTaskTemplateScriptService.selectIvrTaskTemplateScriptList(ivrTaskTemplateScript); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * 导åºéè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åºå表 |
| | | */ |
| | | @ApiOperation("导åºéè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åºå表") |
| | | @PreAuthorize("@ss.hasPermi('system:script:export')") |
| | | @Log(title = "éè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åº", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, IvrTaskTemplateScript ivrTaskTemplateScript) |
| | | { |
| | | List<IvrTaskTemplateScript> list = ivrTaskTemplateScriptService.selectIvrTaskTemplateScriptList(ivrTaskTemplateScript); |
| | | ExcelUtil<IvrTaskTemplateScript> util = new ExcelUtil<IvrTaskTemplateScript>(IvrTaskTemplateScript.class); |
| | | util.exportExcel(response, list, "éè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åºæ°æ®"); |
| | | } |
| | | |
| | | /** |
| | | * è·åéè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åºè¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @ApiOperation("è·åéè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åºè¯¦ç»ä¿¡æ¯") |
| | | @PreAuthorize("@ss.hasPermi('system:script:query')") |
| | | @GetMapping(value = "/getInfo/{ID}") |
| | | public AjaxResult getInfo(@PathVariable("ID") Long ID) |
| | | { |
| | | return success(ivrTaskTemplateScriptService.selectIvrTaskTemplateScriptByID(ID)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢éè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åº |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:script:add')") |
| | | @ApiOperation("æ°å¢éè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åº") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrTaskTemplateScript ivrTaskTemplateScript) |
| | | { |
| | | return toAjax(ivrTaskTemplateScriptService.insertIvrTaskTemplateScript(ivrTaskTemplateScript)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹éè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åº |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:script:edit')") |
| | | @ApiOperation("ä¿®æ¹éè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åº") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrTaskTemplateScript ivrTaskTemplateScript) |
| | | { |
| | | return toAjax(ivrTaskTemplateScriptService.updateIvrTaskTemplateScript(ivrTaskTemplateScript)); |
| | | } |
| | | |
| | | /** |
| | | * å é¤éè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åº |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:script:remove')") |
| | | @ApiOperation("å é¤éè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åº") |
| | | @GetMapping("/remove/{IDs}") |
| | | public AjaxResult remove(@PathVariable Long[] IDs) |
| | | { |
| | | return toAjax(ivrTaskTemplateScriptService.deleteIvrTaskTemplateScriptByIDs(IDs)); |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | 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.IvrTaskTemplateTargetoption; |
| | | import com.smartor.service.IIvrTaskTemplateTargetoptionService; |
| | | 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-05-13 |
| | | */ |
| | | @Api(description = "éè®¿ä»»å¡æ¨¡æ¿ææ é项åºController") |
| | | @RestController |
| | | @RequestMapping("/system/taskTemplateTargetoption") |
| | | public class IvrTaskTemplateTargetoptionController extends BaseController { |
| | | @Autowired |
| | | private IIvrTaskTemplateTargetoptionService ivrTaskTemplateTargetoptionService; |
| | | |
| | | /** |
| | | * æ¥è¯¢éè®¿ä»»å¡æ¨¡æ¿ææ é项åºå表 |
| | | */ |
| | | @ApiOperation("æ¥è¯¢éè®¿ä»»å¡æ¨¡æ¿ææ é项åºå表") |
| | | @PreAuthorize("@ss.hasPermi('system:targetoption:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody IvrTaskTemplateTargetoption ivrTaskTemplateTargetoption) { |
| | | startPage(); |
| | | List<IvrTaskTemplateTargetoption> list = ivrTaskTemplateTargetoptionService.selectIvrTaskTemplateTargetoptionList(ivrTaskTemplateTargetoption); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * 导åºéè®¿ä»»å¡æ¨¡æ¿ææ é项åºå表 |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:targetoption:export')") |
| | | @ApiOperation("导åºéè®¿ä»»å¡æ¨¡æ¿ææ é项åºå表") |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, IvrTaskTemplateTargetoption ivrTaskTemplateTargetoption) { |
| | | List<IvrTaskTemplateTargetoption> list = ivrTaskTemplateTargetoptionService.selectIvrTaskTemplateTargetoptionList(ivrTaskTemplateTargetoption); |
| | | ExcelUtil<IvrTaskTemplateTargetoption> util = new ExcelUtil<IvrTaskTemplateTargetoption>(IvrTaskTemplateTargetoption.class); |
| | | util.exportExcel(response, list, "éè®¿ä»»å¡æ¨¡æ¿ææ éé¡¹åºæ°æ®"); |
| | | } |
| | | |
| | | /** |
| | | * è·åéè®¿ä»»å¡æ¨¡æ¿ææ é项åºè¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @ApiOperation("è·åéè®¿ä»»å¡æ¨¡æ¿ææ é项åºè¯¦ç»ä¿¡æ¯") |
| | | @PreAuthorize("@ss.hasPermi('system:targetoption:query')") |
| | | @GetMapping(value = "/getInfo/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) { |
| | | return success(ivrTaskTemplateTargetoptionService.selectIvrTaskTemplateTargetoptionById(id)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢éè®¿ä»»å¡æ¨¡æ¿ææ éé¡¹åº |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:targetoption:add')") |
| | | @ApiOperation("æ°å¢éè®¿ä»»å¡æ¨¡æ¿ææ é项åº") |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody IvrTaskTemplateTargetoption ivrTaskTemplateTargetoption) { |
| | | return toAjax(ivrTaskTemplateTargetoptionService.insertIvrTaskTemplateTargetoption(ivrTaskTemplateTargetoption)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹éè®¿ä»»å¡æ¨¡æ¿ææ éé¡¹åº |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:targetoption:edit')") |
| | | @ApiOperation("ä¿®æ¹éè®¿ä»»å¡æ¨¡æ¿ææ é项åº") |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody IvrTaskTemplateTargetoption ivrTaskTemplateTargetoption) { |
| | | return toAjax(ivrTaskTemplateTargetoptionService.updateIvrTaskTemplateTargetoption(ivrTaskTemplateTargetoption)); |
| | | } |
| | | |
| | | /** |
| | | * å é¤éè®¿ä»»å¡æ¨¡æ¿ææ éé¡¹åº |
| | | */ |
| | | @PreAuthorize("@ss.hasPermi('system:targetoption:remove')") |
| | | @ApiOperation("å é¤éè®¿ä»»å¡æ¨¡æ¿ææ é项åº") |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) { |
| | | return toAjax(ivrTaskTemplateTargetoptionService.deleteIvrTaskTemplateTargetoptionByIds(ids)); |
| | | } |
| | | } |
| | |
| | | package com.ruoyi.web.controller.system; |
| | | |
| | | import java.io.IOException; |
| | | import java.util.List; |
| | | import java.util.Set; |
| | | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | |
| | | import com.ruoyi.framework.web.service.SysPermissionService; |
| | | import com.ruoyi.system.service.ISysMenuService; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | /** |
| | | * ç»å½éªè¯ |
| | | * |
| | | * |
| | | * @author ruoyi |
| | | */ |
| | | @RestController |
| | | public class SysLoginController |
| | | { |
| | | public class SysLoginController { |
| | | @Autowired |
| | | private SysLoginService loginService; |
| | | |
| | |
| | | |
| | | /** |
| | | * ç»å½æ¹æ³ |
| | | * |
| | | * |
| | | * @param loginBody ç»å½ä¿¡æ¯ |
| | | * @return ç»æ |
| | | */ |
| | | @PostMapping("/login") |
| | | public AjaxResult login(@RequestBody LoginBody loginBody) |
| | | { |
| | | public AjaxResult login(@RequestBody LoginBody loginBody) { |
| | | AjaxResult ajax = AjaxResult.success(); |
| | | // çæä»¤ç |
| | | String token = loginService.login(loginBody.getUsername(), loginBody.getPassword(), loginBody.getCode(), |
| | | loginBody.getUuid()); |
| | | String token = loginService.login(loginBody.getUsername(), loginBody.getPassword(), loginBody.getCode(), loginBody.getUuid()); |
| | | ajax.put(Constants.TOKEN, token); |
| | | return ajax; |
| | | } |
| | | |
| | | @GetMapping("/getToken") |
| | | public void getToken(HttpServletResponse response) throws IOException { |
| | | // çææè·åtoken |
| | | String token = "eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjRiZGRkMTI0LTViNWMtNDhmMC05YjNkLTA0YjFiMzU0Nzg5NSJ9.16hHNas7jXTlHVrnlZgAJ-YViD44YkKFuoxJxMPm5QLPeSHn3wRyd9xE0Bi7YMdO3zKcZNo6ef5diZvDWN7ImA"; |
| | | // 设置ååºå¤´ï¼å端å¯ä»¥ä»ååºå¤´è·åtoken |
| | | response.addHeader("Authorization", "Bearer " + token); |
| | | |
| | | // 妿éè¦è¿è¡é¡µé¢è·³è½¬ï¼å¯ä»¥è®¾ç½®ç¶æç 为302ï¼å¹¶è®¾ç½®Locationå¤´é¨ |
| | | response.setStatus(302); |
| | | response.setHeader("Location", "http://localhost:8099/tool/module/classifythreea"); |
| | | } |
| | | |
| | | /** |
| | | * è·åç¨æ·ä¿¡æ¯ |
| | | * |
| | | * |
| | | * @return ç¨æ·ä¿¡æ¯ |
| | | */ |
| | | @GetMapping("getInfo") |
| | | public AjaxResult getInfo() |
| | | { |
| | | public AjaxResult getInfo() { |
| | | SysUser user = SecurityUtils.getLoginUser().getUser(); |
| | | // è§è²éå |
| | | Set<String> roles = permissionService.getRolePermission(user); |
| | |
| | | |
| | | /** |
| | | * è·åè·¯ç±ä¿¡æ¯ |
| | | * |
| | | * |
| | | * @return è·¯ç±ä¿¡æ¯ |
| | | */ |
| | | @GetMapping("getRouters") |
| | | public AjaxResult getRouters() |
| | | { |
| | | public AjaxResult getRouters() { |
| | | Long userId = SecurityUtils.getUserId(); |
| | | List<SysMenu> menus = menuService.selectMenuTreeByUserId(userId); |
| | | return AjaxResult.success(menuService.buildMenus(menus)); |
| | |
| | | import com.smartor.common.SendService; |
| | | import com.smartor.config.PhoneUtils; |
| | | import com.smartor.config.RabbitMqCallPhoneConfig; |
| | | import com.smartor.config.RobotPhoneUtils; |
| | | import com.smartor.domain.*; |
| | | import com.smartor.domain.robot.RobotData; |
| | | import com.smartor.domain.robot.RobotDataConfig; |
| | | import com.smartor.domain.robot.RobotIdlenumVO; |
| | | import com.smartor.domain.robot.RobotScritpTemplateVO; |
| | | import org.springframework.amqp.core.Message; |
| | | import org.springframework.amqp.rabbit.core.RabbitTemplate; |
| | | import org.springframework.context.support.ClassPathXmlApplicationContext; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import java.util.*; |
| | | import java.util.concurrent.TimeUnit; |
| | | |
| | | public class PhoneTask implements Runnable { |
| | | private IvrTaskSingle ivrTaskSingle; |
| | | private List<IvrLibaTemplateScriptVO> ivrLibaTemplateScriptVO; |
| | | private List<IvrTaskTemplateScriptVO> ivrTaskTemplateScriptVO; |
| | | private RedisCache redisCache; |
| | | private IvrLibaTemplateVO ivrLibaTemplateVO; |
| | | private IvrTaskTemplateVO ivrTaskTemplateVO; |
| | | private RabbitMqCallPhoneConfig rabbitMqCallPhoneConfig; |
| | | private Message message; |
| | | private SendService sendService; |
| | | private String phonePath; |
| | | private RobotPhoneUtils robotPhoneUtils; |
| | | |
| | | |
| | | public PhoneTask(IvrTaskSingle ivrTaskSingle, IvrLibaTemplateVO ivrLibaTemplateVO, RedisCache redisCache, RabbitMqCallPhoneConfig rabbitMqCallPhoneConfig, Message message, SendService sendService) { |
| | | public PhoneTask(IvrTaskSingle ivrTaskSingle, IvrTaskTemplateVO ivrTaskTemplateVO, RedisCache redisCache, RabbitMqCallPhoneConfig rabbitMqCallPhoneConfig, Message message, SendService sendService, String phonePath, RobotPhoneUtils robotPhoneUtils) { |
| | | this.ivrTaskSingle = DtoConversionUtils.sourceToTarget(ivrTaskSingle, IvrTaskSingle.class); |
| | | this.ivrLibaTemplateScriptVO = DtoConversionUtils.sourceToTarget(ivrLibaTemplateVO.getIvrLibaTemplateScriptVOList(), IvrLibaTemplateScriptVO.class); |
| | | this.ivrLibaTemplateVO = DtoConversionUtils.sourceToTarget(ivrLibaTemplateVO, IvrLibaTemplateVO.class); |
| | | this.ivrTaskTemplateScriptVO = DtoConversionUtils.sourceToTarget(ivrTaskTemplateVO.getIvrTaskTemplateScriptVOList(), IvrTaskTemplateScriptVO.class); |
| | | this.ivrTaskTemplateVO = DtoConversionUtils.sourceToTarget(ivrTaskTemplateVO, IvrTaskTemplateVO.class); |
| | | this.redisCache = redisCache; |
| | | this.rabbitMqCallPhoneConfig = rabbitMqCallPhoneConfig; |
| | | this.message = message; |
| | | this.sendService = sendService; |
| | | this.phonePath = phonePath; |
| | | this.robotPhoneUtils = robotPhoneUtils; |
| | | } |
| | | |
| | | @Override |
| | | public void run() { |
| | | try { |
| | | //è·åçµè¯ç»ï¼æ¥çåªäºçµè¯å¯ä»¥ä½¿ç¨ |
| | | PhoneUtils phoneUtils = new PhoneUtils(); |
| | | final String uuid = IdUtils.randomUUID(); |
| | | //è·åææçâéé
符âé®å¼å¯¹ |
| | | ObjectMapper objectMapper = new ObjectMapper(); |
| | | Map<String, Map<String, String>> ivrTaskSingleMmap = objectMapper.readValue(ivrTaskSingle.getTextParam(), Map.class); |
| | | List<Map<String, String>> mapList = new ArrayList<>(); |
| | | if (!Objects.isNull(ivrTaskSingleMmap)) { |
| | | for (Map<String, String> map : ivrTaskSingleMmap.values()) { |
| | | mapList.add(map); |
| | | } |
| | | //å°æ¨¡æ¿é®é¢è¯æ¯éçéé
ç¬¦æ¿æ¢ |
| | | for (IvrLibaTemplateScriptVO ivrLibaTemplateScriptVO : ivrLibaTemplateScriptVO) { |
| | | for (Map<String, String> map : mapList) { |
| | | for (String key : map.keySet()) { |
| | | ivrLibaTemplateScriptVO.setQuestionText(ivrLibaTemplateScriptVO.getQuestionText().replace(key, map.get(key))); |
| | | if (phonePath.equals("1")) { |
| | | //䏿µ·ççµè¯æ¨æ |
| | | try { |
| | | //è·åçµè¯ç»ï¼æ¥çåªäºçµè¯å¯ä»¥ä½¿ç¨ |
| | | PhoneUtils phoneUtils = new PhoneUtils(); |
| | | final String uuid = IdUtils.randomUUID(); |
| | | //è·åææçâéé
符âé®å¼å¯¹ |
| | | ObjectMapper objectMapper = new ObjectMapper(); |
| | | Map<String, Map<String, String>> ivrTaskSingleMmap = objectMapper.readValue(ivrTaskSingle.getTextParam(), Map.class); |
| | | List<Map<String, String>> mapList = new ArrayList<>(); |
| | | if (!Objects.isNull(ivrTaskSingleMmap)) { |
| | | for (Map<String, String> map : ivrTaskSingleMmap.values()) { |
| | | mapList.add(map); |
| | | } |
| | | //å°æ¨¡æ¿é®é¢è¯æ¯éçéé
ç¬¦æ¿æ¢ |
| | | for (IvrTaskTemplateScriptVO ivrTaskTemplateScriptVO : ivrTaskTemplateScriptVO) { |
| | | for (Map<String, String> map : mapList) { |
| | | for (String key : map.keySet()) { |
| | | ivrTaskTemplateScriptVO.setQuestionText(ivrTaskTemplateScriptVO.getQuestionText().replace(key, map.get(key))); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | Map<String, Object> objectMap = new HashMap<>(); |
| | | objectMap.put("ivrTaskSingle", ivrTaskSingle); |
| | | objectMap.put("ivrLibaTemplateScriptVO", ivrLibaTemplateScriptVO); |
| | | //å°æ°æ®æ¾å°redisä¸ï¼æ¹ä¾¿å¨åè°æ¹æ³éè·å |
| | | redisCache.setCacheObject(uuid, objectMap, 120, TimeUnit.MINUTES); |
| | | Map<String, Object> objectMap = new HashMap<>(); |
| | | objectMap.put("ivrTaskSingle", ivrTaskSingle); |
| | | objectMap.put("ivrTaskTemplateScriptVO", ivrTaskTemplateScriptVO); |
| | | //å°æ°æ®æ¾å°redisä¸ï¼æ¹ä¾¿å¨åè°æ¹æ³éè·å |
| | | redisCache.setCacheObject(uuid, objectMap, 120, TimeUnit.MINUTES); |
| | | |
| | | //è®°å½é¦æ¬¡é®é¢ |
| | | QuestionMessage returnQues = new QuestionMessage(); |
| | | returnQues.setKcb(ivrLibaTemplateVO.getRevisitBefore()); |
| | | for (IvrLibaTemplateScriptVO ivrLibaTemplateScriptVO : ivrLibaTemplateScriptVO) { |
| | | if (ivrLibaTemplateScriptVO.getTargetid() == ivrLibaTemplateVO.getFirstQuestionNum().intValue()) { |
| | | returnQues.setNowQuestion(ivrLibaTemplateScriptVO); |
| | | //è®°å½é¦æ¬¡é®é¢ |
| | | QuestionMessage returnQues = new QuestionMessage(); |
| | | returnQues.setKcb(ivrTaskTemplateVO.getRevisitBefore()); |
| | | for (IvrTaskTemplateScriptVO ivrTaskTemplateScriptVO : ivrTaskTemplateScriptVO) { |
| | | if (ivrTaskTemplateScriptVO.getTargetid() == ivrTaskTemplateVO.getFirstQuestionNum().intValue()) { |
| | | returnQues.setNowQuestion(ivrTaskTemplateScriptVO); |
| | | } |
| | | } |
| | | } |
| | | returnQues.setQuestionList(ivrLibaTemplateScriptVO); |
| | | //å°é®é¢ï¼å模æ¿ä¿¡æ¯æ¾å°redisä¸ |
| | | redisCache.setCacheObject(uuid + "returnQues", returnQues, 120, TimeUnit.MINUTES); |
| | | redisCache.setCacheObject(uuid + "ivrLibaTemplateVO", ivrLibaTemplateVO, 120, TimeUnit.MINUTES); |
| | | returnQues.setQuestionList(ivrTaskTemplateScriptVO); |
| | | //å°é®é¢ï¼å模æ¿ä¿¡æ¯æ¾å°redisä¸ |
| | | redisCache.setCacheObject(uuid + "returnQues", returnQues, 120, TimeUnit.MINUTES); |
| | | redisCache.setCacheObject(uuid + "ivrTaskTemplateVO", ivrTaskTemplateVO, 120, TimeUnit.MINUTES); |
| | | |
| | | System.out.println("----------------uuID为 ï¼" + uuid + " " + ivrTaskSingle.getSendname() + " " + returnQues.getNowQuestion().getQuestionText() + " " + ivrTaskSingle.getPhone()); |
| | | System.out.println("----------------uuID为 ï¼" + uuid + " " + ivrTaskSingle.getSendname() + " " + returnQues.getNowQuestion().getQuestionText() + " " + ivrTaskSingle.getPhone()); |
| | | |
| | | //å
å°è¯æ¯æ¾å°ob_queueéåä¸ |
| | | IvrTaskcallPhoneMQ ivrTaskcallPhoneMQ = new IvrTaskcallPhoneMQ(); |
| | | ivrTaskcallPhoneMQ.setScript(ivrLibaTemplateVO.getRevisitBefore() + returnQues.getNowQuestion().getQuestionText()); |
| | | ivrTaskcallPhoneMQ.setType("1"); |
| | | ivrTaskcallPhoneMQ.setUuid(uuid); |
| | | String data = JSON.toJSONString(ivrTaskcallPhoneMQ); |
| | | rabbitMqCallPhoneConfig.sendMessage("phone_exchange", "phone.ob1", data, 0L); |
| | | //å
å°è¯æ¯æ¾å°ob_queueéåä¸ |
| | | IvrTaskcallPhoneMQ ivrTaskcallPhoneMQ = new IvrTaskcallPhoneMQ(); |
| | | ivrTaskcallPhoneMQ.setScript(ivrTaskTemplateVO.getRevisitBefore() + returnQues.getNowQuestion().getQuestionText()); |
| | | ivrTaskcallPhoneMQ.setType("1"); |
| | | ivrTaskcallPhoneMQ.setUuid(uuid); |
| | | String data = JSON.toJSONString(ivrTaskcallPhoneMQ); |
| | | // rabbitMqCallPhoneConfig.sendMessage("phone_exchange", "phone.ob1", data, 0L); |
| | | |
| | | //è°ç¨æºå¨äººçµè¯ï¼å¼å§çµè¯ |
| | | String ob = phoneUtils.ob("", "", "", "", "", "", "", ivrTaskSingle.getPhone(), uuid, true); |
| | | System.out.println("----------------uuID为 ï¼" + uuid + " " + ivrTaskSingle.getSendname() + " " + returnQues.getNowQuestion().getQuestionText() + " " + ivrTaskSingle.getPhone() + "----------å·²ç»æ¨æ"); |
| | | Map<String, String> obMap = objectMapper.readValue(ob, Map.class); |
| | | Thread.sleep(1000); |
| | | redisCache.setCacheObject(uuid + "state_id", "0", 10, TimeUnit.MINUTES); |
| | | //è°ç¨æºå¨äººçµè¯ï¼å¼å§çµè¯ |
| | | String ob = phoneUtils.ob("", "", "", "", "", "", "", ivrTaskSingle.getPhone(), uuid, true); |
| | | System.out.println("----------------uuID为 ï¼" + uuid + " " + ivrTaskSingle.getSendname() + " " + returnQues.getNowQuestion().getQuestionText() + " " + ivrTaskSingle.getPhone() + "----------å·²ç»æ¨æ"); |
| | | Map<String, String> obMap = objectMapper.readValue(ob, Map.class); |
| | | Thread.sleep(1000); |
| | | redisCache.setCacheObject(uuid + "state_id", "0", 10, TimeUnit.MINUTES); |
| | | rabbitMqCallPhoneConfig.sendMessage("phone_exchange", "phone.ob1", data, 0L); |
| | | //è¿éå
注éï¼state_id,çµè¯é£è¾¹ï¼åªè½è¿å6ï¼ä¸è½è¿å0ï¼è¿éè¦çµè¯é£è¾¹è¿è¡ä¿®æ¹ï¼é£è¾¹ä¿®æ¹ä¹åï¼ä¸é¢ä¸¤è¡å¯å é¤ï¼å°ä¸é¢çè§£å¼æ³¨é |
| | | // if (obMap.get("state_id").equals("0")) { |
| | | // // 说ææéäº |
| | |
| | | // redisCache.setCacheObject(uuid + "state_id", "0", 10, TimeUnit.MINUTES); |
| | | // } |
| | | // } |
| | | System.out.println("OBçå¼ä¸ºï¼" + ob); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | } |
| | | } else if (phonePath.equals("2")) { |
| | | //æå·ççµè¯æ¨æ |
| | | RobotScritpTemplateVO robotScritpTemplateVO = new RobotScritpTemplateVO(); |
| | | robotScritpTemplateVO.setNotes("aa"); |
| | | robotScritpTemplateVO.setBs_uuid(UUID.randomUUID().toString()); |
| | | robotScritpTemplateVO.setDnis(ivrTaskSingle.getPhone()); |
| | | robotScritpTemplateVO.setSpecify_ch(false); |
| | | robotScritpTemplateVO.setTime_stamp(1566227782278333L); |
| | | robotScritpTemplateVO.setEngine("ali"); |
| | | robotScritpTemplateVO.setAsr_sample("8000"); |
| | | robotScritpTemplateVO.setAsr_ent("ZurNHpaQLq6P55YS"); |
| | | robotScritpTemplateVO.setTts_ent("ZurNHpaQLq6P55YS"); |
| | | robotScritpTemplateVO.setTts_vcn("Aixia"); |
| | | robotScritpTemplateVO.setTts_volume(100); |
| | | robotScritpTemplateVO.setTts_speed(-300); |
| | | robotScritpTemplateVO.setDial_mode("å¼å«å¯¹æ¥æ¹å¼ï¼FS注åå°ç½å
³ãç½å
³æ³¨åå°FSãIP对æ¥ãIPæ ¡éªè´¦å·å¯¹æ¥"); |
| | | robotScritpTemplateVO.setDial_server("call_out_group,192.168.2.108:5060"); |
| | | robotScritpTemplateVO.setOutbound_codes("PCMU,PCMA,OPUS,G722"); |
| | | robotScritpTemplateVO.setAuto_test(true); |
| | | RobotData robotData = new RobotData(); |
| | | RobotDataConfig robotDataConfig = new RobotDataConfig(); |
| | | robotDataConfig.setTemplate_name("inbound_88008001_16k_utf8.json"); |
| | | robotData.setConfig(robotDataConfig); |
| | | robotScritpTemplateVO.setData(robotData); |
| | | |
| | | |
| | | System.out.println("OBçå¼ä¸ºï¼" + ob); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | |
| | | RobotIdlenumVO robotIdlenumVO = DtoConversionUtils.sourceToTarget(robotScritpTemplateVO, RobotIdlenumVO.class); |
| | | // String idlenum = robotPhoneUtils.idlenum(robotIdlenumVO); |
| | | // System.out.println(idlenum); |
| | | robotPhoneUtils.outbound(robotScritpTemplateVO); |
| | | } |
| | | } |
| | | } |
| | |
| | | # æ°æ®æºé
ç½® |
| | | 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 |
| | | virtual-host: / |
| | | # å¼å¯æ¶æ¯åé确认 |
| | | # å¼å¯æ¶æ¯åé确认 |
| | | publisher-confirms: true |
| | | publisher-returns: true |
| | | listener: |
| | |
| | | accessKeySecret: 6EIRr9uZeRobvHBRqskyGwjTLKpHYv |
| | | signName: æå·å©æ¹ç§æ |
| | | |
| | | #æºè½å¼å« |
| | | #æºè½å¼å«(䏿µ·) |
| | | phoneIP: http://124.220.50.51 |
| | | phonePort: 8001 |
| | | #æå· |
| | | hzphoneIP: http://121.43.112.160 |
| | | hzphonePort: 8088 |
| | | #çµè¯çº¿è·¯ï¼1 䏿µ·ï¼2 æå·ï¼ |
| | | phonePath: 2 |
| | | #èªå·±ççµè¯å·ç |
| | | phoneMySelf: 83234089 |
| | | ##ææ id(æå·) |
| | | #app_id: hzgs |
| | | ##ææ key(å·²å å¯è¿ç key)(æå·) |
| | | #app_key: 605453540c4a0a692fe07e1cae1162f3 |
| | | #ææ id(æå·) |
| | | app_id: hz_ali |
| | | #ææ key(å·²å å¯è¿ç key)(æå·) |
| | | app_key: a2f3b5799d635216aa280362fafd8c35 |
| ÎļþÃû´Ó ruoyi-common/src/main/java/com/ruoyi/common/enums/SendTypeEnum.java ÐÞ¸Ä |
| | |
| | | /** |
| | | * åéç±»åæä¸¾ |
| | | */ |
| | | public enum SendTypeEnum { |
| | | public enum ServiceFromEnum { |
| | | DMT(1, "å¤åªä½"), |
| | | ZZ(2, "纸质"), |
| | | DH(3, "çµè¯"), |
| | |
| | | private Integer code; |
| | | private String desc; |
| | | |
| | | SendTypeEnum(Integer code, String desc) { |
| | | ServiceFromEnum(Integer code, String desc) { |
| | | this.code = code; |
| | | this.desc = desc; |
| | | } |
| | | |
| | | public static String getDescByCode(Integer code) { |
| | | SendTypeEnum[] organEnums = values(); |
| | | ServiceFromEnum[] organEnums = values(); |
| | | for (int i = 0; i < organEnums.length; i++) { |
| | | SendTypeEnum organEnum = organEnums[i]; |
| | | ServiceFromEnum organEnum = organEnums[i]; |
| | | if (organEnum.getCode() == code) { |
| | | return organEnum.getDesc(); |
| | | } |
| | |
| | | public void setDesc(String desc) { |
| | | this.desc = desc; |
| | | } |
| | | } |
| | | } |
| | |
| | | // è¿æ»¤è¯·æ± |
| | | .authorizeRequests() |
| | | // 对äºç»å½login 注åregister éªè¯ç captchaImage å
许å¿åè®¿é® |
| | | .antMatchers("/login", "/register", "/captchaImage", "/qrcode/generateStaticHtml", "/qrcode/getQRcode", "/qrcode/getFormDate", "/chat", "/system/file/admin/uploadFile", "/smartor/dingtalk/sendNotification", "/patient/read/patientInfo","/socket","/API_ESB_Service","/API_ESB_Service/Run","/magic/web/**","/smartor/tasksingle/phoneCallBack").permitAll() |
| | | .antMatchers("/login", "/register", "/captchaImage", "/qrcode/generateStaticHtml", "/qrcode/getQRcode", "/qrcode/getFormDate", "/chat", "/system/file/admin/uploadFile", "/smartor/dingtalk/sendNotification", "/patient/read/patientInfo","/socket","/API_ESB_Service","/API_ESB_Service/Run","/magic/web/**","/smartor/tasksingle/phoneCallBack","/smartor/robot/callstatus","/smartor/robot/aidialog","/smartor/robot/cdrinfo","/getToken").permitAll() |
| | | // éæèµæºï¼å¯å¿åè®¿é® |
| | | .antMatchers(HttpMethod.GET, "/", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**").permitAll().antMatchers("/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**").permitAll() |
| | | // é¤ä¸é¢å¤çææè¯·æ±å
¨é¨éè¦é´æè®¤è¯ |
| | |
| | | String responseBody = null; |
| | | try { |
| | | responseBody = new String(stringHttpEntity.getBody().getBytes("ISO-8859-1"), "UTF-8"); |
| | | System.out.println(responseBody); |
| | | System.out.println("çµè¯ä¿¡æ¯è¿å : " + responseBody); |
| | | } catch (UnsupportedEncodingException e) { |
| | | e.printStackTrace(); |
| | | } |
| | |
| | | @Bean |
| | | public void createMq() { |
| | | createRabbitMq("phone_exchange", "ob_queue", "phone.ob1"); |
| | | createRabbitMq("phone_exchange", "phone_queue", "phone.123"); |
| | | createRabbitMq("phone_exchange", "task_queue", "phone.123"); |
| | | } |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.config; |
| | | |
| | | import com.alibaba.fastjson2.JSON; |
| | | import com.fasterxml.jackson.core.JsonProcessingException; |
| | | import com.fasterxml.jackson.databind.ObjectMapper; |
| | | import com.ruoyi.common.utils.HttpUtil; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.ruoyi.common.utils.http.HttpEntity; |
| | | import com.ruoyi.common.utils.sign.Md5Utils; |
| | | import com.smartor.domain.robot.RobotData; |
| | | import com.smartor.domain.robot.RobotDataConfig; |
| | | import com.smartor.domain.robot.RobotIdlenumVO; |
| | | import com.smartor.domain.robot.RobotScritpTemplateVO; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.context.annotation.Configuration; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import javax.mail.Multipart; |
| | | import java.io.UnsupportedEncodingException; |
| | | import java.nio.charset.StandardCharsets; |
| | | import java.util.HashMap; |
| | | import java.util.Map; |
| | | import java.util.UUID; |
| | | |
| | | @Configuration |
| | | public class RobotPhoneUtils { |
| | | |
| | | @Value("${hzphoneIP}") |
| | | private String hzphoneIP; |
| | | |
| | | @Value("${hzphonePort}") |
| | | private String hzphonePort; |
| | | |
| | | @Value("${phoneMySelf}") |
| | | private String phoneMySelf; |
| | | |
| | | @Value("${app_id}") |
| | | private String app_id; |
| | | |
| | | @Value(value = "${app_key}") |
| | | private String app_key; |
| | | |
| | | /** |
| | | * çº¿è·¯ç©ºé²æ°éæ¥å£ |
| | | * |
| | | * @param robotIdlenumVO |
| | | * @return |
| | | */ |
| | | public String idlenum(RobotIdlenumVO robotIdlenumVO) { |
| | | robotIdlenumVO.setAni(phoneMySelf); |
| | | robotIdlenumVO.setApp_key(app_key); |
| | | robotIdlenumVO.setApp_id(app_id); |
| | | |
| | | //设置signçå¼ md5(app_id+app_key+ani+special_ch+time_stamp) specify_ch md5 æ¶ true ç¨ 1 æ¿ä»£ï¼false ç¨ 0 æ¿ä»£ |
| | | String signStr = robotIdlenumVO.getSpecify_ch() == true ? robotIdlenumVO.getApp_id() + robotIdlenumVO.getApp_key() + robotIdlenumVO.getAni() + 1 + robotIdlenumVO.getTime_stamp() : robotIdlenumVO.getApp_id() + robotIdlenumVO.getApp_key() + robotIdlenumVO.getAni() + 0 + robotIdlenumVO.getTime_stamp(); |
| | | robotIdlenumVO.setSign(Md5Utils.hash(signStr)); |
| | | |
| | | ObjectMapper objectMapper = new ObjectMapper(); |
| | | Map<String, Object> map = null; |
| | | try { |
| | | map = objectMapper.readValue(JSON.toJSONString(robotIdlenumVO), Map.class); |
| | | } catch (JsonProcessingException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | return sendReq(map, "/aiengine/ai_api/idlenum"); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * å¤å¼åèµ·è¯·æ±æ¥å£ |
| | | */ |
| | | public String outbound(RobotScritpTemplateVO robotScritpTemplateVO) { |
| | | robotScritpTemplateVO.setAni(phoneMySelf); |
| | | robotScritpTemplateVO.setApp_key(app_key); |
| | | robotScritpTemplateVO.setApp_id(app_id); |
| | | String signStr = robotScritpTemplateVO.getSpecify_ch() == true ? robotScritpTemplateVO.getApp_id() + robotScritpTemplateVO.getApp_key() + robotScritpTemplateVO.getBs_uuid() + robotScritpTemplateVO.getAni() + 1 + robotScritpTemplateVO.getTime_stamp() : robotScritpTemplateVO.getApp_id() + robotScritpTemplateVO.getApp_key() + robotScritpTemplateVO.getBs_uuid() + robotScritpTemplateVO.getAni() + 0 + robotScritpTemplateVO.getTime_stamp(); |
| | | robotScritpTemplateVO.setSign(Md5Utils.hash(signStr)); |
| | | //ä¸é¢æ³¨éçè¿ä¸ªæµè¯ç¨ç |
| | | // robotScritpTemplateVO.setNotes("aa"); |
| | | // robotScritpTemplateVO.setApp_id("hz_ali"); |
| | | // robotScritpTemplateVO.setApp_key("a2f3b5799d635216aa280362fafd8c35"); |
| | | // robotScritpTemplateVO.setBs_uuid(UUID.randomUUID().toString()); |
| | | // robotScritpTemplateVO.setAni("83234089"); |
| | | // robotScritpTemplateVO.setDnis("1010"); |
| | | // robotScritpTemplateVO.setSpecify_ch(false); |
| | | // robotScritpTemplateVO.setTime_stamp(1566227782278333L); |
| | | // robotScritpTemplateVO.setSign(null); |
| | | // robotScritpTemplateVO.setEngine("ali"); |
| | | // robotScritpTemplateVO.setAsr_sample("8000"); |
| | | // robotScritpTemplateVO.setAsr_ent("ZurNHpaQLq6P55YS"); |
| | | // robotScritpTemplateVO.setTts_ent("ZurNHpaQLq6P55YS"); |
| | | // robotScritpTemplateVO.setTts_vcn("Aixia"); |
| | | // robotScritpTemplateVO.setTts_volume(100); |
| | | // robotScritpTemplateVO.setTts_speed(-300); |
| | | // robotScritpTemplateVO.setDial_mode("å¼å«å¯¹æ¥æ¹å¼ï¼FS注åå°ç½å
³ãç½å
³æ³¨åå°FSãIP对æ¥ãIPæ ¡éªè´¦å·å¯¹æ¥"); |
| | | // robotScritpTemplateVO.setDial_server("call_out_group,192.168.2.108:5060"); |
| | | // robotScritpTemplateVO.setOutbound_codes("PCMU,PCMA,OPUS,G722"); |
| | | // robotScritpTemplateVO.setAuto_test(true); |
| | | // RobotData robotData = new RobotData(); |
| | | // RobotDataConfig robotDataConfig = new RobotDataConfig(); |
| | | // robotDataConfig.setTemplate_name("inbound_88008001_16k_utf8.json"); |
| | | // robotData.setConfig(robotDataConfig); |
| | | // robotScritpTemplateVO.setData(robotData); |
| | | // md5(app_id+app_key+bs_uuid+ani+dnis+specify_ch+time_stamp) specify_ch md5 æ¶ true ç¨ 1 æ¿ä»£ï¼false ç¨ 0 æ¿ä»£; |
| | | ObjectMapper objectMapper = new ObjectMapper(); |
| | | Map<String, Object> map = null; |
| | | try { |
| | | map = objectMapper.readValue(JSON.toJSONString(robotScritpTemplateVO), Map.class); |
| | | } catch (JsonProcessingException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | |
| | | return sendReq(map, "/aiengine/ai_api/outbound"); |
| | | } |
| | | |
| | | |
| | | private String sendReq(Map<String, Object> map, String path) { |
| | | HttpEntity<Map<String, Object>> req = new HttpEntity<>(getHead(), map); |
| | | HttpEntity<String> stringHttpEntity = HttpUtil.postJsonRequestV2(hzphoneIP + ":" + hzphonePort + path, req, String.class); |
| | | String responseBody = null; |
| | | try { |
| | | responseBody = new String(stringHttpEntity.getBody().getBytes("ISO-8859-1"), "UTF-8"); |
| | | System.out.println("çµè¯ä¿¡æ¯è¿å : " + responseBody); |
| | | } catch (UnsupportedEncodingException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | return new String(stringHttpEntity.getBody().getBytes(StandardCharsets.UTF_8)); |
| | | } |
| | | |
| | | private Map<String, String> getHead() { |
| | | HashMap<String, String> header = new HashMap<>(); |
| | | header.put("User-Agent", "Mozilla/5.0 (Windows NT 6.1; Trident/7.0; rv:11.0) like Gecko"); |
| | | header.put("Content-Type", "application/json"); |
| | | return header; |
| | | } |
| | | } |
| | |
| | | @ApiModelProperty(value = "主é®") |
| | | private Long ID; |
| | | |
| | | /** |
| | | * ææ id |
| | | */ |
| | | @Excel(name = "ææ id") |
| | | @ApiModelProperty(value = "ææ id") |
| | | private Integer targetid; |
| | | |
| | | /** |
| | | * ææ å |
| | | */ |
| | | @Excel(name = "ææ å") |
| | | @ApiModelProperty(value = "ææ å") |
| | | private String targetname; |
| | | // /** |
| | | // * ææ id |
| | | // */ |
| | | // @Excel(name = "ææ id") |
| | | // @ApiModelProperty(value = "ææ id") |
| | | // private Integer targetid; |
| | | // |
| | | // /** |
| | | // * ææ å |
| | | // */ |
| | | // @Excel(name = "ææ å") |
| | | // @ApiModelProperty(value = "ææ å") |
| | | // private String targetname; |
| | | |
| | | /** |
| | | * 模æ¿å |
| | |
| | | @Excel(name = "æ²é»æ¶é´") |
| | | @ApiModelProperty(value = "æ²é»æ¶é´") |
| | | private Long silencetime; |
| | | |
| | | /** |
| | | * æ²é»æç»æ¶é´ |
| | | */ |
| | | @Excel(name = "æ²é»æç»æ¶é´") |
| | | @ApiModelProperty(value = "æ²é»æç»æ¶é´") |
| | | private Long slienceRepeatTimes; |
| | | |
| | | /** |
| | | * æ å¹é
æ¶é´ |
| | | */ |
| | | @Excel(name = "æ å¹é
æ¶é´") |
| | | @ApiModelProperty(value = "æ å¹é
æ¶é´") |
| | | private Long nomatchRepeatTimes; |
| | | // |
| | | // /** |
| | | // * æ²é»æç»æ¶é´ |
| | | // */ |
| | | // @Excel(name = "æ²é»æç»æ¶é´") |
| | | // @ApiModelProperty(value = "æ²é»æç»æ¶é´") |
| | | // private Long slienceRepeatTimes; |
| | | // |
| | | // /** |
| | | // * æ å¹é
æ¶é´ |
| | | // */ |
| | | // @Excel(name = "æ å¹é
æ¶é´") |
| | | // @ApiModelProperty(value = "æ å¹é
æ¶é´") |
| | | // private Long nomatchRepeatTimes; |
| | | |
| | | /** |
| | | * ç¬¬ä¸æ¬¡é®é¢ç¼å· |
| | |
| | | @ApiModelProperty(value = "æè¿°") |
| | | private String note; |
| | | |
| | | /** |
| | | * å¼ç±»åï¼1 é项 2 ææ¬ 3 æ°å¼ï¼ |
| | | */ |
| | | @ApiModelProperty(value = "å¼ç±»åï¼1 é项 2 ææ¬ 3 æ°å¼ï¼") |
| | | @Excel(name = "å¼ç±»å", readConverterExp = "1=é项,2=ææ¬,3=æ°å¼") |
| | | private Long valueType; |
| | | |
| | | /** |
| | | * åå¤ï¼æé®é¢çåå¤ï¼ç»é®çé¢ç¨çï¼ |
| | | */ |
| | | @ApiModelProperty(value = "åå¤ï¼æé®é¢çåå¤ï¼ç»é®çé¢ç¨çï¼") |
| | | private String reply; |
| | | |
| | | /** |
| | | * æ°å¢ç¨æ·ID |
| | | */ |
| | | @Excel(name = "æ°å¢ç¨æ·ID") |
| | | @ApiModelProperty(value = "æ°å¢ç¨æ·ID") |
| | | private String addUserID; |
| | | |
| | | /** |
| | | * æ°å¢æ¶é´ |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @Excel(name = "æ°å¢æ¶é´", width = 30, dateFormat = "yyyy-MM-dd") |
| | | @ApiModelProperty(value = "æ°å¢æ¶é´") |
| | | private Date addTime; |
| | | |
| | | /** |
| | | * ä¿®æ¹ç¨æ·ID |
| | | */ |
| | | @Excel(name = "ä¿®æ¹ç¨æ·ID") |
| | | @ApiModelProperty(value = "ä¿®æ¹ç¨æ·ID") |
| | | private String modifyUserID; |
| | | |
| | | /** |
| | | * ä¿®æ¹æ¶é´ |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @Excel(name = "ä¿®æ¹æ¶é´", width = 30, dateFormat = "yyyy-MM-dd") |
| | | @ApiModelProperty(value = "ä¿®æ¹æ¶é´") |
| | | private Date modifyTime; |
| | | // /** |
| | | // * å¼ç±»åï¼1 é项 2 ææ¬ 3 æ°å¼ï¼ |
| | | // */ |
| | | // @ApiModelProperty(value = "å¼ç±»åï¼1 é项 2 ææ¬ 3 æ°å¼ï¼") |
| | | // @Excel(name = "å¼ç±»å", readConverterExp = "1=é项,2=ææ¬,3=æ°å¼") |
| | | // private Long valueType; |
| | | // |
| | | // /** |
| | | // * åå¤ï¼æé®é¢çåå¤ï¼ç»é®çé¢ç¨çï¼ |
| | | // */ |
| | | // @ApiModelProperty(value = "åå¤ï¼æé®é¢çåå¤ï¼ç»é®çé¢ç¨çï¼") |
| | | // private String reply; |
| | | // |
| | | // /** |
| | | // * æ°å¢ç¨æ·ID |
| | | // */ |
| | | // @Excel(name = "æ°å¢ç¨æ·ID") |
| | | // @ApiModelProperty(value = "æ°å¢ç¨æ·ID") |
| | | // private String addUserID; |
| | | // |
| | | // /** |
| | | // * æ°å¢æ¶é´ |
| | | // */ |
| | | // @JsonFormat(pattern = "yyyy-MM-dd") |
| | | // @Excel(name = "æ°å¢æ¶é´", width = 30, dateFormat = "yyyy-MM-dd") |
| | | // @ApiModelProperty(value = "æ°å¢æ¶é´") |
| | | // private Date addTime; |
| | | // |
| | | // /** |
| | | // * ä¿®æ¹ç¨æ·ID |
| | | // */ |
| | | // @Excel(name = "ä¿®æ¹ç¨æ·ID") |
| | | // @ApiModelProperty(value = "ä¿®æ¹ç¨æ·ID") |
| | | // private String modifyUserID; |
| | | // |
| | | // /** |
| | | // * ä¿®æ¹æ¶é´ |
| | | // */ |
| | | // @JsonFormat(pattern = "yyyy-MM-dd") |
| | | // @Excel(name = "ä¿®æ¹æ¶é´", width = 30, dateFormat = "yyyy-MM-dd") |
| | | // @ApiModelProperty(value = "ä¿®æ¹æ¶é´") |
| | | // private Date modifyTime; |
| | | |
| | | /** |
| | | * åç»ID |
| | |
| | | @ApiModelProperty(value = "é¨é¨åç§°") |
| | | private String deptNames = ""; |
| | | |
| | | /** |
| | | * F_KSDM |
| | | */ |
| | | @Excel(name = "F_KSDM") |
| | | @ApiModelProperty(value = "F_KSDM") |
| | | private String fKsdm; |
| | | // /** |
| | | // * F_KSDM |
| | | // */ |
| | | // @Excel(name = "F_KSDM") |
| | | // @ApiModelProperty(value = "F_KSDM") |
| | | // private String fKsdm; |
| | | |
| | | /** |
| | | * å 餿 è®° |
| | |
| | | @ApiModelProperty(value = "éç¨æ¹å¼ï¼è°æ¥è¡¨1ï¼æºè½è¯é³2ã人工3") |
| | | private String suitway; |
| | | |
| | | /** |
| | | * æ ç¾ |
| | | */ |
| | | @Excel(name = "å
¶å®æ°æ®ï¼åå¨åéï¼") |
| | | @ApiModelProperty(value = "å
¶å®æ°æ®ï¼åå¨åéï¼") |
| | | private String otherdata; |
| | | // /** |
| | | // * æ ç¾ |
| | | // */ |
| | | // @Excel(name = "å
¶å®æ°æ®ï¼åå¨åéï¼") |
| | | // @ApiModelProperty(value = "å
¶å®æ°æ®ï¼åå¨åéï¼") |
| | | // private String otherdata; |
| | | |
| | | /** |
| | | * é访åè¯æ¯ï¼å¼åºç½ï¼ |
| | |
| | | @ApiModelProperty(value = "ç±»å«å") |
| | | private String categoryName; |
| | | |
| | | /** |
| | | * ææ é项 |
| | | */ |
| | | @Excel(name = "ææ é项") |
| | | @ApiModelProperty(value = "ææ é项") |
| | | private String targetOptions; |
| | | |
| | | /** |
| | | * è¯è¨ |
| | | */ |
| | | @Excel(name = "è¯è¨") |
| | | @ApiModelProperty(value = "è¯è¨") |
| | | private String language; |
| | | // /** |
| | | // * ææ é项 |
| | | // */ |
| | | // @Excel(name = "ææ é项") |
| | | // @ApiModelProperty(value = "ææ é项") |
| | | // private String targetOptions; |
| | | // |
| | | // /** |
| | | // * è¯è¨ |
| | | // */ |
| | | // @Excel(name = "è¯è¨") |
| | | // @ApiModelProperty(value = "è¯è¨") |
| | | // private String language; |
| | | |
| | | /** |
| | | * åªè½ææ¾WAVç±»å |
| | |
| | | @ApiModelProperty(value = "æ¯å¦å卿ä½ï¼1 æ°å¢ 2ä¿®æ¹ 3å é¤") |
| | | private Integer isoperation; |
| | | |
| | | /** |
| | | * æ¯å¦å卿ä½ï¼1 æ°å¢ 2ä¿®æ¹ 3å é¤ |
| | | */ |
| | | @ApiModelProperty(value = "ææ ç±»å") |
| | | private Integer targettype; |
| | | // /** |
| | | // * æ¯å¦å卿ä½ï¼1 æ°å¢ 2ä¿®æ¹ 3å é¤ |
| | | // */ |
| | | // @ApiModelProperty(value = "ææ ç±»å") |
| | | // private Integer targettype; |
| | | |
| | | /** |
| | | * ä¸ä¸é¢ |
| | |
| | | @ApiModelProperty(value = "æ¯å¦å¿
å¡«ï¼ç»äººå·¥ç¨çï¼AIä¸ç¨éµå®ï¼") |
| | | private String isMust; |
| | | |
| | | /** |
| | | * é®é¢ç»æï¼ç»âå¼ç±»åâæ¯ææ¬æè
æ°å¼ç¨çï¼ |
| | | */ |
| | | @Excel(name = "é®é¢ç»æï¼ç»âå¼ç±»åâæ¯ææ¬æè
æ°å¼ç¨çï¼") |
| | | @ApiModelProperty(value = "é®é¢ç»æï¼ç»âå¼ç±»åâæ¯ææ¬æè
æ°å¼ç¨çï¼") |
| | | private String questionResult; |
| | | // /** |
| | | // * é®é¢ç»æï¼ç»âå¼ç±»åâæ¯ææ¬æè
æ°å¼ç¨çï¼ |
| | | // */ |
| | | // @Excel(name = "é®é¢ç»æï¼ç»âå¼ç±»åâæ¯ææ¬æè
æ°å¼ç¨çï¼") |
| | | // @ApiModelProperty(value = "é®é¢ç»æï¼ç»âå¼ç±»åâæ¯ææ¬æè
æ°å¼ç¨çï¼") |
| | | // private String questionResult; |
| | | } |
| | |
| | | @ApiModelProperty(value = "ç±»å«å") |
| | | private String categoryName; |
| | | |
| | | /** |
| | | * ææ é项 |
| | | */ |
| | | @Excel(name = "ææ é项") |
| | | @ApiModelProperty(value = "ææ é项") |
| | | private String targetOptions; |
| | | |
| | | /** |
| | | * è¯è¨ |
| | | */ |
| | | @Excel(name = "è¯è¨") |
| | | @ApiModelProperty(value = "è¯è¨") |
| | | private String language; |
| | | // /** |
| | | // * ææ é项 |
| | | // */ |
| | | // @Excel(name = "ææ é项") |
| | | // @ApiModelProperty(value = "ææ é项") |
| | | // private String targetOptions; |
| | | // |
| | | // /** |
| | | // * è¯è¨ |
| | | // */ |
| | | // @Excel(name = "è¯è¨") |
| | | // @ApiModelProperty(value = "è¯è¨") |
| | | // private String language; |
| | | |
| | | /** |
| | | * åªè½ææ¾WAVç±»å |
| | |
| | | @ApiModelProperty(value = "æ¯å¦å卿ä½ï¼1 æ°å¢ 2ä¿®æ¹ 3å é¤") |
| | | private Integer isoperation; |
| | | |
| | | /** |
| | | * åºç¡ææ ç±»å |
| | | */ |
| | | @ApiModelProperty(value = "åºç¡ææ ç±»å") |
| | | private Integer targetType; |
| | | // /** |
| | | // * åºç¡ææ ç±»å |
| | | // */ |
| | | // @ApiModelProperty(value = "åºç¡ææ ç±»å") |
| | | // private Integer targetType; |
| | | |
| | | /** |
| | | * åºç¡ææ id |
| | |
| | | @ApiModelProperty(value = "æ¯å¦å¿
å¡«ï¼ç»äººå·¥ç¨çï¼AIä¸ç¨éµå®ï¼") |
| | | private String isMust; |
| | | |
| | | /** |
| | | * é®é¢ç»æï¼ç»âå¼ç±»åâæ¯ææ¬æè
æ°å¼ç¨çï¼ |
| | | */ |
| | | @Excel(name = "é®é¢ç»æï¼ç»âå¼ç±»åâæ¯ææ¬æè
æ°å¼ç¨çï¼") |
| | | @ApiModelProperty(value = "é®é¢ç»æï¼ç»âå¼ç±»åâæ¯ææ¬æè
æ°å¼ç¨çï¼") |
| | | private String questionResult; |
| | | // /** |
| | | // * é®é¢ç»æï¼ç»âå¼ç±»åâæ¯ææ¬æè
æ°å¼ç¨çï¼ |
| | | // */ |
| | | // @Excel(name = "é®é¢ç»æï¼ç»âå¼ç±»åâæ¯ææ¬æè
æ°å¼ç¨çï¼") |
| | | // @ApiModelProperty(value = "é®é¢ç»æï¼ç»âå¼ç±»åâæ¯ææ¬æè
æ°å¼ç¨çï¼") |
| | | // private String questionResult; |
| | | |
| | | /** |
| | | * è¯æ¯é项 |
| | |
| | | @ApiModelProperty(value = "æ¯å¦å¼å¸¸æ è¯") |
| | | private Long isabnormal; |
| | | |
| | | /** |
| | | * é¢è¦éå¼ä¸é |
| | | */ |
| | | @Excel(name = "é¢è¦éå¼ä¸é") |
| | | @ApiModelProperty(value = "é¢è¦éå¼ä¸é") |
| | | private Long warnup; |
| | | |
| | | /** |
| | | * é¢è¦éå¼ä¸é |
| | | */ |
| | | @Excel(name = "é¢è¦éå¼ä¸é") |
| | | @ApiModelProperty(value = "é¢è¦éå¼ä¸é") |
| | | private Long warndown; |
| | | // /** |
| | | // * é¢è¦éå¼ä¸é |
| | | // */ |
| | | // @Excel(name = "é¢è¦éå¼ä¸é") |
| | | // @ApiModelProperty(value = "é¢è¦éå¼ä¸é") |
| | | // private Long warnup; |
| | | // |
| | | // /** |
| | | // * é¢è¦éå¼ä¸é |
| | | // */ |
| | | // @Excel(name = "é¢è¦éå¼ä¸é") |
| | | // @ApiModelProperty(value = "é¢è¦éå¼ä¸é") |
| | | // private Long warndown; |
| | | |
| | | /** |
| | | * å 餿 è®° |
| | |
| | | @ApiModelProperty(value = "模æ¿å ") |
| | | private String templateName; |
| | | |
| | | /** |
| | | * ææ id |
| | | */ |
| | | @Excel(name = "ææ id") |
| | | @ApiModelProperty(value = "ææ id") |
| | | private Integer targetid; |
| | | |
| | | /** |
| | | * ææ å |
| | | */ |
| | | @Excel(name = "ææ å") |
| | | @ApiModelProperty(value = "ææ å") |
| | | private Integer targetname; |
| | | // /** |
| | | // * ææ id |
| | | // */ |
| | | // @Excel(name = "ææ id") |
| | | // @ApiModelProperty(value = "ææ id") |
| | | // private Integer targetid; |
| | | // |
| | | // /** |
| | | // * ææ å |
| | | // */ |
| | | // @Excel(name = "ææ å") |
| | | // @ApiModelProperty(value = "ææ å") |
| | | // private Integer targetname; |
| | | |
| | | /** |
| | | * æ²é»æ¶é´ |
| | |
| | | @Excel(name = "æ²é»æ¶é´") |
| | | @ApiModelProperty(value = "æ²é»æ¶é´") |
| | | private Long silencetime; |
| | | // |
| | | // /** |
| | | // * æ²é»æç»æ¶é´ |
| | | // */ |
| | | // @Excel(name = "æ²é»æç»æ¶é´") |
| | | // @ApiModelProperty(value = "æ²é»æç»æ¶é´") |
| | | // private Long slienceRepeatTimes; |
| | | |
| | | /** |
| | | * æ²é»æç»æ¶é´ |
| | | */ |
| | | @Excel(name = "æ²é»æç»æ¶é´") |
| | | @ApiModelProperty(value = "æ²é»æç»æ¶é´") |
| | | private Long slienceRepeatTimes; |
| | | |
| | | /** |
| | | * æ å¹é
æ¶é´ |
| | | */ |
| | | @Excel(name = "æ å¹é
æ¶é´") |
| | | @ApiModelProperty(value = "æ å¹é
æ¶é´") |
| | | private Long nomatchRepeatTimes; |
| | | // /** |
| | | // * æ å¹é
æ¶é´ |
| | | // */ |
| | | // @Excel(name = "æ å¹é
æ¶é´") |
| | | // @ApiModelProperty(value = "æ å¹é
æ¶é´") |
| | | // private Long nomatchRepeatTimes; |
| | | |
| | | /** |
| | | * ç¬¬ä¸æ¬¡é®é¢ç¼å· |
| | |
| | | @ApiModelProperty(value = "æè¿°") |
| | | private String note; |
| | | |
| | | /** |
| | | * å¼ç±»åï¼1 é项 2 ææ¬ 3 æ°å¼ï¼ |
| | | */ |
| | | @ApiModelProperty(value = "å¼ç±»åï¼1 é项 2 ææ¬ 3 æ°å¼ï¼") |
| | | @Excel(name = "å¼ç±»å", readConverterExp = "1=é项,2=ææ¬,3=æ°å¼") |
| | | private Long valueType; |
| | | // /** |
| | | // * å¼ç±»åï¼1 é项 2 ææ¬ 3 æ°å¼ï¼ |
| | | // */ |
| | | // @ApiModelProperty(value = "å¼ç±»åï¼1 é项 2 ææ¬ 3 æ°å¼ï¼") |
| | | // @Excel(name = "å¼ç±»å", readConverterExp = "1=é项,2=ææ¬,3=æ°å¼") |
| | | // private Long valueType; |
| | | // |
| | | // |
| | | // @ApiModelProperty(value = "åå¤ï¼æé®é¢çåå¤ï¼ç»é®çé¢ç¨çï¼") |
| | | // private String reply; |
| | | |
| | | |
| | | @ApiModelProperty(value = "åå¤ï¼æé®é¢çåå¤ï¼ç»é®çé¢ç¨çï¼") |
| | | private String reply; |
| | | |
| | | /** |
| | | * æ°å¢ç¨æ·ID |
| | | */ |
| | | @Excel(name = "æ°å¢ç¨æ·ID") |
| | | @ApiModelProperty(value = "æ°å¢ç¨æ·ID") |
| | | private String addUserID; |
| | | |
| | | /** |
| | | * æ°å¢æ¶é´ |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @Excel(name = "æ°å¢æ¶é´", width = 30, dateFormat = "yyyy-MM-dd") |
| | | @ApiModelProperty(value = "æ°å¢æ¶é´") |
| | | private Date addTime; |
| | | |
| | | /** |
| | | * ä¿®æ¹ç¨æ·ID |
| | | */ |
| | | @Excel(name = "ä¿®æ¹ç¨æ·ID") |
| | | @ApiModelProperty(value = "ä¿®æ¹ç¨æ·ID") |
| | | private String modifyUserID; |
| | | |
| | | /** |
| | | * ä¿®æ¹æ¶é´ |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @Excel(name = "ä¿®æ¹æ¶é´", width = 30, dateFormat = "yyyy-MM-dd") |
| | | @ApiModelProperty(value = "ä¿®æ¹æ¶é´") |
| | | private Date modifyTime; |
| | | // /** |
| | | // * æ°å¢ç¨æ·ID |
| | | // */ |
| | | // @Excel(name = "æ°å¢ç¨æ·ID") |
| | | // @ApiModelProperty(value = "æ°å¢ç¨æ·ID") |
| | | // private String addUserID; |
| | | // |
| | | // /** |
| | | // * æ°å¢æ¶é´ |
| | | // */ |
| | | // @JsonFormat(pattern = "yyyy-MM-dd") |
| | | // @Excel(name = "æ°å¢æ¶é´", width = 30, dateFormat = "yyyy-MM-dd") |
| | | // @ApiModelProperty(value = "æ°å¢æ¶é´") |
| | | // private Date addTime; |
| | | // |
| | | // /** |
| | | // * ä¿®æ¹ç¨æ·ID |
| | | // */ |
| | | // @Excel(name = "ä¿®æ¹ç¨æ·ID") |
| | | // @ApiModelProperty(value = "ä¿®æ¹ç¨æ·ID") |
| | | // private String modifyUserID; |
| | | // |
| | | // /** |
| | | // * ä¿®æ¹æ¶é´ |
| | | // */ |
| | | // @JsonFormat(pattern = "yyyy-MM-dd") |
| | | // @Excel(name = "ä¿®æ¹æ¶é´", width = 30, dateFormat = "yyyy-MM-dd") |
| | | // @ApiModelProperty(value = "ä¿®æ¹æ¶é´") |
| | | // private Date modifyTime; |
| | | |
| | | /** |
| | | * åç»ID |
| | |
| | | @Excel(name = "ç¾ç
å
³èåç§°") |
| | | @ApiModelProperty(value = "ç¾ç
å
³èåç§°") |
| | | private String icd10codename; |
| | | |
| | | /** |
| | | * atuoTaskDayOffset |
| | | */ |
| | | @Excel(name = "atuoTaskDayOffset") |
| | | @ApiModelProperty(value = "atuoTaskDayOffset") |
| | | private Long atuoTaskDayOffset; |
| | | // |
| | | // /** |
| | | // * atuoTaskDayOffset |
| | | // */ |
| | | // @Excel(name = "atuoTaskDayOffset") |
| | | // @ApiModelProperty(value = "atuoTaskDayOffset") |
| | | // private Long atuoTaskDayOffset; |
| | | |
| | | /** |
| | | * é¨é¨ID |
| | |
| | | @ApiModelProperty(value = "é¨é¨åç§°") |
| | | private String deptNames = ""; |
| | | |
| | | /** |
| | | * F_KSDM |
| | | */ |
| | | @Excel(name = "F_KSDM") |
| | | @ApiModelProperty(value = "F_KSDM") |
| | | private String fKsdm; |
| | | // /** |
| | | // * F_KSDM |
| | | // */ |
| | | // @Excel(name = "F_KSDM") |
| | | // @ApiModelProperty(value = "F_KSDM") |
| | | // private String fKsdm; |
| | | |
| | | /** |
| | | * å 餿 è®° |
| | |
| | | @ApiModelProperty(value = "é黿¬¡æ°") |
| | | private Long noVoiceNum = 0L; |
| | | |
| | | /** |
| | | * æ ç¾ |
| | | */ |
| | | @Excel(name = "å
¶å®æ°æ®ï¼åå¨åéï¼") |
| | | @ApiModelProperty(value = "å
¶å®æ°æ®ï¼åå¨åéï¼") |
| | | private String otherdata; |
| | | // /** |
| | | // * æ ç¾ |
| | | // */ |
| | | // @Excel(name = "å
¶å®æ°æ®ï¼åå¨åéï¼") |
| | | // @ApiModelProperty(value = "å
¶å®æ°æ®ï¼åå¨åéï¼") |
| | | // private String otherdata; |
| | | |
| | | /** |
| | | * æ¯å¦å卿ä½ï¼1 æ°å¢ 2ä¿®æ¹ 3å é¤ |
| | |
| | | */ |
| | | @Excel(name = "模æ¿ID ") |
| | | @ApiModelProperty(value = "模æ¿ID") |
| | | private String templateid; |
| | | private Long templateid; |
| | | |
| | | /** |
| | | * 模æ¿åºæ¨¡çåç§° |
| | | */ |
| | | @Excel(name = "模æ¿åºæ¨¡çåç§°") |
| | | private String libtemplatename; |
| | | |
| | | /** |
| | | * 模æ¿åºæ¨¡çID |
| | | */ |
| | | @Excel(name = "模æ¿åºæ¨¡çID") |
| | | private String libtemplateid; |
| | | |
| | | /** |
| | | * 模æ¿åç§° |
| | |
| | | @ApiModelProperty(value = "æ ç¾ä¿¡æ¯") |
| | | private String labelinfo; |
| | | |
| | | /** |
| | | * ç¶æ |
| | | */ |
| | | @Excel(name = "ç¶æ") |
| | | @ApiModelProperty(value = "ç¶æ") |
| | | private Long state; |
| | | // /** |
| | | // * ç¶æ |
| | | // */ |
| | | // @Excel(name = "ç¶æ") |
| | | // @ApiModelProperty(value = "ç¶æ") |
| | | // private Long state; |
| | | |
| | | /** |
| | | * æ°é |
| | |
| | | @ApiModelProperty(value = "ç±»ååç§°") |
| | | private String typename; |
| | | |
| | | /** |
| | | * 0.ä¸ä½¿ç¨æåçä¿¡ 1.ä½¿ç¨æåçä¿¡ |
| | | */ |
| | | @Excel(name = " 0.ä¸ä½¿ç¨æåçä¿¡ 1.ä½¿ç¨æåçä¿¡ ") |
| | | @ApiModelProperty(value = "ç§å®¤åç§°") |
| | | private Long usebqsms; |
| | | |
| | | /** |
| | | * 0.ä¸ä½¿ç¨æåçä¿¡ 1.ä½¿ç¨æåçä¿¡ |
| | | * ç±»ååç§° |
| | | */ |
| | | @Excel(name = " 0.ä¸ä½¿ç¨æåçä¿¡ 1.ä½¿ç¨æåçä¿¡ ") |
| | | @ApiModelProperty(value = "0.ä¸ä½¿ç¨æåçä¿¡ 1.ä½¿ç¨æåçä¿¡ ") |
| | | private Long usebhsms; |
| | | @Excel(name = "åéæ¶é´æ®µ") |
| | | @ApiModelProperty(value = "åéæ¶é´æ®µ") |
| | | private String sendTimeSlot; |
| | | |
| | | /** |
| | | * 0.ä¸ä½¿ç¨æåçä¿¡ 1.ä½¿ç¨æåçä¿¡ |
| | | */ |
| | | @Excel(name = " 0.ä¸ä½¿ç¨æåçä¿¡ 1.ä½¿ç¨æåçä¿¡ ") |
| | | @ApiModelProperty(value = " 0.ä¸ä½¿ç¨æåçä¿¡ 1.ä½¿ç¨æåçä¿¡ ") |
| | | private Long usesendsms; |
| | | // /** |
| | | // * 0.ä¸ä½¿ç¨æåçä¿¡ 1.ä½¿ç¨æåçä¿¡ |
| | | // */ |
| | | // @Excel(name = " 0.ä¸ä½¿ç¨æåçä¿¡ 1.ä½¿ç¨æåçä¿¡ ") |
| | | // @ApiModelProperty(value = "ç§å®¤åç§°") |
| | | // private Long usebqsms; |
| | | // |
| | | // /** |
| | | // * 0.ä¸ä½¿ç¨æåçä¿¡ 1.ä½¿ç¨æåçä¿¡ |
| | | // */ |
| | | // @Excel(name = " 0.ä¸ä½¿ç¨æåçä¿¡ 1.ä½¿ç¨æåçä¿¡ ") |
| | | // @ApiModelProperty(value = "0.ä¸ä½¿ç¨æåçä¿¡ 1.ä½¿ç¨æåçä¿¡ ") |
| | | // private Long usebhsms; |
| | | // |
| | | // /** |
| | | // * 0.ä¸ä½¿ç¨æåçä¿¡ 1.ä½¿ç¨æåçä¿¡ |
| | | // */ |
| | | // @Excel(name = " 0.ä¸ä½¿ç¨æåçä¿¡ 1.ä½¿ç¨æåçä¿¡ ") |
| | | // @ApiModelProperty(value = " 0.ä¸ä½¿ç¨æåçä¿¡ 1.ä½¿ç¨æåçä¿¡ ") |
| | | // private Long usesendsms; |
| | | |
| | | /** |
| | | * é¨é¨code |
| | |
| | | @ApiModelProperty(value = "åéç¶æï¼ 1å建 2æ§è¡ä¸ 3 æå 4ç»æ¢ 5宿 ") |
| | | private String sendState; |
| | | |
| | | /** |
| | | * ææ¬åéåæ° |
| | | */ |
| | | @Excel(name = " ææ¬åéåæ° ") |
| | | @ApiModelProperty(value = "ææ¬åéåæ° ") |
| | | private String param; |
| | | // /** |
| | | // * ææ¬åéåæ° |
| | | // */ |
| | | // @Excel(name = " ææ¬åéåæ° ") |
| | | // @ApiModelProperty(value = "ææ¬åéåæ° ") |
| | | // private String param; |
| | | |
| | | /** |
| | | * pageNum |
| | |
| | | @ApiModelProperty(value = "å°±è¯ç±»åï¼1é¨è¯ 2åºé¢ 3.ä¸ç
ï¼") |
| | | private String hospType; |
| | | |
| | | /** |
| | | * å°±è¯ç¼å·ï¼å¯¹åºçouthospnoãinhospnoï¼ |
| | | */ |
| | | @Excel(name = " å°±è¯ç¼å·ï¼å¯¹åºçouthospnoãinhospnoï¼ ") |
| | | @ApiModelProperty(value = "å°±è¯ç¼å·ï¼å¯¹åºçouthospnoãinhospnoï¼") |
| | | private String hospno; |
| | | // /** |
| | | // * å°±è¯ç¼å·ï¼å¯¹åºçouthospnoãinhospnoï¼ |
| | | // */ |
| | | // @Excel(name = " å°±è¯ç¼å·ï¼å¯¹åºçouthospnoãinhospnoï¼ ") |
| | | // @ApiModelProperty(value = "å°±è¯ç¼å·ï¼å¯¹åºçouthospnoãinhospnoï¼") |
| | | // private String hospno; |
| | | |
| | | /** |
| | | * ä»»å¡æè¿° |
| | |
| | | @Excel(name = "ä»»å¡æè¿°") |
| | | @ApiModelProperty(value = "ä»»å¡æè¿°") |
| | | private String taskDesc; |
| | | |
| | | /** |
| | | * æåç¶æ ï¼ ç¶æå¦æåçä¿®æ¹ï¼å¼å°±å 1 |
| | | */ |
| | | @Excel(name = "æåç¶æ ï¼ ç¶æå¦æåçä¿®æ¹ï¼å¼å°±å 1") |
| | | @ApiModelProperty(value = "æåç¶æ ï¼ ç¶æå¦æåçä¿®æ¹ï¼å¼å°±å 1") |
| | | private Long stopState = 0L; |
| | | } |
| | |
| | | import java.util.Date; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import com.ruoyi.common.annotation.Excel; |
| | |
| | | * @author ruoyi |
| | | * @date 2024-02-02 |
| | | */ |
| | | @ApiModel(value = "IvrTaskSingle", description = "åä¸é访任å¡") |
| | | @Data |
| | | public class IvrTaskSingle extends BaseEntity { |
| | | @ApiModelProperty(value = "åä¸ä»»å¡ï¼é访ï¼") |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | |
| | | */ |
| | | @Excel(name = " 模æ¿ID") |
| | | @ApiModelProperty(value = "模æ¿ID") |
| | | private String templateid; |
| | | private Long templateid; |
| | | |
| | | /** |
| | | * 模æ¿å |
| | |
| | | private Date finishtime; |
| | | |
| | | /** |
| | | * ç¨æ·ID |
| | | */ |
| | | @Excel(name = " ç¨æ·ID ") |
| | | @ApiModelProperty(value = "ç¨æ·ID") |
| | | private String userid; |
| | | |
| | | /** |
| | | * ç¨æ·å |
| | | */ |
| | | @Excel(name = " ç¨æ·å ") |
| | | @ApiModelProperty(value = "ç¨æ·å") |
| | | private String username; |
| | | |
| | | /** |
| | | * å°±è¯è®°å½ç¼å· |
| | | */ |
| | | @Excel(name = " å°±è¯è®°å½ç¼å· ") |
| | | @ApiModelProperty(value = "å°±è¯è®°å½ç¼å·") |
| | | private Long recordid; |
| | | |
| | | /** |
| | | * éæ¨æ»æ° |
| | | */ |
| | | @Excel(name = " éæ¨æ»æ° ") |
| | | @ApiModelProperty(value = "éæ¨æ»æ°") |
| | | private Long recallcount; |
| | | |
| | | /** |
| | | * å½åéæ¨æ¬¡æ° |
| | |
| | | @Excel(name = " æåæ¶é´ ", width = 30, dateFormat = "yyyy-MM-dd") |
| | | @ApiModelProperty(value = "æåæ¶é´") |
| | | private Date pulltime; |
| | | |
| | | /** |
| | | * bqsms |
| | | */ |
| | | @Excel(name = " bqsms ") |
| | | @ApiModelProperty(value = "bqsms") |
| | | private Long bqsms; |
| | | |
| | | /** |
| | | * bhsms |
| | | */ |
| | | @Excel(name = " bhsms ") |
| | | @ApiModelProperty(value = "bhsms") |
| | | private Long bhsms; |
| | | |
| | | /** |
| | | * é¨é¨code |
| | |
| | | private String bedNo; |
| | | |
| | | /** |
| | | * ç¾ç
åç§° |
| | | */ |
| | | @Excel(name = "ç¾ç
åç§°") |
| | | @ApiModelProperty(value = "ç¾ç
åç§°") |
| | | private String icdName; |
| | | |
| | | /** |
| | | * ç
åå· |
| | | */ |
| | | @Excel(name = "ç
åå·") |
| | | @ApiModelProperty(value = "ç
åå·") |
| | | private String medicalRecordNo; |
| | | |
| | | /** |
| | | * 宣æå
容 |
| | | */ |
| | | @Excel(name = "宣æå
容") |
| | | @ApiModelProperty(value = "宣æå
容") |
| | | private String preachcontent; |
| | | |
| | | /** |
| | | * pageNum |
| | | */ |
| | | @Excel(name = "pageNum") |
| | |
| | | */ |
| | | @ApiModelProperty(value = "åéç±»å: 1 æ¶é´æ®µ 2 æ¶é´ç¹ 3 å³å»åé") |
| | | private String sendType; |
| | | |
| | | |
| | | /** |
| | | * åéæ¶é´æ®µ |
| | | */ |
| | | @Excel(name = "åéæ¶é´æ®µ") |
| | | @ApiModelProperty(value = "åéæ¶é´æ®µ") |
| | | private String sendTimeSlot; |
| | | |
| | | /** |
| | | * ä»»å¡åç§° |
| | |
| | | @ApiModelProperty(value = "ç
æ¿å·") |
| | | private String roomno; |
| | | |
| | | /** |
| | | * 模æ¿åºæ¨¡çID |
| | | */ |
| | | @Excel(name = "模æ¿åºæ¨¡çID") |
| | | @ApiModelProperty(value = "模æ¿åºæ¨¡çID") |
| | | private Long libtemplateid; |
| | | |
| | | /** |
| | | * 模æ¿åºæ¨¡çåç§° |
| | | */ |
| | | @Excel(name = "模æ¿åºæ¨¡çåç§°") |
| | | @ApiModelProperty(value = "模æ¿åºæ¨¡çåç§°") |
| | | private String libtemplatename; |
| | | |
| | | |
| | | } |
| | |
| | | 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; |
| | | |
| | |
| | | * @author ruoyi |
| | | * @date 2024-02-02 |
| | | */ |
| | | @ApiModel(value = "IvrTaskSingleVO", description = "åä¸é访任å¡å
¥å") |
| | | @Data |
| | | public class IvrTaskSingleVO extends BaseEntity { |
| | | private static final long serialVersionUID = 1L; |
| | |
| | | */ |
| | | @Excel(name = " 模æ¿ID") |
| | | @ApiModelProperty(value = "模æ¿ID") |
| | | private String templateid; |
| | | private Long templateid; |
| | | |
| | | /** |
| | | * 模æ¿ID |
| | | */ |
| | | @Excel(name = " 模çåºæ¨¡æ¿ID") |
| | | @ApiModelProperty(value = "模çåºæ¨¡æ¿ID") |
| | | private Long libtemplateid; |
| | | |
| | | /** |
| | | * 模æ¿ID |
| | | */ |
| | | @Excel(name = " 模æ¿åºæ¨¡æ¿åç§°") |
| | | @ApiModelProperty(value = "模æ¿åºæ¨¡æ¿åç§°") |
| | | private String libtemplatename; |
| | | |
| | | /** |
| | | * 模æ¿å |
| | |
| | | * åéç¶æ |
| | | */ |
| | | @Excel(name = " åéç¶æ ") |
| | | @ApiModelProperty(value = "åéç¶æ ï¼1 å¼å§ 2 䏿¢ 3 ç»æ") |
| | | @ApiModelProperty(value = "åéç¶æ : 1æ°å»º 2æ§è¡ä¸ 3æå 4ç»æ¢ 5宿") |
| | | private Long sendstate; |
| | | |
| | | /** |
| | | * åéUUID |
| | | */ |
| | | @Excel(name = " åéUUID ") |
| | | @ApiModelProperty(value = "åéUUID") |
| | | private String senduuid; |
| | | |
| | | /** |
| | | * ç»æ |
| | |
| | | @ApiModelProperty(value = "宿æ¶é´") |
| | | private Date finishtime; |
| | | |
| | | /** |
| | | * ç¨æ·ID |
| | | */ |
| | | @Excel(name = " ç¨æ·ID ") |
| | | @ApiModelProperty(value = "ç¨æ·ID") |
| | | private String userid; |
| | | |
| | | /** |
| | | * ç¨æ·å |
| | | */ |
| | | @Excel(name = " ç¨æ·å ") |
| | | @ApiModelProperty(value = "ç¨æ·å") |
| | | private String username; |
| | | |
| | | |
| | | /** |
| | | * å°±è¯è®°å½ç¼å· |
| | |
| | | @ApiModelProperty(value = "å°±è¯è®°å½ç¼å·") |
| | | private Long recordid; |
| | | |
| | | /** |
| | | * éæ¨æ»æ° |
| | | */ |
| | | @Excel(name = " éæ¨æ»æ° ") |
| | | @ApiModelProperty(value = "éæ¨æ»æ°") |
| | | private Long recallcount; |
| | | |
| | | /** |
| | | * å½åéæ¨æ¬¡æ° |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | 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 java.util.Date; |
| | | |
| | | /** |
| | | * é访任å¡é访模æ¿åºå¯¹è±¡ ivr_task_template |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-05-13 |
| | | */ |
| | | @Data |
| | | @ApiModel(value = "IvrTaskTemplate", description = "é访任å¡é访模æ¿åºå¯¹è±¡") |
| | | public class IvrTaskTemplate extends BaseEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * ä¸»é® |
| | | */ |
| | | @ApiModelProperty(value = "主é®") |
| | | private Long ID; |
| | | |
| | | /** |
| | | * ä»»å¡id |
| | | */ |
| | | @Excel(name = "ä»»å¡id") |
| | | @ApiModelProperty(value = "ä»»å¡id") |
| | | private Long taskid; |
| | | |
| | | /** |
| | | * ä»»å¡åç§° |
| | | */ |
| | | @Excel(name = "ä»»å¡åç§°") |
| | | @ApiModelProperty(value = "ä»»å¡åç§°") |
| | | private String taskname; |
| | | |
| | | /** |
| | | * ææ id |
| | | */ |
| | | @Excel(name = "ææ id") |
| | | @ApiModelProperty(value = "ææ id") |
| | | private Long targetid; |
| | | |
| | | /** |
| | | * ææ å |
| | | */ |
| | | @Excel(name = "ææ å") |
| | | @ApiModelProperty(value = "ææ å") |
| | | private String targetname; |
| | | |
| | | /** |
| | | * 模æ¿ID |
| | | */ |
| | | @Excel(name = "模æ¿ID") |
| | | @ApiModelProperty(value = "模æ¿ID") |
| | | private String templateName; |
| | | |
| | | /** |
| | | * æ²é»æ¶é´ |
| | | */ |
| | | @Excel(name = "æ²é»æ¶é´") |
| | | @ApiModelProperty(value = "æ²é»æ¶é´") |
| | | private Long silencetime; |
| | | |
| | | /** |
| | | * å
è®¸éæ¨æ¬¡æ° |
| | | */ |
| | | @Excel(name = "å
è®¸éæ¨æ¬¡æ°") |
| | | @ApiModelProperty(value = "å
è®¸éæ¨æ¬¡æ°") |
| | | private Long recallcount; |
| | | |
| | | /** |
| | | * æ²é»æç»æ¶é´ |
| | | */ |
| | | @Excel(name = "æ²é»æç»æ¶é´") |
| | | @ApiModelProperty(value = "æ²é»æç»æ¶é´") |
| | | private Long slienceRepeatTimes; |
| | | |
| | | /** |
| | | * æ å¹é
æ¶é´ |
| | | */ |
| | | @Excel(name = "æ å¹é
æ¶é´") |
| | | @ApiModelProperty(value = "æ å¹é
æ¶é´") |
| | | private Long nomatchRepeatTimes; |
| | | |
| | | /** |
| | | * ç¬¬ä¸æ¬¡é®é¢ç¼å· |
| | | */ |
| | | @Excel(name = "ç¬¬ä¸æ¬¡é®é¢ç¼å·") |
| | | @ApiModelProperty(value = "ç¬¬ä¸æ¬¡é®é¢ç¼å·") |
| | | private Long firstQuestionNum; |
| | | |
| | | /** |
| | | * éç¨å¹é
è¯æ¯ |
| | | */ |
| | | @Excel(name = "éç¨å¹é
è¯æ¯") |
| | | @ApiModelProperty(value = "éç¨å¹é
è¯æ¯") |
| | | private String submodule; |
| | | |
| | | /** |
| | | * è¯è¨ |
| | | */ |
| | | @Excel(name = "è¯è¨") |
| | | @ApiModelProperty(value = "è¯è¨") |
| | | private String language; |
| | | |
| | | /** |
| | | * æè¿° |
| | | */ |
| | | @Excel(name = "æè¿°") |
| | | @ApiModelProperty(value = "æè¿°") |
| | | private String note; |
| | | |
| | | /** |
| | | * åå¤ï¼æé®é¢çåå¤ï¼ç»é®çé¢ç¨çï¼ |
| | | */ |
| | | @Excel(name = "åå¤", readConverterExp = "æ=é®é¢çåå¤ï¼ç»é®çé¢ç¨ç") |
| | | @ApiModelProperty(value = "åå¤ï¼æé®é¢çåå¤ï¼ç»é®çé¢ç¨çï¼") |
| | | private String reply; |
| | | |
| | | /** |
| | | * å¼ç±»åï¼1 é项 2 ææ¬ 3 æ°å¼ï¼ |
| | | */ |
| | | @Excel(name = "å¼ç±»å", readConverterExp = "1=,é=项,2=,æ=æ¬,3=,æ°=å¼") |
| | | @ApiModelProperty(value = "å¼ç±»åï¼1 é项 2 ææ¬ 3 æ°å¼ï¼") |
| | | private Long valueType; |
| | | |
| | | /** |
| | | * æ°å¢ç¨æ·ID |
| | | */ |
| | | @Excel(name = "æ°å¢ç¨æ·ID") |
| | | @ApiModelProperty(value = "æ°å¢ç¨æ·ID") |
| | | private String addUserID; |
| | | |
| | | /** |
| | | * æ°å¢æ¶é´ |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @Excel(name = "æ°å¢æ¶é´", width = 30, dateFormat = "yyyy-MM-dd") |
| | | @ApiModelProperty(value = "æ°å¢æ¶é´") |
| | | private Date addTime; |
| | | |
| | | /** |
| | | * ä¿®æ¹ç¨æ·ID |
| | | */ |
| | | @Excel(name = "ä¿®æ¹ç¨æ·ID") |
| | | @ApiModelProperty(value = "ä¿®æ¹ç¨æ·ID") |
| | | private String modifyUserID; |
| | | |
| | | /** |
| | | * ä¿®æ¹æ¶é´ |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @Excel(name = "ä¿®æ¹æ¶é´", width = 30, dateFormat = "yyyy-MM-dd") |
| | | @ApiModelProperty(value = "ä¿®æ¹æ¶é´") |
| | | private Date modifyTime; |
| | | |
| | | /** |
| | | * åç»ID |
| | | */ |
| | | @Excel(name = "åç»ID") |
| | | @ApiModelProperty(value = "åç»ID") |
| | | private String groupID; |
| | | |
| | | /** |
| | | * æ ç¾ä¿¡æ¯ |
| | | */ |
| | | @Excel(name = "æ ç¾ä¿¡æ¯") |
| | | @ApiModelProperty(value = "æ ç¾ä¿¡æ¯") |
| | | private String labelInfo; |
| | | |
| | | /** |
| | | * éç¨å¹é
è¯æ¯idï¼éç¨æ¨¡æ¿IDï¼ |
| | | */ |
| | | @Excel(name = "éç¨å¹é
è¯æ¯id", readConverterExp = "é=ç¨æ¨¡æ¿ID") |
| | | @ApiModelProperty(value = "éç¨å¹é
è¯æ¯idï¼éç¨æ¨¡æ¿IDï¼") |
| | | private String submoduleID; |
| | | |
| | | /** |
| | | * ææ¥ç±»å 0.è¯é³ä¼å
1.æåä¼å
|
| | | */ |
| | | @Excel(name = "ææ¥ç±»å 0.è¯é³ä¼å
1.æåä¼å
") |
| | | @ApiModelProperty(value = "ææ¥ç±»å 0.è¯é³ä¼å
1.æåä¼å
") |
| | | private Long playType; |
| | | |
| | | /** |
| | | * ç¾ç
å
³è |
| | | */ |
| | | @Excel(name = "ç¾ç
å
³è") |
| | | @ApiModelProperty(value = "ç¾ç
å
³è") |
| | | private String icd10code; |
| | | |
| | | /** |
| | | * ç¾ç
å
³èåç§° |
| | | */ |
| | | @Excel(name = "ç¾ç
å
³èåç§°") |
| | | @ApiModelProperty(value = "ç¾ç
å
³èåç§°") |
| | | private String icd10codename; |
| | | |
| | | /** |
| | | * atuoTaskDayOffset |
| | | */ |
| | | @Excel(name = "atuoTaskDayOffset") |
| | | @ApiModelProperty(value = "atuoTaskDayOffset") |
| | | private Long atuoTaskDayOffset; |
| | | |
| | | /** |
| | | * é¨é¨ID |
| | | */ |
| | | @Excel(name = "é¨é¨ID") |
| | | @ApiModelProperty(value = "é¨é¨ID") |
| | | private String deptIds; |
| | | |
| | | /** |
| | | * é¨é¨åç§° |
| | | */ |
| | | @Excel(name = "é¨é¨åç§°") |
| | | @ApiModelProperty(value = "é¨é¨åç§°") |
| | | private String deptNames; |
| | | |
| | | /** |
| | | * F_KSDM |
| | | */ |
| | | @Excel(name = "F_KSDM") |
| | | @ApiModelProperty(value = "ç§å®¤ä»£ç ") |
| | | private String fKsdm; |
| | | |
| | | /** |
| | | * å 餿 è®° |
| | | */ |
| | | @ApiModelProperty(value = "å 餿 è®°") |
| | | private String delFlag; |
| | | |
| | | /** |
| | | * ä¸ä¼ æ è®° |
| | | */ |
| | | @Excel(name = " ä¸ä¼ æ è®° ") |
| | | @ApiModelProperty(value = "ä¸ä¼ æ è®°") |
| | | private Long isupload; |
| | | |
| | | /** |
| | | * ä¸ä¼ æ¶é´ |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @Excel(name = " ä¸ä¼ æ¶é´ ", width = 30, dateFormat = "yyyy-MM-dd") |
| | | @ApiModelProperty(value = "ä¸ä¼ æ¶é´") |
| | | private Date uploadTime; |
| | | |
| | | /** |
| | | * æºæID |
| | | */ |
| | | @Excel(name = " æºæID ") |
| | | @ApiModelProperty(value = "æºæID") |
| | | private String orgid; |
| | | |
| | | /** |
| | | * ç¶ID |
| | | */ |
| | | @Excel(name = "ç¶ID") |
| | | @ApiModelProperty(value = "ç¶ID") |
| | | private Long pid; |
| | | |
| | | /** |
| | | * GUID |
| | | */ |
| | | @Excel(name = "GUID") |
| | | @ApiModelProperty(value = "GUID") |
| | | private String guid; |
| | | |
| | | /** |
| | | * åç±»id |
| | | */ |
| | | @Excel(name = "åç±»id") |
| | | @ApiModelProperty(value = "åç±»id") |
| | | private Long assortid; |
| | | |
| | | /** |
| | | * åæ°åé |
| | | */ |
| | | @Excel(name = "åæ°åé") |
| | | @ApiModelProperty(value = "åæ°åé") |
| | | private String parameter; |
| | | |
| | | /** |
| | | * å¯ç¨ç¶æ(0å¯ç¨ 1ä¸å¯ç¨) |
| | | */ |
| | | @Excel(name = "å¯ç¨ç¶æ(0å¯ç¨ 1ä¸å¯ç¨)") |
| | | @ApiModelProperty(value = "å¯ç¨ç¶æ(0å¯ç¨ 1ä¸å¯ç¨)") |
| | | private String usestate; |
| | | |
| | | /** |
| | | * çæ¬å· |
| | | */ |
| | | @Excel(name = "çæ¬å·") |
| | | @ApiModelProperty(value = "çæ¬å·") |
| | | private String version; |
| | | |
| | | /** |
| | | * é¢åº |
| | | */ |
| | | @Excel(name = "é¢åº") |
| | | @ApiModelProperty(value = "é¢åº") |
| | | private String campus; |
| | | |
| | | /** |
| | | * æ ç¾ |
| | | */ |
| | | @Excel(name = "æ ç¾") |
| | | @ApiModelProperty(value = "æ ç¾") |
| | | private String tag; |
| | | |
| | | /** |
| | | * éç¨æ¹å¼ï¼è°æ¥è¡¨1ï¼æºè½è¯é³2ã人工3 |
| | | */ |
| | | @Excel(name = "éç¨æ¹å¼ï¼è°æ¥è¡¨1ï¼æºè½è¯é³2ã人工3") |
| | | @ApiModelProperty(value = "éç¨æ¹å¼ï¼è°æ¥è¡¨1ï¼æºè½è¯é³2ã人工3") |
| | | private String suitway; |
| | | |
| | | /** |
| | | * å
¶å®æ°æ®ï¼åå¨åéï¼ |
| | | */ |
| | | @Excel(name = "å
¶å®æ°æ®", readConverterExp = "å=å¨åé") |
| | | @ApiModelProperty(value = "å
¶å®æ°æ®ï¼åå¨åéï¼") |
| | | private String otherdata; |
| | | |
| | | /** |
| | | * æ å¹é
æ¬¡æ° |
| | | */ |
| | | @Excel(name = "æ å¹é
次æ°") |
| | | @ApiModelProperty(value = "æ å¹é
次æ°") |
| | | private Long mateNum; |
| | | |
| | | /** |
| | | * é访å |
| | | */ |
| | | @Excel(name = "é访å") |
| | | @ApiModelProperty(value = "é访å") |
| | | private String revisitBefore; |
| | | |
| | | /** |
| | | * é访å |
| | | */ |
| | | @Excel(name = "é访å") |
| | | @ApiModelProperty(value = "é访å") |
| | | private String revisitAfter; |
| | | |
| | | /** |
| | | * é黿¬¡æ° |
| | | */ |
| | | @Excel(name = "é黿¬¡æ°") |
| | | @ApiModelProperty(value = "é黿¬¡æ°") |
| | | private Long noVoiceNum; |
| | | |
| | | /** |
| | | * å¼åºç½ |
| | | */ |
| | | @Excel(name = "å¼åºç½") |
| | | @ApiModelProperty(value = "å¼åºç½") |
| | | private String prologue; |
| | | |
| | | /** |
| | | * 模æ¿åºæ¨¡çID |
| | | */ |
| | | @Excel(name = "模æ¿åºæ¨¡çID") |
| | | @ApiModelProperty(value = "模æ¿åºæ¨¡çID") |
| | | private String libtemplateid; |
| | | |
| | | /** |
| | | * 模æ¿åºæ¨¡çåç§° |
| | | */ |
| | | @Excel(name = "模æ¿åºæ¨¡çåç§°") |
| | | @ApiModelProperty(value = "模æ¿åºæ¨¡çåç§°") |
| | | private String libtemplatename; |
| | | |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | 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 java.util.Date; |
| | | |
| | | /** |
| | | * éè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åºå¯¹è±¡ ivr_task_template_script |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-05-13 |
| | | */ |
| | | @Data |
| | | @ApiModel(value = "IvrTaskTemplateScript", description = "éè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åºå¯¹è±¡") |
| | | public class IvrTaskTemplateScript extends BaseEntity { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * 主é®ID |
| | | */ |
| | | @ApiModelProperty(value = "主é®") |
| | | private Long ID; |
| | | |
| | | /** |
| | | * ä»»å¡id |
| | | */ |
| | | @Excel(name = "ä»»å¡id") |
| | | @ApiModelProperty(value = "ä»»å¡id") |
| | | private Long taskid; |
| | | |
| | | /** |
| | | * 模æ¿è¯æ¯ç¼å· |
| | | */ |
| | | @Excel(name = "模æ¿è¯æ¯ç¼å·") |
| | | @ApiModelProperty(value = "模æ¿è¯æ¯ç¼å·") |
| | | private Long templateQuestionNum; |
| | | |
| | | /** |
| | | * 模æ¿ID |
| | | */ |
| | | @Excel(name = "模æ¿ID") |
| | | @ApiModelProperty(value = "模æ¿ID") |
| | | private Long templateID; |
| | | |
| | | /** |
| | | * è¯æ¯ID |
| | | */ |
| | | @Excel(name = "è¯æ¯ID") |
| | | @ApiModelProperty(value = "è¯æ¯ID") |
| | | private Long scriptID; |
| | | |
| | | /** |
| | | * é®é¢ç¹ |
| | | */ |
| | | @Excel(name = "é®é¢ç¹") |
| | | @ApiModelProperty(value = "é®é¢ç¹") |
| | | private String questionPoint; |
| | | |
| | | /** |
| | | * è¯æ¯å
容 |
| | | */ |
| | | @Excel(name = "è¯æ¯å
容") |
| | | @ApiModelProperty(value = "è¯æ¯å
容") |
| | | private String questionText; |
| | | |
| | | /** |
| | | * è¯æ¯è¯é³ |
| | | */ |
| | | @Excel(name = "è¯æ¯è¯é³") |
| | | @ApiModelProperty(value = "è¯æ¯è¯é³") |
| | | private String questionVoice; |
| | | |
| | | /** |
| | | * æ å¹é
è¯æ¯ |
| | | */ |
| | | @Excel(name = "æ å¹é
è¯æ¯") |
| | | @ApiModelProperty(value = "æ å¹é
è¯æ¯") |
| | | private String noMatchText; |
| | | |
| | | /** |
| | | * æ å¹é
è¯æ¯è¯é³ |
| | | */ |
| | | @Excel(name = "æ å¹é
è¯æ¯è¯é³") |
| | | @ApiModelProperty(value = "æ å¹é
è¯æ¯è¯é³") |
| | | private String noMatchVoice; |
| | | |
| | | /** |
| | | * éé»è¯æ¯ |
| | | */ |
| | | @Excel(name = "éé»è¯æ¯") |
| | | @ApiModelProperty(value = "éé»è¯æ¯") |
| | | private String slienceText; |
| | | |
| | | /** |
| | | * éé»è¯æ¯è¯é³ |
| | | */ |
| | | @Excel(name = "éé»è¯æ¯è¯é³") |
| | | @ApiModelProperty(value = "éé»è¯æ¯è¯é³") |
| | | private String slienceVoice; |
| | | |
| | | /** |
| | | * éç¨åºå¹é
åè¯æ¯ |
| | | */ |
| | | @Excel(name = "éç¨åºå¹é
åè¯æ¯") |
| | | @ApiModelProperty(value = "éç¨åºå¹é
åè¯æ¯") |
| | | private String submoduleText; |
| | | |
| | | /** |
| | | * éç¨åºå¹é
åè¯æ¯è¯é³ |
| | | */ |
| | | @Excel(name = "éç¨åºå¹é
åè¯æ¯è¯é³") |
| | | @ApiModelProperty(value = "éç¨åºå¹é
åè¯æ¯è¯é³") |
| | | private String submoduleVoice; |
| | | |
| | | /** |
| | | * å¬ä¸æ¸
è¯æ¯ |
| | | */ |
| | | @Excel(name = "å¬ä¸æ¸
è¯æ¯") |
| | | @ApiModelProperty(value = "å¬ä¸æ¸
è¯æ¯") |
| | | private String noClearlyText; |
| | | |
| | | /** |
| | | * å¬ä¸æ¸
è¯æ¯è¯é³ |
| | | */ |
| | | @Excel(name = "å¬ä¸æ¸
è¯æ¯è¯é³") |
| | | @ApiModelProperty(value = "å¬ä¸æ¸
è¯æ¯è¯é³") |
| | | private String noClearlyVoice; |
| | | |
| | | /** |
| | | * ç±»å«å |
| | | */ |
| | | @Excel(name = "ç±»å«å") |
| | | @ApiModelProperty(value = "ç±»å«å") |
| | | private String categoryName; |
| | | |
| | | /** |
| | | * ææ é项 |
| | | */ |
| | | @Excel(name = "ææ é项") |
| | | @ApiModelProperty(value = "ææ é项") |
| | | private String targetOptions; |
| | | |
| | | /** |
| | | * è¯è¨ |
| | | */ |
| | | @Excel(name = "è¯è¨") |
| | | @ApiModelProperty(value = "è¯è¨") |
| | | private String language; |
| | | |
| | | /** |
| | | * åªè½ææ¾WAVç±»å |
| | | */ |
| | | @Excel(name = "åªè½ææ¾WAVç±»å") |
| | | @ApiModelProperty(value = "åªè½ææ¾WAVç±»å") |
| | | private Long playWavOnly; |
| | | |
| | | /** |
| | | * å¼ç±»åï¼1 é项 2 ææ¬ 3 æ°å¼ï¼ |
| | | */ |
| | | @Excel(name = "å¼ç±»å", readConverterExp = "å¼ç±»åï¼1 é项 2 ææ¬ 3 æ°å¼ï¼") |
| | | @ApiModelProperty(value = "主é®") |
| | | private Long valueType; |
| | | |
| | | /** |
| | | * å 餿 è®° |
| | | */ |
| | | @ApiModelProperty(value = "å 餿 è®°") |
| | | private String delFlag; |
| | | |
| | | /** |
| | | * ä¸ä¼ æ è®° |
| | | */ |
| | | @Excel(name = " ä¸ä¼ æ è®° ") |
| | | @ApiModelProperty(value = "ä¸ä¼ æ è®°") |
| | | private Long isupload; |
| | | |
| | | /** |
| | | * ä¸ä¼ æ¶é´ |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @Excel(name = " ä¸ä¼ æ¶é´ ", width = 30, dateFormat = "yyyy-MM-dd") |
| | | @ApiModelProperty(value = "ä¸ä¼ æ¶é´") |
| | | private Date uploadTime; |
| | | |
| | | /** |
| | | * æºæID |
| | | */ |
| | | @Excel(name = " æºæID ") |
| | | @ApiModelProperty(value = "æºæID") |
| | | private String orgid; |
| | | |
| | | /** |
| | | * ç¶ID |
| | | */ |
| | | @Excel(name = "ç¶ID") |
| | | @ApiModelProperty(value = "ç¶ID") |
| | | private Long pid; |
| | | |
| | | /** |
| | | * GUID |
| | | */ |
| | | @Excel(name = "GUID") |
| | | @ApiModelProperty(value = "GUID") |
| | | private String guid; |
| | | |
| | | /** |
| | | * åºç¡ææ ç±»å |
| | | */ |
| | | @Excel(name = "åºç¡ææ ç±»å") |
| | | @ApiModelProperty(value = "åºç¡ææ ç±»å") |
| | | private String targettype; |
| | | |
| | | /** |
| | | * åºç¡ææ ID(ææ¶å½åºå·id) |
| | | */ |
| | | @Excel(name = "åºç¡ææ ID(ææ¶å½åºå·id)") |
| | | @ApiModelProperty(value = "åºç¡ææ ID(ææ¶å½åºå·id)") |
| | | private Long targetid; |
| | | |
| | | /** |
| | | * åºç¡ææ å¼ |
| | | */ |
| | | @Excel(name = "åºç¡ææ å¼") |
| | | @ApiModelProperty(value = "åºç¡ææ å¼") |
| | | private String targetvalue; |
| | | |
| | | /** |
| | | * æ é¢ |
| | | */ |
| | | @Excel(name = "æ é¢") |
| | | @ApiModelProperty(value = "æ é¢") |
| | | private String questiontitle; |
| | | |
| | | /** |
| | | * ä¸ä¸é¢ |
| | | */ |
| | | @Excel(name = "ä¸ä¸é¢") |
| | | @ApiModelProperty(value = "ä¸ä¸é¢") |
| | | private Long nextQuestion; |
| | | |
| | | /** |
| | | * å
¶å®æ°æ®ï¼åå¨åéï¼ |
| | | */ |
| | | @Excel(name = "å
¶å®æ°æ®", readConverterExp = "å=å¨åé") |
| | | @ApiModelProperty(value = "å
¶å®æ°æ®ï¼åå¨åéï¼") |
| | | private String otherdata; |
| | | |
| | | /** |
| | | * æ¯å¦å¿
å¡«,1:å¿
å¡« 2ï¼å¯ä»¥ä¸å¡« ï¼ç»äººå·¥ç¨çï¼AIä¸ç¨éµå®ï¼ |
| | | */ |
| | | @Excel(name = "æ¯å¦å¿
å¡«,1:å¿
å¡« 2ï¼å¯ä»¥ä¸å¡« ", readConverterExp = "ç»=人工ç¨çï¼AIä¸ç¨éµå®") |
| | | @ApiModelProperty(value = "æ¯å¦å¿
å¡«,1:å¿
å¡« 2ï¼å¯ä»¥ä¸å¡« ï¼ç»äººå·¥ç¨çï¼AIä¸ç¨éµå®ï¼") |
| | | private String isMust; |
| | | |
| | | /** |
| | | * é®é¢ç»æï¼ç»âå¼ç±»åâæ¯ææ¬æè
æ°å¼ç¨çï¼ |
| | | */ |
| | | @Excel(name = "é®é¢ç»æ", readConverterExp = "ç»=âå¼ç±»åâæ¯ææ¬æè
æ°å¼ç¨ç") |
| | | @ApiModelProperty(value = "é®é¢ç»æï¼ç»âå¼ç±»åâæ¯ææ¬æè
æ°å¼ç¨çï¼") |
| | | private String questionResult; |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | 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 java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * éè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åºå¯¹è±¡ ivr_task_template_script |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-05-13 |
| | | */ |
| | | @Data |
| | | @ApiModel(value = "IvrTaskTemplateScriptVO", description = "éè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åºå¯¹è±¡") |
| | | public class IvrTaskTemplateScriptVO extends BaseEntity { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * 主é®ID |
| | | */ |
| | | @ApiModelProperty(value = "主é®") |
| | | private Long ID; |
| | | |
| | | /** |
| | | * ä»»å¡id |
| | | */ |
| | | @Excel(name = "ä»»å¡id") |
| | | @ApiModelProperty(value = "ä»»å¡id") |
| | | private Long taskid; |
| | | |
| | | /** |
| | | * 模æ¿è¯æ¯ç¼å· |
| | | */ |
| | | @Excel(name = "模æ¿è¯æ¯ç¼å·") |
| | | @ApiModelProperty(value = "模æ¿è¯æ¯ç¼å·") |
| | | private Long templateQuestionNum; |
| | | |
| | | /** |
| | | * 模æ¿ID |
| | | */ |
| | | @Excel(name = "模æ¿ID") |
| | | @ApiModelProperty(value = "模æ¿ID") |
| | | private Long templateID; |
| | | |
| | | /** |
| | | * è¯æ¯ID |
| | | */ |
| | | @Excel(name = "è¯æ¯ID") |
| | | @ApiModelProperty(value = "è¯æ¯ID") |
| | | private Long scriptID; |
| | | |
| | | /** |
| | | * é®é¢ç¹ |
| | | */ |
| | | @Excel(name = "é®é¢ç¹") |
| | | @ApiModelProperty(value = "é®é¢ç¹") |
| | | private String questionPoint; |
| | | |
| | | /** |
| | | * è¯æ¯å
容 |
| | | */ |
| | | @Excel(name = "è¯æ¯å
容") |
| | | @ApiModelProperty(value = "è¯æ¯å
容") |
| | | private String questionText; |
| | | |
| | | /** |
| | | * è¯æ¯è¯é³ |
| | | */ |
| | | @Excel(name = "è¯æ¯è¯é³") |
| | | @ApiModelProperty(value = "è¯æ¯è¯é³") |
| | | private String questionVoice; |
| | | |
| | | /** |
| | | * æ å¹é
è¯æ¯ |
| | | */ |
| | | @Excel(name = "æ å¹é
è¯æ¯") |
| | | @ApiModelProperty(value = "æ å¹é
è¯æ¯") |
| | | private String noMatchText; |
| | | |
| | | /** |
| | | * æ å¹é
è¯æ¯è¯é³ |
| | | */ |
| | | @Excel(name = "æ å¹é
è¯æ¯è¯é³") |
| | | @ApiModelProperty(value = "æ å¹é
è¯æ¯è¯é³") |
| | | private String noMatchVoice; |
| | | |
| | | /** |
| | | * éé»è¯æ¯ |
| | | */ |
| | | @Excel(name = "éé»è¯æ¯") |
| | | @ApiModelProperty(value = "éé»è¯æ¯") |
| | | private String slienceText; |
| | | |
| | | /** |
| | | * éé»è¯æ¯è¯é³ |
| | | */ |
| | | @Excel(name = "éé»è¯æ¯è¯é³") |
| | | @ApiModelProperty(value = "éé»è¯æ¯è¯é³") |
| | | private String slienceVoice; |
| | | |
| | | /** |
| | | * éç¨åºå¹é
åè¯æ¯ |
| | | */ |
| | | @Excel(name = "éç¨åºå¹é
åè¯æ¯") |
| | | @ApiModelProperty(value = "éç¨åºå¹é
åè¯æ¯") |
| | | private String submoduleText; |
| | | |
| | | /** |
| | | * éç¨åºå¹é
åè¯æ¯è¯é³ |
| | | */ |
| | | @Excel(name = "éç¨åºå¹é
åè¯æ¯è¯é³") |
| | | @ApiModelProperty(value = "éç¨åºå¹é
åè¯æ¯è¯é³") |
| | | private String submoduleVoice; |
| | | |
| | | /** |
| | | * å¬ä¸æ¸
è¯æ¯ |
| | | */ |
| | | @Excel(name = "å¬ä¸æ¸
è¯æ¯") |
| | | @ApiModelProperty(value = "å¬ä¸æ¸
è¯æ¯") |
| | | private String noClearlyText; |
| | | |
| | | /** |
| | | * å¬ä¸æ¸
è¯æ¯è¯é³ |
| | | */ |
| | | @Excel(name = "å¬ä¸æ¸
è¯æ¯è¯é³") |
| | | @ApiModelProperty(value = "å¬ä¸æ¸
è¯æ¯è¯é³") |
| | | private String noClearlyVoice; |
| | | |
| | | /** |
| | | * ç±»å«å |
| | | */ |
| | | @Excel(name = "ç±»å«å") |
| | | @ApiModelProperty(value = "ç±»å«å") |
| | | private String categoryName; |
| | | |
| | | /** |
| | | * ææ é项 |
| | | */ |
| | | @Excel(name = "ææ é项") |
| | | @ApiModelProperty(value = "ææ é项") |
| | | private String targetOptions; |
| | | |
| | | /** |
| | | * è¯è¨ |
| | | */ |
| | | @Excel(name = "è¯è¨") |
| | | @ApiModelProperty(value = "è¯è¨") |
| | | private String language; |
| | | |
| | | /** |
| | | * åªè½ææ¾WAVç±»å |
| | | */ |
| | | @Excel(name = "åªè½ææ¾WAVç±»å") |
| | | @ApiModelProperty(value = "åªè½ææ¾WAVç±»å") |
| | | private Long playWavOnly; |
| | | |
| | | /** |
| | | * å¼ç±»åï¼1 é项 2 ææ¬ 3 æ°å¼ï¼ |
| | | */ |
| | | @Excel(name = "å¼ç±»å", readConverterExp = "å¼ç±»åï¼1 é项 2 ææ¬ 3 æ°å¼ï¼") |
| | | @ApiModelProperty(value = "主é®") |
| | | private Long valueType; |
| | | |
| | | /** |
| | | * å 餿 è®° |
| | | */ |
| | | @ApiModelProperty(value = "å 餿 è®°") |
| | | private String delFlag; |
| | | |
| | | /** |
| | | * ä¸ä¼ æ è®° |
| | | */ |
| | | @Excel(name = " ä¸ä¼ æ è®° ") |
| | | @ApiModelProperty(value = "ä¸ä¼ æ è®°") |
| | | private Long isupload; |
| | | |
| | | /** |
| | | * ä¸ä¼ æ¶é´ |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @Excel(name = " ä¸ä¼ æ¶é´ ", width = 30, dateFormat = "yyyy-MM-dd") |
| | | @ApiModelProperty(value = "ä¸ä¼ æ¶é´") |
| | | private Date uploadTime; |
| | | |
| | | /** |
| | | * æºæID |
| | | */ |
| | | @Excel(name = " æºæID ") |
| | | @ApiModelProperty(value = "æºæID") |
| | | private String orgid; |
| | | |
| | | /** |
| | | * ç¶ID |
| | | */ |
| | | @Excel(name = "ç¶ID") |
| | | @ApiModelProperty(value = "ç¶ID") |
| | | private Long pid; |
| | | |
| | | /** |
| | | * GUID |
| | | */ |
| | | @Excel(name = "GUID") |
| | | @ApiModelProperty(value = "GUID") |
| | | private String guid; |
| | | |
| | | /** |
| | | * åºç¡ææ ç±»å |
| | | */ |
| | | @Excel(name = "åºç¡ææ ç±»å") |
| | | @ApiModelProperty(value = "åºç¡ææ ç±»å") |
| | | private String targettype; |
| | | |
| | | /** |
| | | * åºç¡ææ ID(ææ¶å½åºå·id) |
| | | */ |
| | | @Excel(name = "åºç¡ææ ID(ææ¶å½åºå·id)") |
| | | @ApiModelProperty(value = "åºç¡ææ ID(ææ¶å½åºå·id)") |
| | | private Long targetid; |
| | | |
| | | /** |
| | | * åºç¡ææ å¼ |
| | | */ |
| | | @Excel(name = "åºç¡ææ å¼") |
| | | @ApiModelProperty(value = "åºç¡ææ å¼") |
| | | private String targetvalue; |
| | | |
| | | /** |
| | | * æ é¢ |
| | | */ |
| | | @Excel(name = "æ é¢") |
| | | @ApiModelProperty(value = "æ é¢") |
| | | private String questiontitle; |
| | | |
| | | /** |
| | | * ä¸ä¸é¢ |
| | | */ |
| | | @Excel(name = "ä¸ä¸é¢") |
| | | @ApiModelProperty(value = "ä¸ä¸é¢") |
| | | private Long nextQuestion; |
| | | |
| | | /** |
| | | * å
¶å®æ°æ®ï¼åå¨åéï¼ |
| | | */ |
| | | @Excel(name = "å
¶å®æ°æ®", readConverterExp = "å=å¨åé") |
| | | @ApiModelProperty(value = "å
¶å®æ°æ®ï¼åå¨åéï¼") |
| | | private String otherdata; |
| | | |
| | | /** |
| | | * æ¯å¦å¿
å¡«,1:å¿
å¡« 2ï¼å¯ä»¥ä¸å¡« ï¼ç»äººå·¥ç¨çï¼AIä¸ç¨éµå®ï¼ |
| | | */ |
| | | @Excel(name = "æ¯å¦å¿
å¡«,1:å¿
å¡« 2ï¼å¯ä»¥ä¸å¡« ", readConverterExp = "ç»=人工ç¨çï¼AIä¸ç¨éµå®") |
| | | @ApiModelProperty(value = "æ¯å¦å¿
å¡«,1:å¿
å¡« 2ï¼å¯ä»¥ä¸å¡« ï¼ç»äººå·¥ç¨çï¼AIä¸ç¨éµå®ï¼") |
| | | private String isMust; |
| | | |
| | | /** |
| | | * é®é¢ç»æï¼ç»âå¼ç±»åâæ¯ææ¬æè
æ°å¼ç¨çï¼ |
| | | */ |
| | | @Excel(name = "é®é¢ç»æ", readConverterExp = "ç»=âå¼ç±»åâæ¯ææ¬æè
æ°å¼ç¨ç") |
| | | @ApiModelProperty(value = "é®é¢ç»æï¼ç»âå¼ç±»åâæ¯ææ¬æè
æ°å¼ç¨çï¼") |
| | | private String questionResult; |
| | | |
| | | /** |
| | | * æ¯å¦å卿ä½ï¼1 æ°å¢ 2ä¿®æ¹ 3å é¤ |
| | | */ |
| | | @ApiModelProperty(value = "æ¯å¦å卿ä½ï¼1 æ°å¢ 2ä¿®æ¹ 3å é¤") |
| | | private Integer isoperation; |
| | | |
| | | /** |
| | | * è¯æ¯é项 |
| | | */ |
| | | @ApiModelProperty(value = "è¯æ¯é项") |
| | | private List<IvrTaskTemplateTargetoption> ivrTaskScriptTargetoptionList = new ArrayList<>(); |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.domain; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | 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; |
| | | import com.ruoyi.common.core.domain.BaseEntity; |
| | | import org.junit.Ignore; |
| | | |
| | | /** |
| | | * éè®¿ä»»å¡æ¨¡æ¿ææ é项åºå¯¹è±¡ ivr_task_template_targetoption |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-05-13 |
| | | */ |
| | | @Data |
| | | @ApiModel(value = "IvrTaskTemplateTargetoption", description = "éè®¿ä»»å¡æ¨¡æ¿ææ é项åºå¯¹è±¡") |
| | | public class IvrTaskTemplateTargetoption extends BaseEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * ä¸»é® |
| | | */ |
| | | @ApiModelProperty(value = "主é®") |
| | | private Long id; |
| | | |
| | | /** |
| | | * ä»»å¡id |
| | | */ |
| | | @Excel(name = "ä»»å¡id") |
| | | @ApiModelProperty(value = "ä»»å¡id") |
| | | private Long taskid; |
| | | |
| | | /** |
| | | * 模æ¿ID |
| | | */ |
| | | @Excel(name = "模æ¿ID") |
| | | @ApiModelProperty(value = "模æ¿ID") |
| | | private Long templateID; |
| | | |
| | | /** |
| | | * ææ ID |
| | | */ |
| | | @Excel(name = "ææ ID") |
| | | @ApiModelProperty(value = "ææ ID") |
| | | private Long targetid; |
| | | |
| | | /** |
| | | * ææ åç§° |
| | | */ |
| | | @Excel(name = "ææ åç§°") |
| | | @ApiModelProperty(value = "ææ åç§°") |
| | | private String targetname; |
| | | |
| | | /** |
| | | * æ¨¡æ¿ææ ç±»å |
| | | */ |
| | | @Excel(name = "æ¨¡æ¿ææ ç±»å") |
| | | @ApiModelProperty(value = "æ¨¡æ¿ææ ç±»å") |
| | | private String targettype; |
| | | |
| | | /** |
| | | * ç±»å«åç§° |
| | | */ |
| | | @Excel(name = "ç±»å«åç§°") |
| | | @ApiModelProperty(value = "ç±»å«åç§°") |
| | | private String categoryName; |
| | | |
| | | /** |
| | | * æ¨¡æ¿ææ å¼ |
| | | */ |
| | | @Excel(name = "æ¨¡æ¿ææ å¼") |
| | | @ApiModelProperty(value = "æ¨¡æ¿ææ å¼") |
| | | private String targetvalue; |
| | | |
| | | /** |
| | | * æ¨¡æ¿ææ æ£å2 |
| | | */ |
| | | @Excel(name = "æ¨¡æ¿ææ æ£å2") |
| | | @ApiModelProperty(value = "æ¨¡æ¿ææ æ£å2") |
| | | private String targetregex2; |
| | | |
| | | /** |
| | | * æ¨¡æ¿ææ æ£å |
| | | */ |
| | | @Excel(name = "æ¨¡æ¿ææ æ£å") |
| | | @ApiModelProperty(value = "æ¨¡æ¿ææ æ£å") |
| | | private String targetregex; |
| | | |
| | | /** |
| | | * é项æè¿° |
| | | */ |
| | | @Excel(name = "é项æè¿°") |
| | | @ApiModelProperty(value = "é项æè¿°") |
| | | private String optiondesc; |
| | | |
| | | /** |
| | | * è¯è¨ |
| | | */ |
| | | @Excel(name = "è¯è¨") |
| | | @ApiModelProperty(value = "è¯è¨") |
| | | private String language; |
| | | |
| | | /** |
| | | * çæ¬ |
| | | */ |
| | | @Excel(name = "çæ¬") |
| | | @ApiModelProperty(value = "çæ¬") |
| | | private String version; |
| | | |
| | | /** |
| | | * åç»ID |
| | | */ |
| | | @Excel(name = "åç»ID") |
| | | @ApiModelProperty(value = "åç»ID") |
| | | private String groupid; |
| | | |
| | | /** |
| | | * æ¯å¦å¼å¸¸æ è¯ |
| | | */ |
| | | @Excel(name = "æ¯å¦å¼å¸¸æ è¯") |
| | | @ApiModelProperty(value = "æ¯å¦å¼å¸¸æ è¯") |
| | | private Long isabnormal; |
| | | |
| | | /** |
| | | * é¢è¦éå¼ä¸é |
| | | */ |
| | | @Excel(name = "é¢è¦éå¼ä¸é") |
| | | @ApiModelProperty(value = "é¢è¦éå¼ä¸é") |
| | | private Long warnup; |
| | | |
| | | /** |
| | | * é¢è¦éå¼ä¸é |
| | | */ |
| | | @Excel(name = "é¢è¦éå¼ä¸é") |
| | | @ApiModelProperty(value = "é¢è¦éå¼ä¸é") |
| | | private Long warndown; |
| | | |
| | | /** |
| | | * å 餿 è®° |
| | | */ |
| | | @ApiModelProperty(value = "å 餿 è®°") |
| | | private String delFlag; |
| | | |
| | | /** |
| | | * ä¸ä¼ æ è®° |
| | | */ |
| | | @Excel(name = " ä¸ä¼ æ è®° ") |
| | | @ApiModelProperty(value = "ä¸ä¼ æ è®°") |
| | | private Long isupload; |
| | | |
| | | /** |
| | | * ä¸ä¼ æ¶é´ |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @Excel(name = " ä¸ä¼ æ¶é´ ", width = 30, dateFormat = "yyyy-MM-dd") |
| | | @ApiModelProperty(value = "ä¸ä¼ æ¶é´") |
| | | private Date uploadTime; |
| | | |
| | | /** |
| | | * æºæID |
| | | */ |
| | | @Excel(name = " æºæID ") |
| | | @ApiModelProperty(value = "æºæID") |
| | | private String orgid; |
| | | |
| | | /** |
| | | * ç¶ID |
| | | */ |
| | | @Excel(name = "ç¶ID") |
| | | @ApiModelProperty(value = "ç¶ID") |
| | | private Long pid; |
| | | |
| | | /** |
| | | * GUID |
| | | */ |
| | | @Excel(name = "GUID") |
| | | @ApiModelProperty(value = "GUID") |
| | | private String guid; |
| | | |
| | | /** |
| | | * é®é¢id |
| | | */ |
| | | @Excel(name = "é®é¢id") |
| | | @ApiModelProperty(value = "é®é¢id") |
| | | private Long scriptid; |
| | | |
| | | /** |
| | | * æ£åå
³é®å(å«) |
| | | */ |
| | | @Excel(name = "æ£åå
³é®å(å«)") |
| | | @ApiModelProperty(value = "æ£åå
³é®å(å«)") |
| | | private String nodynamiccruxsJson; |
| | | |
| | | |
| | | /** |
| | | * æ£åå
³é®å(ä¸å«) |
| | | */ |
| | | @Excel(name = "æ£åå
³é®å(ä¸å«)") |
| | | @ApiModelProperty(value = "æ£åå
³é®å(ä¸å«)") |
| | | private String dynamiccruxsJson; |
| | | |
| | | |
| | | @ApiModelProperty(value = "æ£åå
³é®å(å«)") |
| | | @Excel(name = "æ£åå
³é®å(å«)") |
| | | private List<String> nodynamiccruxs = new ArrayList<>(); |
| | | |
| | | @ApiModelProperty(value = "æ£åå
³é®å(ä¸å«)") |
| | | @Excel(name = "æ£åå
³é®å(ä¸å«)") |
| | | private List<String> dynamiccruxs= new ArrayList<>(); |
| | | |
| | | /** |
| | | * ä¸ä¸é¢ |
| | | */ |
| | | @Excel(name = "ä¸ä¸é¢") |
| | | @ApiModelProperty(value = "ä¸ä¸é¢") |
| | | private Long nextQuestion; |
| | | |
| | | /** |
| | | * æ¯å¦å卿ä½ï¼1 æ°å¢ 2ä¿®æ¹ 3å é¤ |
| | | */ |
| | | @ApiModelProperty(value = "æ¯å¦å卿ä½ï¼1 æ°å¢ 2ä¿®æ¹ 3å é¤") |
| | | private Integer isoperation; |
| | | |
| | | /** |
| | | * æ¯å¦æ¯ç¨æ·éæ©çé项 |
| | | */ |
| | | @ApiModelProperty(value = "æ¯å¦æ¯ç¨æ·éæ©çé项") |
| | | private Boolean isUserOperation = false; |
| | | |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | 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 java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * é访任å¡é访模æ¿åºå¯¹è±¡ ivr_task_template |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-05-13 |
| | | */ |
| | | @Data |
| | | @ApiModel(value = "IvrTaskTemplateVO", description = "é访任å¡é访模æ¿åºå¯¹è±¡") |
| | | public class IvrTaskTemplateVO extends BaseEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * ä¸»é® |
| | | */ |
| | | @ApiModelProperty(value = "主é®") |
| | | private Long ID; |
| | | |
| | | /** |
| | | * ä»»å¡id |
| | | */ |
| | | @Excel(name = "ä»»å¡id") |
| | | @ApiModelProperty(value = "ä»»å¡id") |
| | | private Long taskid; |
| | | |
| | | /** |
| | | * ä»»å¡åç§° |
| | | */ |
| | | @Excel(name = "ä»»å¡åç§°") |
| | | @ApiModelProperty(value = "ä»»å¡åç§°") |
| | | private String taskname; |
| | | |
| | | /** |
| | | * ææ id |
| | | */ |
| | | @Excel(name = "ææ id") |
| | | @ApiModelProperty(value = "ææ id") |
| | | private Long targetid; |
| | | |
| | | /** |
| | | * ææ å |
| | | */ |
| | | @Excel(name = "ææ å") |
| | | @ApiModelProperty(value = "ææ å") |
| | | private String targetname; |
| | | |
| | | /** |
| | | * 模æ¿ID |
| | | */ |
| | | @Excel(name = "模æ¿ID") |
| | | @ApiModelProperty(value = "模æ¿ID") |
| | | private String templateName; |
| | | |
| | | /** |
| | | * æ²é»æ¶é´ |
| | | */ |
| | | @Excel(name = "æ²é»æ¶é´") |
| | | @ApiModelProperty(value = "æ²é»æ¶é´") |
| | | private Long silencetime; |
| | | |
| | | /** |
| | | * æ²é»æç»æ¶é´ |
| | | */ |
| | | @Excel(name = "æ²é»æç»æ¶é´") |
| | | @ApiModelProperty(value = "æ²é»æç»æ¶é´") |
| | | private Long slienceRepeatTimes; |
| | | |
| | | /** |
| | | * æ å¹é
æ¶é´ |
| | | */ |
| | | @Excel(name = "æ å¹é
æ¶é´") |
| | | @ApiModelProperty(value = "æ å¹é
æ¶é´") |
| | | private Long nomatchRepeatTimes; |
| | | |
| | | /** |
| | | * ç¬¬ä¸æ¬¡é®é¢ç¼å· |
| | | */ |
| | | @Excel(name = "ç¬¬ä¸æ¬¡é®é¢ç¼å·") |
| | | @ApiModelProperty(value = "ç¬¬ä¸æ¬¡é®é¢ç¼å·") |
| | | private Long firstQuestionNum; |
| | | |
| | | /** |
| | | * éç¨å¹é
è¯æ¯ |
| | | */ |
| | | @Excel(name = "éç¨å¹é
è¯æ¯") |
| | | @ApiModelProperty(value = "éç¨å¹é
è¯æ¯") |
| | | private String submodule; |
| | | |
| | | /** |
| | | * è¯è¨ |
| | | */ |
| | | @Excel(name = "è¯è¨") |
| | | @ApiModelProperty(value = "è¯è¨") |
| | | private String language; |
| | | |
| | | /** |
| | | * æè¿° |
| | | */ |
| | | @Excel(name = "æè¿°") |
| | | @ApiModelProperty(value = "æè¿°") |
| | | private String note; |
| | | |
| | | /** |
| | | * åå¤ï¼æé®é¢çåå¤ï¼ç»é®çé¢ç¨çï¼ |
| | | */ |
| | | @Excel(name = "åå¤", readConverterExp = "æ=é®é¢çåå¤ï¼ç»é®çé¢ç¨ç") |
| | | @ApiModelProperty(value = "åå¤ï¼æé®é¢çåå¤ï¼ç»é®çé¢ç¨çï¼") |
| | | private String reply; |
| | | |
| | | /** |
| | | * å¼ç±»åï¼1 é项 2 ææ¬ 3 æ°å¼ï¼ |
| | | */ |
| | | @Excel(name = "å¼ç±»å", readConverterExp = "1=,é=项,2=,æ=æ¬,3=,æ°=å¼") |
| | | @ApiModelProperty(value = "å¼ç±»åï¼1 é项 2 ææ¬ 3 æ°å¼ï¼") |
| | | private Long valueType; |
| | | |
| | | /** |
| | | * æ°å¢ç¨æ·ID |
| | | */ |
| | | @Excel(name = "æ°å¢ç¨æ·ID") |
| | | @ApiModelProperty(value = "æ°å¢ç¨æ·ID") |
| | | private String addUserID; |
| | | |
| | | /** |
| | | * æ°å¢æ¶é´ |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @Excel(name = "æ°å¢æ¶é´", width = 30, dateFormat = "yyyy-MM-dd") |
| | | @ApiModelProperty(value = "æ°å¢æ¶é´") |
| | | private Date addTime; |
| | | |
| | | /** |
| | | * ä¿®æ¹ç¨æ·ID |
| | | */ |
| | | @Excel(name = "ä¿®æ¹ç¨æ·ID") |
| | | @ApiModelProperty(value = "ä¿®æ¹ç¨æ·ID") |
| | | private String modifyUserID; |
| | | |
| | | /** |
| | | * ä¿®æ¹æ¶é´ |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @Excel(name = "ä¿®æ¹æ¶é´", width = 30, dateFormat = "yyyy-MM-dd") |
| | | @ApiModelProperty(value = "ä¿®æ¹æ¶é´") |
| | | private Date modifyTime; |
| | | |
| | | /** |
| | | * åç»ID |
| | | */ |
| | | @Excel(name = "åç»ID") |
| | | @ApiModelProperty(value = "åç»ID") |
| | | private String groupID; |
| | | |
| | | /** |
| | | * æ ç¾ä¿¡æ¯ |
| | | */ |
| | | @Excel(name = "æ ç¾ä¿¡æ¯") |
| | | @ApiModelProperty(value = "æ ç¾ä¿¡æ¯") |
| | | private String labelInfo; |
| | | |
| | | /** |
| | | * éç¨å¹é
è¯æ¯idï¼éç¨æ¨¡æ¿IDï¼ |
| | | */ |
| | | @Excel(name = "éç¨å¹é
è¯æ¯id", readConverterExp = "é=ç¨æ¨¡æ¿ID") |
| | | @ApiModelProperty(value = "éç¨å¹é
è¯æ¯idï¼éç¨æ¨¡æ¿IDï¼") |
| | | private String submoduleID; |
| | | |
| | | /** |
| | | * ææ¥ç±»å 0.è¯é³ä¼å
1.æåä¼å
|
| | | */ |
| | | @Excel(name = "ææ¥ç±»å 0.è¯é³ä¼å
1.æåä¼å
") |
| | | @ApiModelProperty(value = "ææ¥ç±»å 0.è¯é³ä¼å
1.æåä¼å
") |
| | | private Long playType; |
| | | |
| | | /** |
| | | * ç¾ç
å
³è |
| | | */ |
| | | @Excel(name = "ç¾ç
å
³è") |
| | | @ApiModelProperty(value = "ç¾ç
å
³è") |
| | | private String icd10code; |
| | | |
| | | /** |
| | | * ç¾ç
å
³èåç§° |
| | | */ |
| | | @Excel(name = "ç¾ç
å
³èåç§°") |
| | | @ApiModelProperty(value = "ç¾ç
å
³èåç§°") |
| | | private String icd10codename; |
| | | |
| | | /** |
| | | * atuoTaskDayOffset |
| | | */ |
| | | @Excel(name = "atuoTaskDayOffset") |
| | | @ApiModelProperty(value = "atuoTaskDayOffset") |
| | | private Long atuoTaskDayOffset; |
| | | |
| | | /** |
| | | * é¨é¨ID |
| | | */ |
| | | @Excel(name = "é¨é¨ID") |
| | | @ApiModelProperty(value = "é¨é¨ID") |
| | | private String deptIds; |
| | | |
| | | /** |
| | | * é¨é¨åç§° |
| | | */ |
| | | @Excel(name = "é¨é¨åç§°") |
| | | @ApiModelProperty(value = "é¨é¨åç§°") |
| | | private String deptNames; |
| | | |
| | | /** |
| | | * F_KSDM |
| | | */ |
| | | @Excel(name = "F_KSDM") |
| | | @ApiModelProperty(value = "ç§å®¤ä»£ç ") |
| | | private String fKsdm; |
| | | |
| | | /** |
| | | * å 餿 è®° |
| | | */ |
| | | @ApiModelProperty(value = "å 餿 è®°") |
| | | private String delFlag; |
| | | |
| | | /** |
| | | * ä¸ä¼ æ è®° |
| | | */ |
| | | @Excel(name = " ä¸ä¼ æ è®° ") |
| | | @ApiModelProperty(value = "ä¸ä¼ æ è®°") |
| | | private Long isupload; |
| | | |
| | | /** |
| | | * ä¸ä¼ æ¶é´ |
| | | */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd") |
| | | @Excel(name = " ä¸ä¼ æ¶é´ ", width = 30, dateFormat = "yyyy-MM-dd") |
| | | @ApiModelProperty(value = "ä¸ä¼ æ¶é´") |
| | | private Date uploadTime; |
| | | |
| | | /** |
| | | * æºæID |
| | | */ |
| | | @Excel(name = " æºæID ") |
| | | @ApiModelProperty(value = "æºæID") |
| | | private String orgid; |
| | | |
| | | /** |
| | | * ç¶ID |
| | | */ |
| | | @Excel(name = "ç¶ID") |
| | | @ApiModelProperty(value = "ç¶ID") |
| | | private Long pid; |
| | | |
| | | /** |
| | | * GUID |
| | | */ |
| | | @Excel(name = "GUID") |
| | | @ApiModelProperty(value = "GUID") |
| | | private String guid; |
| | | |
| | | /** |
| | | * åç±»id |
| | | */ |
| | | @Excel(name = "åç±»id") |
| | | @ApiModelProperty(value = "åç±»id") |
| | | private Long assortid; |
| | | |
| | | /** |
| | | * åæ°åé |
| | | */ |
| | | @Excel(name = "åæ°åé") |
| | | @ApiModelProperty(value = "åæ°åé") |
| | | private String parameter; |
| | | |
| | | /** |
| | | * å¯ç¨ç¶æ(0å¯ç¨ 1ä¸å¯ç¨) |
| | | */ |
| | | @Excel(name = "å¯ç¨ç¶æ(0å¯ç¨ 1ä¸å¯ç¨)") |
| | | @ApiModelProperty(value = "å¯ç¨ç¶æ(0å¯ç¨ 1ä¸å¯ç¨)") |
| | | private String usestate; |
| | | |
| | | /** |
| | | * çæ¬å· |
| | | */ |
| | | @Excel(name = "çæ¬å·") |
| | | @ApiModelProperty(value = "çæ¬å·") |
| | | private String version; |
| | | |
| | | /** |
| | | * é¢åº |
| | | */ |
| | | @Excel(name = "é¢åº") |
| | | @ApiModelProperty(value = "é¢åº") |
| | | private String campus; |
| | | |
| | | /** |
| | | * æ ç¾ |
| | | */ |
| | | @Excel(name = "æ ç¾") |
| | | @ApiModelProperty(value = "æ ç¾") |
| | | private String tag; |
| | | |
| | | /** |
| | | * éç¨æ¹å¼ï¼è°æ¥è¡¨1ï¼æºè½è¯é³2ã人工3 |
| | | */ |
| | | @Excel(name = "éç¨æ¹å¼ï¼è°æ¥è¡¨1ï¼æºè½è¯é³2ã人工3") |
| | | @ApiModelProperty(value = "éç¨æ¹å¼ï¼è°æ¥è¡¨1ï¼æºè½è¯é³2ã人工3") |
| | | private String suitway; |
| | | |
| | | /** |
| | | * å
¶å®æ°æ®ï¼åå¨åéï¼ |
| | | */ |
| | | @Excel(name = "å
¶å®æ°æ®", readConverterExp = "å=å¨åé") |
| | | @ApiModelProperty(value = "å
¶å®æ°æ®ï¼åå¨åéï¼") |
| | | private String otherdata; |
| | | |
| | | /** |
| | | * æ å¹é
æ¬¡æ° |
| | | */ |
| | | @Excel(name = "æ å¹é
次æ°") |
| | | @ApiModelProperty(value = "æ å¹é
次æ°") |
| | | private Long mateNum; |
| | | |
| | | /** |
| | | * é访å |
| | | */ |
| | | @Excel(name = "é访å") |
| | | @ApiModelProperty(value = "é访å") |
| | | private String revisitBefore; |
| | | |
| | | /** |
| | | * é访å |
| | | */ |
| | | @Excel(name = "é访å") |
| | | @ApiModelProperty(value = "é访å") |
| | | private String revisitAfter; |
| | | |
| | | /** |
| | | * é黿¬¡æ° |
| | | */ |
| | | @Excel(name = "é黿¬¡æ°") |
| | | @ApiModelProperty(value = "é黿¬¡æ°") |
| | | private Long noVoiceNum; |
| | | |
| | | /** |
| | | * å¼åºç½ |
| | | */ |
| | | @Excel(name = "å¼åºç½") |
| | | @ApiModelProperty(value = "å¼åºç½") |
| | | private String prologue; |
| | | |
| | | /** |
| | | * 模æ¿åºæ¨¡çID |
| | | */ |
| | | @Excel(name = "模æ¿åºæ¨¡çID") |
| | | @ApiModelProperty(value = "模æ¿åºæ¨¡çID") |
| | | private String libtemplateid; |
| | | |
| | | /** |
| | | * 模æ¿åºæ¨¡çåç§° |
| | | */ |
| | | @Excel(name = "模æ¿åºæ¨¡çåç§°") |
| | | @ApiModelProperty(value = "模æ¿åºæ¨¡çåç§°") |
| | | private String libtemplatename; |
| | | |
| | | /** |
| | | * æ¯å¦å卿ä½ï¼1 æ°å¢ 2ä¿®æ¹ 3å é¤ |
| | | */ |
| | | @ApiModelProperty(value = "æ¯å¦å卿ä½ï¼1 æ°å¢ 2ä¿®æ¹ 3å é¤") |
| | | private Integer isoperation; |
| | | |
| | | |
| | | /** |
| | | * å
è®¸éæ¨æ¬¡æ° |
| | | */ |
| | | @Excel(name = "å
è®¸éæ¨æ¬¡æ°") |
| | | @ApiModelProperty(value = "å
è®¸éæ¨æ¬¡æ°") |
| | | private String recallcount; |
| | | |
| | | @ApiModelProperty(value = "模æ¿é®é¢éå") |
| | | private List<IvrTaskTemplateScriptVO> ivrTaskTemplateScriptVOList = new ArrayList<>(); |
| | | // |
| | | // @ApiModelProperty(value = "æ¨¡æ¿ææ éå") |
| | | // private List<IvrLibaTemplateTag> ivrLibaTemplateTagList = new ArrayList<>(); |
| | | // |
| | | // @ApiModelProperty(value = "模æ¿ç§å®¤å
³è表éå") |
| | | // private List<TempDetpRelevance> tempDetpRelevances = new ArrayList<>(); |
| | | |
| | | } |
| | |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * è¯é³ä»»å¡å¯¹è±¡ ivr_task |
| | |
| | | * |
| | | */ |
| | | @Excel(name = " ") |
| | | private String templateid; |
| | | private Long templateid; |
| | | /** |
| | | * |
| | | */ |
| | | @Excel(name = " ") |
| | | private Long libtemplateid; |
| | | /** |
| | | * |
| | | */ |
| | | @Excel(name = " ") |
| | | private String libtemplatename; |
| | | |
| | | /** |
| | | * |
| | |
| | | @ApiModelProperty(value = "å°±è¯ç¼å·ï¼å¯¹åºçouthospnoãinhospnoï¼") |
| | | private String hospno; |
| | | |
| | | /** |
| | | * åéæ¶é´æ®µ |
| | | */ |
| | | @ApiModelProperty(value = "åéæ¶é´æ®µ ") |
| | | private List<TaskSendTimeVO> sendTimeslot; |
| | | |
| | | /** |
| | | * åéç¶æï¼ 0 失败 1æå |
| | | */ |
| | | @Excel(name = " åéç¶æï¼ 1å建 2æ§è¡ä¸ 3 æå 4ç»æ¢ 5宿 ") |
| | | @ApiModelProperty(value = "åéç¶æï¼ 1å建 2æ§è¡ä¸ 3 æå 4ç»æ¢ 5宿 ") |
| | | private String sendState; |
| | | |
| | | |
| | | } |
| | |
| | | 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; |
| | |
| | | * @author ruoyi |
| | | * @date 2024-02-02 |
| | | */ |
| | | @ApiModel(value = "IvrTaskcallMQ", description = "MQä»»å¡") |
| | | @Data |
| | | public class IvrTaskcallMQ extends BaseEntity { |
| | | private static final long serialVersionUID = 1L; |
| | |
| | | private String templateid; |
| | | |
| | | /** |
| | | * 模æ¿ç±»å |
| | | * ä»»å¡åéæ¹å¼ï¼âçµè¯ï¼çä¿¡ï¼å
¬ä¼å·ï¼é¾æ¥...â以éå·åé |
| | | */ |
| | | @Excel(name = " 模æ¿ç±»å") |
| | | @ApiModelProperty(value = "模æ¿ç±»å") |
| | | private String templateType; |
| | | @Excel(name = "ä»»å¡åéæ¹å¼ï¼çµè¯ï¼çä¿¡ï¼å
¬ä¼å·ï¼é¾æ¥...") |
| | | @ApiModelProperty(value = "å¡åéæ¹å¼ï¼çµè¯ï¼çä¿¡ï¼å
¬ä¼å·ï¼é¾æ¥... 以éå·åé") |
| | | private String servicefrom; |
| | | |
| | | |
| | | /** |
| | |
| | | @ApiModelProperty(value = "åéç±»å: 1 æ¶é´æ®µ 2 å³å»åé") |
| | | private String sendType; |
| | | |
| | | /** |
| | | * æåç¶æ ï¼ ç¶æå¦æåçä¿®æ¹ï¼å¼å°±å 1 |
| | | */ |
| | | @ApiModelProperty(value = "æåç¶æ ï¼ ç¶æå¦æåçä¿®æ¹ï¼å¼å°±å 1") |
| | | private Long stopState; |
| | | |
| | | |
| | | /** |
| | | * åéæ¶é´æ®µ |
| | |
| | | private String jsy = null; |
| | | |
| | | //å½åé®é¢ |
| | | private IvrLibaTemplateScriptVO nowQuestion = new IvrLibaTemplateScriptVO(); |
| | | private IvrTaskTemplateScriptVO nowQuestion = new IvrTaskTemplateScriptVO(); |
| | | |
| | | //é®é¢æ¸
å |
| | | private List<IvrLibaTemplateScriptVO> questionList = new ArrayList(); |
| | | private List<IvrTaskTemplateScriptVO> questionList = new ArrayList(); |
| | | |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.domain; |
| | | |
| | | 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; |
| | | |
| | | /** |
| | | * åéç±»åå
¥å |
| | | */ |
| | | @ApiModel(value = "SendTaskVO", description = "åéä»»å¡å
¥å") |
| | | @Data |
| | | public class SendTaskVO extends BaseEntity { |
| | | |
| | | @ApiModelProperty(value = "ä»»å¡ID") |
| | | private Long taskId; |
| | | |
| | | @ApiModelProperty(value = "åéç±»å: 1 æ¶é´æ®µ 2 å³å»åé") |
| | | private String sendType; |
| | | |
| | | /** |
| | | * åéç¶æï¼ 0 失败 1æå |
| | | */ |
| | | @Excel(name = " åéç¶æï¼ 1å建 2æ§è¡ä¸ 3 æå 4ç»æ¢ 5宿 ") |
| | | @ApiModelProperty(value = "åéç¶æï¼ 1å建 2æ§è¡ä¸ 3 æå 4ç»æ¢ 5宿 ") |
| | | private String sendState; |
| | | |
| | | |
| | | |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.domain.robot; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | @Data |
| | | public class RobotData { |
| | | @ApiModelProperty(value = "é
置信æ¯") |
| | | private RobotDataConfig config; |
| | | |
| | | @ApiModelProperty(value = "çæ¬") |
| | | private List<RobotDataCustomVar> custom_var; |
| | | |
| | | @ApiModelProperty(value = "第ä¸ä¸ªä»»å¡ID") |
| | | private String first_task_id; |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.domain.robot; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | @Data |
| | | public class RobotDataConfig { |
| | | @ApiModelProperty(value = "模æ¿å") |
| | | private String template_name; |
| | | |
| | | @ApiModelProperty(value = "çæ¬") |
| | | private String version; |
| | | |
| | | @ApiModelProperty(value = "第ä¸ä¸ªä»»å¡ID") |
| | | private String first_task_id; |
| | | |
| | | @ApiModelProperty(value = "ç¨æ·æå¤§é黿£æµæ¶é¿ï¼å使¯«ç§(ms)ï¼å¦:5000") |
| | | private String silence_time; |
| | | |
| | | @ApiModelProperty(value = "éé»æç¤ºæå¤§é夿¬¡æ°,å¦:3") |
| | | private String silence_count; |
| | | |
| | | @ApiModelProperty(value = "æ å¹é
æç¤ºæå¤§é夿¬¡æ°ï¼å¦:3") |
| | | private String nomatch_count; |
| | | |
| | | @ApiModelProperty(value = "æ¯å¦éæ°å è½½éç¨åº,trueãfalse") |
| | | private String reload_general_template; |
| | | |
| | | @ApiModelProperty(value = "éå è½½çéç¨åºæ¨¡æ¿,å¦: ç³å°¿ç
模æ¿_éç¨åº 1.jkg;ç³å°¿ç
模 + æ¿_éç¨åº 2.jkg, å¯ç¨åå¼å è½½å¤ä¸ª") |
| | | private String general_template; |
| | | |
| | | |
| | | @ApiModelProperty(value = "") |
| | | private String file_type; |
| | | |
| | | @ApiModelProperty(value = "è¯¥åæ®µææ¶ä¸ç¨ï¼ææ¬äº¤äºæ¨¡å¼çå¼å¯¼è¯ï¼å¦: æ¨å¥½ï¼ææ¯XX å»é¢çå»ç婿ï¼è¯·é®æä»ä¹å¯ä»¥å¸®å©æ¨çå? ") |
| | | private String text_chat_guide; |
| | | |
| | | @ApiModelProperty(value = "è¯¥åæ®µææ¶ä¸ç¨ï¼ææ¬äº¤äºæ¨¡å¼ç导èªçèåæ¾ç¤ºæ é¢ï¼å¦: ä¹³è
ºç¾ç
") |
| | | private String text_chat_menu_title; |
| | | |
| | | @ApiModelProperty(value = "") |
| | | private String hangup_action; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.domain.robot; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | @Data |
| | | public class RobotDataCustomVar { |
| | | @ApiModelProperty(value = "") |
| | | private String var_name; |
| | | |
| | | @ApiModelProperty(value = "") |
| | | private String var_type; |
| | | |
| | | @ApiModelProperty(value = "") |
| | | private String var_value; |
| | | |
| | | @ApiModelProperty(value = "") |
| | | private String var_annotate; |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.domain.robot; |
| | | |
| | | import com.ruoyi.common.core.domain.BaseEntity; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * çµè¯è¯æ¯æ¨¡æ¿åå |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-05-23 |
| | | */ |
| | | @ApiModel(value = "RobotScritpTemplateVO", description = "çµè¯è¯æ¯æ¨¡æ¿åå") |
| | | @Data |
| | | public class RobotIdlenumVO extends BaseEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "ææ id") |
| | | private String app_id; |
| | | |
| | | /** |
| | | * ææ key(å·²å å¯è¿ç key) |
| | | */ |
| | | @ApiModelProperty(value = "ææ key(å·²å å¯è¿ç key)") |
| | | private String app_key; |
| | | |
| | | |
| | | /** |
| | | * 主å«å·ç å³çµè¯çº¿è·¯çå·ç |
| | | */ |
| | | @ApiModelProperty(value = "主å«å·ç å³çµè¯çº¿è·¯çå·ç ") |
| | | private String ani; |
| | | |
| | | |
| | | /** |
| | | * æ¯å¦æ¯ç¹æ®ééå¼åºï¼å¼ä¸º:trueãfalse 1.模æçº¿è·¯ï¼ |
| | | * special_ch=true åªä¼æå®çº¿è·¯å·ç 为 ani ç䏿¡çº¿è·¯å¼åºã |
| | | * special_ch=false ä¼ä» app_id ä¸é¢éåä»»æä¸æ¡ç©ºé²ç模æçº¿è·¯ |
| | | * å¼åºãæ¤æ¶ ani ä¸èµ·ä½ç¨ãå®é
å¤å¼æ¾ç¤ºçå·ç ä¸ä¸å®æ¯ aniã |
| | | * 2.æ°å线路 |
| | | * è¯¥åæ°å¯¹æ°å线路ä¸èµ·ä½ç¨ï¼æ°å线路ä¼ä» app_id ä¸é¢éåä»» |
| | | * æééï¼ä»¥ ani ä½ä¸ºä¸»å«å·ç æ¥å¤å¼æ¾ç¤º |
| | | */ |
| | | @ApiModelProperty(value = "æ¯å¦æ¯ç¹æ®ééå¼åºï¼å¼ä¸º:trueãfalse") |
| | | private Boolean specify_ch; |
| | | |
| | | /** |
| | | * æ¶é´æ³ï¼å¾®ç§çº§ |
| | | */ |
| | | @ApiModelProperty(value = "æ¶é´æ³ï¼å¾®ç§çº§") |
| | | private Long time_stamp; |
| | | |
| | | /** |
| | | * æé¡ºåºæ¼æ¥å符串å md5 å å¯ï¼ |
| | | * md5(app_id+app_key+bs_uuid+ani+dnis+specify_ch+time_stamp) specify_ch md5 æ¶ true ç¨ 1 æ¿ä»£ï¼false ç¨ 0 æ¿ä»£ |
| | | */ |
| | | @ApiModelProperty(value = "æé¡ºåºæ¼æ¥å符串å md5 å å¯ï¼") |
| | | private String sign; |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.domain.robot; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.ruoyi.common.annotation.Excel; |
| | | import com.ruoyi.common.core.domain.BaseEntity; |
| | | import com.smartor.domain.PatTaskRelevance; |
| | | import com.smartor.domain.TaskSendTimeVO; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * çµè¯è¯æ¯æ¨¡æ¿åå |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-05-23 |
| | | */ |
| | | @ApiModel(value = "RobotScritpTemplateVO", description = "çµè¯è¯æ¯æ¨¡æ¿åå") |
| | | @Data |
| | | public class RobotScritpTemplateVO extends RobotIdlenumVO { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "ææ id") |
| | | private String notes; |
| | | |
| | | |
| | | /** |
| | | * æ¥å
¥åèªå®ä¹ä¸å¡ uuidï¼bs_uuid ç¸å为å䏿¬¡å¼å«çæ¶æ¯ |
| | | */ |
| | | @ApiModelProperty(value = "æ¥å
¥åèªå®ä¹ä¸å¡ uuidï¼bs_uuid ç¸å为å䏿¬¡å¼å«çæ¶æ¯") |
| | | private String bs_uuid; |
| | | |
| | | |
| | | /** |
| | | * 被å«å·ç å³è¢«å¼å«çç¨æ·çå·ç |
| | | */ |
| | | @ApiModelProperty(value = "被å«å·ç å³è¢«å¼å«çç¨æ·çå·ç ") |
| | | private String dnis; |
| | | |
| | | |
| | | /** |
| | | * è¯é³å¼æï¼ali ãiflyãsogou |
| | | */ |
| | | @ApiModelProperty(value = "è¯é³å¼æï¼ali ãiflyãsogou") |
| | | private String engine; |
| | | |
| | | /** |
| | | * è¯é³è¯å«æä»¶çéæ ·çï¼8000 æ 16000ï¼é»è®¤ 8000 |
| | | */ |
| | | @ApiModelProperty(value = "è¯é³è¯å«æä»¶çéæ ·çï¼8000 æ 16000ï¼é»è®¤ 8000") |
| | | private String asr_sample; |
| | | |
| | | /** |
| | | * è¯é³è¯å«å¼æï¼ |
| | | * 1.ali |
| | | * 该å¼ä¸ºé¡¹ç®ç app_keyï¼æ¥å
¥åå¯ä»èªå·±çé¿éäºé¡¹ç®ç®¡ç |
| | | * éé¢è·åï¼ä¾ï¼oXbXcninIlII*** |
| | | * 2.Ifly |
| | | * æ®éè¯:sms8k(å¯¹åº 8000 éæ ·ç弿)æ sms16k(å¯¹åº |
| | | * 16000 éæ ·ç弿) |
| | | * 䏿µ·è¯ï¼shanghainese8k,shanghainese16k |
| | | * æ²³åè¯ï¼henanese8k,henanese16k |
| | | * åå·è¯ï¼lmz8k,lmz16k |
| | | * 粤è¯ï¼autocant8k,autocant16k |
| | | * å京è¯ï¼nankinese8k,nankinese16k |
| | | * è±è¯ï¼sms-en8k,sms-en16k |
| | | * é»è®¤éç¨ 8K ç弿忰 |
| | | */ |
| | | @ApiModelProperty(value = "è¯é³è¯å«å¼æ") |
| | | private String asr_ent; |
| | | |
| | | /** |
| | | * ali |
| | | * å¦ï¼oXbXcninIlII*** |
| | | * ifly tts 声æºå¼æ |
| | | * intp65:æ®éè¯ |
| | | * intp65_enï¼è±è¯ |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private String tts_ent; |
| | | |
| | | /** |
| | | * ali |
| | | * è¯é³åé³äººï¼Aixia çï¼å
·ä½åè§é¿é tts ç¸å
³ææ¡£ |
| | | * ifly |
| | | * è¯é³åé³äºº |
| | | * 䏿ï¼xiaoyan,x_xiaoyuan,jiuxu,xiaofeng,x_yifeng ç |
| | | * è±æï¼x_catherine ç |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private String tts_vcn; |
| | | |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private Integer tts_volume; |
| | | |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private Integer tts_speed; |
| | | |
| | | /** |
| | | * æ¯å¦ä¸ºæµè¯æ¨¡å¼ï¼trueãfalse 为 true æ¶ä¸æ ¡éª sign å¼ |
| | | */ |
| | | @ApiModelProperty(value = "æ¯å¦ä¸ºæµè¯æ¨¡å¼ï¼trueãfalse 为 true æ¶ä¸æ ¡éª sign å¼") |
| | | private String dial_mode; |
| | | |
| | | /** |
| | | * æ¯å¦ä¸ºæµè¯æ¨¡å¼ï¼trueãfalse 为 true æ¶ä¸æ ¡éª sign å¼ |
| | | */ |
| | | @ApiModelProperty(value = "æ¯å¦ä¸ºæµè¯æ¨¡å¼ï¼trueãfalse 为 true æ¶ä¸æ ¡éª sign å¼") |
| | | private String dial_server; |
| | | |
| | | /** |
| | | * æ¯å¦ä¸ºæµè¯æ¨¡å¼ï¼trueãfalse 为 true æ¶ä¸æ ¡éª sign å¼ |
| | | */ |
| | | @ApiModelProperty(value = "æ¯å¦ä¸ºæµè¯æ¨¡å¼ï¼trueãfalse 为 true æ¶ä¸æ ¡éª sign å¼") |
| | | private Boolean auto_test; |
| | | |
| | | /** |
| | | * |
| | | */ |
| | | @ApiModelProperty(value = "") |
| | | private String outbound_codes; |
| | | |
| | | |
| | | /** |
| | | * åéå表ï¼åéæ°é 0-n 个 |
| | | */ |
| | | @ApiModelProperty(value = "åéå表ï¼åéæ°é 0-n 个") |
| | | private Map<String, String> var_params; |
| | | |
| | | /** |
| | | * ä¸åç»æåéæ¶é´éå¶ |
| | | */ |
| | | @ApiModelProperty(value = "ä¸åç»æåéæ¶é´éå¶") |
| | | private RobotData data; |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.domain.robot.back; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | @Data |
| | | public class RobotAIDialogBack { |
| | | @ApiModelProperty(value = "æ¬æ¬¡éè¯äº¤äºä¿¡æ¯çåºå· 0-n") |
| | | private String package_id; |
| | | |
| | | @ApiModelProperty(value = "ææ id") |
| | | private String app_id; |
| | | |
| | | @ApiModelProperty(value = "æ¥å
¥åèªå®ä¹ä¸å¡ uuidï¼bs_uuid ç¸å为å䏿¬¡å¼å«çæ¶æ¯") |
| | | private String bs_uuid; |
| | | |
| | | @ApiModelProperty(value = "éè¯ uuid") |
| | | private String call_uuid; |
| | | |
| | | @ApiModelProperty(value = "å¼å«æ¹å:1 å¼å
¥,2 å¼åº") |
| | | private String call_direction; |
| | | |
| | | @ApiModelProperty(value = "èç¹ç±»åï¼1") |
| | | private String task_type; |
| | | |
| | | /** |
| | | * é®é¢çç±»åï¼ |
| | | * 0ï¼åªæ¾é³ï¼æ é®é¢ |
| | | * 1ï¼å¸¸è§é®é¢ï¼ä¸ä½ä¸ºå¤ææåçæ å |
| | | * 2ï¼ä¸å¡é®é¢ï¼ä½ä¸ºå¤ææåçæ å |
| | | */ |
| | | @ApiModelProperty(value = "é®é¢çç±»å") |
| | | private String question_type; |
| | | |
| | | @ApiModelProperty(value = "èç¹ç¼å·") |
| | | private String task_id; |
| | | |
| | | /** |
| | | * èç¹æç¤ºé³ï¼è¯é³æææ¬æä»¶ææ··åï¼å¦ï¼bye.wav;åè§ |
| | | */ |
| | | @ApiModelProperty(value = "èç¹æç¤ºé³") |
| | | private String task_voc; |
| | | |
| | | @ApiModelProperty(value = "èç¹æè¿°") |
| | | private String task_desc; |
| | | |
| | | @ApiModelProperty(value = "æ¾é³æ¯å¦å
许ææï¼true å
许ææï¼false ä¸å
许ææ") |
| | | private String interrupt; |
| | | |
| | | @ApiModelProperty(value = "tts ææ¬å¯¹åºçè¯é³åææä»¶è·¯å¾+æä»¶å") |
| | | private String ai_audio; |
| | | |
| | | @ApiModelProperty(value = "tts ææ¬") |
| | | private String ai_tts; |
| | | |
| | | @ApiModelProperty(value = "该模æ¿ç¬¬ä¸ä¸ªèç¹å¼å§çæ¥æï¼é²æ¢è·¨å¤©æä»¶å¤¹å¯¹åºä¸ä¸") |
| | | private String date_time; |
| | | |
| | | @ApiModelProperty(value = "-1 æ å¹é
å¤ç忝ï¼-2 æ 声å¤ç忝ï¼-3 éç¨åºæå¹é
å¤ç忝,å
¶ä»åæ¯å®ä¹ï¼1-n") |
| | | private String task_switch_type; |
| | | |
| | | @ApiModelProperty(value = "éç¨åºæè¿åç»æå为éç¨åºåç§°ï¼å¦å为â") |
| | | private String general_template_name; |
| | | |
| | | @ApiModelProperty(value = "å¤ç忝 id") |
| | | private String switch_id; |
| | | |
| | | @ApiModelProperty(value = "å¤ç忝æç¤ºé³") |
| | | private String switch_voc; |
| | | |
| | | @ApiModelProperty(value = "å¤ç忝æè¿°") |
| | | private String switch_desc; |
| | | |
| | | @ApiModelProperty(value = "ç¨æ·åççæä»¶ç¸å¯¹è·¯å¾å¦") |
| | | private String asr_audio; |
| | | |
| | | @ApiModelProperty(value = "ç¨æ·åççè¯é³è¯å«ç»æ") |
| | | private String asr_result; |
| | | |
| | | @ApiModelProperty(value = "ç¨æ·åççè¯é³é¿åº¦") |
| | | private String asr_audio_len; |
| | | |
| | | @ApiModelProperty(value = "asr è¯å«æè±çæ¶é¿åä½ï¼æ¯«ç§") |
| | | private String asr_duration_ms; |
| | | |
| | | @ApiModelProperty(value = "ç¨æ·æå¾åç§°") |
| | | private String intention_name; |
| | | |
| | | @ApiModelProperty(value = "ç¨æ·åççæå¾å¼") |
| | | private String intention_value; |
| | | |
| | | @ApiModelProperty(value = "èç¹å
跳转çä¸ä¸ä¸ªå¤ç忝ç id æ-10 æå
¶ä»ä»»å¡èç¹ç task_id") |
| | | private String next_switch_id; |
| | | |
| | | @ApiModelProperty(value = "æ§è¡è·³è½¬çä¸ä¸ä¸ªèç¹ç id") |
| | | private String next_task_id; |
| | | |
| | | @ApiModelProperty(value = "time_stamp 对åºçæ¶é´") |
| | | private String time; |
| | | |
| | | @ApiModelProperty(value = "æ¶é´æ³ï¼å¾®ç§çº§") |
| | | private String time_stamp; |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.domain.robot.back; |
| | | |
| | | import com.smartor.domain.robot.RobotDataConfig; |
| | | import com.smartor.domain.robot.RobotDataCustomVar; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.List; |
| | | |
| | | @Data |
| | | public class RobotCallBack { |
| | | @ApiModelProperty(value = "æå±çç¨æ·") |
| | | private String app_id; |
| | | |
| | | @ApiModelProperty(value = "æ¥å
¥åèªå®ä¹ä¸å¡ uuidï¼bs_uuid ç¸å为å䏿¬¡å¼å«çæ¶æ¯") |
| | | private String bs_uuid; |
| | | |
| | | @ApiModelProperty(value = "éè¯ uuid") |
| | | private String call_uuid; |
| | | |
| | | @ApiModelProperty(value = "主å«å·ç ") |
| | | private String ani; |
| | | |
| | | @ApiModelProperty(value = "被å«å·ç ") |
| | | private String dnis; |
| | | |
| | | @ApiModelProperty(value = "å¼å«æ¹å:1 å¼å
¥,2 å¼åº") |
| | | private String call_direction; |
| | | |
| | | @ApiModelProperty(value = "æ¬æ¬¡éè¯çå½é³æä»¶è·¯å¾+åç§°ï¼äººå·¥æå¨å¤å¼ä¸çµè¯æ¥éç¶ææ¶æä¼æè¯¥åæ°") |
| | | private String record_file; |
| | | |
| | | @ApiModelProperty(value = "å¼å«ç¶æ IDï¼0-n æé¡ºåºéå¢") |
| | | private String state_id; |
| | | |
| | | @ApiModelProperty(value = "å¼å«ç¶ææè¿°:") |
| | | private String state_desc; |
| | | |
| | | @ApiModelProperty(value = "æ¶é´æ³ï¼å¾®ç§çº§") |
| | | private String time_stamp; |
| | | |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.domain.robot.back; |
| | | |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | @Data |
| | | public class RobotcdrInfoBack { |
| | | |
| | | @ApiModelProperty(value = "ææ id") |
| | | private String app_id; |
| | | |
| | | @ApiModelProperty(value = "æ¥å
¥åèªå®ä¹ä¸å¡ uuidï¼bs_uuid ç¸å为å䏿¬¡å¼å«çæ¶æ¯") |
| | | private String bs_uuid; |
| | | |
| | | @ApiModelProperty(value = "éè¯ uuid") |
| | | private String call_uuid; |
| | | |
| | | @ApiModelProperty(value = "å¼å«æ¹å:1 å¼å
¥,2 å¼åº") |
| | | private String call_direction; |
| | | |
| | | @ApiModelProperty(value = "主å«å·ç ") |
| | | private String ani; |
| | | |
| | | |
| | | @ApiModelProperty(value = " 被å«å·ç ") |
| | | private String dnis; |
| | | |
| | | /** |
| | | * ææºåå ï¼ |
| | | * NORMAL_CLEARING çï¼ä»
ä¾è®°å½ç¨ |
| | | */ |
| | | @ApiModelProperty(value = "ææºåå ") |
| | | private String hangup_cause; |
| | | |
| | | /** |
| | | * ææºæ¶ç»ç«¯æå¤çç¶æ |
| | | * EARLY MEDIA |
| | | * ANSWER |
| | | * DELAYED NEGOTIATION |
| | | * çï¼ä»
ä¾è®°å½ç¨ |
| | | */ |
| | | @ApiModelProperty(value = "ææºæ¶ç»ç«¯æå¤çç¶æ") |
| | | private String endpoint_disposition; |
| | | |
| | | @ApiModelProperty(value = "çå¾
æ¶é´") |
| | | private String wait_ms; |
| | | |
| | | @ApiModelProperty(value = "å¼å«è¿ç¨èæ¶(ä»åèµ·å¼å«å°ç»æææçæ¶é´)") |
| | | private String duration_ms; |
| | | |
| | | @ApiModelProperty(value = "çå¾
åºçèæ¶ï¼åèµ·å°æ¥éçæ¶é´ï¼") |
| | | private String answer_ms; |
| | | |
| | | @ApiModelProperty(value = "计费æ¶é¿ï¼çæ£çéè¯æ¶é¿ï¼") |
| | | private String bill_ms; |
| | | |
| | | @ApiModelProperty(value = "å¼å«å¼å§æ¶é´") |
| | | private String start_stamp; |
| | | |
| | | @ApiModelProperty(value = "åºçå¼å§æ¶é´ G") |
| | | private String answer_stamp; |
| | | |
| | | @ApiModelProperty(value = "ç»ææ¶é´") |
| | | private String end_stamp; |
| | | |
| | | @ApiModelProperty(value = "æ¶é´æ³ï¼å¾®ç§çº§") |
| | | private String time_stamp; |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.mapper; |
| | | |
| | | import com.smartor.domain.IvrTaskTemplate; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * é访任å¡é访模æ¿åºMapperæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-05-13 |
| | | */ |
| | | @Mapper |
| | | public interface IvrTaskTemplateMapper { |
| | | /** |
| | | * æ¥è¯¢é访任å¡é访模æ¿åº |
| | | * |
| | | * @param ID é访任å¡é访模æ¿åºä¸»é® |
| | | * @return é访任å¡é访模æ¿åº |
| | | */ |
| | | public IvrTaskTemplate selectIvrTaskTemplateByID(Long ID); |
| | | |
| | | /** |
| | | * æ¥è¯¢é访任å¡é访模æ¿åºå表 |
| | | * |
| | | * @param ivrTaskTemplate é访任å¡é访模æ¿åº |
| | | * @return é访任å¡é访模æ¿åºéå |
| | | */ |
| | | public List<IvrTaskTemplate> selectIvrTaskTemplateList(IvrTaskTemplate ivrTaskTemplate); |
| | | |
| | | /** |
| | | * æ°å¢é访任å¡é访模æ¿åº |
| | | * |
| | | * @param ivrTaskTemplate é访任å¡é访模æ¿åº |
| | | * @return ç»æ |
| | | */ |
| | | public int insertIvrTaskTemplate(IvrTaskTemplate ivrTaskTemplate); |
| | | |
| | | /** |
| | | * ä¿®æ¹é访任å¡é访模æ¿åº |
| | | * |
| | | * @param ivrTaskTemplate é访任å¡é访模æ¿åº |
| | | * @return ç»æ |
| | | */ |
| | | public int updateIvrTaskTemplate(IvrTaskTemplate ivrTaskTemplate); |
| | | |
| | | /** |
| | | * å é¤é访任å¡é访模æ¿åº |
| | | * |
| | | * @param ID é访任å¡é访模æ¿åºä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteIvrTaskTemplateByID(Long ID); |
| | | |
| | | /** |
| | | * æ¹éå é¤é访任å¡é访模æ¿åº |
| | | * |
| | | * @param IDs éè¦å é¤çæ°æ®ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteIvrTaskTemplateByIDs(Long[] IDs); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.mapper; |
| | | |
| | | import com.smartor.domain.IvrTaskTemplateScript; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * éè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åºMapperæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-05-13 |
| | | */ |
| | | @Mapper |
| | | public interface IvrTaskTemplateScriptMapper { |
| | | /** |
| | | * æ¥è¯¢éè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åº |
| | | * |
| | | * @param ID éè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åºä¸»é® |
| | | * @return éè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åº |
| | | */ |
| | | public IvrTaskTemplateScript selectIvrTaskTemplateScriptByID(Long ID); |
| | | |
| | | /** |
| | | * æ¥è¯¢éè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åºå表 |
| | | * |
| | | * @param ivrTaskTemplateScript éè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åº |
| | | * @return éè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åºéå |
| | | */ |
| | | public List<IvrTaskTemplateScript> selectIvrTaskTemplateScriptList(IvrTaskTemplateScript ivrTaskTemplateScript); |
| | | |
| | | /** |
| | | * æ°å¢éè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åº |
| | | * |
| | | * @param ivrTaskTemplateScript éè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åº |
| | | * @return ç»æ |
| | | */ |
| | | public int insertIvrTaskTemplateScript(IvrTaskTemplateScript ivrTaskTemplateScript); |
| | | |
| | | /** |
| | | * ä¿®æ¹éè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åº |
| | | * |
| | | * @param ivrTaskTemplateScript éè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åº |
| | | * @return ç»æ |
| | | */ |
| | | public int updateIvrTaskTemplateScript(IvrTaskTemplateScript ivrTaskTemplateScript); |
| | | |
| | | /** |
| | | * å é¤éè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åº |
| | | * |
| | | * @param ID éè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åºä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteIvrTaskTemplateScriptByID(Long ID); |
| | | |
| | | /** |
| | | * æ¹éå é¤éè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åº |
| | | * |
| | | * @param IDs éè¦å é¤çæ°æ®ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteIvrTaskTemplateScriptByIDs(Long[] IDs); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.mapper; |
| | | |
| | | import com.smartor.domain.IvrTaskTemplateTargetoption; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * éè®¿ä»»å¡æ¨¡æ¿ææ é项åºMapperæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-05-13 |
| | | */ |
| | | @Mapper |
| | | public interface IvrTaskTemplateTargetoptionMapper { |
| | | /** |
| | | * æ¥è¯¢éè®¿ä»»å¡æ¨¡æ¿ææ éé¡¹åº |
| | | * |
| | | * @param id éè®¿ä»»å¡æ¨¡æ¿ææ é项åºä¸»é® |
| | | * @return éè®¿ä»»å¡æ¨¡æ¿ææ éé¡¹åº |
| | | */ |
| | | public IvrTaskTemplateTargetoption selectIvrTaskTemplateTargetoptionById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢éè®¿ä»»å¡æ¨¡æ¿ææ é项åºå表 |
| | | * |
| | | * @param ivrTaskTemplateTargetoption éè®¿ä»»å¡æ¨¡æ¿ææ éé¡¹åº |
| | | * @return éè®¿ä»»å¡æ¨¡æ¿ææ é项åºéå |
| | | */ |
| | | public List<IvrTaskTemplateTargetoption> selectIvrTaskTemplateTargetoptionList(IvrTaskTemplateTargetoption ivrTaskTemplateTargetoption); |
| | | |
| | | /** |
| | | * æ°å¢éè®¿ä»»å¡æ¨¡æ¿ææ éé¡¹åº |
| | | * |
| | | * @param ivrTaskTemplateTargetoption éè®¿ä»»å¡æ¨¡æ¿ææ éé¡¹åº |
| | | * @return ç»æ |
| | | */ |
| | | public int insertIvrTaskTemplateTargetoption(IvrTaskTemplateTargetoption ivrTaskTemplateTargetoption); |
| | | |
| | | /** |
| | | * ä¿®æ¹éè®¿ä»»å¡æ¨¡æ¿ææ éé¡¹åº |
| | | * |
| | | * @param ivrTaskTemplateTargetoption éè®¿ä»»å¡æ¨¡æ¿ææ éé¡¹åº |
| | | * @return ç»æ |
| | | */ |
| | | public int updateIvrTaskTemplateTargetoption(IvrTaskTemplateTargetoption ivrTaskTemplateTargetoption); |
| | | |
| | | /** |
| | | * å é¤éè®¿ä»»å¡æ¨¡æ¿ææ éé¡¹åº |
| | | * |
| | | * @param id éè®¿ä»»å¡æ¨¡æ¿ææ é项åºä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteIvrTaskTemplateTargetoptionById(Long id); |
| | | |
| | | /** |
| | | * æ¹éå é¤éè®¿ä»»å¡æ¨¡æ¿ææ éé¡¹åº |
| | | * |
| | | * @param ids éè¦å é¤çæ°æ®ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteIvrTaskTemplateTargetoptionByIds(Long[] ids); |
| | | } |
| | |
| | | |
| | | import java.util.List; |
| | | import com.smartor.domain.IvrTaskcalldetail; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | /** |
| | | * è¯é³ä»»å¡å¼å«æç»Mapperæ¥å£ |
| | | * |
| | | * |
| | | * @author smartor |
| | | * @date 2023-03-24 |
| | | */ |
| | | public interface IvrTaskcalldetailMapper |
| | | @Mapper |
| | | public interface IvrTaskcalldetailMapper |
| | | { |
| | | /** |
| | | * æ¥è¯¢è¯é³ä»»å¡å¼å«æç» |
| | | * |
| | | * |
| | | * @param calldetailid è¯é³ä»»å¡å¼å«æç»ä¸»é® |
| | | * @return è¯é³ä»»å¡å¼å«æç» |
| | | */ |
| | |
| | | |
| | | /** |
| | | * æ¥è¯¢è¯é³ä»»å¡å¼å«æç»å表 |
| | | * |
| | | * |
| | | * @param ivrTaskcalldetail è¯é³ä»»å¡å¼å«æç» |
| | | * @return è¯é³ä»»å¡å¼å«æç»éå |
| | | */ |
| | |
| | | |
| | | /** |
| | | * æ°å¢è¯é³ä»»å¡å¼å«æç» |
| | | * |
| | | * |
| | | * @param ivrTaskcalldetail è¯é³ä»»å¡å¼å«æç» |
| | | * @return ç»æ |
| | | */ |
| | |
| | | |
| | | /** |
| | | * ä¿®æ¹è¯é³ä»»å¡å¼å«æç» |
| | | * |
| | | * |
| | | * @param ivrTaskcalldetail è¯é³ä»»å¡å¼å«æç» |
| | | * @return ç»æ |
| | | */ |
| | |
| | | |
| | | /** |
| | | * å é¤è¯é³ä»»å¡å¼å«æç» |
| | | * |
| | | * |
| | | * @param calldetailid è¯é³ä»»å¡å¼å«æç»ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | |
| | | |
| | | /** |
| | | * æ¹éå é¤è¯é³ä»»å¡å¼å«æç» |
| | | * |
| | | * |
| | | * @param calldetailids éè¦å é¤çæ°æ®ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | |
| | | |
| | | import java.util.List; |
| | | import com.smartor.domain.IvrTaskcallrecord; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | /** |
| | | * è¯é³ä»»å¡å¼å«è®°å½Mapperæ¥å£ |
| | | * |
| | | * |
| | | * @author smartor |
| | | * @date 2023-03-24 |
| | | */ |
| | | public interface IvrTaskcallrecordMapper |
| | | @Mapper |
| | | public interface IvrTaskcallrecordMapper |
| | | { |
| | | /** |
| | | * æ¥è¯¢è¯é³ä»»å¡å¼å«è®°å½ |
| | | * |
| | | * |
| | | * @param uuid è¯é³ä»»å¡å¼å«è®°å½ä¸»é® |
| | | * @return è¯é³ä»»å¡å¼å«è®°å½ |
| | | */ |
| | |
| | | |
| | | /** |
| | | * æ¥è¯¢è¯é³ä»»å¡å¼å«è®°å½å表 |
| | | * |
| | | * |
| | | * @param ivrTaskcallrecord è¯é³ä»»å¡å¼å«è®°å½ |
| | | * @return è¯é³ä»»å¡å¼å«è®°å½éå |
| | | */ |
| | |
| | | |
| | | /** |
| | | * æ°å¢è¯é³ä»»å¡å¼å«è®°å½ |
| | | * |
| | | * |
| | | * @param ivrTaskcallrecord è¯é³ä»»å¡å¼å«è®°å½ |
| | | * @return ç»æ |
| | | */ |
| | |
| | | |
| | | /** |
| | | * ä¿®æ¹è¯é³ä»»å¡å¼å«è®°å½ |
| | | * |
| | | * |
| | | * @param ivrTaskcallrecord è¯é³ä»»å¡å¼å«è®°å½ |
| | | * @return ç»æ |
| | | */ |
| | |
| | | |
| | | /** |
| | | * å é¤è¯é³ä»»å¡å¼å«è®°å½ |
| | | * |
| | | * |
| | | * @param uuid è¯é³ä»»å¡å¼å«è®°å½ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | |
| | | |
| | | /** |
| | | * æ¹éå é¤è¯é³ä»»å¡å¼å«è®°å½ |
| | | * |
| | | * |
| | | * @param uuids éè¦å é¤çæ°æ®ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | |
| | | |
| | | import java.util.List; |
| | | import com.smartor.domain.IvrTasksms; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | /** |
| | | * è¯é³ä»»å¡çä¿¡Mapperæ¥å£ |
| | | * |
| | | * |
| | | * @author smartor |
| | | * @date 2023-03-24 |
| | | */ |
| | | public interface IvrTasksmsMapper |
| | | @Mapper |
| | | public interface IvrTasksmsMapper |
| | | { |
| | | /** |
| | | * æ¥è¯¢è¯é³ä»»å¡çä¿¡ |
| | | * |
| | | * |
| | | * @param id è¯é³ä»»å¡çä¿¡ä¸»é® |
| | | * @return è¯é³ä»»å¡çä¿¡ |
| | | */ |
| | |
| | | |
| | | /** |
| | | * æ¥è¯¢è¯é³ä»»å¡çä¿¡å表 |
| | | * |
| | | * |
| | | * @param ivrTasksms è¯é³ä»»å¡çä¿¡ |
| | | * @return è¯é³ä»»å¡çä¿¡éå |
| | | */ |
| | |
| | | |
| | | /** |
| | | * æ°å¢è¯é³ä»»å¡çä¿¡ |
| | | * |
| | | * |
| | | * @param ivrTasksms è¯é³ä»»å¡çä¿¡ |
| | | * @return ç»æ |
| | | */ |
| | |
| | | |
| | | /** |
| | | * ä¿®æ¹è¯é³ä»»å¡çä¿¡ |
| | | * |
| | | * |
| | | * @param ivrTasksms è¯é³ä»»å¡çä¿¡ |
| | | * @return ç»æ |
| | | */ |
| | |
| | | |
| | | /** |
| | | * å é¤è¯é³ä»»å¡çä¿¡ |
| | | * |
| | | * |
| | | * @param id è¯é³ä»»å¡çä¿¡ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | |
| | | |
| | | /** |
| | | * æ¹éå é¤è¯é³ä»»å¡çä¿¡ |
| | | * |
| | | * |
| | | * @param ids éè¦å é¤çæ°æ®ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service; |
| | | |
| | | import com.smartor.domain.IvrTaskSingle; |
| | | import com.smartor.domain.IvrTaskSingleVO; |
| | | import com.smartor.domain.PhoneCallBackVO; |
| | | import com.smartor.domain.SendTaskVO; |
| | | import com.smartor.domain.robot.back.RobotAIDialogBack; |
| | | import com.smartor.domain.robot.back.RobotCallBack; |
| | | import com.smartor.domain.robot.back.RobotcdrInfoBack; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æå¡åè°Serviceæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-05-24 |
| | | */ |
| | | public interface AIRobotPhoneCallBackService { |
| | | |
| | | |
| | | /** |
| | | * AIRobotå¼å«å°è¾¾çº¿è·¯åçç¶æè¿åæ¥å£ |
| | | * |
| | | * @param robotCallBack |
| | | * @return ç»æ |
| | | */ |
| | | public String callstatus(RobotCallBack robotCallBack); |
| | | |
| | | /** |
| | | * AIRobotå¼å«å°è¾¾çº¿è·¯åçç¶æè¿åæ¥å£ |
| | | * |
| | | * @param robotAIDialogBack |
| | | * @return ç»æ |
| | | */ |
| | | public String aidialog(RobotAIDialogBack robotAIDialogBack); |
| | | |
| | | /** |
| | | * ææºè®¡è´¹ä¿¡æ¯è¿åæ°æ®æ¥å£ |
| | | * @param robotcdrInfoBack |
| | | * @return |
| | | */ |
| | | public String cdrinfo(RobotcdrInfoBack robotcdrInfoBack); |
| | | |
| | | } |
| | |
| | | package com.smartor.service; |
| | | |
| | | import com.smartor.domain.*; |
| | | import com.smartor.domain.robot.back.RobotAIDialogBack; |
| | | import com.smartor.domain.robot.back.RobotCallBack; |
| | | |
| | | import java.util.List; |
| | | |
| | |
| | | /** |
| | | * ä»»å¡åéæ§è¡ |
| | | * |
| | | * @param ivrTaskcallVO |
| | | * @param sendTaskVO |
| | | * @return ç»æ |
| | | */ |
| | | public int heTaskSend(IvrTaskSingleVO ivrTaskcallVO); |
| | | public int heTaskSend(SendTaskVO sendTaskVO); |
| | | |
| | | /** |
| | | * ä»»å¡åéæ§è¡ |
| | | * çµè¯åè°ä»»å¡ |
| | | * |
| | | * @param phoneCallBackVO |
| | | * @return ç»æ |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service; |
| | | |
| | | import com.smartor.domain.IvrTaskTemplateScript; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * éè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åºServiceæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-05-13 |
| | | */ |
| | | public interface IIvrTaskTemplateScriptService |
| | | { |
| | | /** |
| | | * æ¥è¯¢éè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åº |
| | | * |
| | | * @param ID éè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åºä¸»é® |
| | | * @return éè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åº |
| | | */ |
| | | public IvrTaskTemplateScript selectIvrTaskTemplateScriptByID(Long ID); |
| | | |
| | | /** |
| | | * æ¥è¯¢éè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åºå表 |
| | | * |
| | | * @param ivrTaskTemplateScript éè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åº |
| | | * @return éè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åºéå |
| | | */ |
| | | public List<IvrTaskTemplateScript> selectIvrTaskTemplateScriptList(IvrTaskTemplateScript ivrTaskTemplateScript); |
| | | |
| | | /** |
| | | * æ°å¢éè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åº |
| | | * |
| | | * @param ivrTaskTemplateScript éè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åº |
| | | * @return ç»æ |
| | | */ |
| | | public int insertIvrTaskTemplateScript(IvrTaskTemplateScript ivrTaskTemplateScript); |
| | | |
| | | /** |
| | | * ä¿®æ¹éè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åº |
| | | * |
| | | * @param ivrTaskTemplateScript éè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åº |
| | | * @return ç»æ |
| | | */ |
| | | public int updateIvrTaskTemplateScript(IvrTaskTemplateScript ivrTaskTemplateScript); |
| | | |
| | | /** |
| | | * æ¹éå é¤éè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åº |
| | | * |
| | | * @param IDs éè¦å é¤çéè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åºä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteIvrTaskTemplateScriptByIDs(Long[] IDs); |
| | | |
| | | /** |
| | | * å é¤éè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åºä¿¡æ¯ |
| | | * |
| | | * @param ID éè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åºä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteIvrTaskTemplateScriptByID(Long ID); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service; |
| | | |
| | | import com.smartor.domain.IvrLibaTemplateVO; |
| | | import com.smartor.domain.IvrTaskTemplate; |
| | | import com.smartor.domain.IvrTaskTemplateVO; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * é访任å¡é访模æ¿åºServiceæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-05-13 |
| | | */ |
| | | public interface IIvrTaskTemplateService { |
| | | /** |
| | | * æ¥è¯¢é访任å¡é访模æ¿åº |
| | | * |
| | | * @param ID é访任å¡é访模æ¿åºä¸»é® |
| | | * @return é访任å¡é访模æ¿åº |
| | | */ |
| | | public IvrTaskTemplate selectIvrTaskTemplateByID(Long ID); |
| | | |
| | | /** |
| | | * æ¥è¯¢é访任å¡é访模æ¿åºå表 |
| | | * |
| | | * @param ivrTaskTemplate é访任å¡é访模æ¿åº |
| | | * @return é访任å¡é访模æ¿åºéå |
| | | */ |
| | | public List<IvrTaskTemplate> selectIvrTaskTemplateList(IvrTaskTemplate ivrTaskTemplate); |
| | | |
| | | /** |
| | | * æ°å¢é访任å¡é访模æ¿åº |
| | | * |
| | | * @param ivrTaskTemplate é访任å¡é访模æ¿åº |
| | | * @return ç»æ |
| | | */ |
| | | public int insertIvrTaskTemplate(IvrTaskTemplate ivrTaskTemplate); |
| | | |
| | | /** |
| | | * æ°å¢æä¿®æ¹ |
| | | * |
| | | * @param ivrTaskTemplateVO |
| | | * @return |
| | | */ |
| | | public int saveOrUpdateTempScript(IvrTaskTemplateVO ivrTaskTemplateVO); |
| | | |
| | | /** |
| | | * ä¿®æ¹é访任å¡é访模æ¿åº |
| | | * |
| | | * @param ivrTaskTemplate é访任å¡é访模æ¿åº |
| | | * @return ç»æ |
| | | */ |
| | | public int updateIvrTaskTemplate(IvrTaskTemplate ivrTaskTemplate); |
| | | |
| | | /** |
| | | * æ¹éå é¤é访任å¡é访模æ¿åº |
| | | * |
| | | * @param IDs éè¦å é¤çé访任å¡é访模æ¿åºä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteIvrTaskTemplateByIDs(Long[] IDs); |
| | | |
| | | /** |
| | | * å é¤é访任å¡é访模æ¿åºä¿¡æ¯ |
| | | * |
| | | * @param ID é访任å¡é访模æ¿åºä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteIvrTaskTemplateByID(Long ID); |
| | | |
| | | /** |
| | | * æ¥è¯¢æ¨¡æ¿è¯¦æ
æ ¹æ®æ¡ä»¶ |
| | | */ |
| | | public IvrTaskTemplateVO selectInfoByCondition(IvrTaskTemplateVO ivrTaskTemplateVO); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service; |
| | | |
| | | import com.smartor.domain.IvrTaskTemplateTargetoption; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * éè®¿ä»»å¡æ¨¡æ¿ææ é项åºServiceæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-05-13 |
| | | */ |
| | | public interface IIvrTaskTemplateTargetoptionService |
| | | { |
| | | /** |
| | | * æ¥è¯¢éè®¿ä»»å¡æ¨¡æ¿ææ éé¡¹åº |
| | | * |
| | | * @param id éè®¿ä»»å¡æ¨¡æ¿ææ é项åºä¸»é® |
| | | * @return éè®¿ä»»å¡æ¨¡æ¿ææ éé¡¹åº |
| | | */ |
| | | public IvrTaskTemplateTargetoption selectIvrTaskTemplateTargetoptionById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢éè®¿ä»»å¡æ¨¡æ¿ææ é项åºå表 |
| | | * |
| | | * @param ivrTaskTemplateTargetoption éè®¿ä»»å¡æ¨¡æ¿ææ éé¡¹åº |
| | | * @return éè®¿ä»»å¡æ¨¡æ¿ææ é项åºéå |
| | | */ |
| | | public List<IvrTaskTemplateTargetoption> selectIvrTaskTemplateTargetoptionList(IvrTaskTemplateTargetoption ivrTaskTemplateTargetoption); |
| | | |
| | | /** |
| | | * æ°å¢éè®¿ä»»å¡æ¨¡æ¿ææ éé¡¹åº |
| | | * |
| | | * @param ivrTaskTemplateTargetoption éè®¿ä»»å¡æ¨¡æ¿ææ éé¡¹åº |
| | | * @return ç»æ |
| | | */ |
| | | public int insertIvrTaskTemplateTargetoption(IvrTaskTemplateTargetoption ivrTaskTemplateTargetoption); |
| | | |
| | | /** |
| | | * ä¿®æ¹éè®¿ä»»å¡æ¨¡æ¿ææ éé¡¹åº |
| | | * |
| | | * @param ivrTaskTemplateTargetoption éè®¿ä»»å¡æ¨¡æ¿ææ éé¡¹åº |
| | | * @return ç»æ |
| | | */ |
| | | public int updateIvrTaskTemplateTargetoption(IvrTaskTemplateTargetoption ivrTaskTemplateTargetoption); |
| | | |
| | | /** |
| | | * æ¹éå é¤éè®¿ä»»å¡æ¨¡æ¿ææ éé¡¹åº |
| | | * |
| | | * @param ids éè¦å é¤çéè®¿ä»»å¡æ¨¡æ¿ææ é项åºä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteIvrTaskTemplateTargetoptionByIds(Long[] ids); |
| | | |
| | | /** |
| | | * å é¤éè®¿ä»»å¡æ¨¡æ¿ææ é项åºä¿¡æ¯ |
| | | * |
| | | * @param id éè®¿ä»»å¡æ¨¡æ¿ææ é项åºä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteIvrTaskTemplateTargetoptionById(Long id); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service.impl; |
| | | |
| | | import com.alibaba.fastjson2.JSON; |
| | | import com.fasterxml.jackson.core.JsonProcessingException; |
| | | import com.fasterxml.jackson.databind.ObjectMapper; |
| | | import com.google.gson.Gson; |
| | | import com.ruoyi.common.core.redis.RedisCache; |
| | | import com.ruoyi.common.exception.base.BaseException; |
| | | import com.ruoyi.common.utils.DateUtils; |
| | | import com.ruoyi.common.utils.DtoConversionUtils; |
| | | import com.smartor.config.PhoneUtils; |
| | | import com.smartor.config.RabbitMqCallPhoneConfig; |
| | | import com.smartor.domain.*; |
| | | import com.smartor.domain.robot.back.RobotAIDialogBack; |
| | | import com.smartor.domain.robot.back.RobotCallBack; |
| | | import com.smartor.domain.robot.back.RobotcdrInfoBack; |
| | | import com.smartor.mapper.*; |
| | | import com.smartor.service.AIRobotPhoneCallBackService; |
| | | import com.smartor.service.IIvrTaskService; |
| | | import com.smartor.service.IIvrTaskSingleService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.collections4.CollectionUtils; |
| | | import org.apache.commons.lang3.ObjectUtils; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.*; |
| | | import java.util.concurrent.TimeUnit; |
| | | import java.util.regex.Matcher; |
| | | import java.util.regex.Pattern; |
| | | |
| | | /** |
| | | * åä¸ä»»å¡ï¼é访ï¼Serviceä¸å¡å±å¤ç |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-02-02 |
| | | */ |
| | | @Slf4j |
| | | @Service |
| | | public class AIRobotPhoneCallBackServiceImpl implements AIRobotPhoneCallBackService { |
| | | |
| | | /** |
| | | * å¼å«å°è¾¾çº¿è·¯åçç¶æè¿åæ¥å£ |
| | | * |
| | | * @param robotCallBack |
| | | * @return |
| | | */ |
| | | @Override |
| | | public String callstatus(RobotCallBack robotCallBack) { |
| | | |
| | | return null; |
| | | } |
| | | |
| | | @Override |
| | | public String aidialog(RobotAIDialogBack robotAIDialogBack) { |
| | | return null; |
| | | } |
| | | |
| | | @Override |
| | | public String cdrinfo(RobotcdrInfoBack robotcdrInfoBack) { |
| | | return null; |
| | | } |
| | | |
| | | |
| | | } |
| | |
| | | private IvrLibaTemplateTagMapper ivrLibaTemplateTagMapper; |
| | | |
| | | @Autowired |
| | | private IvrLibaTemplateTargetMapper ivrLibaTemplateTargetMapper; |
| | | |
| | | @Autowired |
| | | private IvrLibaTemplateTargetoptionMapper ivrLibaTemplateTargetOptionMapper; |
| | | |
| | | @Autowired |
| | |
| | | private IIvrTaskService ivrTaskService; |
| | | |
| | | @Autowired |
| | | private IvrLibaTemplateTargetoptionMapper ivrLibaScriptTargetoptionMapper; |
| | | private IvrTaskTemplateTargetoptionMapper ivrTaskScriptTargetoptionMapper; |
| | | |
| | | @Autowired |
| | | private IvrLibaTemplateScriptMapper ivrLibaTemplateScriptMapper; |
| | | private IvrLibaTemplateScriptMapper ivrTaskTemplateScriptMapper; |
| | | |
| | | @Autowired |
| | | private IvrTaskVisitResultMapper ivrTaskVisitResultMapper; |
| | |
| | | if (CollectionUtils.isEmpty(list)) { |
| | | new BaseException("该任å¡ä¸åå¨"); |
| | | } |
| | | //å°æ¥åºæ¥çæ°æ®åå
¥IvrTaskcallVOä¸ |
| | | IvrTaskSingleVO ivrTaskcallVO2 = DtoConversionUtils.sourceToTarget(list.get(0), IvrTaskSingleVO.class); |
| | | String sendTimeSlot = list.get(0).getSendTimeSlot(); |
| | | IvrTask ivrTask = ivrTaskService.selectIvrTaskByTaskid(ivrTaskcall.getTaskid()); |
| | | //å°æ¥åºæ¥çæ°æ®åå
¥ivrTasksingleVOä¸ |
| | | IvrTaskSingleVO ivrTasksingleVO2 = DtoConversionUtils.sourceToTarget(list.get(0), IvrTaskSingleVO.class); |
| | | String sendTimeSlot = ivrTask.getSendTimeSlot(); |
| | | ObjectMapper objectMapper = new ObjectMapper(); |
| | | try { |
| | | //è·åå°åéæ¶é´çéå |
| | | if (com.ruoyi.common.utils.StringUtils.isNotEmpty(sendTimeSlot)) { |
| | | List<TaskSendTimeVO> taskSendTimeVOList = objectMapper.readValue(sendTimeSlot, List.class); |
| | | ivrTaskcallVO2.setSendTimeslot(taskSendTimeVOList); |
| | | ivrTasksingleVO2.setSendTimeslot(taskSendTimeVOList); |
| | | } |
| | | //ææ¬åéåæ° |
| | | if (com.ruoyi.common.utils.StringUtils.isNotEmpty(list.get(0).getTextParam())) { |
| | | Map<String, Map<String, String>> textParam = objectMapper.readValue(list.get(0).getTextParam(), Map.class); |
| | | ivrTaskcallVO2.setTextParam(textParam); |
| | | ivrTasksingleVO2.setTextParam(textParam); |
| | | } |
| | | } catch (JsonProcessingException e) { |
| | | e.printStackTrace(); |
| | |
| | | } |
| | | } |
| | | |
| | | ivrTaskcallVO2.setPatTaskRelevances(patTaskRelevances); |
| | | return ivrTaskcallVO2; |
| | | ivrTasksingleVO2.setPatTaskRelevances(patTaskRelevances); |
| | | return ivrTasksingleVO2; |
| | | } |
| | | |
| | | @Override |
| | |
| | | */ |
| | | @Transactional(rollbackFor = Exception.class) |
| | | @Override |
| | | public int insertOrUpdateTask(IvrTaskSingleVO ivrTaskcallVO) { |
| | | if (ObjectUtils.isEmpty(ivrTaskcallVO)) { |
| | | public int insertOrUpdateTask(IvrTaskSingleVO ivrTasksingleVO) { |
| | | if (ObjectUtils.isEmpty(ivrTasksingleVO)) { |
| | | log.info("ä»»å¡å
¥å为空ï¼è¯·æ£æ¥å
¥å"); |
| | | throw new BaseException("ä»»å¡å
¥å为空ï¼è¯·æ£æ¥å
¥å"); |
| | | } |
| | | Integer integer = 0; |
| | | if (ivrTaskcallVO.getIsoperation() != null && ivrTaskcallVO.getIsoperation() == 1) { |
| | | if (ivrTasksingleVO.getIsoperation() != null && ivrTasksingleVO.getIsoperation() == 1) { |
| | | //å¾ä»»å¡è¡¨ä¸ï¼æ°å¢ä»»å¡ |
| | | IvrTask ivrTask = DtoConversionUtils.sourceToTarget(ivrTaskcallVO, IvrTask.class); |
| | | IvrTask ivrTask = DtoConversionUtils.sourceToTarget(ivrTasksingleVO, IvrTask.class); |
| | | if (ObjectUtils.isNotEmpty(ivrTasksingleVO.getSendTimeslot())) |
| | | ivrTask.setSendTimeSlot(JSON.toJSONString(ivrTasksingleVO.getSendTimeslot())); |
| | | ivrTaskService.insertIvrTask(ivrTask); |
| | | |
| | | ivrTaskcallVO.setTaskid(ivrTask.getTaskid().longValue()); |
| | | ivrTasksingleVO.setTaskid(ivrTask.getTaskid().longValue()); |
| | | //æ°å¢ |
| | | if (CollectionUtils.isNotEmpty(ivrTaskcallVO.getPatTaskRelevances())) { |
| | | for (PatTaskRelevance patTaskRelevance : ivrTaskcallVO.getPatTaskRelevances()) { |
| | | //å°ä»»å¡ä¿¡æ¯æ°å¢å°å®£æä»»å¡è¡¨ä¸ |
| | | IvrTaskSingle ivrTaskcall = DtoConversionUtils.sourceToTarget(ivrTaskcallVO, IvrTaskSingle.class); |
| | | if (CollectionUtils.isNotEmpty(ivrTasksingleVO.getPatTaskRelevances())) { |
| | | for (PatTaskRelevance patTaskRelevance : ivrTasksingleVO.getPatTaskRelevances()) { |
| | | //å°ä»»å¡ä¿¡æ¯æ°å¢å°é访æå¡è¡¨ä¸ |
| | | IvrTaskSingle ivrTaskcall = DtoConversionUtils.sourceToTarget(ivrTasksingleVO, IvrTaskSingle.class); |
| | | ivrTaskcall.setSendname(patTaskRelevance.getName()); |
| | | ivrTaskcall.setAge(patTaskRelevance.getAge()); |
| | | ivrTaskcall.setSfzh(patTaskRelevance.getSfzh()); |
| | |
| | | ivrTaskcall.setAddr(patTaskRelevance.getAddr()); |
| | | ivrTaskcall.setCreateTime(DateUtils.getNowDate()); |
| | | ivrTaskcall.setTextParam(new Gson().toJson(patTaskRelevance.getTextParam())); |
| | | if (CollectionUtils.isNotEmpty(ivrTaskcallVO.getSendTimeslot())) { |
| | | ivrTaskcall.setSendTimeSlot(ivrTaskcallVO.getSendTimeslot().toString()); |
| | | } |
| | | ivrTaskSingleMapper.insertIvrTaskcall(ivrTaskcall); |
| | | integer = ivrTaskcall.getId().intValue(); |
| | | } |
| | | } |
| | | |
| | | } else if (ivrTaskcallVO.getIsoperation() != null && ivrTaskcallVO.getIsoperation() == 2) { |
| | | } else if (ivrTasksingleVO.getIsoperation() != null && ivrTasksingleVO.getIsoperation() == 2) { |
| | | //ä»»å¡ä¿®æ¹ |
| | | IvrTask ivrTask = DtoConversionUtils.sourceToTarget(ivrTaskcallVO, IvrTask.class); |
| | | IvrTask ivrTask = DtoConversionUtils.sourceToTarget(ivrTasksingleVO, IvrTask.class); |
| | | if (ObjectUtils.isNotEmpty(ivrTasksingleVO.getSendTimeslot())) |
| | | ivrTask.setSendTimeSlot(JSON.toJSONString(ivrTasksingleVO.getSendTimeslot())); |
| | | //è·å表éçstopStateæ°å¼ + 1 |
| | | IvrTask ivrTask1 = ivrTaskService.selectIvrTaskByTaskid(ivrTask.getTaskid()); |
| | | ivrTask.setStopState(ivrTask1.getStopState() + 1); |
| | | ivrTaskService.updateIvrTask(ivrTask); |
| | | |
| | | if (CollectionUtils.isNotEmpty(ivrTaskcallVO.getPatTaskRelevances())) { |
| | | for (PatTaskRelevance patTaskRelevance : ivrTaskcallVO.getPatTaskRelevances()) { |
| | | if (CollectionUtils.isNotEmpty(ivrTasksingleVO.getPatTaskRelevances())) { |
| | | for (PatTaskRelevance patTaskRelevance : ivrTasksingleVO.getPatTaskRelevances()) { |
| | | |
| | | IvrTaskSingle ivrTaskcall = DtoConversionUtils.sourceToTarget(ivrTaskcallVO, IvrTaskSingle.class); |
| | | IvrTaskSingle ivrTaskcall = DtoConversionUtils.sourceToTarget(ivrTasksingleVO, IvrTaskSingle.class); |
| | | ivrTaskcall.setSendname(patTaskRelevance.getName()); |
| | | ivrTaskcall.setAge(patTaskRelevance.getAge()); |
| | | ivrTaskcall.setSfzh(patTaskRelevance.getSfzh()); |
| | | ivrTaskcall.setPhone(patTaskRelevance.getPhone()); |
| | | ivrTaskcall.setAddr(patTaskRelevance.getAddr()); |
| | | ivrTaskcall.setCreateTime(DateUtils.getNowDate()); |
| | | if (CollectionUtils.isNotEmpty(ivrTaskcallVO.getSendTimeslot())) { |
| | | ivrTaskcall.setSendTimeSlot(ivrTaskcallVO.getSendTimeslot().toString()); |
| | | } |
| | | ivrTaskcall.setTextParam(new Gson().toJson(ivrTaskcallVO.getTextParam())); |
| | | ivrTaskcall.setTextParam(new Gson().toJson(ivrTasksingleVO.getTextParam())); |
| | | if (patTaskRelevance.getIsoperation() == 2) ivrTaskSingleMapper.updateIvrTaskcall(ivrTaskcall); |
| | | if (patTaskRelevance.getIsoperation() == 1) ivrTaskSingleMapper.insertIvrTaskcall(ivrTaskcall); |
| | | integer = ivrTaskcall.getId().intValue(); |
| | | } |
| | | } |
| | | |
| | | } else if (ivrTaskcallVO.getIsoperation() != null && ivrTaskcallVO.getIsoperation() == 3) { |
| | | ivrTaskSingleMapper.deleteIvrTaskcallById(ivrTaskcallVO.getId()); |
| | | } else if (ivrTasksingleVO.getIsoperation() != null && ivrTasksingleVO.getIsoperation() == 3) { |
| | | ivrTaskSingleMapper.deleteIvrTaskcallById(ivrTasksingleVO.getId()); |
| | | |
| | | integer = ivrTaskcallVO.getId().intValue(); |
| | | integer = ivrTasksingleVO.getId().intValue(); |
| | | } |
| | | return integer; |
| | | } |
| | |
| | | * @return |
| | | */ |
| | | @Override |
| | | public int heTaskSend(IvrTaskSingleVO ivrTaskcallVO) { |
| | | public int heTaskSend(SendTaskVO sendTaskVO) { |
| | | if (sendTaskVO.getTaskId() == null) throw new BaseException("ä»»å¡IDä¸è½ä¸ºç©ºï¼è¯·æ£æ¥åï¼åè¿è¡æ§è¡"); |
| | | IvrTask ivrTask = ivrTaskService.selectIvrTaskByTaskid(sendTaskVO.getTaskId()); |
| | | if (StringUtils.isNotEmpty(sendTaskVO.getSendState()) && sendTaskVO.getSendState().equals("3") || StringUtils.isNotEmpty(sendTaskVO.getSendState()) && sendTaskVO.getSendState().equals("4")) { |
| | | //任塿åæç»æ¢ |
| | | IvrTask ivrTask3 = new IvrTask(); |
| | | ivrTask3.setTaskid(sendTaskVO.getTaskId()); |
| | | ivrTask3.setStopState(ivrTask.getStopState() + 1); |
| | | ivrTask3.setSendState(sendTaskVO.getSendState()); |
| | | ivrTaskService.updateIvrTask(ivrTask3); |
| | | return 0; |
| | | } |
| | | |
| | | //夿åéç¶ææ¯å¦ä¸ºç©º |
| | | if (StringUtils.isEmpty(sendTaskVO.getSendType())) { |
| | | sendTaskVO.setSendType(ivrTask.getSendType().toString()); |
| | | } |
| | | |
| | | //夿任塿¯å¦æ¯ç«å³åé |
| | | if (ivrTaskcallVO.getSendType().equals("2")) { |
| | | if (StringUtils.isNotEmpty(sendTaskVO.getSendType()) && sendTaskVO.getSendType().equals("2")) { |
| | | IvrTaskcallMQ ivrTaskcallMQ = new IvrTaskcallMQ(); |
| | | ivrTaskcallMQ.setTaskid(ivrTaskcallVO.getTaskid()); |
| | | ivrTaskcallMQ.setSendType("1"); |
| | | ivrTaskcallMQ.setTemplateid(ivrTaskcallVO.getTemplateid()); |
| | | ivrTaskcallMQ.setTaskid(sendTaskVO.getTaskId()); |
| | | ivrTaskcallMQ.setSendType(sendTaskVO.getSendType()); |
| | | ivrTaskcallMQ.setTemplateid(ivrTask.getTemplateid().toString()); |
| | | ivrTaskcallMQ.setStopState(ivrTask.getStopState()); |
| | | |
| | | String ivrTaskcallMQJson = JSON.toJSONString(ivrTaskcallMQ); |
| | | ivrTaskcallMQJson = ivrTaskcallMQJson.substring(1, ivrTaskcallMQJson.length() - 1); |
| | | //ç«å³åé |
| | | rabbitMqCallPhoneConfig.sendMessage("phone_exchange", "phone.123", ivrTaskcallMQJson, 0L); |
| | | |
| | | } else if (ivrTaskcallVO.getSendType().equals("1")) { |
| | | //å°ä»»å¡ç¶æä¿®æ¹ææ§è¡ä¸ |
| | | IvrTask ivrTask2 = new IvrTask(); |
| | | ivrTask2.setTaskid(ivrTask.getTaskid()); |
| | | ivrTask2.setSendState("2"); |
| | | ivrTask2.setStopState(ivrTask.getStopState() + 1); |
| | | ivrTaskService.updateIvrTask(ivrTask2); |
| | | } else if (StringUtils.isNotEmpty(sendTaskVO.getSendType()) && sendTaskVO.getSendType().equals("1")) { |
| | | //æ¶é´æ®µåé |
| | | if (CollectionUtils.isNotEmpty(ivrTaskcallVO.getSendTimeslot())) { |
| | | for (TaskSendTimeVO taskSendTimeVO : ivrTaskcallVO.getSendTimeslot()) { |
| | | ObjectMapper objectMapper = new ObjectMapper(); |
| | | if (StringUtils.isNotEmpty(ivrTask.getSendTimeSlot())) { |
| | | List<TaskSendTimeVO> taskSendTimeVOList = null; |
| | | try { |
| | | taskSendTimeVOList = objectMapper.readValue(ivrTask.getSendTimeSlot(), List.class); |
| | | } catch (JsonProcessingException e) { |
| | | log.error("JsonProcessingExceptionæ¥éäºï¼{}", e.getMessage()); |
| | | } |
| | | for (TaskSendTimeVO taskSendTimeVO : taskSendTimeVOList) { |
| | | //å»SendTimeslotä¸ï¼è·åææçæ¶é´æ®µ |
| | | List<TaskSendTimeVO> list = new ArrayList<>(); |
| | | list.add(taskSendTimeVO); |
| | |
| | | e.printStackTrace(); |
| | | } |
| | | IvrTaskcallMQ ivrTaskcallMQ = new IvrTaskcallMQ(); |
| | | ivrTaskcallMQ.setTaskid(ivrTaskcallVO.getTaskid()); |
| | | ivrTaskcallMQ.setTaskid(sendTaskVO.getTaskId()); |
| | | ivrTaskcallMQ.setSendType("1"); |
| | | ivrTaskcallMQ.setTemplateid(ivrTaskcallVO.getTemplateid()); |
| | | ivrTaskcallMQ.setTemplateid(ivrTask.getTemplateid().toString()); |
| | | ivrTaskcallMQ.setSendTimeslot(list); |
| | | ivrTaskcallMQ.setStopState(ivrTask.getStopState()); |
| | | |
| | | Long finalMilliseconds = milliseconds; |
| | | String ivrTaskcallMQJson = JSON.toJSONString(ivrTaskcallMQ); |
| | |
| | | rabbitMqCallPhoneConfig.sendMessage("phone_exchange", "phone.123", ivrTaskcallMQJson, 0L); |
| | | } |
| | | //å°ä»»å¡ç¶æä¿®æ¹ææ§è¡ä¸ |
| | | IvrTask ivrTask = new IvrTask(); |
| | | ivrTask.setTaskid(ivrTaskcallVO.getTaskid()); |
| | | ivrTask.setSendState("2"); |
| | | ivrTaskService.updateIvrTask(ivrTask); |
| | | IvrTask ivrTask2 = new IvrTask(); |
| | | ivrTask2.setTaskid(ivrTask.getTaskid()); |
| | | ivrTask2.setSendState("2"); |
| | | ivrTask2.setStopState(ivrTask.getStopState() + 1); |
| | | ivrTaskService.updateIvrTask(ivrTask2); |
| | | } |
| | | } |
| | | |
| | | return 0; |
| | | } |
| | | |
| | |
| | | |
| | | Map<String, Object> map = redisCache.getCacheObject(phoneCallBackVO.getUuid()); |
| | | IvrTaskSingle ivrTaskcall = (IvrTaskSingle) map.get("ivrTaskSingle"); |
| | | List<IvrLibaTemplateScriptVO> ivrLibaTemplateScriptVOs = (List<IvrLibaTemplateScriptVO>) map.get("ivrLibaTemplateScriptVO"); |
| | | List<IvrTaskTemplateScriptVO> ivrTaskTemplateScriptVOs = (List<IvrTaskTemplateScriptVO>) map.get("ivrTaskTemplateScriptVO"); |
| | | //å°uuidæ´æ°å°æ°æ®åºä¸ |
| | | ivrTaskcall.setSenduuid(phoneCallBackVO.getUuid()); |
| | | ivrTaskSingleMapper.updateIvrTaskcall(ivrTaskcall); |
| | | |
| | | //è·å模æ¿ä¿¡æ¯ |
| | | IvrLibaTemplateVO ivrLibaTemplateVO = redisCache.getCacheObject(phoneCallBackVO.getUuid() + "ivrLibaTemplateVO"); |
| | | IvrTaskTemplateVO ivrTaskTemplateVO = redisCache.getCacheObject(phoneCallBackVO.getUuid() + "ivrTaskTemplateVO"); |
| | | |
| | | //è¯é³è¯å«ç»æä¸æ¥æ¥å£: 3 |
| | | Integer noVoice = redisCache.getCacheObject(phoneCallBackVO.getUuid() + "noVoice"); |
| | |
| | | //å°ä¼ åçç»ææ¾å°åå¤å¯¹è±¡ä¸ |
| | | returnQues.setContent(phoneCallBackVO.getTextResult()); |
| | | |
| | | IvrLibaTemplateScriptVO nowQuestion = returnQues.getNowQuestion(); |
| | | IvrTaskTemplateScriptVO nowQuestion = returnQues.getNowQuestion(); |
| | | |
| | | if (StringUtils.isEmpty(returnQues.getContent())) { |
| | | //æ åè¯ |
| | | //夿noVoiceæ¯å¦å·²ç»å°äºæå¤§å¼ |
| | | if (noVoice == ivrLibaTemplateVO.getNoVoiceNum().intValue()) { |
| | | if (noVoice == ivrTaskTemplateVO.getNoVoiceNum().intValue()) { |
| | | //å·²ç»é®äºå¯¹åºçéæ°ï¼å°±å¤ææ¯å¦è¿æä¸ä¸é¢ |
| | | if (nowQuestion.getTargetid() == ivrLibaTemplateScriptVOs.size()) { |
| | | if (nowQuestion.getTargetid() == ivrTaskTemplateScriptVOs.size()) { |
| | | //没æä¸ä¸é¢äºï¼å°±ææçµè¯ï¼ææ¾ç»æè¯ |
| | | redisCache.setCacheObject(phoneCallBackVO.getUuid() + "hangup", 1, 120, TimeUnit.MINUTES); |
| | | phoneUtils.ttsPlayback(ivrLibaTemplateVO.getRevisitAfter(), phoneCallBackVO.getUuid()); |
| | | phoneUtils.ttsPlayback(ivrTaskTemplateVO.getRevisitAfter(), phoneCallBackVO.getUuid()); |
| | | return; |
| | | } else { |
| | | //æä¸ä¸é¢ |
| | | redisCache.setCacheObject(phoneCallBackVO.getUuid() + "noVoice", 0, 120, TimeUnit.MINUTES); |
| | | IvrLibaTemplateScriptVO nextQuestion = getNextQuestion(ivrLibaTemplateScriptVOs, nowQuestion); |
| | | IvrTaskTemplateScriptVO nextQuestion = getNextQuestion(ivrTaskTemplateScriptVOs, nowQuestion); |
| | | // é®é¢ï¼ å»è°ç¨âttsåæåææ¾âæ¥å£ |
| | | String date = simpleDateFormat1.format(new Date()); |
| | | log.info("å»è°ç¨ttsåæåææ¾æ¥å£: {},uuid为ï¼{}", date, phoneCallBackVO.getUuid()); |
| | |
| | | //isppdç¨æ¥è®°å½æ¯å¦å¹é
å° |
| | | Boolean isppd = false; |
| | | //æåè¯ï¼å¯¹åççé®é¢,è¿è¡æ£åå¹é
ï¼è¿éåªé坹鿩é¢ï¼å
¶å®é¢åä¸è¡ï¼ |
| | | for (int j = 0; j < nowQuestion.getIvrLibaScriptTargetoptionList().size(); j++) { |
| | | for (int j = 0; j < nowQuestion.getIvrTaskScriptTargetoptionList().size(); j++) { |
| | | //å
å« |
| | | Matcher matcher = null; |
| | | if (StringUtils.isNotEmpty(nowQuestion.getIvrLibaScriptTargetoptionList().get(j).getTargetregex())) { |
| | | Pattern pattern = Pattern.compile(nowQuestion.getIvrLibaScriptTargetoptionList().get(j).getTargetregex()); |
| | | if (StringUtils.isNotEmpty(nowQuestion.getIvrTaskScriptTargetoptionList().get(j).getTargetregex())) { |
| | | Pattern pattern = Pattern.compile(nowQuestion.getIvrTaskScriptTargetoptionList().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()); |
| | | if (StringUtils.isNotEmpty(nowQuestion.getIvrTaskScriptTargetoptionList().get(j).getTargetregex2())) { |
| | | Pattern pattern2 = Pattern.compile(nowQuestion.getIvrTaskScriptTargetoptionList().get(j).getTargetregex2()); |
| | | matcher2 = pattern2.matcher(phoneCallBackVO.getTextResult()); |
| | | } |
| | | log.error("PCB--getQuestionTexté®é¢ä¸ºï¼{},UUIDï¼{}", nowQuestion.getQuestionText(), phoneCallBackVO.getUuid()); |
| | | if (StringUtils.isNotEmpty(nowQuestion.getIvrLibaScriptTargetoptionList().get(j).getTargetregex2()) && matcher2.matches() && StringUtils.isNotEmpty(nowQuestion.getIvrLibaScriptTargetoptionList().get(j).getTargetregex()) && matcher.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()) { |
| | | if (StringUtils.isNotEmpty(nowQuestion.getIvrTaskScriptTargetoptionList().get(j).getTargetregex2()) && matcher2.matches() && StringUtils.isNotEmpty(nowQuestion.getIvrTaskScriptTargetoptionList().get(j).getTargetregex()) && matcher.matches() || StringUtils.isEmpty(nowQuestion.getIvrTaskScriptTargetoptionList().get(j).getTargetregex()) && StringUtils.isNotEmpty(nowQuestion.getIvrTaskScriptTargetoptionList().get(j).getTargetregex2()) && matcher2.matches() || StringUtils.isEmpty(nowQuestion.getIvrTaskScriptTargetoptionList().get(j).getTargetregex2()) && StringUtils.isNotEmpty(nowQuestion.getIvrTaskScriptTargetoptionList().get(j).getTargetregex()) && matcher.matches()) { |
| | | //说æå¹é
æ£ç¡®äº |
| | | //è¿éåºè¯¥å
å¤æç±»åï¼å»åä¿®æ¹ï¼è®¾ç½®IsUserOperationæ¯åéé¢çæ¹æ³ |
| | | nowQuestion.getIvrLibaScriptTargetoptionList().get(j).setIsUserOperation(true); |
| | | ivrLibaScriptTargetoptionMapper.updateIvrLibaTemplateTargetoption(nowQuestion.getIvrLibaScriptTargetoptionList().get(j)); |
| | | nowQuestion.getIvrTaskScriptTargetoptionList().get(j).setIsUserOperation(true); |
| | | ivrTaskScriptTargetoptionMapper.updateIvrTaskTemplateTargetoption(nowQuestion.getIvrTaskScriptTargetoptionList().get(j)); |
| | | |
| | | //å°éé»ç½®ä¸º0 |
| | | redisCache.setCacheObject(phoneCallBackVO.getUuid() + "noVoice", 0, 120, TimeUnit.MINUTES); |
| | |
| | | ivrTaskVisitResult.setQuestion(nowQuestion.getQuestionText()); |
| | | ivrTaskVisitResult.setPatientAnswer(phoneCallBackVO.getTextResult()); |
| | | ivrTaskVisitResult.setCreateTime(new Date()); |
| | | ivrTaskVisitResult.setOptionResult(nowQuestion.getIvrLibaScriptTargetoptionList().get(j).getTargetvalue()); |
| | | ivrTaskVisitResult.setOptionResult(nowQuestion.getIvrTaskScriptTargetoptionList().get(j).getTargetvalue()); |
| | | ivrTaskVisitResultMapper.insertIvrTaskVisitResult(ivrTaskVisitResult); |
| | | |
| | | //å°å¹é
å°çæ è¯æ¹ætrue |
| | | isppd = true; |
| | | |
| | | //è·åä¸ä¸é¢ |
| | | Integer nextQuestion = nowQuestion.getIvrLibaScriptTargetoptionList().get(j).getNextQuestion(); |
| | | for (IvrLibaTemplateScriptVO script : ivrLibaTemplateScriptVOs) { |
| | | Long nextQuestion = nowQuestion.getIvrTaskScriptTargetoptionList().get(j).getNextQuestion(); |
| | | for (IvrTaskTemplateScriptVO script : ivrTaskTemplateScriptVOs) { |
| | | if (script.getTargetid() == nextQuestion) { |
| | | QuestionMessage questionMessage = new QuestionMessage(); |
| | | questionMessage.setNowQuestion(script); |
| | | questionMessage.setQuestionList(ivrLibaTemplateScriptVOs); |
| | | questionMessage.setQuestionList(ivrTaskTemplateScriptVOs); |
| | | redisCache.setCacheObject(phoneCallBackVO.getUuid() + "returnQues", questionMessage, 120, TimeUnit.MINUTES); |
| | | phoneUtils.ttsPlayback(script.getQuestionText(), phoneCallBackVO.getUuid()); |
| | | return; |
| | | } else if (nextQuestion > ivrLibaTemplateScriptVOs.size()) { |
| | | } else if (nextQuestion > ivrTaskTemplateScriptVOs.size()) { |
| | | //没æä¸ä¸é¢äºï¼å°±ç»æäº |
| | | String date = simpleDateFormat1.format(new Date()); |
| | | log.error("没æä¸ä¸é¢äºï¼å°±ç»æäº: {},uuid为ï¼{}", date, phoneCallBackVO.getUuid()); |
| | | redisCache.setCacheObject(phoneCallBackVO.getUuid() + "hangup", 1, 120, TimeUnit.MINUTES); |
| | | phoneUtils.ttsPlayback(ivrLibaTemplateVO.getRevisitAfter(), phoneCallBackVO.getUuid()); |
| | | phoneUtils.ttsPlayback(ivrTaskTemplateVO.getRevisitAfter(), phoneCallBackVO.getUuid()); |
| | | try { |
| | | Thread.sleep(3000); |
| | | } catch (InterruptedException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | phoneUtils.hangup("", "", ivrLibaTemplateVO.getRevisitAfter(), "", "", "", "", phoneCallBackVO.getUuid()); |
| | | phoneUtils.hangup("", "", ivrTaskTemplateVO.getRevisitAfter(), "", "", "", "", phoneCallBackVO.getUuid()); |
| | | return; |
| | | } |
| | | } |
| | |
| | | Integer mateNum = redisCache.getCacheObject(phoneCallBackVO.getUuid() + "mateNum"); |
| | | if (mateNum == null) mateNum = 0; |
| | | //æ å¹é
次æ°å»å¤ææ¯å¦å°æå¤§è¯¢é®æ¬¡æ°ï¼å¹¶ä¸ææçé项é½å¹é
å®äº |
| | | if (mateNum == ivrLibaTemplateVO.getMateNum().intValue()) { |
| | | if (mateNum == ivrTaskTemplateVO.getMateNum().intValue()) { |
| | | //妿ä¸ä¸é¢ä¸ºç©º.åæ°çæ°æ®è¿å,å¹¶å ä¸æè°¢è¯ |
| | | if (nowQuestion.getTargetid() < ivrLibaTemplateScriptVOs.size()) { |
| | | if (nowQuestion.getTargetid() < ivrTaskTemplateScriptVOs.size()) { |
| | | QuestionMessage questionMessage = new QuestionMessage(); |
| | | IvrLibaTemplateScriptVO nextQuestion = getNextQuestion(ivrLibaTemplateScriptVOs, nowQuestion); |
| | | questionMessage.setQuestionList(ivrLibaTemplateScriptVOs); |
| | | IvrTaskTemplateScriptVO nextQuestion = getNextQuestion(ivrTaskTemplateScriptVOs, nowQuestion); |
| | | questionMessage.setQuestionList(ivrTaskTemplateScriptVOs); |
| | | questionMessage.setNowQuestion(nextQuestion); |
| | | redisCache.setCacheObject(phoneCallBackVO.getUuid() + "returnQues", questionMessage, 120, TimeUnit.MINUTES); |
| | | redisCache.setCacheObject(phoneCallBackVO.getUuid() + "mateNum", 0, 120, TimeUnit.MINUTES); |
| | |
| | | String date = simpleDateFormat1.format(new Date()); |
| | | log.info("å°±å¯ä»¥ææçµè¯äº------: {},uuid为ï¼{}", date, phoneCallBackVO.getUuid()); |
| | | redisCache.setCacheObject(phoneCallBackVO.getUuid() + "hangup", 1, 120, TimeUnit.MINUTES); |
| | | phoneUtils.ttsPlayback(ivrLibaTemplateVO.getRevisitAfter(), phoneCallBackVO.getUuid()); |
| | | phoneUtils.ttsPlayback(ivrTaskTemplateVO.getRevisitAfter(), phoneCallBackVO.getUuid()); |
| | | try { |
| | | Thread.sleep(3000); |
| | | } catch (InterruptedException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | phoneUtils.hangup("", "", ivrLibaTemplateVO.getRevisitAfter(), "", "", "", "", phoneCallBackVO.getUuid()); |
| | | phoneUtils.hangup("", "", ivrTaskTemplateVO.getRevisitAfter(), "", "", "", "", phoneCallBackVO.getUuid()); |
| | | return; |
| | | } |
| | | } else if (mateNum < ivrLibaTemplateVO.getMateNum().intValue()) { |
| | | } else if (mateNum < ivrTaskTemplateVO.getMateNum().intValue()) { |
| | | //没æé®å°è§å®æ¬¡æ° |
| | | mateNum = mateNum + 1; |
| | | redisCache.setCacheObject(phoneCallBackVO.getUuid() + "mateNum", mateNum, 120, TimeUnit.MINUTES); |
| | | } |
| | | } |
| | | //é项å¹é
宿åï¼éè¦åå»éè¿åºåè¿è¡å¹é
䏿¬¡ |
| | | String extemplateID = ivrLibaTemplateVO.getSubmoduleID(); |
| | | String extemplateID = ivrTaskTemplateVO.getSubmoduleID(); |
| | | String[] split = extemplateID.split(","); |
| | | List<String> list = Arrays.asList(split); |
| | | List<Long> list1 = new ArrayList<>(); |
| | |
| | | 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()); |
| | | IvrTaskTemplateScriptVO ivrTaskTemplateScriptVO = returnQues.getNowQuestion(); |
| | | ivrTaskTemplateScriptVO.setSubmoduleText(ivrLibaExtemplatescript.getSwitchText()); |
| | | ivrTaskTemplateScriptVO.setSubmoduleVoice(ivrLibaExtemplatescript.getSwitchWav()); |
| | | redisCache.setCacheObject(phoneCallBackVO.getUuid() + "returnQues", questionMessage, 120, TimeUnit.MINUTES); |
| | | if (ivrLibaExtemplatescript.getIsEnd() == 1) { |
| | | //å°é®é¢ç½®ç©º |
| | | IvrLibaTemplateScriptVO nowQuestion1 = questionMessage.getNowQuestion(); |
| | | IvrTaskTemplateScriptVO nowQuestion1 = questionMessage.getNowQuestion(); |
| | | nowQuestion1.setQuestionText(null); |
| | | nowQuestion1.setQuestionVoice(null); |
| | | questionMessage.setNowQuestion(nowQuestion1); |
| | |
| | | //è°ç¨â15ãttsåæåææ¾ï¼ tts_playbackâå°ç»æä¼ å |
| | | String date = simpleDateFormat1.format(new Date()); |
| | | log.info("è°ç¨â15ãttsåæåææ¾------: {},uuid为ï¼{}", date, phoneCallBackVO.getUuid()); |
| | | phoneUtils.ttsPlayback(nowQuestion.getQuestionText() + ivrLibaTemplateScriptVO.getSubmoduleText(), phoneCallBackVO.getUuid()); |
| | | phoneUtils.ttsPlayback(nowQuestion.getQuestionText() + ivrTaskTemplateScriptVO.getSubmoduleText(), phoneCallBackVO.getUuid()); |
| | | } |
| | | break; |
| | | } |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | |
| | | //ä¸é¢ç代ç ä¸è½å é¤ï¼ä¸é¢çæ¹æ³åªæ¯é
åçµè¯ç«¯èè°ç¨çï¼ |
| | | // @Override |
| | |
| | | // return phoneCallBackVO; |
| | | // } |
| | | |
| | | private IvrLibaTemplateScriptVO getNextQuestion(List<IvrLibaTemplateScriptVO> ivrLibaTemplateScriptVOList, IvrLibaTemplateScriptVO ivrLibaTemplateScriptVO) { |
| | | |
| | | for (int j = 0; j < ivrLibaTemplateScriptVOList.size(); j++) { |
| | | if (ivrLibaTemplateScriptVOList.get(j).getTargetid() == ivrLibaTemplateScriptVO.getTargetid() + 1) { |
| | | private IvrTaskTemplateScriptVO getNextQuestion(List<IvrTaskTemplateScriptVO> ivrTaskTemplateScriptVOList, IvrTaskTemplateScriptVO ivrTaskTemplateScriptVO) { |
| | | |
| | | for (int j = 0; j < ivrTaskTemplateScriptVOList.size(); j++) { |
| | | if (ivrTaskTemplateScriptVOList.get(j).getTargetid() == ivrTaskTemplateScriptVO.getTargetid() + 1) { |
| | | // 对该æ¡templateScriptVOè¿è¡å¤ç |
| | | return ivrLibaTemplateScriptVOList.get(j); |
| | | return ivrTaskTemplateScriptVOList.get(j); |
| | | } |
| | | } |
| | | return null; |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service.impl; |
| | | |
| | | import com.ruoyi.common.utils.DateUtils; |
| | | import com.smartor.domain.IvrTaskTemplateScript; |
| | | import com.smartor.mapper.IvrTaskTemplateScriptMapper; |
| | | import com.smartor.service.IIvrTaskTemplateScriptService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * éè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åºServiceä¸å¡å±å¤ç |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-05-13 |
| | | */ |
| | | @Service |
| | | public class IvrTaskTemplateScriptServiceImpl implements IIvrTaskTemplateScriptService { |
| | | @Autowired |
| | | private IvrTaskTemplateScriptMapper ivrTaskTemplateScriptMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢éè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åº |
| | | * |
| | | * @param ID éè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åºä¸»é® |
| | | * @return éè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åº |
| | | */ |
| | | @Override |
| | | public IvrTaskTemplateScript selectIvrTaskTemplateScriptByID(Long ID) { |
| | | return ivrTaskTemplateScriptMapper.selectIvrTaskTemplateScriptByID(ID); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢éè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åºå表 |
| | | * |
| | | * @param ivrTaskTemplateScript éè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åº |
| | | * @return éè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åº |
| | | */ |
| | | @Override |
| | | public List<IvrTaskTemplateScript> selectIvrTaskTemplateScriptList(IvrTaskTemplateScript ivrTaskTemplateScript) { |
| | | return ivrTaskTemplateScriptMapper.selectIvrTaskTemplateScriptList(ivrTaskTemplateScript); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢éè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åº |
| | | * |
| | | * @param ivrTaskTemplateScript éè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åº |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertIvrTaskTemplateScript(IvrTaskTemplateScript ivrTaskTemplateScript) { |
| | | ivrTaskTemplateScript.setCreateTime(DateUtils.getNowDate()); |
| | | return ivrTaskTemplateScriptMapper.insertIvrTaskTemplateScript(ivrTaskTemplateScript); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹éè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åº |
| | | * |
| | | * @param ivrTaskTemplateScript éè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åº |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updateIvrTaskTemplateScript(IvrTaskTemplateScript ivrTaskTemplateScript) { |
| | | ivrTaskTemplateScript.setUpdateTime(DateUtils.getNowDate()); |
| | | return ivrTaskTemplateScriptMapper.updateIvrTaskTemplateScript(ivrTaskTemplateScript); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤éè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åº |
| | | * |
| | | * @param IDs éè¦å é¤çéè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åºä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteIvrTaskTemplateScriptByIDs(Long[] IDs) { |
| | | return ivrTaskTemplateScriptMapper.deleteIvrTaskTemplateScriptByIDs(IDs); |
| | | } |
| | | |
| | | /** |
| | | * å é¤éè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åºä¿¡æ¯ |
| | | * |
| | | * @param ID éè®¿ä»»å¡æ¨¡çé®é¢è¯æ¯åºä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteIvrTaskTemplateScriptByID(Long ID) { |
| | | return ivrTaskTemplateScriptMapper.deleteIvrTaskTemplateScriptByID(ID); |
| | | } |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service.impl; |
| | | |
| | | import com.alibaba.fastjson2.JSON; |
| | | import com.fasterxml.jackson.core.JsonProcessingException; |
| | | import com.fasterxml.jackson.databind.ObjectMapper; |
| | | import com.ruoyi.common.exception.base.BaseException; |
| | | import com.ruoyi.common.utils.DateUtils; |
| | | import com.ruoyi.common.utils.DtoConversionUtils; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.smartor.domain.*; |
| | | import com.smartor.mapper.IvrTaskTemplateMapper; |
| | | import com.smartor.mapper.IvrTaskTemplateScriptMapper; |
| | | import com.smartor.mapper.IvrTaskTemplateTargetoptionMapper; |
| | | import com.smartor.service.IIvrTaskTemplateService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.collections4.CollectionUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.Collections; |
| | | import java.util.Comparator; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * é访任å¡é访模æ¿åºServiceä¸å¡å±å¤ç |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-05-13 |
| | | */ |
| | | @Slf4j |
| | | @Service |
| | | public class IvrTaskTemplateServiceImpl implements IIvrTaskTemplateService { |
| | | @Autowired |
| | | private IvrTaskTemplateMapper ivrTaskTemplateMapper; |
| | | |
| | | @Autowired |
| | | private IvrTaskTemplateScriptMapper ivrTaskTemplateScriptMapper; |
| | | |
| | | @Autowired |
| | | private IvrTaskTemplateTargetoptionMapper ivrTaskTemplateTargetoptionMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢é访任å¡é访模æ¿åº |
| | | * |
| | | * @param ID é访任å¡é访模æ¿åºä¸»é® |
| | | * @return é访任å¡é访模æ¿åº |
| | | */ |
| | | @Override |
| | | public IvrTaskTemplate selectIvrTaskTemplateByID(Long ID) { |
| | | return ivrTaskTemplateMapper.selectIvrTaskTemplateByID(ID); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢é访任å¡é访模æ¿åºå表 |
| | | * |
| | | * @param ivrTaskTemplate é访任å¡é访模æ¿åº |
| | | * @return é访任å¡é访模æ¿åº |
| | | */ |
| | | @Override |
| | | public List<IvrTaskTemplate> selectIvrTaskTemplateList(IvrTaskTemplate ivrTaskTemplate) { |
| | | return ivrTaskTemplateMapper.selectIvrTaskTemplateList(ivrTaskTemplate); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢é访任å¡é访模æ¿åº |
| | | * |
| | | * @param ivrTaskTemplate é访任å¡é访模æ¿åº |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertIvrTaskTemplate(IvrTaskTemplate ivrTaskTemplate) { |
| | | ivrTaskTemplate.setCreateTime(DateUtils.getNowDate()); |
| | | return ivrTaskTemplateMapper.insertIvrTaskTemplate(ivrTaskTemplate); |
| | | } |
| | | |
| | | @Override |
| | | public int saveOrUpdateTempScript(IvrTaskTemplateVO ivrTaskTemplateVO) { |
| | | Integer i = null; |
| | | IvrTaskTemplate ivrTaskTemplate = DtoConversionUtils.sourceToTarget(ivrTaskTemplateVO, IvrTaskTemplate.class); |
| | | if (ivrTaskTemplateVO.getIsoperation() != null && ivrTaskTemplateVO.getIsoperation() == 1) { |
| | | //æ°å¢ |
| | | ivrTaskTemplate.setCreateTime(new Date()); |
| | | insertIvrTaskTemplate(ivrTaskTemplate); |
| | | i = ivrTaskTemplate.getID().intValue(); |
| | | } else if (ivrTaskTemplateVO.getIsoperation() != null && ivrTaskTemplateVO.getIsoperation() == 2) { |
| | | //ä¿®æ¹ |
| | | ivrTaskTemplate.setUpdateTime(new Date()); |
| | | updateIvrTaskTemplate(ivrTaskTemplate); |
| | | i = ivrTaskTemplate.getID().intValue(); |
| | | } |
| | | log.info("æ°å¢é访任å¡é访模æ¿çid为ï¼{}", ivrTaskTemplate.getID()); |
| | | |
| | | |
| | | //对模æ¿è¯æ¯åé项è¿è¡å¤çï¼è¯æ¯è¡¨ä¸ææ 表è¿è¡åå¹¶äºï¼ï¼ |
| | | if (CollectionUtils.isNotEmpty(ivrTaskTemplateVO.getIvrTaskTemplateScriptVOList())) { |
| | | for (IvrTaskTemplateScriptVO ivrTaskTemplateScriptVO : ivrTaskTemplateVO.getIvrTaskTemplateScriptVOList()) { |
| | | if (ivrTaskTemplateScriptVO.getIsoperation() != null && ivrTaskTemplateScriptVO.getIsoperation() == 1) { |
| | | //æ°å¢ |
| | | IvrTaskTemplateScript ivrTaskTemplateScript = DtoConversionUtils.sourceToTarget(ivrTaskTemplateScriptVO, IvrTaskTemplateScript.class); |
| | | ivrTaskTemplateScript.setTemplateID(ivrTaskTemplate.getID()); |
| | | ivrTaskTemplateScript.setCreateTime(new Date()); |
| | | ivrTaskTemplateScriptMapper.insertIvrTaskTemplateScript(ivrTaskTemplateScript); |
| | | //对é项ç®è¿è¡å¤ç |
| | | dealOption(ivrTaskTemplateScriptVO.getIvrTaskScriptTargetoptionList(), ivrTaskTemplateScript, ivrTaskTemplate.getID()); |
| | | |
| | | } else if (ivrTaskTemplateScriptVO.getIsoperation() != null && ivrTaskTemplateScriptVO.getIsoperation() == 2) { |
| | | //ä¿®æ¹ |
| | | IvrTaskTemplateScript ivrTaskTemplateScript = DtoConversionUtils.sourceToTarget(ivrTaskTemplateScriptVO, IvrTaskTemplateScript.class); |
| | | ivrTaskTemplateScript.setTemplateID(ivrTaskTemplate.getID()); |
| | | ivrTaskTemplateScript.setUpdateTime(new Date()); |
| | | ivrTaskTemplateScriptMapper.updateIvrTaskTemplateScript(ivrTaskTemplateScript); |
| | | //对é项ç®è¿è¡å¤ç |
| | | dealOption(ivrTaskTemplateScriptVO.getIvrTaskScriptTargetoptionList(), ivrTaskTemplateScript, ivrTaskTemplate.getID()); |
| | | |
| | | } else if (ivrTaskTemplateScriptVO.getIsoperation() != null && ivrTaskTemplateScriptVO.getIsoperation() == 3) { |
| | | //å é¤ |
| | | if (ivrTaskTemplateScriptVO.getID() == null) { |
| | | log.info("å é¤å¤±è´¥,模æ¿è¯æ¯id为空"); |
| | | } else { |
| | | ivrTaskTemplateScriptVO.setUpdateTime(new Date()); |
| | | ivrTaskTemplateScriptMapper.deleteIvrTaskTemplateScriptByID(ivrTaskTemplateScriptVO.getID()); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | return ivrTaskTemplate.getID().intValue(); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹é访任å¡é访模æ¿åº |
| | | * |
| | | * @param ivrTaskTemplate é访任å¡é访模æ¿åº |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updateIvrTaskTemplate(IvrTaskTemplate ivrTaskTemplate) { |
| | | ivrTaskTemplate.setUpdateTime(DateUtils.getNowDate()); |
| | | return ivrTaskTemplateMapper.updateIvrTaskTemplate(ivrTaskTemplate); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤é访任å¡é访模æ¿åº |
| | | * |
| | | * @param IDs éè¦å é¤çé访任å¡é访模æ¿åºä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteIvrTaskTemplateByIDs(Long[] IDs) { |
| | | return ivrTaskTemplateMapper.deleteIvrTaskTemplateByIDs(IDs); |
| | | } |
| | | |
| | | /** |
| | | * å é¤é访任å¡é访模æ¿åºä¿¡æ¯ |
| | | * |
| | | * @param ID é访任å¡é访模æ¿åºä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteIvrTaskTemplateByID(Long ID) { |
| | | return ivrTaskTemplateMapper.deleteIvrTaskTemplateByID(ID); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * æ¥è¯¢æ¨¡æ¿è¯¦æ
æ ¹æ®æ¡ä»¶ |
| | | */ |
| | | @Override |
| | | public IvrTaskTemplateVO selectInfoByCondition(IvrTaskTemplateVO ivrTaskTemplateVO) { |
| | | log.info("æ¥è¯¢æ¨¡æ¿è¯¦æ
æ ¹æ®æ¡ä»¶çå
¥å为 : {}", ivrTaskTemplateVO); |
| | | //å
æ ¹æ®æ¡ä»¶æ¥è¯¢é®é¢è¡¨ä¿¡æ¯ |
| | | IvrTaskTemplate ivrTaskTemplate = DtoConversionUtils.sourceToTarget(ivrTaskTemplateVO, IvrTaskTemplate.class); |
| | | List<IvrTaskTemplate> ivrTaskTemplates = selectIvrTaskTemplateList(ivrTaskTemplate); |
| | | if (CollectionUtils.isEmpty(ivrTaskTemplates)) { |
| | | log.info("æä¾çæ¡ä»¶,æ¥è¯¢æ¨¡æ¿è¯¦æ
æ°æ®ä¸ºç©ºï¼{}", ivrTaskTemplates); |
| | | throw new BaseException("æä¾çæ¡ä»¶,æ¥è¯¢æ¨¡æ¿è¯¦æ
æ°æ®ä¸ºç©º"); |
| | | } |
| | | |
| | | log.info("ivrLibaTemplatesçæ¥è¯¢ç»æä¸º:{},æ°é为 : {}", ivrTaskTemplates.get(0), ivrTaskTemplates.size()); |
| | | //å®ä¹IvrLibaTemplateVO ç¨äºè¿å |
| | | IvrTaskTemplateVO templateVO = DtoConversionUtils.sourceToTarget(ivrTaskTemplates.get(0), IvrTaskTemplateVO.class); |
| | | // |
| | | // //è·åtagä¿¡æ¯ |
| | | // IvrLibaTemplateTag ivrLibaTemplateTag = new IvrLibaTemplateTag(); |
| | | // ivrLibaTemplateTag.setTemplateid(ivrTaskTemplates.get(0).getID()); |
| | | // List<IvrLibaTemplateTag> ivrLibaTemplateTags = ivrLibaTemplateTagMapper.selectIvrLibaTemplateTagList(ivrLibaTemplateTag); |
| | | |
| | | //æ¥è¯¢è¯æ¯ |
| | | IvrTaskTemplateScript ivrTaskTemplateScript = new IvrTaskTemplateScript(); |
| | | ivrTaskTemplateScript.setTemplateID(ivrTaskTemplates.get(0).getID()); |
| | | List<IvrTaskTemplateScript> ivrTaskTemplateScripts = ivrTaskTemplateScriptMapper.selectIvrTaskTemplateScriptList(ivrTaskTemplateScript); |
| | | List<IvrTaskTemplateScriptVO> ivrTaskTemplateScriptVOS = DtoConversionUtils.sourceToTarget(ivrTaskTemplateScripts, IvrTaskTemplateScriptVO.class); |
| | | |
| | | //éè¿è¯æ¯IDè·åé项 |
| | | for (IvrTaskTemplateScriptVO ivrTaskTemplateScriptVO : ivrTaskTemplateScriptVOS) { |
| | | log.info("ivrLibaTemplateScriptVOç主é®id为ï¼{}", ivrTaskTemplateScriptVO.getID()); |
| | | IvrTaskTemplateTargetoption ivrTaskTemplateTargetoption = new IvrTaskTemplateTargetoption(); |
| | | ivrTaskTemplateTargetoption.setScriptid(ivrTaskTemplateScriptVO.getID()); |
| | | List<IvrTaskTemplateTargetoption> ivrTaskTemplateTargetoptions = ivrTaskTemplateTargetoptionMapper.selectIvrTaskTemplateTargetoptionList(ivrTaskTemplateTargetoption); |
| | | for (IvrTaskTemplateTargetoption ivrTaskTemplateTargetoption1 : ivrTaskTemplateTargetoptions) { |
| | | ObjectMapper mapper = new ObjectMapper(); |
| | | if (!StringUtils.isEmpty(ivrTaskTemplateTargetoption1.getDynamiccruxs())) { |
| | | try { |
| | | ivrTaskTemplateTargetoption1.setDynamiccruxs(mapper.readValue(ivrTaskTemplateTargetoption1.getDynamiccruxsJson(), List.class)); |
| | | } catch (JsonProcessingException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | } |
| | | |
| | | if (!StringUtils.isEmpty(ivrTaskTemplateTargetoption1.getNodynamiccruxs())) { |
| | | try { |
| | | ivrTaskTemplateTargetoption1.setNodynamiccruxs(mapper.readValue(ivrTaskTemplateTargetoption1.getNodynamiccruxsJson(), List.class)); |
| | | } catch (JsonProcessingException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | } |
| | | |
| | | } |
| | | ivrTaskTemplateScriptVO.setIvrTaskScriptTargetoptionList(ivrTaskTemplateTargetoptions); |
| | | } |
| | | Collections.sort(ivrTaskTemplateScriptVOS, Comparator.comparing(IvrTaskTemplateScriptVO::getTargetid)); |
| | | //æ°æ®ç»è£
|
| | | // templateVO.setIvrTaskTemplateTagList(ivrLibaTemplateTags); |
| | | templateVO.setIvrTaskTemplateScriptVOList(ivrTaskTemplateScriptVOS); |
| | | return templateVO; |
| | | } |
| | | |
| | | |
| | | private void dealOption(List<IvrTaskTemplateTargetoption> ivrTaskTemplateTargetoptionList, IvrTaskTemplateScript ivrTaskTemplateScript, Long tmpID) { |
| | | log.info("ivrLibaTemplateScriptçå¼ä¸ºï¼{}", ivrTaskTemplateScript); |
| | | //å¯¹æ¨¡æ¿ææ é项è¿è¡å¤ç |
| | | if (CollectionUtils.isNotEmpty(ivrTaskTemplateTargetoptionList)) { |
| | | for (IvrTaskTemplateTargetoption ivrTaskTemplateTargetoption : ivrTaskTemplateTargetoptionList) { |
| | | if (ivrTaskTemplateTargetoption.getIsoperation() != null && ivrTaskTemplateTargetoption.getIsoperation() == 1) { |
| | | //æ°å¢ |
| | | ivrTaskTemplateTargetoption.setTemplateID(tmpID); |
| | | ivrTaskTemplateTargetoption.setScriptid(ivrTaskTemplateScript.getID()); |
| | | if (CollectionUtils.isNotEmpty(ivrTaskTemplateTargetoption.getDynamiccruxs())) |
| | | ivrTaskTemplateTargetoption.setDynamiccruxsJson(JSON.toJSONString(ivrTaskTemplateTargetoption.getDynamiccruxs())); |
| | | if (CollectionUtils.isNotEmpty(ivrTaskTemplateTargetoption.getNodynamiccruxs())) |
| | | ivrTaskTemplateTargetoption.setNodynamiccruxsJson(JSON.toJSONString(ivrTaskTemplateTargetoption.getNodynamiccruxs())); |
| | | ivrTaskTemplateTargetoptionMapper.insertIvrTaskTemplateTargetoption(ivrTaskTemplateTargetoption); |
| | | } else if (ivrTaskTemplateTargetoption.getIsoperation() != null && ivrTaskTemplateTargetoption.getIsoperation() == 2) { |
| | | //ä¿®æ¹ |
| | | ivrTaskTemplateTargetoption.setTemplateID(tmpID); |
| | | ivrTaskTemplateTargetoption.setScriptid(ivrTaskTemplateScript.getID()); |
| | | if (CollectionUtils.isNotEmpty(ivrTaskTemplateTargetoption.getDynamiccruxs())) |
| | | ivrTaskTemplateTargetoption.setDynamiccruxsJson(JSON.toJSONString(ivrTaskTemplateTargetoption.getDynamiccruxs())); |
| | | if (CollectionUtils.isNotEmpty(ivrTaskTemplateTargetoption.getNodynamiccruxs())) |
| | | ivrTaskTemplateTargetoption.setNodynamiccruxsJson(JSON.toJSONString(ivrTaskTemplateTargetoption.getNodynamiccruxs())); |
| | | ivrTaskTemplateTargetoptionMapper.updateIvrTaskTemplateTargetoption(ivrTaskTemplateTargetoption); |
| | | } else if (ivrTaskTemplateTargetoption.getIsoperation() != null && ivrTaskTemplateTargetoption.getIsoperation() == 3) { |
| | | //å é¤ |
| | | if (ivrTaskTemplateTargetoption.getId() == null) { |
| | | log.info("å é¤å¤±è´¥,æ¨¡æ¿ææ é项id为空"); |
| | | } else { |
| | | ivrTaskTemplateTargetoptionMapper.deleteIvrTaskTemplateTargetoptionById(ivrTaskTemplateTargetoption.getId()); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service.impl; |
| | | |
| | | import com.ruoyi.common.utils.DateUtils; |
| | | import com.smartor.domain.IvrTaskTemplateTargetoption; |
| | | import com.smartor.mapper.IvrTaskTemplateTargetoptionMapper; |
| | | import com.smartor.service.IIvrTaskTemplateTargetoptionService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * éè®¿ä»»å¡æ¨¡æ¿ææ é项åºServiceä¸å¡å±å¤ç |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-05-13 |
| | | */ |
| | | @Service |
| | | public class IvrTaskTemplateTargetoptionServiceImpl implements IIvrTaskTemplateTargetoptionService |
| | | { |
| | | @Autowired |
| | | private IvrTaskTemplateTargetoptionMapper ivrTaskTemplateTargetoptionMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢éè®¿ä»»å¡æ¨¡æ¿ææ éé¡¹åº |
| | | * |
| | | * @param id éè®¿ä»»å¡æ¨¡æ¿ææ é项åºä¸»é® |
| | | * @return éè®¿ä»»å¡æ¨¡æ¿ææ éé¡¹åº |
| | | */ |
| | | @Override |
| | | public IvrTaskTemplateTargetoption selectIvrTaskTemplateTargetoptionById(Long id) |
| | | { |
| | | return ivrTaskTemplateTargetoptionMapper.selectIvrTaskTemplateTargetoptionById(id); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢éè®¿ä»»å¡æ¨¡æ¿ææ é项åºå表 |
| | | * |
| | | * @param ivrTaskTemplateTargetoption éè®¿ä»»å¡æ¨¡æ¿ææ éé¡¹åº |
| | | * @return éè®¿ä»»å¡æ¨¡æ¿ææ éé¡¹åº |
| | | */ |
| | | @Override |
| | | public List<IvrTaskTemplateTargetoption> selectIvrTaskTemplateTargetoptionList(IvrTaskTemplateTargetoption ivrTaskTemplateTargetoption) |
| | | { |
| | | return ivrTaskTemplateTargetoptionMapper.selectIvrTaskTemplateTargetoptionList(ivrTaskTemplateTargetoption); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢éè®¿ä»»å¡æ¨¡æ¿ææ éé¡¹åº |
| | | * |
| | | * @param ivrTaskTemplateTargetoption éè®¿ä»»å¡æ¨¡æ¿ææ éé¡¹åº |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertIvrTaskTemplateTargetoption(IvrTaskTemplateTargetoption ivrTaskTemplateTargetoption) |
| | | { |
| | | ivrTaskTemplateTargetoption.setCreateTime(DateUtils.getNowDate()); |
| | | return ivrTaskTemplateTargetoptionMapper.insertIvrTaskTemplateTargetoption(ivrTaskTemplateTargetoption); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹éè®¿ä»»å¡æ¨¡æ¿ææ éé¡¹åº |
| | | * |
| | | * @param ivrTaskTemplateTargetoption éè®¿ä»»å¡æ¨¡æ¿ææ éé¡¹åº |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updateIvrTaskTemplateTargetoption(IvrTaskTemplateTargetoption ivrTaskTemplateTargetoption) |
| | | { |
| | | ivrTaskTemplateTargetoption.setUpdateTime(DateUtils.getNowDate()); |
| | | return ivrTaskTemplateTargetoptionMapper.updateIvrTaskTemplateTargetoption(ivrTaskTemplateTargetoption); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤éè®¿ä»»å¡æ¨¡æ¿ææ éé¡¹åº |
| | | * |
| | | * @param ids éè¦å é¤çéè®¿ä»»å¡æ¨¡æ¿ææ é项åºä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteIvrTaskTemplateTargetoptionByIds(Long[] ids) |
| | | { |
| | | return ivrTaskTemplateTargetoptionMapper.deleteIvrTaskTemplateTargetoptionByIds(ids); |
| | | } |
| | | |
| | | /** |
| | | * å é¤éè®¿ä»»å¡æ¨¡æ¿ææ é项åºä¿¡æ¯ |
| | | * |
| | | * @param id éè®¿ä»»å¡æ¨¡æ¿ææ é项åºä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteIvrTaskTemplateTargetoptionById(Long id) |
| | | { |
| | | return ivrTaskTemplateTargetoptionMapper.deleteIvrTaskTemplateTargetoptionById(id); |
| | | } |
| | | } |
| | |
| | | |
| | | <resultMap type="com.smartor.domain.IvrLibaTemplate" id="IvrLibaTemplateResult"> |
| | | <result property="ID" column="ID"/> |
| | | <result property="targetid" column="targetid"/> |
| | | <result property="targetname" column="targetname"/> |
| | | <result property="templateName" column="templateName"/> |
| | | <result property="silencetime" column="silencetime"/> |
| | | <result property="slienceRepeatTimes" column="slienceRepeatTimes"/> |
| | | <result property="nomatchRepeatTimes" column="nomatchRepeatTimes"/> |
| | | <result property="firstQuestionNum" column="firstQuestionNum"/> |
| | | <result property="submodule" column="submodule"/> |
| | | <result property="language" column="language"/> |
| | | <result property="note" column="note"/> |
| | | <result property="valueType" column="value_type"/> |
| | | <result property="reply" column="reply"/> |
| | | <result property="addUserID" column="addUserID"/> |
| | | <result property="addTime" column="addTime"/> |
| | | <result property="modifyUserID" column="modifyUserID"/> |
| | | <result property="modifyTime" column="modifyTime"/> |
| | | <result property="groupID" column="groupID"/> |
| | | <result property="labelInfo" column="label_info"/> |
| | | <result property="submoduleID" column="submoduleID"/> |
| | | <result property="playType" column="playType"/> |
| | | <result property="icd10code" column="icd10code"/> |
| | | <result property="icd10codename" column="icd10codename"/> |
| | | <result property="atuoTaskDayOffset" column="atuoTaskDayOffset"/> |
| | | <result property="deptIds" column="deptIds"/> |
| | | <result property="deptNames" column="dept_names"/> |
| | | <result property="fKsdm" column="F_KSDM"/> |
| | | <result property="delFlag" column="del_flag"/> |
| | | <result property="updateBy" column="update_by"/> |
| | | <result property="updateTime" column="update_time"/> |
| | |
| | | <result property="campus" column="campus"/> |
| | | <result property="tag" column="tag"/> |
| | | <result property="suitway" column="suitway"/> |
| | | <result property="otherdata" column="otherdata"/> |
| | | <result property="mateNum" column="mate_num"/> |
| | | <result property="revisitBefore" column="revisit_before"/> |
| | | <result property="revisitAfter" column="revisit_after"/> |
| | | <result property="noVoiceNum" column="no_voice_num"/> |
| | | <result property="silencetime" column="silencetime"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectIvrLibaTemplateVo"> |
| | | select ID, |
| | | targetid, |
| | | value_type, |
| | | reply, |
| | | revisit_before, |
| | | revisit_after, |
| | | targetname, |
| | | templateName, |
| | | silencetime, |
| | | slienceRepeatTimes, |
| | | nomatchRepeatTimes, |
| | | firstQuestionNum, |
| | | version, |
| | | silencetime, |
| | | usestate, |
| | | campus, |
| | | tag, |
| | | otherdata, |
| | | suitway, |
| | | mate_num, |
| | | no_voice_num, |
| | | submodule, language, note, addUserID, addTime, modifyUserID, modifyTime, groupID, label_info, submoduleID, playType, icd10code, icd10codename, atuoTaskDayOffset, deptIds, dept_names, F_KSDM, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, orgid, pid, guid, assortid, parameter |
| | | submodule, language, note, |
| | | groupID, label_info, submoduleID, playType, icd10code, icd10codename, deptIds, dept_names, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, orgid, pid, guid, assortid, parameter |
| | | from ivr_liba_template |
| | | </sql> |
| | | |
| | |
| | | <if test="templateName != null and templateName != ''">and templateName like concat('%', #{templateName}, |
| | | '%') |
| | | </if> |
| | | <if test="targetid != null ">and targetid = #{targetid}</if> |
| | | <if test="ID != null ">and id = #{ID}</if> |
| | | <if test="revisitAfter != null ">and revisit_after = #{revisitAfter}</if> |
| | | <if test="revisitBefore != null ">and revisit_before = #{revisitBefore}</if> |
| | | <if test="mateNum != null and mateNum > 0">and mate_num = #{mateNum}</if> |
| | | <if test="suitway != null ">and suitway = #{suitway}</if> |
| | | <if test="targetname != null and targetname !='' ">and targetname = #{targetname}</if> |
| | | <if test="version != null and version !='' ">and version = #{version}</if> |
| | | <if test="usestate != null and usestate !='' ">and usestate = #{usestate}</if> |
| | | <if test="silencetime != null ">and silencetime = #{silencetime}</if> |
| | | <if test="slienceRepeatTimes != null ">and slienceRepeatTimes = #{slienceRepeatTimes}</if> |
| | | <if test="nomatchRepeatTimes != null ">and nomatchRepeatTimes = #{nomatchRepeatTimes}</if> |
| | | <if test="firstQuestionNum != null ">and firstQuestionNum = #{firstQuestionNum}</if> |
| | | <if test="submodule != null and submodule != ''">and submodule = #{submodule}</if> |
| | | <if test="language != null and language != ''">and language = #{language}</if> |
| | | <if test="note != null and note != ''">and note = #{note}</if> |
| | | <if test="addUserID != null and addUserID != ''">and addUserID = #{addUserID}</if> |
| | | <if test="addTime != null ">and addTime = #{addTime}</if> |
| | | <if test="modifyUserID != null and modifyUserID != ''">and modifyUserID = #{modifyUserID}</if> |
| | | <if test="modifyTime != null ">and modifyTime = #{modifyTime}</if> |
| | | <if test="groupID != null and groupID != ''">and groupID = #{groupID}</if> |
| | | <if test="labelInfo != null and labelInfo != ''">and label_info = #{labelInfo}</if> |
| | | <if test="submoduleID != null and submoduleID != ''">and submoduleID = #{submoduleID}</if> |
| | |
| | | <if test="deptNames != null and deptNames != ''">and dept_names like concat('%', |
| | | #{deptNames}, '%') |
| | | </if> |
| | | <if test="atuoTaskDayOffset != null ">and atuoTaskDayOffset = #{atuoTaskDayOffset}</if> |
| | | <if test="deptIds != null and deptIds != ''">and deptIds = #{deptIds}</if> |
| | | <if test="fKsdm != null and fKsdm != ''">and F_KSDM = #{fKsdm}</if> |
| | | <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="parameter != null and parameter != ''">and parameter = #{parameter}</if> |
| | | <if test="tag != null and tag != ''">and tag = #{tag}</if> |
| | | <if test="noVoiceNum != null and noVoiceNum > 0">and no_voice_num = #{noVoiceNum}</if> |
| | | <if test="silencetime != null">and silencetime = #{silencetime}</if> |
| | | </where> |
| | | </select> |
| | | |
| | |
| | | insert into ivr_liba_template |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="templateName != null and templateName != ''">templateName,</if> |
| | | <if test="targetid != null">targetid,</if> |
| | | <if test="targetname != null and targetname != ''">targetname,</if> |
| | | <if test="version != null and version != ''">version,</if> |
| | | <if test="campus != null and campus != ''">campus,</if> |
| | | <if test="usestate != null and usestate != ''">usestate,</if> |
| | | <if test="silencetime != null">silencetime,</if> |
| | | <if test="slienceRepeatTimes != null">slienceRepeatTimes,</if> |
| | | <if test="nomatchRepeatTimes != null">nomatchRepeatTimes,</if> |
| | | <if test="firstQuestionNum != null">firstQuestionNum,</if> |
| | | <if test="submodule != null">submodule,</if> |
| | | <if test="language != null and language != ''">language,</if> |
| | | <if test="note != null">note,</if> |
| | | <if test="valueType != null">value_type,</if> |
| | | <if test="reply != null">reply,</if> |
| | | <if test="addUserID != null">addUserID,</if> |
| | | <if test="addTime != null">addTime,</if> |
| | | <if test="modifyUserID != null">modifyUserID,</if> |
| | | <if test="modifyTime != null">modifyTime,</if> |
| | | <if test="groupID != null">groupID,</if> |
| | | <if test="labelInfo != null">label_info,</if> |
| | | <if test="submoduleID != null">submoduleID,</if> |
| | | <if test="playType != null">playType,</if> |
| | | <if test="icd10code != null">icd10code,</if> |
| | | <if test="icd10codename != null">icd10codename,</if> |
| | | <if test="atuoTaskDayOffset != null">atuoTaskDayOffset,</if> |
| | | <if test="deptIds != null">deptIds,</if> |
| | | <if test="deptNames != null">dept_names,</if> |
| | | <if test="fKsdm != null">F_KSDM,</if> |
| | | <if test="delFlag != null and delFlag != ''">del_flag,</if> |
| | | <if test="updateBy != null">update_by,</if> |
| | | <if test="updateTime != null">update_time,</if> |
| | |
| | | <if test="parameter != null">parameter,</if> |
| | | <if test="tag != null">tag,</if> |
| | | <if test="suitway != null">suitway,</if> |
| | | <if test="otherdata != null">otherdata,</if> |
| | | <if test="mateNum != null ">mate_num</if> |
| | | <if test="revisitAfter != null ">revisit_after</if> |
| | | <if test="revisitBefore != null ">revisit_before</if> |
| | | <if test="noVoiceNum != null and noVoiceNum > 0 ">no_voice_num</if> |
| | | <if test="mateNum != null ">mate_num,</if> |
| | | <if test="revisitAfter != null ">revisit_after,</if> |
| | | <if test="revisitBefore != null ">revisit_before,</if> |
| | | <if test="noVoiceNum != null and noVoiceNum > 0 ">no_voice_num,</if> |
| | | <if test="silencetime != null ">silencetime,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="templateName != null and templateName != ''">#{templateName},</if> |
| | | <if test="targetid != null ">#{targetid},</if> |
| | | <if test="targetname != null and targetname != ''">#{targetname},</if> |
| | | <if test="version != null and version != ''">#{version},</if> |
| | | <if test="campus != null and campus != ''">#{campus},</if> |
| | | <if test="usestate != null and usestate != ''">#{usestate},</if> |
| | | <if test="silencetime != null">#{silencetime},</if> |
| | | <if test="slienceRepeatTimes != null">#{slienceRepeatTimes},</if> |
| | | <if test="nomatchRepeatTimes != null">#{nomatchRepeatTimes},</if> |
| | | <if test="firstQuestionNum != null">#{firstQuestionNum},</if> |
| | | <if test="submodule != null">#{submodule},</if> |
| | | <if test="language != null and language != ''">#{language},</if> |
| | | <if test="note != null">#{note},</if> |
| | | <if test="valueType != null">#{valueType},</if> |
| | | <if test="reply != null">#{reply},</if> |
| | | <if test="addUserID != null">#{addUserID},</if> |
| | | <if test="addTime != null">#{addTime},</if> |
| | | <if test="modifyUserID != null">#{modifyUserID},</if> |
| | | <if test="modifyTime != null">#{modifyTime},</if> |
| | | <if test="groupID != null">#{groupID},</if> |
| | | <if test="labelInfo != null">#{labelInfo},</if> |
| | | <if test="submoduleID != null">#{submoduleID},</if> |
| | | <if test="playType != null">#{playType},</if> |
| | | <if test="icd10code != null">#{icd10code},</if> |
| | | <if test="icd10codename != null">#{icd10codename},</if> |
| | | <if test="atuoTaskDayOffset != null">#{atuoTaskDayOffset},</if> |
| | | <if test="deptIds != null">#{deptIds},</if> |
| | | <if test="deptNames != null">#{deptNames},</if> |
| | | <if test="fKsdm != null">#{fKsdm},</if> |
| | | <if test="delFlag != null and delFlag != ''">#{delFlag},</if> |
| | | <if test="updateBy != null">#{updateBy},</if> |
| | | <if test="updateTime != null">#{updateTime},</if> |
| | |
| | | <if test="parameter != null">#{parameter},</if> |
| | | <if test="tag != null">#{tag},</if> |
| | | <if test="suitway != null">#{suitway},</if> |
| | | <if test="otherdata != null">#{otherdata},</if> |
| | | <if test="mateNum != null ">#{mateNum}</if> |
| | | <if test="revisitAfter != null ">#{revisitAfter}</if> |
| | | <if test="revisitBefore != null ">#{revisitBefore}</if> |
| | | <if test="noVoiceNum != null and noVoiceNum > 0">#{noVoiceNum}</if> |
| | | <if test="mateNum != null ">#{mateNum},</if> |
| | | <if test="revisitAfter != null ">#{revisitAfter},</if> |
| | | <if test="revisitBefore != null ">#{revisitBefore},</if> |
| | | <if test="noVoiceNum != null and noVoiceNum > 0">#{noVoiceNum},</if> |
| | | <if test="silencetime != null ">#{silencetime},</if> |
| | | |
| | | </trim> |
| | | </insert> |
| | |
| | | update ivr_liba_template |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="templateName != null and templateName != ''">templateName = #{templateName},</if> |
| | | <if test="targetid != null ">targetid = #{targetid},</if> |
| | | <if test="targetname != null and targetname != ''">targetname = #{targetname},</if> |
| | | <if test="version != null and version != ''">version = #{version},</if> |
| | | <if test="campus != null and campus != ''">campus = #{campus},</if> |
| | | <if test="usestate != null and usestate != ''">usestate = #{usestate},</if> |
| | | <if test="silencetime != null">silencetime = #{silencetime},</if> |
| | | <if test="slienceRepeatTimes != null">slienceRepeatTimes = #{slienceRepeatTimes},</if> |
| | | <if test="nomatchRepeatTimes != null">nomatchRepeatTimes = #{nomatchRepeatTimes},</if> |
| | | <if test="firstQuestionNum != null">firstQuestionNum = #{firstQuestionNum},</if> |
| | | <if test="submodule != null">submodule = #{submodule},</if> |
| | | <if test="language != null and language != ''">language = #{language},</if> |
| | | <if test="note != null">note = #{note},</if> |
| | | <if test="valueType != null">value_type = #{valueType},</if> |
| | | <if test="reply != null">reply = #{reply},</if> |
| | | <if test="addUserID != null">addUserID = #{addUserID},</if> |
| | | <if test="addTime != null">addTime = #{addTime},</if> |
| | | <if test="modifyUserID != null">modifyUserID = #{modifyUserID},</if> |
| | | <if test="modifyTime != null">modifyTime = #{modifyTime},</if> |
| | | <if test="groupID != null">groupID = #{groupID},</if> |
| | | <if test="labelInfo != null">label_info = #{labelInfo},</if> |
| | | <if test="submoduleID != null">submoduleID = #{submoduleID},</if> |
| | |
| | | <if test="atuoTaskDayOffset != null">atuoTaskDayOffset = #{atuoTaskDayOffset},</if> |
| | | <if test="deptIds != null">deptIds = #{deptIds},</if> |
| | | <if test="deptNames != null">dept_names = #{deptNames},</if> |
| | | <if test="fKsdm != null">F_KSDM = #{fKsdm},</if> |
| | | <if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if> |
| | | <if test="updateBy != null">update_by = #{updateBy},</if> |
| | | <if test="updateTime != null">update_time = #{updateTime},</if> |
| | |
| | | <if test="parameter != null">parameter = #{parameter},</if> |
| | | <if test="tag != null">tag = #{tag},</if> |
| | | <if test="suitway != null">suitway = #{suitway},</if> |
| | | <if test="otherdata != null">otherdata = #{otherdata},</if> |
| | | <if test="mateNum != null ">mate_num = #{mateNum},</if> |
| | | <if test="revisitAfter != null ">revisit_after = #{revisitAfter},</if> |
| | | <if test="revisitBefore != null ">revisit_before = #{revisitBefore},</if> |
| | | <if test="noVoiceNum != null and noVoiceNum > 0 ">no_voice_num = #{noVoiceNum}</if> |
| | | <if test="silencetime != null">silencetime = #{silencetime}</if> |
| | | </trim> |
| | | where ID = #{ID} |
| | | </update> |
| | |
| | | <result property="noClearlyText" column="noClearlyText"/> |
| | | <result property="noClearlyVoice" column="noClearlyVoice"/> |
| | | <result property="categoryName" column="categoryName"/> |
| | | <result property="targetOptions" column="targetOptions"/> |
| | | <result property="language" column="language"/> |
| | | <result property="playWavOnly" column="playWavOnly"/> |
| | | <result property="valueType" column="value_type"/> |
| | | <result property="delFlag" column="del_flag"/> |
| | |
| | | <result property="pid" column="pid"/> |
| | | <result property="guid" column="guid"/> |
| | | <result property="targetid" column="targetid"/> |
| | | <result property="targettype" column="targettype"/> |
| | | <result property="targetvalue" column="targettalue"/> |
| | | <result property="questiontitle" column="questiontitle"/> |
| | | <result property="nextQuestion" column="next_question"/> |
| | | <result property="otherdata" column="otherdata"/> |
| | | <result property="isMust" column="is_must"/> |
| | | <result property="questionResult" column="question_result"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectIvrLibaTemplateScriptVo"> |
| | |
| | | noClearlyVoice, |
| | | categoryName, |
| | | targetid, |
| | | targettype, |
| | | value_type, |
| | | targetvalue, |
| | | questiontitle, |
| | | next_question, |
| | | otherdata, |
| | | is_must, |
| | | question_result, |
| | | targetOptions, language, playWavOnly, value_type, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, orgid, pid, guid |
| | | playWavOnly, |
| | | del_flag, |
| | | update_by, |
| | | update_time, |
| | | create_by, |
| | | create_time, |
| | | isupload, |
| | | upload_time, |
| | | orgid, |
| | | pid, |
| | | guid |
| | | from ivr_liba_template_script |
| | | </sql> |
| | | |
| | |
| | | <if test="noClearlyText != null and noClearlyText != ''">and noClearlyText = #{noClearlyText}</if> |
| | | <if test="noClearlyVoice != null and noClearlyVoice != ''">and noClearlyVoice = #{noClearlyVoice}</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 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> |
| | | <if test="valueType != null ">and value_type = #{valueType}</if> |
| | | <if test="isupload != null ">and isupload = #{isupload}</if> |
| | |
| | | <if test="pid != null ">and pid = #{pid}</if> |
| | | <if test="guid != null and guid != ''">and guid = #{guid}</if> |
| | | <if test="targetid != null ">and targetid = #{targetid}</if> |
| | | <if test="targettype != null and targettype != ''">and targettype = #{targettype}</if> |
| | | <if test="targetvalue != null and targetvalue != ''">and targetvalue = #{targetvalue}</if> |
| | | <if test="isMust != null and isMust != ''">and is_must = #{isMust}</if> |
| | | </where> |
| | |
| | | <if test="noClearlyText != null">noClearlyText,</if> |
| | | <if test="noClearlyVoice != null">noClearlyVoice,</if> |
| | | <if test="categoryName != null">categoryName,</if> |
| | | <if test="targetOptions != null">targetOptions,</if> |
| | | <if test="language != null and language != ''">language,</if> |
| | | <if test="playWavOnly != null">playWavOnly,</if> |
| | | <if test="valueType != null">value_type,</if> |
| | | <if test="delFlag != null and delFlag != ''">del_flag,</if> |
| | |
| | | <if test="pid != null">pid,</if> |
| | | <if test="guid != null">guid,</if> |
| | | <if test="targetvalue != null">targetvalue,</if> |
| | | <if test="targettype != null">targettype,</if> |
| | | <if test="targetid != null">targetid,</if> |
| | | <if test="questiontitle != null">questiontitle,</if> |
| | | <if test="nextQuestion != null">next_question,</if> |
| | | <if test="otherdata != null">otherdata,</if> |
| | | <if test="isMust != null and isMust != ''">is_must,</if> |
| | | <if test="questionResult != null and questionResult != ''">question_result,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="templateQuestionNum != null">#{templateQuestionNum},</if> |
| | |
| | | <if test="noClearlyText != null">#{noClearlyText},</if> |
| | | <if test="noClearlyVoice != null">#{noClearlyVoice},</if> |
| | | <if test="categoryName != null">#{categoryName},</if> |
| | | <if test="targetOptions != null">#{targetOptions},</if> |
| | | <if test="language != null and language != ''">#{language},</if> |
| | | <if test="playWavOnly != null">#{playWavOnly},</if> |
| | | <if test="valueType != null">#{valueType},</if> |
| | | <if test="delFlag != null and delFlag != ''">#{delFlag},</if> |
| | |
| | | <if test="pid != null">#{pid},</if> |
| | | <if test="guid != null">#{guid},</if> |
| | | <if test="targetvalue != null">#{targetvalue},</if> |
| | | <if test="targettype != null">#{targettype},</if> |
| | | <if test="targetid != null">#{targetid},</if> |
| | | <if test="questiontitle != null">#{questiontitle},</if> |
| | | <if test="nextQuestion != null">#{nextQuestion},</if> |
| | | <if test="otherdata != null">#{otherdata},</if> |
| | | <if test="isMust != null and isMust != ''">#{isMust},</if> |
| | | <if test="questionResult != null and questionResult != ''">#{questionResult},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="noClearlyText != null">noClearlyText = #{noClearlyText},</if> |
| | | <if test="noClearlyVoice != null">noClearlyVoice = #{noClearlyVoice},</if> |
| | | <if test="categoryName != null">categoryName = #{categoryName},</if> |
| | | <if test="targetOptions != null">targetOptions = #{targetOptions},</if> |
| | | <if test="language != null and language != ''">language = #{language},</if> |
| | | <if test="playWavOnly != null">playWavOnly = #{playWavOnly},</if> |
| | | <if test="valueType != null">value_type = #{valueType},</if> |
| | | <if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if> |
| | |
| | | <if test="orgid != null">orgid = #{orgid},</if> |
| | | <if test="pid != null">pid = #{pid},</if> |
| | | <if test="guid != null">guid = #{guid},</if> |
| | | <if test="targetvalue != null">targetvalue = #{targetvalue},</if> |
| | | <if test="targettype != null">targettype = #{targettype},</if> |
| | | <if test="targetid != null">targetid = #{targetid},</if> |
| | | <if test="questiontitle != null">questiontitle = #{questiontitle},</if> |
| | | <if test="nextQuestion != null">next_question = #{nextQuestion},</if> |
| | | <if test="otherdata != null">otherdata = #{otherdata},</if> |
| | | <if test="isMust != null and isMust != ''">is_must = #{isMust}</if> |
| | | <if test="questionResult != null and questionResult != ''">question_result = #{questionResult},</if> |
| | | </trim> |
| | | where ID = #{ID} |
| | | </update> |
| | |
| | | <result property="version" column="version"/> |
| | | <result property="groupid" column="groupid"/> |
| | | <result property="isabnormal" column="isabnormal"/> |
| | | <result property="warnup" column="warnup"/> |
| | | <result property="warndown" column="warndown"/> |
| | | <result property="delFlag" column="del_flag"/> |
| | | <result property="updateBy" column="update_by"/> |
| | | <result property="updateTime" column="update_time"/> |
| | |
| | | dynamiccruxs, |
| | | targetid, |
| | | next_question, |
| | | optiondesc, language, version, groupid, isabnormal, warnup, warndown, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, orgid, pid, guid |
| | | optiondesc, language, version, groupid, isabnormal, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, orgid, pid, guid |
| | | from ivr_liba_template_targetoption |
| | | </sql> |
| | | |
| | |
| | | <if test="version != null and version != ''">and version = #{version}</if> |
| | | <if test="groupid != null and groupid != ''">and groupid = #{groupid}</if> |
| | | <if test="isabnormal != null ">and isabnormal = #{isabnormal}</if> |
| | | <if test="warnup != null ">and warnup = #{warnup}</if> |
| | | <if test="warndown != null ">and warndown = #{warndown}</if> |
| | | <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="version != null and version != ''">version,</if> |
| | | <if test="groupid != null">groupid,</if> |
| | | <if test="isabnormal != null">isabnormal,</if> |
| | | <if test="warnup != null">warnup,</if> |
| | | <if test="warndown != null">warndown,</if> |
| | | <if test="delFlag != null and delFlag != ''">del_flag,</if> |
| | | <if test="updateBy != null">update_by,</if> |
| | | <if test="updateTime != null">update_time,</if> |
| | |
| | | <if test="version != null and version != ''">#{version},</if> |
| | | <if test="groupid != null">#{groupid},</if> |
| | | <if test="isabnormal != null">#{isabnormal},</if> |
| | | <if test="warnup != null">#{warnup},</if> |
| | | <if test="warndown != null">#{warndown},</if> |
| | | <if test="delFlag != null and delFlag != ''">#{delFlag},</if> |
| | | <if test="updateBy != null">#{updateBy},</if> |
| | | <if test="updateTime != null">#{updateTime},</if> |
| | |
| | | <if test="version != null and version != ''">version = #{version},</if> |
| | | <if test="groupid != null">groupid = #{groupid},</if> |
| | | <if test="isabnormal != null">isabnormal = #{isabnormal},</if> |
| | | <if test="warnup != null">warnup = #{warnup},</if> |
| | | <if test="warndown != null">warndown = #{warndown},</if> |
| | | <if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if> |
| | | <if test="updateBy != null">update_by = #{updateBy},</if> |
| | | <if test="updateTime != null">update_time = #{updateTime},</if> |
| | |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | </mapper> |
| | | </mapper> |
| | |
| | | <result property="templateid" column="templateid"/> |
| | | <result property="templatename" column="templatename"/> |
| | | <result property="labelinfo" column="labelinfo"/> |
| | | <result property="state" column="state"/> |
| | | <result property="count" column="count"/> |
| | | <result property="executed" column="executed"/> |
| | | <result property="unexecuted" column="unexecuted"/> |
| | | <result property="fail" column="fail"/> |
| | | <result property="addtime" column="addtime"/> |
| | | <result property="checkuserid" column="checkuserid"/> |
| | | <result property="checkusername" column="checkusername"/> |
| | | <result property="checktime" column="checktime"/> |
| | | <result property="type" column="type"/> |
| | | <result property="typename" column="typename"/> |
| | | <result property="usebqsms" column="usebqsms"/> |
| | | <result property="usebhsms" column="usebhsms"/> |
| | | <result property="usesendsms" column="usesendsms"/> |
| | | <result property="deptcode" column="deptcode"/> |
| | | <result property="delFlag" column="del_flag"/> |
| | | <result property="updateBy" column="update_by"/> |
| | |
| | | <result property="preachform" column="preachform"/> |
| | | <result property="sendType" column="send_type"/> |
| | | <result property="sendState" column="send_state"/> |
| | | <result property="param" column="param"/> |
| | | <result property="hospType" column="hosp_type"/> |
| | | <result property="hospno" column="hospno"/> |
| | | <result property="taskDesc" column="task_desc"/> |
| | | <result property="libtemplateid" column="libtemplateid"/> |
| | | <result property="libtemplatename" column="libtemplatename"/> |
| | | <result property="sendTimeSlot" column="send_time_slot"/> |
| | | <result property="libtemplatename" column="libtemplatename"/> |
| | | <result property="libtemplatename" column="libtemplatename"/> |
| | | <result property="stopState" column="stop_state"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectIvrTaskVo"> |
| | | select taskid, |
| | | task_name, |
| | | libtemplateid, |
| | | libtemplatename, |
| | | stop_state, |
| | | templateid, |
| | | templatename, |
| | | labelinfo, |
| | | state, |
| | | count, |
| | | executed, |
| | | unexecuted, |
| | | fail, |
| | | addtime, |
| | | checkuserid, |
| | | checkusername, |
| | | checktime, |
| | | type, |
| | | task_desc, |
| | | hosp_type, |
| | | hospno, |
| | | typename, |
| | | usebqsms, |
| | | usebhsms, |
| | | usesendsms, |
| | | deptcode, |
| | | del_flag, |
| | | update_by, |
| | |
| | | preachform, |
| | | send_type, |
| | | send_state, |
| | | param, |
| | | send_time_slot, |
| | | orgid |
| | | from ivr_task |
| | | </sql> |
| | |
| | | <include refid="selectIvrTaskVo"/> |
| | | <where> |
| | | <if test="taskName != null and taskName != ''">and task_name like concat('%', #{taskName}, '%')</if> |
| | | <if test="sendTimeSlot != null and sendTimeSlot != ''">and sendTimeSlot like concat('%', #{sendTimeSlot}, |
| | | '%') |
| | | </if> |
| | | <if test="templateid != null and templateid != ''">and templateid = #{templateid}</if> |
| | | <if test="templatename != null and templatename != ''">and templatename like concat('%', #{templatename}, |
| | | '%') |
| | | </if> |
| | | <if test="labelinfo != null and labelinfo != ''">and labelinfo = #{labelinfo}</if> |
| | | <if test="state != null ">and state = #{state}</if> |
| | | <if test="count != null ">and count = #{count}</if> |
| | | <if test="executed != null ">and executed = #{executed}</if> |
| | | <if test="unexecuted != null ">and unexecuted = #{unexecuted}</if> |
| | | <if test="fail != null ">and fail = #{fail}</if> |
| | | <if test="addtime != null ">and addtime = #{addtime}</if> |
| | | <if test="checkuserid != null and checkuserid != ''">and checkuserid = #{checkuserid}</if> |
| | | <if test="checkusername != null and checkusername != ''">and checkusername like concat('%', |
| | | #{checkusername}, '%') |
| | |
| | | <if test="checktime != null ">and checktime = #{checktime}</if> |
| | | <if test="type != null and type != ''">and type = #{type}</if> |
| | | <if test="typename != null and typename != ''">and typename like concat('%', #{typename}, '%')</if> |
| | | <if test="usebqsms != null ">and usebqsms = #{usebqsms}</if> |
| | | <if test="usebhsms != null ">and usebhsms = #{usebhsms}</if> |
| | | <if test="usesendsms != null ">and usesendsms = #{usesendsms}</if> |
| | | <if test="deptcode != null and deptcode != ''">and deptcode = #{deptcode}</if> |
| | | <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> |
| | | <if test="libtemplateid != null ">and libtemplateid = #{libtemplateid}</if> |
| | | <if test="libtemplatename != null and libtemplatename != ''">and libtemplatename = #{libtemplatename}</if> |
| | | <if test="stopState != null ">and stop_state = #{stopState}</if> |
| | | </where> |
| | | order by update_time desc,taskid desc |
| | | </select> |
| | |
| | | <if test="templateid != null">templateid,</if> |
| | | <if test="templatename != null">templatename,</if> |
| | | <if test="labelinfo != null">labelinfo,</if> |
| | | <if test="state != null">state,</if> |
| | | <if test="count != null">count,</if> |
| | | <if test="executed != null">executed,</if> |
| | | <if test="unexecuted != null">unexecuted,</if> |
| | | <if test="fail != null">fail,</if> |
| | | <if test="addtime != null">addtime,</if> |
| | | <if test="checkuserid != null">checkuserid,</if> |
| | | <if test="checkusername != null">checkusername,</if> |
| | | <if test="checktime != null">checktime,</if> |
| | | <if test="type != null">type,</if> |
| | | <if test="typename != null">typename,</if> |
| | | <if test="usebqsms != null">usebqsms,</if> |
| | | <if test="usebhsms != null">usebhsms,</if> |
| | | <if test="usesendsms != null">usesendsms,</if> |
| | | <if test="deptcode != null">deptcode,</if> |
| | | <if test="delFlag != null and delFlag != ''">del_flag,</if> |
| | | <if test="updateBy != null">update_by,</if> |
| | |
| | | <if test="preachform != null">preachform,</if> |
| | | <if test="sendType != null">send_type,</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> |
| | | |
| | | <if test="taskDesc != null and taskDesc != ''">task_desc,</if> |
| | | <if test="libtemplateid != null ">libtemplateid,</if> |
| | | <if test="libtemplatename != null and libtemplatename != ''">libtemplatename,</if> |
| | | <if test="sendTimeSlot != null and sendTimeSlot != ''">sendTimeSlot,</if> |
| | | <if test="stopState != null">stop_state,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="taskName != null">#{taskName},</if> |
| | | <if test="templateid != null">#{templateid},</if> |
| | | <if test="templatename != null">#{templatename},</if> |
| | | <if test="labelinfo != null">#{labelinfo},</if> |
| | | <if test="state != null">#{state},</if> |
| | | <if test="count != null">#{count},</if> |
| | | <if test="executed != null">#{executed},</if> |
| | | <if test="unexecuted != null">#{unexecuted},</if> |
| | | <if test="fail != null">#{fail},</if> |
| | | <if test="addtime != null">#{addtime},</if> |
| | | <if test="checkuserid != null">#{checkuserid},</if> |
| | | <if test="checkusername != null">#{checkusername},</if> |
| | | <if test="checktime != null">#{checktime},</if> |
| | | <if test="type != null">#{type},</if> |
| | | <if test="typename != null">#{typename},</if> |
| | | <if test="usebqsms != null">#{usebqsms},</if> |
| | | <if test="usebhsms != null">#{usebhsms},</if> |
| | | <if test="usesendsms != null">#{usesendsms},</if> |
| | | <if test="deptcode != null">#{deptcode},</if> |
| | | <if test="delFlag != null and delFlag != ''">#{delFlag},</if> |
| | | <if test="updateBy != null">#{updateBy},</if> |
| | |
| | | <if test="preachform != null">#{preachform},</if> |
| | | <if test="sendType != null">#{sendType},</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> |
| | | <if test="taskDesc != null and taskDesc != ''">#{taskDesc},</if> |
| | | <if test="libtemplateid != null ">#{libtemplateid},</if> |
| | | <if test="libtemplatename != null and libtemplatename != ''">#{libtemplatename},</if> |
| | | <if test="sendTimeSlot != null and sendTimeSlot != ''">#{sendTimeSlot},</if> |
| | | <if test="stopState != null">#{stopState},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="templateid != null">templateid = #{templateid},</if> |
| | | <if test="templatename != null">templatename = #{templatename},</if> |
| | | <if test="labelinfo != null">labelinfo = #{labelinfo},</if> |
| | | <if test="state != null">state = #{state},</if> |
| | | <if test="count != null">count = #{count},</if> |
| | | <if test="executed != null">executed = #{executed},</if> |
| | | <if test="unexecuted != null">unexecuted = #{unexecuted},</if> |
| | | <if test="fail != null">fail = #{fail},</if> |
| | | <if test="addtime != null">addtime = #{addtime},</if> |
| | | <if test="checkuserid != null">checkuserid = #{checkuserid},</if> |
| | | <if test="checkusername != null">checkusername = #{checkusername},</if> |
| | | <if test="checktime != null">checktime = #{checktime},</if> |
| | | <if test="type != null">type = #{type},</if> |
| | | <if test="typename != null">typename = #{typename},</if> |
| | | <if test="usebqsms != null">usebqsms = #{usebqsms},</if> |
| | | <if test="usebhsms != null">usebhsms = #{usebhsms},</if> |
| | | <if test="usesendsms != null">usesendsms = #{usesendsms},</if> |
| | | <if test="deptcode != null">deptcode = #{deptcode},</if> |
| | | <if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if> |
| | | <if test="updateBy != null">update_by = #{updateBy},</if> |
| | |
| | | <if test="preachform != null">preachform = #{preachform},</if> |
| | | <if test="sendType != null">send_type = #{sendType},</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> |
| | | <if test="taskDesc != null and taskDesc != ''">task_desc= #{taskDesc},</if> |
| | | <if test="libtemplateid != null ">libtemplateid = #{libtemplateid},</if> |
| | | <if test="libtemplatename != null and libtemplatename != ''">libtemplatename = #{libtemplatename},</if> |
| | | <if test="sendTimeSlot != null and sendTimeSlot != ''">send_time_slot=#{sendTimeSlot},</if> |
| | | <if test="stopState != null ">stop_state=#{stopState},</if> |
| | | </trim> |
| | | where taskid = #{taskid} |
| | | </update> |
| | |
| | | <result property="senduuid" column="senduuid"/> |
| | | <result property="result" column="result"/> |
| | | <result property="finishtime" column="finishtime"/> |
| | | <result property="userid" column="userid"/> |
| | | <result property="username" column="username"/> |
| | | <result property="recordid" column="recordid"/> |
| | | <result property="recallcount" column="recallcount"/> |
| | | <result property="exrecallcount" column="exrecallcount"/> |
| | | <result property="pulltime" column="pulltime"/> |
| | | <result property="bqsms" column="bqsms"/> |
| | | <result property="bhsms" column="bhsms"/> |
| | | <result property="deptcode" column="deptcode"/> |
| | | <result property="labelstatus" column="labelstatus"/> |
| | | <result property="delFlag" column="del_flag"/> |
| | |
| | | <result property="textParam" column="text_param"/> |
| | | <result property="serviceform" column="serviceform"/> |
| | | <result property="bedNo" column="bed_no"/> |
| | | <result property="icdName" column="icd_name"/> |
| | | <result property="medicalRecordNo" column="medical_record_no"/> |
| | | <result property="preachcontent" column="preachcontent"/> |
| | | <result property="sendType" column="send_type"/> |
| | | <result property="sendTimeSlot" column="send_time_slot"/> |
| | | <result property="taskName" column="task_name"/> |
| | | <result property="taskDesc" column="task_desc"/> |
| | | <result property="operator" column="operator"/> |
| | |
| | | <result property="deptname" column="deptname"/> |
| | | <result property="admindate" column="admindate"/> |
| | | <result property="roomno" column="roomno"/> |
| | | <result property="libtemplatename" column="libtemplatename"/> |
| | | <result property="libtemplateid" column="libtemplateid"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectIvrTaskcallVo"> |
| | | select id, |
| | | hosp_type, |
| | | libtemplateid, |
| | | libtemplatename, |
| | | hospno, |
| | | phone, |
| | | sex, |
| | |
| | | senduuid, |
| | | result, |
| | | finishtime, |
| | | userid, |
| | | username, |
| | | recordid, |
| | | recallcount, |
| | | exrecallcount, |
| | | pulltime, |
| | | bqsms, |
| | | bhsms, |
| | | deptcode, |
| | | labelstatus, |
| | | del_flag, |
| | |
| | | text_param, |
| | | serviceform, |
| | | bed_no, |
| | | icd_name, |
| | | send_type, |
| | | medical_record_no, |
| | | send_time_slot, |
| | | task_name, |
| | | task_desc, |
| | | operator_no, |
| | |
| | | roomno, |
| | | admindate, |
| | | deptname, |
| | | diagname, |
| | | preachcontent |
| | | diagname |
| | | from ivr_task_single |
| | | </sql> |
| | | |
| | |
| | | <if test="senduuid != null and senduuid != ''">and senduuid = #{senduuid}</if> |
| | | <if test="result != null and result != ''">and result = #{result}</if> |
| | | <if test="finishtime != null ">and finishtime = #{finishtime}</if> |
| | | <if test="userid != null and userid != ''">and userid = #{userid}</if> |
| | | <if test="username != null and username != ''">and username like concat('%', #{username}, '%')</if> |
| | | <if test="recordid != null ">and recordid = #{recordid}</if> |
| | | <if test="recallcount != null ">and recallcount = #{recallcount}</if> |
| | | <if test="exrecallcount != null ">and exrecallcount = #{exrecallcount}</if> |
| | | <if test="pulltime != null ">and pulltime = #{pulltime}</if> |
| | | <if test="bqsms != null ">and bqsms = #{bqsms}</if> |
| | | <if test="bhsms != null ">and bhsms = #{bhsms}</if> |
| | | <if test="deptcode != null and deptcode != ''">and deptcode = #{deptcode}</if> |
| | | <if test="labelstatus != null ">and labelstatus = #{labelstatus}</if> |
| | | <if test="isupload != null ">and isupload = #{isupload}</if> |
| | |
| | | <if test="guid != null and guid != ''">and guid = #{guid}</if> |
| | | <if test="textParam != null and textParam != ''">and text_param = #{textParam}</if> |
| | | <if test="bedNo != null">and bed_no = #{bedNo}</if> |
| | | <if test="icdName != null and icdName != ''">and icd_name = #{icdName}</if> |
| | | <if test="medicalRecordNo != null and medicalRecordNo != ''">and medical_record_no = #{medicalRecordNo} |
| | | </if> |
| | | <if test="preachcontent != null and preachcontent != ''">and preachcontent = #{preachcontent}</if> |
| | | <if test="sendType != null and sendType != ''">and send_type = #{sendType}</if> |
| | | <if test="operator != null and operator != ''">and operator = #{operator}</if> |
| | | <if test="operatorNo != null and operatorNo != ''">and operator_no = #{operatorNo}</if> |
| | | <if test="wechat != null and wechat != ''">and wechat = #{wechat}</if> |
| | | <if test="hospType != null and hospType != ''">and hosp_type = #{hospType}</if> |
| | | <if test="libtemplateid != null ">and libtemplateid = #{libtemplateid},</if> |
| | | <if test="libtemplatename != null ">and libtemplatename = #{libtemplatename},</if> |
| | | </where> |
| | | order by update_time desc,id desc |
| | | </select> |
| | |
| | | <if test="senduuid != null">senduuid,</if> |
| | | <if test="result != null">result,</if> |
| | | <if test="finishtime != null">finishtime,</if> |
| | | <if test="userid != null">userid,</if> |
| | | <if test="username != null">username,</if> |
| | | <if test="recordid != null">recordid,</if> |
| | | <if test="recallcount != null">recallcount,</if> |
| | | <if test="exrecallcount != null">exrecallcount,</if> |
| | | <if test="pulltime != null">pulltime,</if> |
| | | <if test="bqsms != null">bqsms,</if> |
| | | <if test="bhsms != null">bhsms,</if> |
| | | <if test="deptcode != null">deptcode,</if> |
| | | <if test="labelstatus != null">labelstatus,</if> |
| | | <if test="delFlag != null and delFlag != ''">del_flag,</if> |
| | |
| | | <if test="textParam != null">text_param,</if> |
| | | <if test="serviceform != null">serviceform,</if> |
| | | <if test="bedNo != null">bed_no,</if> |
| | | <if test="icdName != null and icdName != ''">icd_name,</if> |
| | | <if test="medicalRecordNo != null and medicalRecordNo != ''">medical_record_no,</if> |
| | | <if test="preachcontent != null and preachcontent != ''">preachcontent,</if> |
| | | <if test="sendType != null and sendType != ''">send_type,</if> |
| | | <if test="taskName != null and taskName != ''">task_name,</if> |
| | | <if test="taskDesc != null and taskDesc != ''">task_desc,</if> |
| | |
| | | <if test="admindate != null and admindate != ''">admindate,</if> |
| | | <if test="deptname != null and deptname != ''">deptname,</if> |
| | | <if test="diagname != null and diagname != ''">diagname,</if> |
| | | <if test="libtemplateid != null ">libtemplateid,</if> |
| | | <if test="libtemplatename != null ">libtemplatename,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="sendname != null">#{sendname},</if> |
| | |
| | | <if test="senduuid != null">#{senduuid},</if> |
| | | <if test="result != null">#{result},</if> |
| | | <if test="finishtime != null">#{finishtime},</if> |
| | | <if test="userid != null">#{userid},</if> |
| | | <if test="username != null">#{username},</if> |
| | | <if test="recordid != null">#{recordid},</if> |
| | | <if test="recallcount != null">#{recallcount},</if> |
| | | <if test="exrecallcount != null">#{exrecallcount},</if> |
| | | <if test="pulltime != null">#{pulltime},</if> |
| | | <if test="bqsms != null">#{bqsms},</if> |
| | | <if test="bhsms != null">#{bhsms},</if> |
| | | <if test="deptcode != null">#{deptcode},</if> |
| | | <if test="labelstatus != null">#{labelstatus},</if> |
| | | <if test="delFlag != null and delFlag != ''">#{delFlag},</if> |
| | |
| | | <if test="textParam != null">#{textParam},</if> |
| | | <if test="serviceform != null">#{serviceform},</if> |
| | | <if test="bedNo != null">#{bedNo},</if> |
| | | <if test="icdName != null and icdName != ''">#{icdName},</if> |
| | | <if test="medicalRecordNo != null and medicalRecordNo != ''">#{medicalRecordNo},</if> |
| | | <if test="preachcontent != null and preachcontent != ''">#{preachcontent},</if> |
| | | <if test="sendType != null and sendType != ''">#{sendType},</if> |
| | | <if test="taskName != null and taskName != ''">#{taskName},</if> |
| | | <if test="taskDesc != null and taskDesc != ''">#{taskDesc},</if> |
| | |
| | | <if test="admindate != null and admindate != ''">#{admindate},</if> |
| | | <if test="deptname != null and deptname != ''">#{deptname},</if> |
| | | <if test="diagname != null and diagname != ''">#{diagname},</if> |
| | | <if test="libtemplateid != null ">#{libtemplateid},</if> |
| | | <if test="libtemplatename != null ">#{libtemplatename},</if> |
| | | <if test="stopState != null ">#{stopState},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="senduuid != null">senduuid = #{senduuid},</if> |
| | | <if test="result != null">result = #{result},</if> |
| | | <if test="finishtime != null">finishtime = #{finishtime},</if> |
| | | <if test="userid != null">userid = #{userid},</if> |
| | | <if test="username != null">username = #{username},</if> |
| | | <if test="recordid != null">recordid = #{recordid},</if> |
| | | <if test="recallcount != null">recallcount = #{recallcount},</if> |
| | | <if test="exrecallcount != null">exrecallcount = #{exrecallcount},</if> |
| | | <if test="pulltime != null">pulltime = #{pulltime},</if> |
| | | <if test="bqsms != null">bqsms = #{bqsms},</if> |
| | | <if test="bhsms != null">bhsms = #{bhsms},</if> |
| | | <if test="deptcode != null">deptcode = #{deptcode},</if> |
| | | <if test="labelstatus != null">labelstatus = #{labelstatus},</if> |
| | | <if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if> |
| | |
| | | <if test="textParam != null">text_param = #{textParam},</if> |
| | | <if test="serviceform != null">serviceform = #{serviceform},</if> |
| | | <if test="bedNo != null">bed_no = #{bedNo},</if> |
| | | <if test="icdName != null and icdName != ''">icd_name = #{icdName},</if> |
| | | <if test="medicalRecordNo != null and medicalRecordNo != ''">medical_record_no = #{medicalRecordNo},</if> |
| | | <if test="preachcontent != null and preachcontent != ''">preachcontent = #{preachcontent},</if> |
| | | <if test="sendType != null and sendType != ''">send_type = #{sendType},</if> |
| | | <if test="taskName != null and taskName != ''">task_name = #{taskName},</if> |
| | | <if test="taskDesc != null and taskDesc != ''">task_desc = #{taskDesc},</if> |
| | |
| | | <if test="admindate != null and admindate != ''">admindate = #{admindate},</if> |
| | | <if test="deptname != null and deptname != ''">deptname = #{deptname},</if> |
| | | <if test="diagname != null and diagname != ''">diagname = #{diagname},</if> |
| | | <if test="libtemplateid != null ">libtemplateid = #{libtemplateid},</if> |
| | | <if test="libtemplatename != null ">libtemplatename = #{libtemplatename},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | |
| | | senduuid, |
| | | result, |
| | | finishtime, |
| | | userid, |
| | | username, |
| | | recordid, |
| | | recallcount, |
| | | exrecallcount, |
| | | pulltime, |
| | | bqsms, |
| | | bhsms, |
| | | deptcode, |
| | | labelstatus, |
| | | del_flag, |
| | |
| | | text_param, |
| | | serviceform, |
| | | bed_no, |
| | | icd_name, |
| | | send_type, |
| | | medical_record_no, |
| | | preachcontent, |
| | | task_name, |
| | | task_desc, |
| | | operator_no, |
| | |
| | | roomno, |
| | | admindate, |
| | | deptname, |
| | | diagname, |
| | | send_time_slot |
| | | diagname |
| | | FROM ivr_task_single, |
| | | JSON_TABLE(send_time_slot, '$[*]' COLUMNS ( |
| | | begantime DATETIME PATH '$.begantime', |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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.IvrTaskTemplateMapper"> |
| | | |
| | | <resultMap type="com.smartor.domain.IvrTaskTemplate" id="IvrTaskTemplateResult"> |
| | | <result property="ID" column="ID"/> |
| | | <result property="taskid" column="taskid"/> |
| | | <result property="taskname" column="taskname"/> |
| | | <result property="targetid" column="targetid"/> |
| | | <result property="targetname" column="targetname"/> |
| | | <result property="templateName" column="templateName"/> |
| | | <result property="silencetime" column="silencetime"/> |
| | | <result property="slienceRepeatTimes" column="slienceRepeatTimes"/> |
| | | <result property="nomatchRepeatTimes" column="nomatchRepeatTimes"/> |
| | | <result property="firstQuestionNum" column="firstQuestionNum"/> |
| | | <result property="submodule" column="submodule"/> |
| | | <result property="language" column="language"/> |
| | | <result property="note" column="note"/> |
| | | <result property="reply" column="reply"/> |
| | | <result property="valueType" column="value_type"/> |
| | | <result property="addUserID" column="addUserID"/> |
| | | <result property="addTime" column="addTime"/> |
| | | <result property="modifyUserID" column="modifyUserID"/> |
| | | <result property="modifyTime" column="modifyTime"/> |
| | | <result property="groupID" column="groupID"/> |
| | | <result property="labelInfo" column="label_info"/> |
| | | <result property="submoduleID" column="submoduleID"/> |
| | | <result property="playType" column="playType"/> |
| | | <result property="icd10code" column="icd10code"/> |
| | | <result property="icd10codename" column="icd10codename"/> |
| | | <result property="atuoTaskDayOffset" column="atuoTaskDayOffset"/> |
| | | <result property="deptIds" column="deptIds"/> |
| | | <result property="deptNames" column="dept_names"/> |
| | | <result property="fKsdm" column="F_KSDM"/> |
| | | <result property="delFlag" column="del_flag"/> |
| | | <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="orgid" column="orgid"/> |
| | | <result property="pid" column="pid"/> |
| | | <result property="guid" column="guid"/> |
| | | <result property="assortid" column="assortid"/> |
| | | <result property="parameter" column="parameter"/> |
| | | <result property="usestate" column="usestate"/> |
| | | <result property="version" column="version"/> |
| | | <result property="campus" column="campus"/> |
| | | <result property="tag" column="tag"/> |
| | | <result property="suitway" column="suitway"/> |
| | | <result property="otherdata" column="otherdata"/> |
| | | <result property="mateNum" column="mate_num"/> |
| | | <result property="revisitBefore" column="revisit_before"/> |
| | | <result property="revisitAfter" column="revisit_after"/> |
| | | <result property="noVoiceNum" column="no_voice_num"/> |
| | | <result property="libtemplateid" column="libtemplateid"/> |
| | | <result property="libtemplatename" column="libtemplatename"/> |
| | | <result property="recallcount" column="recallcount"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectIvrTaskTemplateVo"> |
| | | select ID, |
| | | taskid, |
| | | recallcount, |
| | | libtemplateid, |
| | | libtemplatename, |
| | | taskname, |
| | | targetid, |
| | | targetname, |
| | | templateName, |
| | | silencetime, |
| | | slienceRepeatTimes, |
| | | nomatchRepeatTimes, |
| | | firstQuestionNum, |
| | | submodule, language, note, reply, value_type, addUserID, addTime, modifyUserID, modifyTime, groupID, label_info, submoduleID, playType, icd10code, icd10codename, atuoTaskDayOffset, deptIds, dept_names, F_KSDM, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, orgid, pid, guid, assortid, parameter, usestate, version, campus, tag, suitway, otherdata, mate_num, revisit_before, revisit_after, no_voice_num |
| | | from ivr_task_template |
| | | </sql> |
| | | |
| | | <select id="selectIvrTaskTemplateList" parameterType="com.smartor.domain.IvrTaskTemplate" |
| | | resultMap="IvrTaskTemplateResult"> |
| | | <include refid="selectIvrTaskTemplateVo"/> |
| | | <where> |
| | | <if test="taskid != null ">and taskid = #{taskid}</if> |
| | | <if test="taskname != null and taskname != ''">and taskname like concat('%', #{taskname}, '%')</if> |
| | | <if test="targetid != null ">and targetid = #{targetid}</if> |
| | | <if test="targetname != null and targetname != ''">and targetname like concat('%', #{targetname}, '%')</if> |
| | | <if test="templateName != null and templateName != ''">and templateName like concat('%', #{templateName}, |
| | | '%') |
| | | </if> |
| | | <if test="silencetime != null ">and silencetime = #{silencetime}</if> |
| | | <if test="recallcount != null ">and recallcount = #{recallcount}</if> |
| | | <if test="libtemplateid != null ">and libtemplateid = #{libtemplateid}</if> |
| | | <if test="libtemplatename != null ">and libtemplatename = #{libtemplatename}</if> |
| | | <if test="slienceRepeatTimes != null ">and slienceRepeatTimes = #{slienceRepeatTimes}</if> |
| | | <if test="nomatchRepeatTimes != null ">and nomatchRepeatTimes = #{nomatchRepeatTimes}</if> |
| | | <if test="firstQuestionNum != null ">and firstQuestionNum = #{firstQuestionNum}</if> |
| | | <if test="submodule != null and submodule != ''">and submodule = #{submodule}</if> |
| | | <if test="language != null and language != ''">and language = #{language}</if> |
| | | <if test="note != null and note != ''">and note = #{note}</if> |
| | | <if test="reply != null and reply != ''">and reply = #{reply}</if> |
| | | <if test="valueType != null ">and value_type = #{valueType}</if> |
| | | <if test="addUserID != null and addUserID != ''">and addUserID = #{addUserID}</if> |
| | | <if test="addTime != null ">and addTime = #{addTime}</if> |
| | | <if test="modifyUserID != null and modifyUserID != ''">and modifyUserID = #{modifyUserID}</if> |
| | | <if test="modifyTime != null ">and modifyTime = #{modifyTime}</if> |
| | | <if test="groupID != null and groupID != ''">and groupID = #{groupID}</if> |
| | | <if test="labelInfo != null and labelInfo != ''">and label_info = #{labelInfo}</if> |
| | | <if test="submoduleID != null and submoduleID != ''">and submoduleID = #{submoduleID}</if> |
| | | <if test="playType != null ">and playType = #{playType}</if> |
| | | <if test="icd10code != null and icd10code != ''">and icd10code = #{icd10code}</if> |
| | | <if test="icd10codename != null and icd10codename != ''">and icd10codename like concat('%', |
| | | #{icd10codename}, '%') |
| | | </if> |
| | | <if test="atuoTaskDayOffset != null ">and atuoTaskDayOffset = #{atuoTaskDayOffset}</if> |
| | | <if test="deptIds != null and deptIds != ''">and deptIds = #{deptIds}</if> |
| | | <if test="deptNames != null and deptNames != ''">and dept_names = #{deptNames}</if> |
| | | <if test="fKsdm != null and fKsdm != ''">and F_KSDM = #{fKsdm}</if> |
| | | <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="pid != null ">and pid = #{pid}</if> |
| | | <if test="guid != null and guid != ''">and guid = #{guid}</if> |
| | | <if test="assortid != null ">and assortid = #{assortid}</if> |
| | | <if test="parameter != null and parameter != ''">and parameter = #{parameter}</if> |
| | | <if test="usestate != null and usestate != ''">and usestate = #{usestate}</if> |
| | | <if test="version != null and version != ''">and version = #{version}</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="otherdata != null and otherdata != ''">and otherdata = #{otherdata}</if> |
| | | <if test="mateNum != null ">and mate_num = #{mateNum}</if> |
| | | <if test="revisitBefore != null and revisitBefore != ''">and revisit_before = #{revisitBefore}</if> |
| | | <if test="revisitAfter != null and revisitAfter != ''">and revisit_after = #{revisitAfter}</if> |
| | | <if test="noVoiceNum != null ">and no_voice_num = #{noVoiceNum}</if> |
| | | <if test="recallcount != null">and recallcount = #{prologrecallcountue}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectIvrTaskTemplateByID" parameterType="Long" resultMap="IvrTaskTemplateResult"> |
| | | <include refid="selectIvrTaskTemplateVo"/> |
| | | where ID = #{ID} |
| | | </select> |
| | | |
| | | <insert id="insertIvrTaskTemplate" parameterType="com.smartor.domain.IvrTaskTemplate" useGeneratedKeys="true" |
| | | keyProperty="ID"> |
| | | insert into ivr_task_template |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="taskid != null">taskid,</if> |
| | | <if test="taskname != null">taskname,</if> |
| | | <if test="targetid != null">targetid,</if> |
| | | <if test="targetname != null">targetname,</if> |
| | | <if test="templateName != null and templateName != ''">templateName,</if> |
| | | <if test="silencetime != null">silencetime,</if> |
| | | <if test="slienceRepeatTimes != null">slienceRepeatTimes,</if> |
| | | <if test="nomatchRepeatTimes != null">nomatchRepeatTimes,</if> |
| | | <if test="firstQuestionNum != null">firstQuestionNum,</if> |
| | | <if test="submodule != null">submodule,</if> |
| | | <if test="language != null and language != ''">language,</if> |
| | | <if test="note != null">note,</if> |
| | | <if test="reply != null">reply,</if> |
| | | <if test="valueType != null">value_type,</if> |
| | | <if test="addUserID != null">addUserID,</if> |
| | | <if test="addTime != null">addTime,</if> |
| | | <if test="modifyUserID != null">modifyUserID,</if> |
| | | <if test="modifyTime != null">modifyTime,</if> |
| | | <if test="groupID != null">groupID,</if> |
| | | <if test="labelInfo != null">label_info,</if> |
| | | <if test="submoduleID != null">submoduleID,</if> |
| | | <if test="playType != null">playType,</if> |
| | | <if test="icd10code != null">icd10code,</if> |
| | | <if test="icd10codename != null">icd10codename,</if> |
| | | <if test="atuoTaskDayOffset != null">atuoTaskDayOffset,</if> |
| | | <if test="deptIds != null">deptIds,</if> |
| | | <if test="deptNames != null">dept_names,</if> |
| | | <if test="fKsdm != null">F_KSDM,</if> |
| | | <if test="delFlag != null and delFlag != ''">del_flag,</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="orgid != null">orgid,</if> |
| | | <if test="pid != null">pid,</if> |
| | | <if test="guid != null">guid,</if> |
| | | <if test="assortid != null">assortid,</if> |
| | | <if test="parameter != null">parameter,</if> |
| | | <if test="usestate != null">usestate,</if> |
| | | <if test="version != null">version,</if> |
| | | <if test="campus != null">campus,</if> |
| | | <if test="tag != null">tag,</if> |
| | | <if test="suitway != null">suitway,</if> |
| | | <if test="otherdata != null">otherdata,</if> |
| | | <if test="mateNum != null">mate_num,</if> |
| | | <if test="revisitBefore != null">revisit_before,</if> |
| | | <if test="revisitAfter != null">revisit_after,</if> |
| | | <if test="noVoiceNum != null">no_voice_num,</if> |
| | | <if test="recallcount != null">recallcount,</if> |
| | | <if test="libtemplateid != null ">libtemplateid,</if> |
| | | <if test="libtemplatename != null ">libtemplatename,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="taskid != null">#{taskid},</if> |
| | | <if test="taskname != null">#{taskname},</if> |
| | | <if test="targetid != null">#{targetid},</if> |
| | | <if test="targetname != null">#{targetname},</if> |
| | | <if test="templateName != null and templateName != ''">#{templateName},</if> |
| | | <if test="silencetime != null">#{silencetime},</if> |
| | | <if test="slienceRepeatTimes != null">#{slienceRepeatTimes},</if> |
| | | <if test="nomatchRepeatTimes != null">#{nomatchRepeatTimes},</if> |
| | | <if test="firstQuestionNum != null">#{firstQuestionNum},</if> |
| | | <if test="submodule != null">#{submodule},</if> |
| | | <if test="language != null and language != ''">#{language},</if> |
| | | <if test="note != null">#{note},</if> |
| | | <if test="reply != null">#{reply},</if> |
| | | <if test="valueType != null">#{valueType},</if> |
| | | <if test="addUserID != null">#{addUserID},</if> |
| | | <if test="addTime != null">#{addTime},</if> |
| | | <if test="modifyUserID != null">#{modifyUserID},</if> |
| | | <if test="modifyTime != null">#{modifyTime},</if> |
| | | <if test="groupID != null">#{groupID},</if> |
| | | <if test="labelInfo != null">#{labelInfo},</if> |
| | | <if test="submoduleID != null">#{submoduleID},</if> |
| | | <if test="playType != null">#{playType},</if> |
| | | <if test="icd10code != null">#{icd10code},</if> |
| | | <if test="icd10codename != null">#{icd10codename},</if> |
| | | <if test="atuoTaskDayOffset != null">#{atuoTaskDayOffset},</if> |
| | | <if test="deptIds != null">#{deptIds},</if> |
| | | <if test="deptNames != null">#{deptNames},</if> |
| | | <if test="fKsdm != null">#{fKsdm},</if> |
| | | <if test="delFlag != null and delFlag != ''">#{delFlag},</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="orgid != null">#{orgid},</if> |
| | | <if test="pid != null">#{pid},</if> |
| | | <if test="guid != null">#{guid},</if> |
| | | <if test="assortid != null">#{assortid},</if> |
| | | <if test="parameter != null">#{parameter},</if> |
| | | <if test="usestate != null">#{usestate},</if> |
| | | <if test="version != null">#{version},</if> |
| | | <if test="campus != null">#{campus},</if> |
| | | <if test="tag != null">#{tag},</if> |
| | | <if test="suitway != null">#{suitway},</if> |
| | | <if test="otherdata != null">#{otherdata},</if> |
| | | <if test="mateNum != null">#{mateNum},</if> |
| | | <if test="revisitBefore != null">#{revisitBefore},</if> |
| | | <if test="revisitAfter != null">#{revisitAfter},</if> |
| | | <if test="noVoiceNum != null">#{noVoiceNum},</if> |
| | | <if test="recallcount != null">#{recallcount},</if> |
| | | <if test="libtemplateid != null ">#{libtemplateid},</if> |
| | | <if test="libtemplatename != null ">#{libtemplatename},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateIvrTaskTemplate" parameterType="com.smartor.domain.IvrTaskTemplate"> |
| | | update ivr_task_template |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="taskid != null">taskid = #{taskid},</if> |
| | | <if test="taskname != null">taskname = #{taskname},</if> |
| | | <if test="targetid != null">targetid = #{targetid},</if> |
| | | <if test="targetname != null">targetname = #{targetname},</if> |
| | | <if test="templateName != null and templateName != ''">templateName = #{templateName},</if> |
| | | <if test="silencetime != null">silencetime = #{silencetime},</if> |
| | | <if test="slienceRepeatTimes != null">slienceRepeatTimes = #{slienceRepeatTimes},</if> |
| | | <if test="nomatchRepeatTimes != null">nomatchRepeatTimes = #{nomatchRepeatTimes},</if> |
| | | <if test="firstQuestionNum != null">firstQuestionNum = #{firstQuestionNum},</if> |
| | | <if test="submodule != null">submodule = #{submodule},</if> |
| | | <if test="language != null and language != ''">language = #{language},</if> |
| | | <if test="note != null">note = #{note},</if> |
| | | <if test="reply != null">reply = #{reply},</if> |
| | | <if test="valueType != null">value_type = #{valueType},</if> |
| | | <if test="addUserID != null">addUserID = #{addUserID},</if> |
| | | <if test="addTime != null">addTime = #{addTime},</if> |
| | | <if test="modifyUserID != null">modifyUserID = #{modifyUserID},</if> |
| | | <if test="modifyTime != null">modifyTime = #{modifyTime},</if> |
| | | <if test="groupID != null">groupID = #{groupID},</if> |
| | | <if test="labelInfo != null">label_info = #{labelInfo},</if> |
| | | <if test="submoduleID != null">submoduleID = #{submoduleID},</if> |
| | | <if test="playType != null">playType = #{playType},</if> |
| | | <if test="icd10code != null">icd10code = #{icd10code},</if> |
| | | <if test="icd10codename != null">icd10codename = #{icd10codename},</if> |
| | | <if test="atuoTaskDayOffset != null">atuoTaskDayOffset = #{atuoTaskDayOffset},</if> |
| | | <if test="deptIds != null">deptIds = #{deptIds},</if> |
| | | <if test="deptNames != null">dept_names = #{deptNames},</if> |
| | | <if test="fKsdm != null">F_KSDM = #{fKsdm},</if> |
| | | <if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if> |
| | | <if test="updateBy != null">update_by = #{updateBy},</if> |
| | | <if test="updateTime != null">update_time = #{updateTime},</if> |
| | | <if test="createBy != null">create_by = #{createBy},</if> |
| | | <if test="createTime != null">create_time = #{createTime},</if> |
| | | <if test="isupload != null">isupload = #{isupload},</if> |
| | | <if test="uploadTime != null">upload_time = #{uploadTime},</if> |
| | | <if test="orgid != null">orgid = #{orgid},</if> |
| | | <if test="pid != null">pid = #{pid},</if> |
| | | <if test="guid != null">guid = #{guid},</if> |
| | | <if test="assortid != null">assortid = #{assortid},</if> |
| | | <if test="parameter != null">parameter = #{parameter},</if> |
| | | <if test="usestate != null">usestate = #{usestate},</if> |
| | | <if test="version != null">version = #{version},</if> |
| | | <if test="campus != null">campus = #{campus},</if> |
| | | <if test="tag != null">tag = #{tag},</if> |
| | | <if test="suitway != null">suitway = #{suitway},</if> |
| | | <if test="otherdata != null">otherdata = #{otherdata},</if> |
| | | <if test="mateNum != null">mate_num = #{mateNum},</if> |
| | | <if test="revisitBefore != null">revisit_before = #{revisitBefore},</if> |
| | | <if test="revisitAfter != null">revisit_after = #{revisitAfter},</if> |
| | | <if test="noVoiceNum != null">no_voice_num = #{noVoiceNum},</if> |
| | | <if test="recallcount != null">recallcount = #{recallcount},</if> |
| | | <if test="libtemplateid != null ">libtemplateid = #{libtemplateid},</if> |
| | | <if test="libtemplatename != null ">libtemplatename = #{libtemplatename},</if> |
| | | </trim> |
| | | where ID = #{ID} |
| | | </update> |
| | | |
| | | <delete id="deleteIvrTaskTemplateByID" parameterType="Long"> |
| | | delete |
| | | from ivr_task_template |
| | | where ID = #{ID} |
| | | </delete> |
| | | |
| | | <delete id="deleteIvrTaskTemplateByIDs" parameterType="String"> |
| | | delete from ivr_task_template where ID in |
| | | <foreach item="ID" collection="array" open="(" separator="," close=")"> |
| | | #{ID} |
| | | </foreach> |
| | | </delete> |
| | | </mapper> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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.IvrTaskTemplateScriptMapper"> |
| | | |
| | | <resultMap type="com.smartor.domain.IvrTaskTemplateScript" id="IvrTaskTemplateScriptResult"> |
| | | <result property="ID" column="ID" /> |
| | | <result property="taskid" column="taskid" /> |
| | | <result property="templateQuestionNum" column="templateQuestionNum" /> |
| | | <result property="templateID" column="templateID" /> |
| | | <result property="scriptID" column="scriptID" /> |
| | | <result property="questionPoint" column="questionPoint" /> |
| | | <result property="questionText" column="questionText" /> |
| | | <result property="questionVoice" column="questionVoice" /> |
| | | <result property="noMatchText" column="noMatchText" /> |
| | | <result property="noMatchVoice" column="noMatchVoice" /> |
| | | <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="noClearlyVoice" column="noClearlyVoice" /> |
| | | <result property="categoryName" column="categoryName" /> |
| | | <result property="targetOptions" column="targetOptions" /> |
| | | <result property="language" column="language" /> |
| | | <result property="playWavOnly" column="playWavOnly" /> |
| | | <result property="valueType" column="value_type" /> |
| | | <result property="delFlag" column="del_flag" /> |
| | | <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="orgid" column="orgid" /> |
| | | <result property="pid" column="pid" /> |
| | | <result property="guid" column="guid" /> |
| | | <result property="targettype" column="targettype" /> |
| | | <result property="targetid" column="targetid" /> |
| | | <result property="targetvalue" column="targetvalue" /> |
| | | <result property="questiontitle" column="questiontitle" /> |
| | | <result property="nextQuestion" column="next_question" /> |
| | | <result property="otherdata" column="otherdata" /> |
| | | <result property="isMust" column="is_must" /> |
| | | <result property="questionResult" column="question_result" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectIvrTaskTemplateScriptVo"> |
| | | select ID, taskid, templateQuestionNum, templateID, scriptID, questionPoint, questionText, questionVoice, noMatchText, noMatchVoice, slienceText, slienceVoice, submoduleText, submoduleVoice, noClearlyText, noClearlyVoice, categoryName, targetOptions, language, playWavOnly, value_type, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, orgid, pid, guid, targettype, targetid, targetvalue, questiontitle, next_question, otherdata, is_must, question_result from ivr_task_template_script |
| | | </sql> |
| | | |
| | | <select id="selectIvrTaskTemplateScriptList" parameterType="com.smartor.domain.IvrTaskTemplateScript" resultMap="IvrTaskTemplateScriptResult"> |
| | | <include refid="selectIvrTaskTemplateScriptVo"/> |
| | | <where> |
| | | <if test="taskid != null "> and taskid = #{taskid}</if> |
| | | <if test="templateQuestionNum != null "> and templateQuestionNum = #{templateQuestionNum}</if> |
| | | <if test="templateID != null "> and templateID = #{templateID}</if> |
| | | <if test="scriptID != null "> and scriptID = #{scriptID}</if> |
| | | <if test="questionPoint != null and questionPoint != ''"> and questionPoint = #{questionPoint}</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="noMatchVoice != null and noMatchVoice != ''"> and noMatchVoice = #{noMatchVoice}</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="noClearlyVoice != null and noClearlyVoice != ''"> and noClearlyVoice = #{noClearlyVoice}</if> |
| | | <if test="categoryName != null and categoryName != ''"> and categoryName like concat('%', #{categoryName}, '%')</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> |
| | | <if test="valueType != null "> and value_type = #{valueType}</if> |
| | | <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="pid != null "> and pid = #{pid}</if> |
| | | <if test="guid != null and guid != ''"> and guid = #{guid}</if> |
| | | <if test="targettype != null and targettype != ''"> and targettype = #{targettype}</if> |
| | | <if test="targetid != null "> and targetid = #{targetid}</if> |
| | | <if test="targetvalue != null and targetvalue != ''"> and targetvalue = #{targetvalue}</if> |
| | | <if test="questiontitle != null and questiontitle != ''"> and questiontitle = #{questiontitle}</if> |
| | | <if test="nextQuestion != null "> and next_question = #{nextQuestion}</if> |
| | | <if test="otherdata != null and otherdata != ''"> and otherdata = #{otherdata}</if> |
| | | <if test="isMust != null and isMust != ''"> and is_must = #{isMust}</if> |
| | | <if test="questionResult != null and questionResult != ''"> and question_result = #{questionResult}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectIvrTaskTemplateScriptByID" parameterType="Long" resultMap="IvrTaskTemplateScriptResult"> |
| | | <include refid="selectIvrTaskTemplateScriptVo"/> |
| | | where ID = #{ID} |
| | | </select> |
| | | |
| | | <insert id="insertIvrTaskTemplateScript" parameterType="com.smartor.domain.IvrTaskTemplateScript" useGeneratedKeys="true" keyProperty="ID"> |
| | | insert into ivr_task_template_script |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="taskid != null">taskid,</if> |
| | | <if test="templateQuestionNum != null">templateQuestionNum,</if> |
| | | <if test="templateID != null">templateID,</if> |
| | | <if test="scriptID != null">scriptID,</if> |
| | | <if test="questionPoint != null">questionPoint,</if> |
| | | <if test="questionText != null">questionText,</if> |
| | | <if test="questionVoice != null">questionVoice,</if> |
| | | <if test="noMatchText != null">noMatchText,</if> |
| | | <if test="noMatchVoice != null">noMatchVoice,</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="noClearlyVoice != null">noClearlyVoice,</if> |
| | | <if test="categoryName != null">categoryName,</if> |
| | | <if test="targetOptions != null">targetOptions,</if> |
| | | <if test="language != null">language,</if> |
| | | <if test="playWavOnly != null">playWavOnly,</if> |
| | | <if test="valueType != null">value_type,</if> |
| | | <if test="delFlag != null and delFlag != ''">del_flag,</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="orgid != null">orgid,</if> |
| | | <if test="pid != null">pid,</if> |
| | | <if test="guid != null">guid,</if> |
| | | <if test="targettype != null">targettype,</if> |
| | | <if test="targetid != null">targetid,</if> |
| | | <if test="targetvalue != null">targetvalue,</if> |
| | | <if test="questiontitle != null">questiontitle,</if> |
| | | <if test="nextQuestion != null">next_question,</if> |
| | | <if test="otherdata != null">otherdata,</if> |
| | | <if test="isMust != null">is_must,</if> |
| | | <if test="questionResult != null">question_result,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="taskid != null">#{taskid},</if> |
| | | <if test="templateQuestionNum != null">#{templateQuestionNum},</if> |
| | | <if test="templateID != null">#{templateID},</if> |
| | | <if test="scriptID != null">#{scriptID},</if> |
| | | <if test="questionPoint != null">#{questionPoint},</if> |
| | | <if test="questionText != null">#{questionText},</if> |
| | | <if test="questionVoice != null">#{questionVoice},</if> |
| | | <if test="noMatchText != null">#{noMatchText},</if> |
| | | <if test="noMatchVoice != null">#{noMatchVoice},</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="noClearlyVoice != null">#{noClearlyVoice},</if> |
| | | <if test="categoryName != null">#{categoryName},</if> |
| | | <if test="targetOptions != null">#{targetOptions},</if> |
| | | <if test="language != null">#{language},</if> |
| | | <if test="playWavOnly != null">#{playWavOnly},</if> |
| | | <if test="valueType != null">#{valueType},</if> |
| | | <if test="delFlag != null and delFlag != ''">#{delFlag},</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="orgid != null">#{orgid},</if> |
| | | <if test="pid != null">#{pid},</if> |
| | | <if test="guid != null">#{guid},</if> |
| | | <if test="targettype != null">#{targettype},</if> |
| | | <if test="targetid != null">#{targetid},</if> |
| | | <if test="targetvalue != null">#{targetvalue},</if> |
| | | <if test="questiontitle != null">#{questiontitle},</if> |
| | | <if test="nextQuestion != null">#{nextQuestion},</if> |
| | | <if test="otherdata != null">#{otherdata},</if> |
| | | <if test="isMust != null">#{isMust},</if> |
| | | <if test="questionResult != null">#{questionResult},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateIvrTaskTemplateScript" parameterType="com.smartor.domain.IvrTaskTemplateScript"> |
| | | update ivr_task_template_script |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="taskid != null">taskid = #{taskid},</if> |
| | | <if test="templateQuestionNum != null">templateQuestionNum = #{templateQuestionNum},</if> |
| | | <if test="templateID != null">templateID = #{templateID},</if> |
| | | <if test="scriptID != null">scriptID = #{scriptID},</if> |
| | | <if test="questionPoint != null">questionPoint = #{questionPoint},</if> |
| | | <if test="questionText != null">questionText = #{questionText},</if> |
| | | <if test="questionVoice != null">questionVoice = #{questionVoice},</if> |
| | | <if test="noMatchText != null">noMatchText = #{noMatchText},</if> |
| | | <if test="noMatchVoice != null">noMatchVoice = #{noMatchVoice},</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="noClearlyVoice != null">noClearlyVoice = #{noClearlyVoice},</if> |
| | | <if test="categoryName != null">categoryName = #{categoryName},</if> |
| | | <if test="targetOptions != null">targetOptions = #{targetOptions},</if> |
| | | <if test="language != null">language = #{language},</if> |
| | | <if test="playWavOnly != null">playWavOnly = #{playWavOnly},</if> |
| | | <if test="valueType != null">value_type = #{valueType},</if> |
| | | <if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if> |
| | | <if test="updateBy != null">update_by = #{updateBy},</if> |
| | | <if test="updateTime != null">update_time = #{updateTime},</if> |
| | | <if test="createBy != null">create_by = #{createBy},</if> |
| | | <if test="createTime != null">create_time = #{createTime},</if> |
| | | <if test="isupload != null">isupload = #{isupload},</if> |
| | | <if test="uploadTime != null">upload_time = #{uploadTime},</if> |
| | | <if test="orgid != null">orgid = #{orgid},</if> |
| | | <if test="pid != null">pid = #{pid},</if> |
| | | <if test="guid != null">guid = #{guid},</if> |
| | | <if test="targettype != null">targettype = #{targettype},</if> |
| | | <if test="targetid != null">targetid = #{targetid},</if> |
| | | <if test="targetvalue != null">targetvalue = #{targetvalue},</if> |
| | | <if test="questiontitle != null">questiontitle = #{questiontitle},</if> |
| | | <if test="nextQuestion != null">next_question = #{nextQuestion},</if> |
| | | <if test="otherdata != null">otherdata = #{otherdata},</if> |
| | | <if test="isMust != null">is_must = #{isMust},</if> |
| | | <if test="questionResult != null">question_result = #{questionResult},</if> |
| | | </trim> |
| | | where ID = #{ID} |
| | | </update> |
| | | |
| | | <delete id="deleteIvrTaskTemplateScriptByID" parameterType="Long"> |
| | | delete from ivr_task_template_script where ID = #{ID} |
| | | </delete> |
| | | |
| | | <delete id="deleteIvrTaskTemplateScriptByIDs" parameterType="String"> |
| | | delete from ivr_task_template_script where ID in |
| | | <foreach item="ID" collection="array" open="(" separator="," close=")"> |
| | | #{ID} |
| | | </foreach> |
| | | </delete> |
| | | </mapper> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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.IvrTaskTemplateTargetoptionMapper"> |
| | | |
| | | <resultMap type="com.smartor.domain.IvrTaskTemplateTargetoption" id="IvrTaskTemplateTargetoptionResult"> |
| | | <result property="id" column="id"/> |
| | | <result property="taskid" column="taskid"/> |
| | | <result property="templateID" column="templateID"/> |
| | | <result property="targetid" column="targetid"/> |
| | | <result property="targetname" column="targetname"/> |
| | | <result property="targettype" column="targettype"/> |
| | | <result property="categoryName" column="categoryName"/> |
| | | <result property="targetvalue" column="targetvalue"/> |
| | | <result property="targetregex2" column="targetregex2"/> |
| | | <result property="targetregex" column="targetregex"/> |
| | | <result property="optiondesc" column="optiondesc"/> |
| | | <result property="language" column="language"/> |
| | | <result property="version" column="version"/> |
| | | <result property="groupid" column="groupid"/> |
| | | <result property="isabnormal" column="isabnormal"/> |
| | | <result property="warnup" column="warnup"/> |
| | | <result property="warndown" column="warndown"/> |
| | | <result property="delFlag" column="del_flag"/> |
| | | <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="orgid" column="orgid"/> |
| | | <result property="pid" column="pid"/> |
| | | <result property="guid" column="guid"/> |
| | | <result property="scriptid" column="scriptid"/> |
| | | <result property="nodynamiccruxsJson" column="nodynamiccruxs"/> |
| | | <result property="dynamiccruxsJson" column="dynamiccruxs"/> |
| | | <result property="nextQuestion" column="next_question"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectIvrTaskTemplateTargetoptionVo"> |
| | | select id, |
| | | taskid, |
| | | templateID, |
| | | targetid, |
| | | targetname, |
| | | targettype, |
| | | categoryName, |
| | | targetvalue, |
| | | targetregex2, |
| | | targetregex, |
| | | optiondesc, language, version, groupid, isabnormal, warnup, warndown, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, orgid, pid, guid, scriptid, nodynamiccruxs, dynamiccruxs, next_question |
| | | from ivr_task_template_targetoption |
| | | </sql> |
| | | |
| | | <select id="selectIvrTaskTemplateTargetoptionList" parameterType="com.smartor.domain.IvrTaskTemplateTargetoption" |
| | | resultMap="IvrTaskTemplateTargetoptionResult"> |
| | | <include refid="selectIvrTaskTemplateTargetoptionVo"/> |
| | | <where> |
| | | <if test="taskid != null ">and taskid = #{taskid}</if> |
| | | <if test="templateID != null ">and templateID = #{templateID}</if> |
| | | <if test="targetid != null ">and targetid = #{targetid}</if> |
| | | <if test="targetname != null and targetname != ''">and targetname like concat('%', #{targetname}, '%')</if> |
| | | <if test="targettype != null and targettype != ''">and targettype = #{targettype}</if> |
| | | <if test="categoryName != null and categoryName != ''">and categoryName like concat('%', #{categoryName}, |
| | | '%') |
| | | </if> |
| | | <if test="targetvalue != null and targetvalue != ''">and targetvalue = #{targetvalue}</if> |
| | | <if test="targetregex2 != null and targetregex2 != ''">and targetregex2 = #{targetregex2}</if> |
| | | <if test="targetregex != null and targetregex != ''">and targetregex = #{targetregex}</if> |
| | | <if test="optiondesc != null and optiondesc != ''">and optiondesc = #{optiondesc}</if> |
| | | <if test="language != null and language != ''">and language = #{language}</if> |
| | | <if test="version != null and version != ''">and version = #{version}</if> |
| | | <if test="groupid != null and groupid != ''">and groupid = #{groupid}</if> |
| | | <if test="isabnormal != null ">and isabnormal = #{isabnormal}</if> |
| | | <if test="warnup != null ">and warnup = #{warnup}</if> |
| | | <if test="warndown != null ">and warndown = #{warndown}</if> |
| | | <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="pid != null ">and pid = #{pid}</if> |
| | | <if test="guid != null and guid != ''">and guid = #{guid}</if> |
| | | <if test="scriptid != null ">and scriptid = #{scriptid}</if> |
| | | <if test="nodynamiccruxsJson != null and nodynamiccruxsJson != ''">and nodynamiccruxs = |
| | | #{nodynamiccruxsJson} |
| | | </if> |
| | | <if test="dynamiccruxsJson != null and dynamiccruxsJson != ''">and dynamiccruxs = #{dynamiccruxsJson}</if> |
| | | <if test="nextQuestion != null ">and next_question = #{nextQuestion}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectIvrTaskTemplateTargetoptionById" parameterType="Long" |
| | | resultMap="IvrTaskTemplateTargetoptionResult"> |
| | | <include refid="selectIvrTaskTemplateTargetoptionVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertIvrTaskTemplateTargetoption" parameterType="com.smartor.domain.IvrTaskTemplateTargetoption" |
| | | useGeneratedKeys="true" keyProperty="id"> |
| | | insert into ivr_task_template_targetoption |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="taskid != null">taskid,</if> |
| | | <if test="templateID != null">templateID,</if> |
| | | <if test="targetid != null">targetid,</if> |
| | | <if test="targetname != null">targetname,</if> |
| | | <if test="targettype != null">targettype,</if> |
| | | <if test="categoryName != null">categoryName,</if> |
| | | <if test="targetvalue != null">targetvalue,</if> |
| | | <if test="targetregex2 != null">targetregex2,</if> |
| | | <if test="targetregex != null">targetregex,</if> |
| | | <if test="optiondesc != null">optiondesc,</if> |
| | | <if test="language != null">language,</if> |
| | | <if test="version != null">version,</if> |
| | | <if test="groupid != null">groupid,</if> |
| | | <if test="isabnormal != null">isabnormal,</if> |
| | | <if test="warnup != null">warnup,</if> |
| | | <if test="warndown != null">warndown,</if> |
| | | <if test="delFlag != null">del_flag,</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="orgid != null">orgid,</if> |
| | | <if test="pid != null">pid,</if> |
| | | <if test="guid != null">guid,</if> |
| | | <if test="scriptid != null">scriptid,</if> |
| | | <if test="nodynamiccruxsJson != null">nodynamiccruxs,</if> |
| | | <if test="dynamiccruxsJson != null">dynamiccruxs,</if> |
| | | <if test="nextQuestion != null">next_question,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="taskid != null">#{taskid},</if> |
| | | <if test="templateID != null">#{templateID},</if> |
| | | <if test="targetid != null">#{targetid},</if> |
| | | <if test="targetname != null">#{targetname},</if> |
| | | <if test="targettype != null">#{targettype},</if> |
| | | <if test="categoryName != null">#{categoryName},</if> |
| | | <if test="targetvalue != null">#{targetvalue},</if> |
| | | <if test="targetregex2 != null">#{targetregex2},</if> |
| | | <if test="targetregex != null">#{targetregex},</if> |
| | | <if test="optiondesc != null">#{optiondesc},</if> |
| | | <if test="language != null">#{language},</if> |
| | | <if test="version != null">#{version},</if> |
| | | <if test="groupid != null">#{groupid},</if> |
| | | <if test="isabnormal != null">#{isabnormal},</if> |
| | | <if test="warnup != null">#{warnup},</if> |
| | | <if test="warndown != null">#{warndown},</if> |
| | | <if test="delFlag != null">#{delFlag},</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="orgid != null">#{orgid},</if> |
| | | <if test="pid != null">#{pid},</if> |
| | | <if test="guid != null">#{guid},</if> |
| | | <if test="scriptid != null">#{scriptid},</if> |
| | | <if test="nodynamiccruxsJson != null">#{nodynamiccruxsJson},</if> |
| | | <if test="dynamiccruxsJson != null">#{dynamiccruxsJson},</if> |
| | | <if test="nextQuestion != null">#{nextQuestion},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateIvrTaskTemplateTargetoption" parameterType="com.smartor.domain.IvrTaskTemplateTargetoption"> |
| | | update ivr_task_template_targetoption |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="taskid != null">taskid = #{taskid},</if> |
| | | <if test="templateID != null">templateID = #{templateID},</if> |
| | | <if test="targetid != null">targetid = #{targetid},</if> |
| | | <if test="targetname != null">targetname = #{targetname},</if> |
| | | <if test="targettype != null">targettype = #{targettype},</if> |
| | | <if test="categoryName != null">categoryName = #{categoryName},</if> |
| | | <if test="targetvalue != null">targetvalue = #{targetvalue},</if> |
| | | <if test="targetregex2 != null">targetregex2 = #{targetregex2},</if> |
| | | <if test="targetregex != null">targetregex = #{targetregex},</if> |
| | | <if test="optiondesc != null">optiondesc = #{optiondesc},</if> |
| | | <if test="language != null">language = #{language},</if> |
| | | <if test="version != null">version = #{version},</if> |
| | | <if test="groupid != null">groupid = #{groupid},</if> |
| | | <if test="isabnormal != null">isabnormal = #{isabnormal},</if> |
| | | <if test="warnup != null">warnup = #{warnup},</if> |
| | | <if test="warndown != null">warndown = #{warndown},</if> |
| | | <if test="delFlag != null">del_flag = #{delFlag},</if> |
| | | <if test="updateBy != null">update_by = #{updateBy},</if> |
| | | <if test="updateTime != null">update_time = #{updateTime},</if> |
| | | <if test="createBy != null">create_by = #{createBy},</if> |
| | | <if test="createTime != null">create_time = #{createTime},</if> |
| | | <if test="isupload != null">isupload = #{isupload},</if> |
| | | <if test="uploadTime != null">upload_time = #{uploadTime},</if> |
| | | <if test="orgid != null">orgid = #{orgid},</if> |
| | | <if test="pid != null">pid = #{pid},</if> |
| | | <if test="guid != null">guid = #{guid},</if> |
| | | <if test="scriptid != null">scriptid = #{scriptid},</if> |
| | | <if test="nodynamiccruxsJson != null">nodynamiccruxs = #{nodynamiccruxsJson},</if> |
| | | <if test="dynamiccruxsJson != null">dynamiccruxs = #{dynamiccruxsJson},</if> |
| | | <if test="nextQuestion != null">next_question = #{nextQuestion},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteIvrTaskTemplateTargetoptionById" parameterType="Long"> |
| | | delete |
| | | from ivr_task_template_targetoption |
| | | where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteIvrTaskTemplateTargetoptionByIds" parameterType="String"> |
| | | delete from ivr_task_template_targetoption where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | </mapper> |
| | |
| | | <?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"> |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.smartor.mapper.IvrTaskcalldetailMapper"> |
| | | |
| | | <resultMap type="IvrTaskcalldetail" id="IvrTaskcalldetailResult"> |
| | | <result property="calldetailid" column="calldetailid" /> |
| | | <result property="callid" column="callid" /> |
| | | <result property="uuid" column="uuid" /> |
| | | <result property="phone" column="phone" /> |
| | | <result property="operate" column="operate" /> |
| | | <result property="displayno" column="displayno" /> |
| | | <result property="inbound" column="inbound" /> |
| | | <result property="incoming" column="incoming" /> |
| | | <result property="assigntime" column="assigntime" /> |
| | | <result property="starttime" column="starttime" /> |
| | | <result property="answertime" column="answertime" /> |
| | | <result property="silent" column="silent" /> |
| | | <result property="dtmfKey" column="dtmf_key" /> |
| | | <result property="musicpath" column="musicpath" /> |
| | | <result property="sentIndex" column="sent_index" /> |
| | | <result property="sentBegin" column="sent_begin" /> |
| | | <result property="asrtext" column="asrtext" /> |
| | | <result property="beginTime" column="begin_time" /> |
| | | <result property="endTime" column="end_time" /> |
| | | <result property="sentEnd" column="sent_end" /> |
| | | <result property="recordpath" column="recordpath" /> |
| | | <result property="recordurl" column="recordurl" /> |
| | | <result property="templateid" column="templateid" /> |
| | | <result property="templatequestionnum" column="templatequestionnum" /> |
| | | <result property="switchid" column="switchid" /> |
| | | <result property="questiontext" column="questiontext" /> |
| | | <result property="questionvoice" column="questionvoice" /> |
| | | <result property="categoryname" column="categoryname" /> |
| | | <result property="targetoptions" column="targetoptions" /> |
| | | <result property="targetvalue" column="targetvalue" /> |
| | | <result property="matchedtext" column="matchedtext" /> |
| | | <result property="addtime" column="addtime" /> |
| | | <result property="isupload" column="isupload" /> |
| | | <result property="uploadTime" column="upload_time" /> |
| | | <result property="orgid" column="orgid" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="delFlag" column="del_flag" /> |
| | | <result property="updateBy" column="update_by" /> |
| | | <result property="updateTime" column="update_time" /> |
| | | <result property="createBy" column="create_by" /> |
| | | |
| | | <resultMap type="com.smartor.domain.IvrTaskcalldetail" id="IvrTaskcalldetailResult"> |
| | | <result property="calldetailid" column="calldetailid"/> |
| | | <result property="callid" column="callid"/> |
| | | <result property="uuid" column="uuid"/> |
| | | <result property="phone" column="phone"/> |
| | | <result property="operate" column="operate"/> |
| | | <result property="displayno" column="displayno"/> |
| | | <result property="inbound" column="inbound"/> |
| | | <result property="incoming" column="incoming"/> |
| | | <result property="assigntime" column="assigntime"/> |
| | | <result property="starttime" column="starttime"/> |
| | | <result property="answertime" column="answertime"/> |
| | | <result property="silent" column="silent"/> |
| | | <result property="dtmfKey" column="dtmf_key"/> |
| | | <result property="musicpath" column="musicpath"/> |
| | | <result property="sentIndex" column="sent_index"/> |
| | | <result property="sentBegin" column="sent_begin"/> |
| | | <result property="asrtext" column="asrtext"/> |
| | | <result property="beginTime" column="begin_time"/> |
| | | <result property="endTime" column="end_time"/> |
| | | <result property="sentEnd" column="sent_end"/> |
| | | <result property="recordpath" column="recordpath"/> |
| | | <result property="recordurl" column="recordurl"/> |
| | | <result property="templateid" column="templateid"/> |
| | | <result property="templatequestionnum" column="templatequestionnum"/> |
| | | <result property="switchid" column="switchid"/> |
| | | <result property="questiontext" column="questiontext"/> |
| | | <result property="questionvoice" column="questionvoice"/> |
| | | <result property="categoryname" column="categoryname"/> |
| | | <result property="targetoptions" column="targetoptions"/> |
| | | <result property="targetvalue" column="targetvalue"/> |
| | | <result property="matchedtext" column="matchedtext"/> |
| | | <result property="addtime" column="addtime"/> |
| | | <result property="isupload" column="isupload"/> |
| | | <result property="uploadTime" column="upload_time"/> |
| | | <result property="orgid" column="orgid"/> |
| | | <result property="createTime" column="create_time"/> |
| | | <result property="delFlag" column="del_flag"/> |
| | | <result property="updateBy" column="update_by"/> |
| | | <result property="updateTime" column="update_time"/> |
| | | <result property="createBy" column="create_by"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectIvrTaskcalldetailVo"> |
| | | select calldetailid, callid, uuid, phone, operate, displayno, inbound, incoming, assigntime, starttime, answertime, silent, dtmf_key, musicpath, sent_index, sent_begin, asrtext, begin_time, end_time, sent_end, recordpath, recordurl, templateid, templatequestionnum, switchid, questiontext, questionvoice, categoryname, targetoptions, targetvalue, matchedtext, addtime, isupload, upload_time, orgid, create_time, del_flag, update_by, update_time, create_by from ivr_taskcalldetail |
| | | select calldetailid, |
| | | callid, |
| | | uuid, |
| | | phone, |
| | | operate, |
| | | displayno, |
| | | inbound, |
| | | incoming, |
| | | assigntime, |
| | | starttime, |
| | | answertime, |
| | | silent, |
| | | dtmf_key, |
| | | musicpath, |
| | | sent_index, |
| | | sent_begin, |
| | | asrtext, |
| | | begin_time, |
| | | end_time, |
| | | sent_end, |
| | | recordpath, |
| | | recordurl, |
| | | templateid, |
| | | templatequestionnum, |
| | | switchid, |
| | | questiontext, |
| | | questionvoice, |
| | | categoryname, |
| | | targetoptions, |
| | | targetvalue, |
| | | matchedtext, |
| | | addtime, |
| | | isupload, |
| | | upload_time, |
| | | orgid, |
| | | create_time, |
| | | del_flag, |
| | | update_by, |
| | | update_time, |
| | | create_by |
| | | from ivr_taskcalldetail |
| | | </sql> |
| | | |
| | | <select id="selectIvrTaskcalldetailList" parameterType="IvrTaskcalldetail" resultMap="IvrTaskcalldetailResult"> |
| | | <select id="selectIvrTaskcalldetailList" parameterType="com.smartor.domain.IvrTaskcalldetail" |
| | | resultMap="IvrTaskcalldetailResult"> |
| | | <include refid="selectIvrTaskcalldetailVo"/> |
| | | <where> |
| | | <if test="callid != null and callid != ''"> and callid = #{callid}</if> |
| | | <if test="uuid != null and uuid != ''"> and uuid = #{uuid}</if> |
| | | <if test="phone != null and phone != ''"> and phone = #{phone}</if> |
| | | <if test="operate != null and operate != ''"> and operate = #{operate}</if> |
| | | <if test="displayno != null and displayno != ''"> and displayno = #{displayno}</if> |
| | | <if test="inbound != null "> and inbound = #{inbound}</if> |
| | | <if test="incoming != null "> and incoming = #{incoming}</if> |
| | | <if test="assigntime != null "> and assigntime = #{assigntime}</if> |
| | | <if test="starttime != null "> and starttime = #{starttime}</if> |
| | | <if test="answertime != null "> and answertime = #{answertime}</if> |
| | | <if test="silent != null "> and silent = #{silent}</if> |
| | | <if test="dtmfKey != null and dtmfKey != ''"> and dtmf_key = #{dtmfKey}</if> |
| | | <if test="musicpath != null and musicpath != ''"> and musicpath = #{musicpath}</if> |
| | | <if test="sentIndex != null "> and sent_index = #{sentIndex}</if> |
| | | <if test="sentBegin != null "> and sent_begin = #{sentBegin}</if> |
| | | <if test="asrtext != null and asrtext != ''"> and asrtext = #{asrtext}</if> |
| | | <if test="beginTime != null "> and begin_time = #{beginTime}</if> |
| | | <if test="endTime != null "> and end_time = #{endTime}</if> |
| | | <if test="sentEnd != null "> and sent_end = #{sentEnd}</if> |
| | | <if test="recordpath != null and recordpath != ''"> and recordpath = #{recordpath}</if> |
| | | <if test="recordurl != null and recordurl != ''"> and recordurl = #{recordurl}</if> |
| | | <if test="templateid != null and templateid != ''"> and templateid = #{templateid}</if> |
| | | <if test="templatequestionnum != null "> and templatequestionnum = #{templatequestionnum}</if> |
| | | <if test="switchid != null "> and switchid = #{switchid}</if> |
| | | <if test="questiontext != null and questiontext != ''"> and questiontext = #{questiontext}</if> |
| | | <if test="questionvoice != null and questionvoice != ''"> and questionvoice = #{questionvoice}</if> |
| | | <if test="categoryname != null and categoryname != ''"> and categoryname like concat('%', #{categoryname}, '%')</if> |
| | | <if test="targetoptions != null and targetoptions != ''"> and targetoptions = #{targetoptions}</if> |
| | | <if test="targetvalue != null and targetvalue != ''"> and targetvalue = #{targetvalue}</if> |
| | | <if test="matchedtext != null and matchedtext != ''"> and matchedtext = #{matchedtext}</if> |
| | | <if test="addtime != null "> and addtime = #{addtime}</if> |
| | | <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> |
| | | <where> |
| | | <if test="callid != null and callid != ''">and callid = #{callid}</if> |
| | | <if test="uuid != null and uuid != ''">and uuid = #{uuid}</if> |
| | | <if test="phone != null and phone != ''">and phone = #{phone}</if> |
| | | <if test="operate != null and operate != ''">and operate = #{operate}</if> |
| | | <if test="displayno != null and displayno != ''">and displayno = #{displayno}</if> |
| | | <if test="inbound != null ">and inbound = #{inbound}</if> |
| | | <if test="incoming != null ">and incoming = #{incoming}</if> |
| | | <if test="assigntime != null ">and assigntime = #{assigntime}</if> |
| | | <if test="starttime != null ">and starttime = #{starttime}</if> |
| | | <if test="answertime != null ">and answertime = #{answertime}</if> |
| | | <if test="silent != null ">and silent = #{silent}</if> |
| | | <if test="dtmfKey != null and dtmfKey != ''">and dtmf_key = #{dtmfKey}</if> |
| | | <if test="musicpath != null and musicpath != ''">and musicpath = #{musicpath}</if> |
| | | <if test="sentIndex != null ">and sent_index = #{sentIndex}</if> |
| | | <if test="sentBegin != null ">and sent_begin = #{sentBegin}</if> |
| | | <if test="asrtext != null and asrtext != ''">and asrtext = #{asrtext}</if> |
| | | <if test="beginTime != null ">and begin_time = #{beginTime}</if> |
| | | <if test="endTime != null ">and end_time = #{endTime}</if> |
| | | <if test="sentEnd != null ">and sent_end = #{sentEnd}</if> |
| | | <if test="recordpath != null and recordpath != ''">and recordpath = #{recordpath}</if> |
| | | <if test="recordurl != null and recordurl != ''">and recordurl = #{recordurl}</if> |
| | | <if test="templateid != null and templateid != ''">and templateid = #{templateid}</if> |
| | | <if test="templatequestionnum != null ">and templatequestionnum = #{templatequestionnum}</if> |
| | | <if test="switchid != null ">and switchid = #{switchid}</if> |
| | | <if test="questiontext != null and questiontext != ''">and questiontext = #{questiontext}</if> |
| | | <if test="questionvoice != null and questionvoice != ''">and questionvoice = #{questionvoice}</if> |
| | | <if test="categoryname != null and categoryname != ''">and categoryname like concat('%', #{categoryname}, |
| | | '%') |
| | | </if> |
| | | <if test="targetoptions != null and targetoptions != ''">and targetoptions = #{targetoptions}</if> |
| | | <if test="targetvalue != null and targetvalue != ''">and targetvalue = #{targetvalue}</if> |
| | | <if test="matchedtext != null and matchedtext != ''">and matchedtext = #{matchedtext}</if> |
| | | <if test="addtime != null ">and addtime = #{addtime}</if> |
| | | <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> |
| | | </where> |
| | | </select> |
| | | |
| | | |
| | | <select id="selectIvrTaskcalldetailByCalldetailid" parameterType="String" resultMap="IvrTaskcalldetailResult"> |
| | | <include refid="selectIvrTaskcalldetailVo"/> |
| | | where calldetailid = #{calldetailid} |
| | | </select> |
| | | |
| | | <insert id="insertIvrTaskcalldetail" parameterType="IvrTaskcalldetail"> |
| | | |
| | | <insert id="insertIvrTaskcalldetail" parameterType="com.smartor.domain.IvrTaskcalldetail"> |
| | | insert into ivr_taskcalldetail |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="calldetailid != null">calldetailid,</if> |
| | |
| | | <if test="updateBy != null">update_by,</if> |
| | | <if test="updateTime != null">update_time,</if> |
| | | <if test="createBy != null">create_by,</if> |
| | | </trim> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="calldetailid != null">#{calldetailid},</if> |
| | | <if test="callid != null">#{callid},</if> |
| | |
| | | <if test="updateBy != null">#{updateBy},</if> |
| | | <if test="updateTime != null">#{updateTime},</if> |
| | | <if test="createBy != null">#{createBy},</if> |
| | | </trim> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateIvrTaskcalldetail" parameterType="IvrTaskcalldetail"> |
| | | <update id="updateIvrTaskcalldetail" parameterType="com.smartor.domain.IvrTaskcalldetail"> |
| | | update ivr_taskcalldetail |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="callid != null">callid = #{callid},</if> |
| | |
| | | </update> |
| | | |
| | | <delete id="deleteIvrTaskcalldetailByCalldetailid" parameterType="String"> |
| | | delete from ivr_taskcalldetail where calldetailid = #{calldetailid} |
| | | delete |
| | | from ivr_taskcalldetail |
| | | where calldetailid = #{calldetailid} |
| | | </delete> |
| | | |
| | | <delete id="deleteIvrTaskcalldetailByCalldetailids" parameterType="String"> |
| | | delete from ivr_taskcalldetail where calldetailid in |
| | | delete from ivr_taskcalldetail where calldetailid in |
| | | <foreach item="calldetailid" collection="array" open="(" separator="," close=")"> |
| | | #{calldetailid} |
| | | </foreach> |
| | | </delete> |
| | | </mapper> |
| | | </mapper> |
| | |
| | | <?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"> |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.smartor.mapper.IvrTaskcallrecordMapper"> |
| | | |
| | | <resultMap type="IvrTaskcallrecord" id="IvrTaskcallrecordResult"> |
| | | <result property="uuid" column="uuid" /> |
| | | <result property="displayno" column="displayno" /> |
| | | <result property="phone" column="phone" /> |
| | | <result property="taskid" column="taskid" /> |
| | | <result property="extension" column="extension" /> |
| | | <result property="inbound" column="inbound" /> |
| | | <result property="direct" column="direct" /> |
| | | <result property="answered" column="answered" /> |
| | | <result property="assignTime" column="assign_time" /> |
| | | <result property="startTime" column="start_time" /> |
| | | <result property="answerTime" column="answer_time" /> |
| | | <result property="hangupTime" column="hangup_time" /> |
| | | <result property="endTime" column="end_time" /> |
| | | <result property="recordPath" column="record_path" /> |
| | | <result property="recordUrl" column="record_url" /> |
| | | <result property="hangupSipcode" column="hangup_sipcode" /> |
| | | <result property="hangupCause" column="hangup_cause" /> |
| | | <result property="transfered" column="transfered" /> |
| | | <result property="transUuid" column="trans_uuid" /> |
| | | <result property="transPhone" column="trans_phone" /> |
| | | <result property="transAnswered" column="trans_answered" /> |
| | | <result property="transStartTime" column="trans_start_time" /> |
| | | <result property="transAnswerTime" column="trans_answer_time" /> |
| | | <result property="earlyAsrtext" column="early_asrtext" /> |
| | | <result property="earlyPath" column="early_path" /> |
| | | <result property="earlyUrl" column="early_url" /> |
| | | <result property="delFlag" column="del_flag" /> |
| | | <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="orgid" column="orgid" /> |
| | | |
| | | <resultMap type="com.smartor.domain.IvrTaskcallrecord" id="IvrTaskcallrecordResult"> |
| | | <result property="uuid" column="uuid"/> |
| | | <result property="displayno" column="displayno"/> |
| | | <result property="phone" column="phone"/> |
| | | <result property="taskid" column="taskid"/> |
| | | <result property="extension" column="extension"/> |
| | | <result property="inbound" column="inbound"/> |
| | | <result property="direct" column="direct"/> |
| | | <result property="answered" column="answered"/> |
| | | <result property="assignTime" column="assign_time"/> |
| | | <result property="startTime" column="start_time"/> |
| | | <result property="answerTime" column="answer_time"/> |
| | | <result property="hangupTime" column="hangup_time"/> |
| | | <result property="endTime" column="end_time"/> |
| | | <result property="recordPath" column="record_path"/> |
| | | <result property="recordUrl" column="record_url"/> |
| | | <result property="hangupSipcode" column="hangup_sipcode"/> |
| | | <result property="hangupCause" column="hangup_cause"/> |
| | | <result property="transfered" column="transfered"/> |
| | | <result property="transUuid" column="trans_uuid"/> |
| | | <result property="transPhone" column="trans_phone"/> |
| | | <result property="transAnswered" column="trans_answered"/> |
| | | <result property="transStartTime" column="trans_start_time"/> |
| | | <result property="transAnswerTime" column="trans_answer_time"/> |
| | | <result property="earlyAsrtext" column="early_asrtext"/> |
| | | <result property="earlyPath" column="early_path"/> |
| | | <result property="earlyUrl" column="early_url"/> |
| | | <result property="delFlag" column="del_flag"/> |
| | | <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="orgid" column="orgid"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectIvrTaskcallrecordVo"> |
| | | select uuid, displayno, phone, taskid, extension, inbound, direct, answered, assign_time, start_time, answer_time, hangup_time, end_time, record_path, record_url, hangup_sipcode, hangup_cause, transfered, trans_uuid, trans_phone, trans_answered, trans_start_time, trans_answer_time, early_asrtext, early_path, early_url, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, orgid from ivr_taskcallrecord |
| | | select uuid, |
| | | displayno, |
| | | phone, |
| | | taskid, |
| | | extension, |
| | | inbound, |
| | | direct, |
| | | answered, |
| | | assign_time, |
| | | start_time, |
| | | answer_time, |
| | | hangup_time, |
| | | end_time, |
| | | record_path, |
| | | record_url, |
| | | hangup_sipcode, |
| | | hangup_cause, |
| | | transfered, |
| | | trans_uuid, |
| | | trans_phone, |
| | | trans_answered, |
| | | trans_start_time, |
| | | trans_answer_time, |
| | | early_asrtext, |
| | | early_path, |
| | | early_url, |
| | | del_flag, |
| | | update_by, |
| | | update_time, |
| | | create_by, |
| | | create_time, |
| | | isupload, |
| | | upload_time, |
| | | orgid |
| | | from ivr_taskcallrecord |
| | | </sql> |
| | | |
| | | <select id="selectIvrTaskcallrecordList" parameterType="IvrTaskcallrecord" resultMap="IvrTaskcallrecordResult"> |
| | | <select id="selectIvrTaskcallrecordList" parameterType="com.smartor.domain.IvrTaskcallrecord" |
| | | resultMap="IvrTaskcallrecordResult"> |
| | | <include refid="selectIvrTaskcallrecordVo"/> |
| | | <where> |
| | | <if test="displayno != null and displayno != ''"> and displayno = #{displayno}</if> |
| | | <if test="phone != null and phone != ''"> and phone = #{phone}</if> |
| | | <if test="taskid != null and taskid != ''"> and taskid = #{taskid}</if> |
| | | <if test="extension != null and extension != ''"> and extension = #{extension}</if> |
| | | <if test="inbound != null "> and inbound = #{inbound}</if> |
| | | <if test="direct != null "> and direct = #{direct}</if> |
| | | <if test="answered != null "> and answered = #{answered}</if> |
| | | <if test="assignTime != null "> and assign_time = #{assignTime}</if> |
| | | <if test="startTime != null "> and start_time = #{startTime}</if> |
| | | <if test="answerTime != null "> and answer_time = #{answerTime}</if> |
| | | <if test="hangupTime != null "> and hangup_time = #{hangupTime}</if> |
| | | <if test="endTime != null "> and end_time = #{endTime}</if> |
| | | <if test="recordPath != null and recordPath != ''"> and record_path = #{recordPath}</if> |
| | | <if test="recordUrl != null and recordUrl != ''"> and record_url = #{recordUrl}</if> |
| | | <if test="hangupSipcode != null "> and hangup_sipcode = #{hangupSipcode}</if> |
| | | <if test="hangupCause != null and hangupCause != ''"> and hangup_cause = #{hangupCause}</if> |
| | | <if test="transfered != null "> and transfered = #{transfered}</if> |
| | | <if test="transUuid != null and transUuid != ''"> and trans_uuid = #{transUuid}</if> |
| | | <if test="transPhone != null and transPhone != ''"> and trans_phone = #{transPhone}</if> |
| | | <if test="transAnswered != null "> and trans_answered = #{transAnswered}</if> |
| | | <if test="transStartTime != null "> and trans_start_time = #{transStartTime}</if> |
| | | <if test="transAnswerTime != null "> and trans_answer_time = #{transAnswerTime}</if> |
| | | <if test="earlyAsrtext != null and earlyAsrtext != ''"> and early_asrtext = #{earlyAsrtext}</if> |
| | | <if test="earlyPath != null and earlyPath != ''"> and early_path = #{earlyPath}</if> |
| | | <if test="earlyUrl != null and earlyUrl != ''"> and early_url = #{earlyUrl}</if> |
| | | <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> |
| | | <where> |
| | | <if test="displayno != null and displayno != ''">and displayno = #{displayno}</if> |
| | | <if test="phone != null and phone != ''">and phone = #{phone}</if> |
| | | <if test="taskid != null and taskid != ''">and taskid = #{taskid}</if> |
| | | <if test="extension != null and extension != ''">and extension = #{extension}</if> |
| | | <if test="inbound != null ">and inbound = #{inbound}</if> |
| | | <if test="direct != null ">and direct = #{direct}</if> |
| | | <if test="answered != null ">and answered = #{answered}</if> |
| | | <if test="assignTime != null ">and assign_time = #{assignTime}</if> |
| | | <if test="startTime != null ">and start_time = #{startTime}</if> |
| | | <if test="answerTime != null ">and answer_time = #{answerTime}</if> |
| | | <if test="hangupTime != null ">and hangup_time = #{hangupTime}</if> |
| | | <if test="endTime != null ">and end_time = #{endTime}</if> |
| | | <if test="recordPath != null and recordPath != ''">and record_path = #{recordPath}</if> |
| | | <if test="recordUrl != null and recordUrl != ''">and record_url = #{recordUrl}</if> |
| | | <if test="hangupSipcode != null ">and hangup_sipcode = #{hangupSipcode}</if> |
| | | <if test="hangupCause != null and hangupCause != ''">and hangup_cause = #{hangupCause}</if> |
| | | <if test="transfered != null ">and transfered = #{transfered}</if> |
| | | <if test="transUuid != null and transUuid != ''">and trans_uuid = #{transUuid}</if> |
| | | <if test="transPhone != null and transPhone != ''">and trans_phone = #{transPhone}</if> |
| | | <if test="transAnswered != null ">and trans_answered = #{transAnswered}</if> |
| | | <if test="transStartTime != null ">and trans_start_time = #{transStartTime}</if> |
| | | <if test="transAnswerTime != null ">and trans_answer_time = #{transAnswerTime}</if> |
| | | <if test="earlyAsrtext != null and earlyAsrtext != ''">and early_asrtext = #{earlyAsrtext}</if> |
| | | <if test="earlyPath != null and earlyPath != ''">and early_path = #{earlyPath}</if> |
| | | <if test="earlyUrl != null and earlyUrl != ''">and early_url = #{earlyUrl}</if> |
| | | <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> |
| | | </where> |
| | | </select> |
| | | |
| | | |
| | | <select id="selectIvrTaskcallrecordByUuid" parameterType="String" resultMap="IvrTaskcallrecordResult"> |
| | | <include refid="selectIvrTaskcallrecordVo"/> |
| | | where uuid = #{uuid} |
| | | </select> |
| | | |
| | | <insert id="insertIvrTaskcallrecord" parameterType="IvrTaskcallrecord"> |
| | | |
| | | <insert id="insertIvrTaskcallrecord" parameterType="com.smartor.domain.IvrTaskcallrecord"> |
| | | insert into ivr_taskcallrecord |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="uuid != null">uuid,</if> |
| | |
| | | <if test="isupload != null">isupload,</if> |
| | | <if test="uploadTime != null">upload_time,</if> |
| | | <if test="orgid != null">orgid,</if> |
| | | </trim> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="uuid != null">#{uuid},</if> |
| | | <if test="displayno != null">#{displayno},</if> |
| | |
| | | <if test="isupload != null">#{isupload},</if> |
| | | <if test="uploadTime != null">#{uploadTime},</if> |
| | | <if test="orgid != null">#{orgid},</if> |
| | | </trim> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateIvrTaskcallrecord" parameterType="IvrTaskcallrecord"> |
| | | <update id="updateIvrTaskcallrecord" parameterType="com.smartor.domain.IvrTaskcallrecord"> |
| | | update ivr_taskcallrecord |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="displayno != null">displayno = #{displayno},</if> |
| | |
| | | </update> |
| | | |
| | | <delete id="deleteIvrTaskcallrecordByUuid" parameterType="String"> |
| | | delete from ivr_taskcallrecord where uuid = #{uuid} |
| | | delete |
| | | from ivr_taskcallrecord |
| | | where uuid = #{uuid} |
| | | </delete> |
| | | |
| | | <delete id="deleteIvrTaskcallrecordByUuids" parameterType="String"> |
| | | delete from ivr_taskcallrecord where uuid in |
| | | delete from ivr_taskcallrecord where uuid in |
| | | <foreach item="uuid" collection="array" open="(" separator="," close=")"> |
| | | #{uuid} |
| | | </foreach> |
| | | </delete> |
| | | </mapper> |
| | | </mapper> |
| | |
| | | <?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"> |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.smartor.mapper.IvrTasksmsMapper"> |
| | | |
| | | <resultMap type="IvrTasksms" id="IvrTasksmsResult"> |
| | | <result property="id" column="id" /> |
| | | <result property="taskid" column="taskid" /> |
| | | <result property="type" column="type" /> |
| | | <result property="smstemplateid" column="smstemplateid" /> |
| | | <result property="phonestatusid" column="phonestatusid" /> |
| | | <result property="smstemplatename" column="smstemplatename" /> |
| | | <result property="phonestatusname" column="phonestatusname" /> |
| | | <result property="isdel" column="isdel" /> |
| | | <result property="content" column="content" /> |
| | | <result property="tagid" column="tagid" /> |
| | | <result property="delFlag" column="del_flag" /> |
| | | <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="orgid" column="orgid" /> |
| | | |
| | | <resultMap type="com.smartor.domain.IvrTasksms" id="IvrTasksmsResult"> |
| | | <result property="id" column="id"/> |
| | | <result property="taskid" column="taskid"/> |
| | | <result property="type" column="type"/> |
| | | <result property="smstemplateid" column="smstemplateid"/> |
| | | <result property="phonestatusid" column="phonestatusid"/> |
| | | <result property="smstemplatename" column="smstemplatename"/> |
| | | <result property="phonestatusname" column="phonestatusname"/> |
| | | <result property="isdel" column="isdel"/> |
| | | <result property="content" column="content"/> |
| | | <result property="tagid" column="tagid"/> |
| | | <result property="delFlag" column="del_flag"/> |
| | | <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="orgid" column="orgid"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectIvrTasksmsVo"> |
| | | select id, taskid, type, smstemplateid, phonestatusid, smstemplatename, phonestatusname, isdel, content, tagid, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, orgid from ivr_tasksms |
| | | select id, |
| | | taskid, |
| | | type, |
| | | smstemplateid, |
| | | phonestatusid, |
| | | smstemplatename, |
| | | phonestatusname, |
| | | isdel, |
| | | content, |
| | | tagid, |
| | | del_flag, |
| | | update_by, |
| | | update_time, |
| | | create_by, |
| | | create_time, |
| | | isupload, |
| | | upload_time, |
| | | orgid |
| | | from ivr_tasksms |
| | | </sql> |
| | | |
| | | <select id="selectIvrTasksmsList" parameterType="IvrTasksms" resultMap="IvrTasksmsResult"> |
| | | <select id="selectIvrTasksmsList" parameterType="com.smartor.domain.IvrTasksms" resultMap="IvrTasksmsResult"> |
| | | <include refid="selectIvrTasksmsVo"/> |
| | | <where> |
| | | <if test="taskid != null "> and taskid = #{taskid}</if> |
| | | <if test="type != null "> and type = #{type}</if> |
| | | <if test="smstemplateid != null "> and smstemplateid = #{smstemplateid}</if> |
| | | <if test="phonestatusid != null and phonestatusid != ''"> and phonestatusid = #{phonestatusid}</if> |
| | | <if test="smstemplatename != null and smstemplatename != ''"> and smstemplatename like concat('%', #{smstemplatename}, '%')</if> |
| | | <if test="phonestatusname != null and phonestatusname != ''"> and phonestatusname like concat('%', #{phonestatusname}, '%')</if> |
| | | <if test="isdel != null "> and isdel = #{isdel}</if> |
| | | <if test="content != null and content != ''"> and content = #{content}</if> |
| | | <if test="tagid != null "> and tagid = #{tagid}</if> |
| | | <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> |
| | | <where> |
| | | <if test="taskid != null ">and taskid = #{taskid}</if> |
| | | <if test="type != null ">and type = #{type}</if> |
| | | <if test="smstemplateid != null ">and smstemplateid = #{smstemplateid}</if> |
| | | <if test="phonestatusid != null and phonestatusid != ''">and phonestatusid = #{phonestatusid}</if> |
| | | <if test="smstemplatename != null and smstemplatename != ''">and smstemplatename like concat('%', |
| | | #{smstemplatename}, '%') |
| | | </if> |
| | | <if test="phonestatusname != null and phonestatusname != ''">and phonestatusname like concat('%', |
| | | #{phonestatusname}, '%') |
| | | </if> |
| | | <if test="isdel != null ">and isdel = #{isdel}</if> |
| | | <if test="content != null and content != ''">and content = #{content}</if> |
| | | <if test="tagid != null ">and tagid = #{tagid}</if> |
| | | <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> |
| | | </where> |
| | | </select> |
| | | |
| | | |
| | | <select id="selectIvrTasksmsById" parameterType="Long" resultMap="IvrTasksmsResult"> |
| | | <include refid="selectIvrTasksmsVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertIvrTasksms" parameterType="IvrTasksms"> |
| | | |
| | | <insert id="insertIvrTasksms" parameterType="com.smartor.domain.IvrTasksms"> |
| | | insert into ivr_tasksms |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">id,</if> |
| | |
| | | <if test="isupload != null">isupload,</if> |
| | | <if test="uploadTime != null">upload_time,</if> |
| | | <if test="orgid != null">orgid,</if> |
| | | </trim> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id},</if> |
| | | <if test="taskid != null">#{taskid},</if> |
| | |
| | | <if test="isupload != null">#{isupload},</if> |
| | | <if test="uploadTime != null">#{uploadTime},</if> |
| | | <if test="orgid != null">#{orgid},</if> |
| | | </trim> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateIvrTasksms" parameterType="IvrTasksms"> |
| | | <update id="updateIvrTasksms" parameterType="com.smartor.domain.IvrTasksms"> |
| | | update ivr_tasksms |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="taskid != null">taskid = #{taskid},</if> |
| | |
| | | </update> |
| | | |
| | | <delete id="deleteIvrTasksmsById" parameterType="Long"> |
| | | delete from ivr_tasksms where id = #{id} |
| | | delete |
| | | from ivr_tasksms |
| | | where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteIvrTasksmsByIds" parameterType="String"> |
| | | delete from ivr_tasksms where id in |
| | | delete from ivr_tasksms where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | </mapper> |
| | | </mapper> |