| | |
| | | //ç¨æ¥è¿åå½åéè¦é®çé®é¢ä¿¡æ¯ |
| | | QuestionMessagePhone returnQues = new QuestionMessagePhone(); |
| | | |
| | | |
| | | for (IvrLibaTemplateScriptVO ivrLibaTemplateScriptVO : ivrLibaTemplateScriptVOList) { |
| | | if (ivrLibaTemplateScriptVO.getSort() == ivrLibaTemplateVO1.getFirstQuestionNum().intValue()) |
| | | //è·å第ä¸é¢çé®é¢ |
| | |
| | | backQuset.add(ivrLibaTemplateScriptVO); |
| | | redisCache.setCacheObject(userId + "backQuset", backQuset, 120, TimeUnit.MINUTES); |
| | | |
| | | //å¦æå æ¬¡é½æ²¡ååºï¼å°±ä¸ä¸é¢ï¼éè¦å
夿æ¯å¦æä¸ä¸é¢ï¼ |
| | | if (ivrLibaTemplateScriptVO.getSort() == 0) { |
| | | //妿ä¸ä¸é¢æ²¡æäºï¼å°±ç»æäº |
| | | QuestionMessagePhone returnQues = new QuestionMessagePhone(); |
| | | // returnQues.setCode(null); |
| | | List<IvrLibaTemplateScriptVO> backQusetRedis = redisCache.getCacheObject(userId + "backQuset"); |
| | | returnQues.setContent(JSON.toJSONString(backQusetRedis)); |
| | | returnQues.setJsy(ivrLibaTemplateVO1.getRevisitAfter()); |
| | | redisCache.setCacheObject(userId + "returnQues", returnQues, 120, TimeUnit.MINUTES); |
| | | redisCache.setCacheObject(userId + "isOver", 1, 120, TimeUnit.MINUTES); |
| | | // //å¦æå æ¬¡é½æ²¡ååºï¼å°±ä¸ä¸é¢ï¼éè¦å
夿æ¯å¦æä¸ä¸é¢ï¼ |
| | | // if (ivrLibaTemplateScriptVO.getSort() == 0) { |
| | | //妿ä¸ä¸é¢æ²¡æäºï¼å°±ç»æäº |
| | | |
| | | } else { |
| | | //妿æä¸ä¸é¢ï¼å°±æ ¹æ®å½åteagetID+1 è·åä¸ä¸é¢ |
| | | QuestionMessagePhone returnQues = getNextQuestion(ivrLibaTemplateScriptVOList, ivrLibaTemplateScriptVO); |
| | | redisCache.setCacheObject(userId + "returnQues", returnQues, 120, TimeUnit.MINUTES); |
| | | redisCache.setCacheObject(userId + "noVoice", 0, 120, TimeUnit.MINUTES); |
| | | } |
| | | //没æååºï¼å°±ç»æäº |
| | | QuestionMessagePhone returnQues = new QuestionMessagePhone(); |
| | | // returnQues.setCode(null); |
| | | List<IvrLibaTemplateScriptVO> backQusetRedis = redisCache.getCacheObject(userId + "backQuset"); |
| | | returnQues.setContent(JSON.toJSONString(backQusetRedis)); |
| | | returnQues.setJsy(ivrLibaTemplateVO1.getRevisitAfter()); |
| | | redisCache.setCacheObject(userId + "returnQues", returnQues, 120, TimeUnit.MINUTES); |
| | | redisCache.setCacheObject(userId + "isOver", 1, 120, TimeUnit.MINUTES); |
| | | |
| | | // } else { |
| | | // //妿æä¸ä¸é¢ï¼å°±æ ¹æ®å½åteagetID+1 è·åä¸ä¸é¢ |
| | | // QuestionMessagePhone returnQues = getNextQuestion(ivrLibaTemplateScriptVOList, ivrLibaTemplateScriptVO); |
| | | // redisCache.setCacheObject(userId + "returnQues", returnQues, 120, TimeUnit.MINUTES); |
| | | // redisCache.setCacheObject(userId + "noVoice", 0, 120, TimeUnit.MINUTES); |
| | | // } |
| | | } else { |
| | | //å®é
é黿¬¡æ°æ¯å¦ ä¸çäº æ¨¡æ¿ä¸é
ç½®çæ¬¡æ° |
| | | // QuestionMessage returnQues = redisCache.getCacheObject(userId + "returnQues"); |
| | |
| | | Integer noVoice2 = redisCache.getCacheObject(userId + "noVoice"); |
| | | noVoice2 = noVoice2 + 1; |
| | | |
| | | //ç»é®é¢å 䏿 å¹é
è¯æ¯ |
| | | //ç»é®é¢å ä¸éé»è¯æ¯ |
| | | QuestionMessagePhone returnQues = redisCache.getCacheObject(userId + "returnQues"); |
| | | IvrLibaTemplateScriptVO nowQuestion = returnQues.getNowQuestion(); |
| | | boolean contains = nowQuestion.getScriptContent().contains(nowQuestion.getNoMatchText()); |
| | | boolean contains = nowQuestion.getScriptContent().contains(nowQuestion.getSlienceText()); |
| | | if (!contains) { |
| | | String scriptContent = nowQuestion.getSlienceText() + "," + nowQuestion.getScriptContent(); |
| | | nowQuestion.setScriptContent(scriptContent); |
| | |
| | | } |
| | | log.info("==============================Targetregexçå¼ä¸ºï¼{}, Targetregex2çå¼ä¸ºï¼{}", ivrLibaTemplateScriptVO.getIvrLibaScriptTargetoptionList().get(j).getTargetregex(), ivrLibaTemplateScriptVO.getIvrLibaScriptTargetoptionList().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(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()) { |
| | | log.error("å¹é
æ£ç¡®äº"); |
| | | //说æå¹é
æ£ç¡®äº |
| | | ivrLibaTemplateScriptVO.getIvrLibaScriptTargetoptionList().get(j).setIsUserOperation(1); |
| | |
| | | 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()) { |
| | | //妿ä¸ä¸é¢æ²¡æäºï¼å°±ç»æäº |
| | | |
| | | //夿ä¸ä¸ï¼è¿ä¸ªéé¡¹ç»ææ¯ä¸æ¯è¿æç»§ç»é®ä¸å»çå¿
è¦ï¼ä¾å¦éé¡¹ç»ææ¯å«äººä¸æ³ç»§ç»åçé®é¢ï¼å°±è¦ç»ææ |
| | | if (ivrLibaTemplateScriptVO.getIvrLibaScriptTargetoptionList().get(j).getIsEnd() == 1) { |
| | | QuestionMessagePhone returnQues = new QuestionMessagePhone(); |
| | | List<IvrLibaTemplateScriptVO> backQusetRedis = redisCache.getCacheObject(userId + "backQuset"); |
| | | returnQues.setContent(JSON.toJSONString(backQusetRedis)); |
| | |
| | | redisCache.setCacheObject(userId + "returnQues", returnQues, 120, TimeUnit.MINUTES); |
| | | redisCache.setCacheObject(userId + "isOver", 1, 120, TimeUnit.MINUTES); |
| | | } else { |
| | | for (IvrLibaTemplateScriptVO script : ivrLibaTemplateScriptVOList) { |
| | | if (script.getSort() == nextQuestion) { |
| | | QuestionMessagePhone returnQues = new QuestionMessagePhone(); |
| | | returnQues.setNowQuestion(script); |
| | | redisCache.setCacheObject(userId + "returnQues", returnQues, 120, TimeUnit.MINUTES); |
| | | break; |
| | | //è·åä¸ä¸é¢ |
| | | Integer nextQuestion = ivrLibaTemplateScriptVO.getIvrLibaScriptTargetoptionList().get(j).getNextQuestion(); |
| | | if (nextQuestion > ivrLibaTemplateScriptVOList.size()) { |
| | | //妿ä¸ä¸é¢æ²¡æäºï¼å°±ç»æäº |
| | | QuestionMessagePhone returnQues = new QuestionMessagePhone(); |
| | | List<IvrLibaTemplateScriptVO> backQusetRedis = redisCache.getCacheObject(userId + "backQuset"); |
| | | returnQues.setContent(JSON.toJSONString(backQusetRedis)); |
| | | returnQues.setJsy(ivrLibaTemplateVO1.getRevisitAfter()); |
| | | redisCache.setCacheObject(userId + "returnQues", returnQues, 120, TimeUnit.MINUTES); |
| | | redisCache.setCacheObject(userId + "isOver", 1, 120, TimeUnit.MINUTES); |
| | | } else { |
| | | for (IvrLibaTemplateScriptVO script : ivrLibaTemplateScriptVOList) { |
| | | if (script.getSort() == nextQuestion) { |
| | | QuestionMessagePhone returnQues = new QuestionMessagePhone(); |
| | | returnQues.setNowQuestion(script); |
| | | redisCache.setCacheObject(userId + "returnQues", returnQues, 120, TimeUnit.MINUTES); |
| | | break; |
| | | } |
| | | } |
| | | } |
| | | break; |
| | | } |
| | | break; |
| | | } else { |
| | | log.error("æ å¹é
"); |
| | | //没æå¹é
å° |
| | |
| | | } |
| | | |
| | | /** |
| | | * çµè¯åè°ä»»å¡(é¨ç»®) |
| | | * çµè¯ä»»å¡æå(é¨ç»®) |
| | | */ |
| | | @ApiOperation("çµè¯åè°ä»»å¡(é¨ç»®)") |
| | | @ApiOperation("çµè¯ä»»å¡æå(é¨ç»®)") |
| | | @PostMapping("/taskPull") |
| | | public List<PullTaskVO> taskPull() { |
| | | log.error("çµè¯åè°ä»»å¡(é¨ç»®)"); |
| | | log.error("çµè¯ä»»å¡æå(é¨ç»®)"); |
| | | List<PullTaskVO> pullTaskVOList = serviceSubtaskService.taskPull(); |
| | | log.error("çµè¯åè°ä»»å¡(é¨ç»®):{}", pullTaskVOList); |
| | | log.error("çµè¯ä»»å¡æå(é¨ç»®):{}", pullTaskVOList); |
| | | return pullTaskVOList; |
| | | } |
| | | |
| | |
| | | /** |
| | | * éè¯è®°å½åè° |
| | | */ |
| | | @ApiOperation("éè¯è®°å½åè°") |
| | | @ApiOperation("éè¯è®°å½åè°(䏿µ·)") |
| | | @PostMapping("/recordAcceptshanghai") |
| | | public AjaxResult recordAccepshanghait(@RequestBody ServiceSubTaskDetailReq serviceSubTaskDetailReq) { |
| | | return toAjax(serviceSubtaskService.saveQuestionAnswerPhone(serviceSubTaskDetailReq)); |
| | | } |
| | | |
| | | /** |
| | | * éè¯è®°å½åè° |
| | | */ |
| | | @ApiOperation("éè¯è®°å½åè°(é¨ç»®)") |
| | | @PostMapping("/recordAccept") |
| | | public AjaxResult recordAccept(@RequestBody ServiceSubTaskDetailReq serviceSubTaskDetailReq) { |
| | | public AjaxResult recordAccept(@RequestBody PhoneCallRecordVO phoneCallRecordVO) { |
| | | log.error("éè¯è®°å½åè°(é¨ç»®):{}", phoneCallRecordVO); |
| | | // return toAjax(serviceSubtaskService.saveQuestionAnswerPhone(serviceSubTaskDetailReq)); |
| | | return success(); |
| | | } |
| | |
| | | uploadSwitch: 1 |
| | | |
| | | # æå®asråè°çurlè·¯å¾ |
| | | ASRCallBackPath: http://192.168.2.13:8095/smartor/serviceSubtask/phoneCallBackYQ |
| | | ASRCallBackPath: http://192.168.2.10:8095/smartor/serviceSubtask/phoneCallBackYQ |
| | | #ææIP |
| | | hangup: http://192.168.2.10:8091/hangup |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="utf-8"?> |
| | | <wsdl:definitions xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://tempuri.org/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" targetNamespace="http://tempuri.org/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"> |
| | | <wsdl:types> |
| | | <s:schema elementFormDefault="qualified" targetNamespace="http://tempuri.org/"> |
| | | <s:element name="SMSMessageAccept"> |
| | | <s:complexType> |
| | | <s:sequence> |
| | | <s:element minOccurs="0" maxOccurs="1" name="xmlReq" type="s:string" /> |
| | | </s:sequence> |
| | | </s:complexType> |
| | | </s:element> |
| | | <s:element name="SMSMessageAcceptResponse"> |
| | | <s:complexType> |
| | | <s:sequence> |
| | | <s:element minOccurs="1" maxOccurs="1" name="SMSMessageAcceptResult" type="s:int" /> |
| | | <s:element minOccurs="0" maxOccurs="1" name="xmlResp" type="s:string" /> |
| | | </s:sequence> |
| | | </s:complexType> |
| | | </s:element> |
| | | </s:schema> |
| | | </wsdl:types> |
| | | <wsdl:message name="SMSMessageAcceptSoapIn"> |
| | | <wsdl:part name="parameters" element="tns:SMSMessageAccept" /> |
| | | </wsdl:message> |
| | | <wsdl:message name="SMSMessageAcceptSoapOut"> |
| | | <wsdl:part name="parameters" element="tns:SMSMessageAcceptResponse" /> |
| | | </wsdl:message> |
| | | <wsdl:portType name="MessagingInsertSoap"> |
| | | <wsdl:operation name="SMSMessageAccept"> |
| | | <wsdl:input message="tns:SMSMessageAcceptSoapIn" /> |
| | | <wsdl:output message="tns:SMSMessageAcceptSoapOut" /> |
| | | </wsdl:operation> |
| | | </wsdl:portType> |
| | | <wsdl:binding name="MessagingInsertSoap" type="tns:MessagingInsertSoap"> |
| | | <soap:binding transport="http://schemas.xmlsoap.org/soap/http" /> |
| | | <wsdl:operation name="SMSMessageAccept"> |
| | | <soap:operation soapAction="http://tempuri.org/SMSMessageAccept" style="document" /> |
| | | <wsdl:input> |
| | | <soap:body use="literal" /> |
| | | </wsdl:input> |
| | | <wsdl:output> |
| | | <soap:body use="literal" /> |
| | | </wsdl:output> |
| | | </wsdl:operation> |
| | | </wsdl:binding> |
| | | <wsdl:binding name="MessagingInsertSoap12" type="tns:MessagingInsertSoap"> |
| | | <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" /> |
| | | <wsdl:operation name="SMSMessageAccept"> |
| | | <soap12:operation soapAction="http://tempuri.org/SMSMessageAccept" style="document" /> |
| | | <wsdl:input> |
| | | <soap12:body use="literal" /> |
| | | </wsdl:input> |
| | | <wsdl:output> |
| | | <soap12:body use="literal" /> |
| | | </wsdl:output> |
| | | </wsdl:operation> |
| | | </wsdl:binding> |
| | | <wsdl:service name="MessagingInsert"> |
| | | <wsdl:port name="MessagingInsertSoap" binding="tns:MessagingInsertSoap"> |
| | | <soap:address location="http://218.108.11.29:8081/MessagingInsert.asmx" /> |
| | | </wsdl:port> |
| | | <wsdl:port name="MessagingInsertSoap12" binding="tns:MessagingInsertSoap12"> |
| | | <soap12:address location="http://218.108.11.29:8081/MessagingInsert.asmx" /> |
| | | </wsdl:port> |
| | | </wsdl:service> |
| | | </wsdl:definitions> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /** |
| | | * MessagingInsert.java |
| | | * |
| | | * This file was auto-generated from WSDL |
| | | * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. |
| | | */ |
| | | |
| | | package WebServiceClient; |
| | | |
| | | public interface MessagingInsert extends javax.xml.rpc.Service { |
| | | public String getMessagingInsertSoap12Address(); |
| | | |
| | | public MessagingInsertSoap_PortType getMessagingInsertSoap12() throws javax.xml.rpc.ServiceException; |
| | | |
| | | public MessagingInsertSoap_PortType getMessagingInsertSoap12(java.net.URL portAddress) throws javax.xml.rpc.ServiceException; |
| | | public String getMessagingInsertSoapAddress(); |
| | | |
| | | public MessagingInsertSoap_PortType getMessagingInsertSoap() throws javax.xml.rpc.ServiceException; |
| | | |
| | | public MessagingInsertSoap_PortType getMessagingInsertSoap(java.net.URL portAddress) throws javax.xml.rpc.ServiceException; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /** |
| | | * MessagingInsertLocator.java |
| | | * |
| | | * This file was auto-generated from WSDL |
| | | * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. |
| | | */ |
| | | |
| | | package WebServiceClient; |
| | | |
| | | public class MessagingInsertLocator extends org.apache.axis.client.Service implements MessagingInsert { |
| | | |
| | | public MessagingInsertLocator() { |
| | | } |
| | | |
| | | |
| | | public MessagingInsertLocator(org.apache.axis.EngineConfiguration config) { |
| | | super(config); |
| | | } |
| | | |
| | | public MessagingInsertLocator(String wsdlLoc, javax.xml.namespace.QName sName) throws javax.xml.rpc.ServiceException { |
| | | super(wsdlLoc, sName); |
| | | } |
| | | |
| | | // Use to get a proxy class for MessagingInsertSoap12 |
| | | private String MessagingInsertSoap12_address = "http://218.108.11.29:8081/MessagingInsert.asmx"; |
| | | |
| | | public String getMessagingInsertSoap12Address() { |
| | | return MessagingInsertSoap12_address; |
| | | } |
| | | |
| | | // The WSDD service name defaults to the port name. |
| | | private String MessagingInsertSoap12WSDDServiceName = "MessagingInsertSoap12"; |
| | | |
| | | public String getMessagingInsertSoap12WSDDServiceName() { |
| | | return MessagingInsertSoap12WSDDServiceName; |
| | | } |
| | | |
| | | public void setMessagingInsertSoap12WSDDServiceName(String name) { |
| | | MessagingInsertSoap12WSDDServiceName = name; |
| | | } |
| | | |
| | | public MessagingInsertSoap_PortType getMessagingInsertSoap12() throws javax.xml.rpc.ServiceException { |
| | | java.net.URL endpoint; |
| | | try { |
| | | endpoint = new java.net.URL(MessagingInsertSoap12_address); |
| | | } |
| | | catch (java.net.MalformedURLException e) { |
| | | throw new javax.xml.rpc.ServiceException(e); |
| | | } |
| | | return getMessagingInsertSoap12(endpoint); |
| | | } |
| | | |
| | | public MessagingInsertSoap_PortType getMessagingInsertSoap12(java.net.URL portAddress) throws javax.xml.rpc.ServiceException { |
| | | try { |
| | | MessagingInsertSoap12Stub _stub = new MessagingInsertSoap12Stub(portAddress, this); |
| | | _stub.setPortName(getMessagingInsertSoap12WSDDServiceName()); |
| | | return _stub; |
| | | } |
| | | catch (org.apache.axis.AxisFault e) { |
| | | return null; |
| | | } |
| | | } |
| | | |
| | | public void setMessagingInsertSoap12EndpointAddress(String address) { |
| | | MessagingInsertSoap12_address = address; |
| | | } |
| | | |
| | | |
| | | // Use to get a proxy class for MessagingInsertSoap |
| | | private String MessagingInsertSoap_address = "http://218.108.11.29:8081/MessagingInsert.asmx"; |
| | | |
| | | public String getMessagingInsertSoapAddress() { |
| | | return MessagingInsertSoap_address; |
| | | } |
| | | |
| | | // The WSDD service name defaults to the port name. |
| | | private String MessagingInsertSoapWSDDServiceName = "MessagingInsertSoap"; |
| | | |
| | | public String getMessagingInsertSoapWSDDServiceName() { |
| | | return MessagingInsertSoapWSDDServiceName; |
| | | } |
| | | |
| | | public void setMessagingInsertSoapWSDDServiceName(String name) { |
| | | MessagingInsertSoapWSDDServiceName = name; |
| | | } |
| | | |
| | | public MessagingInsertSoap_PortType getMessagingInsertSoap() throws javax.xml.rpc.ServiceException { |
| | | java.net.URL endpoint; |
| | | try { |
| | | endpoint = new java.net.URL(MessagingInsertSoap_address); |
| | | } |
| | | catch (java.net.MalformedURLException e) { |
| | | throw new javax.xml.rpc.ServiceException(e); |
| | | } |
| | | return getMessagingInsertSoap(endpoint); |
| | | } |
| | | |
| | | public MessagingInsertSoap_PortType getMessagingInsertSoap(java.net.URL portAddress) throws javax.xml.rpc.ServiceException { |
| | | try { |
| | | MessagingInsertSoap_BindingStub _stub = new MessagingInsertSoap_BindingStub(portAddress, this); |
| | | _stub.setPortName(getMessagingInsertSoapWSDDServiceName()); |
| | | return _stub; |
| | | } |
| | | catch (org.apache.axis.AxisFault e) { |
| | | return null; |
| | | } |
| | | } |
| | | |
| | | public void setMessagingInsertSoapEndpointAddress(String address) { |
| | | MessagingInsertSoap_address = address; |
| | | } |
| | | |
| | | /** |
| | | * For the given interface, get the stub implementation. |
| | | * If this service has no port for the given interface, |
| | | * then ServiceException is thrown. |
| | | * This service has multiple ports for a given interface; |
| | | * the proxy implementation returned may be indeterminate. |
| | | */ |
| | | public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException { |
| | | try { |
| | | if (MessagingInsertSoap_PortType.class.isAssignableFrom(serviceEndpointInterface)) { |
| | | MessagingInsertSoap12Stub _stub = new MessagingInsertSoap12Stub(new java.net.URL(MessagingInsertSoap12_address), this); |
| | | _stub.setPortName(getMessagingInsertSoap12WSDDServiceName()); |
| | | return _stub; |
| | | } |
| | | if (MessagingInsertSoap_PortType.class.isAssignableFrom(serviceEndpointInterface)) { |
| | | MessagingInsertSoap_BindingStub _stub = new MessagingInsertSoap_BindingStub(new java.net.URL(MessagingInsertSoap_address), this); |
| | | _stub.setPortName(getMessagingInsertSoapWSDDServiceName()); |
| | | return _stub; |
| | | } |
| | | } |
| | | catch (Throwable t) { |
| | | throw new javax.xml.rpc.ServiceException(t); |
| | | } |
| | | throw new javax.xml.rpc.ServiceException("There is no stub implementation for the interface: " + (serviceEndpointInterface == null ? "null" : serviceEndpointInterface.getName())); |
| | | } |
| | | |
| | | /** |
| | | * For the given interface, get the stub implementation. |
| | | * If this service has no port for the given interface, |
| | | * then ServiceException is thrown. |
| | | */ |
| | | public java.rmi.Remote getPort(javax.xml.namespace.QName portName, Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException { |
| | | if (portName == null) { |
| | | return getPort(serviceEndpointInterface); |
| | | } |
| | | String inputPortName = portName.getLocalPart(); |
| | | if ("MessagingInsertSoap12".equals(inputPortName)) { |
| | | return getMessagingInsertSoap12(); |
| | | } |
| | | else if ("MessagingInsertSoap".equals(inputPortName)) { |
| | | return getMessagingInsertSoap(); |
| | | } |
| | | else { |
| | | java.rmi.Remote _stub = getPort(serviceEndpointInterface); |
| | | ((org.apache.axis.client.Stub) _stub).setPortName(portName); |
| | | return _stub; |
| | | } |
| | | } |
| | | |
| | | public javax.xml.namespace.QName getServiceName() { |
| | | return new javax.xml.namespace.QName("http://tempuri.org/", "MessagingInsert"); |
| | | } |
| | | |
| | | private java.util.HashSet ports = null; |
| | | |
| | | public java.util.Iterator getPorts() { |
| | | if (ports == null) { |
| | | ports = new java.util.HashSet(); |
| | | ports.add(new javax.xml.namespace.QName("http://tempuri.org/", "MessagingInsertSoap12")); |
| | | ports.add(new javax.xml.namespace.QName("http://tempuri.org/", "MessagingInsertSoap")); |
| | | } |
| | | return ports.iterator(); |
| | | } |
| | | |
| | | /** |
| | | * Set the endpoint address for the specified port name. |
| | | */ |
| | | public void setEndpointAddress(String portName, String address) throws javax.xml.rpc.ServiceException { |
| | | |
| | | if ("MessagingInsertSoap12".equals(portName)) { |
| | | setMessagingInsertSoap12EndpointAddress(address); |
| | | } |
| | | else |
| | | if ("MessagingInsertSoap".equals(portName)) { |
| | | setMessagingInsertSoapEndpointAddress(address); |
| | | } |
| | | else |
| | | { // Unknown Port Name |
| | | throw new javax.xml.rpc.ServiceException(" Cannot set Endpoint Address for Unknown Port" + portName); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * Set the endpoint address for the specified port name. |
| | | */ |
| | | public void setEndpointAddress(javax.xml.namespace.QName portName, String address) throws javax.xml.rpc.ServiceException { |
| | | setEndpointAddress(portName.getLocalPart(), address); |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /** |
| | | * MessagingInsertSoap12Stub.java |
| | | * <p> |
| | | * This file was auto-generated from WSDL |
| | | * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. |
| | | */ |
| | | |
| | | package WebServiceClient; |
| | | |
| | | public class MessagingInsertSoap12Stub extends org.apache.axis.client.Stub implements MessagingInsertSoap_PortType { |
| | | private java.util.Vector cachedSerClasses = new java.util.Vector(); |
| | | private java.util.Vector cachedSerQNames = new java.util.Vector(); |
| | | private java.util.Vector cachedSerFactories = new java.util.Vector(); |
| | | private java.util.Vector cachedDeserFactories = new java.util.Vector(); |
| | | |
| | | static org.apache.axis.description.OperationDesc[] _operations; |
| | | |
| | | static { |
| | | _operations = new org.apache.axis.description.OperationDesc[1]; |
| | | _initOperationDesc1(); |
| | | } |
| | | |
| | | private static void _initOperationDesc1() { |
| | | org.apache.axis.description.OperationDesc oper; |
| | | org.apache.axis.description.ParameterDesc param; |
| | | oper = new org.apache.axis.description.OperationDesc(); |
| | | oper.setName("SMSMessageAccept"); |
| | | param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "xmlReq"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false); |
| | | param.setOmittable(true); |
| | | oper.addParameter(param); |
| | | param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "SMSMessageAcceptResult"), org.apache.axis.description.ParameterDesc.OUT, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"), int.class, false, false); |
| | | oper.addParameter(param); |
| | | param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "xmlResp"), org.apache.axis.description.ParameterDesc.OUT, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false); |
| | | param.setOmittable(true); |
| | | oper.addParameter(param); |
| | | oper.setReturnType(org.apache.axis.encoding.XMLType.AXIS_VOID); |
| | | oper.setStyle(org.apache.axis.constants.Style.WRAPPED); |
| | | oper.setUse(org.apache.axis.constants.Use.LITERAL); |
| | | _operations[0] = oper; |
| | | |
| | | } |
| | | |
| | | public MessagingInsertSoap12Stub() throws org.apache.axis.AxisFault { |
| | | this(null); |
| | | } |
| | | |
| | | public MessagingInsertSoap12Stub(java.net.URL endpointURL, javax.xml.rpc.Service service) throws org.apache.axis.AxisFault { |
| | | this(service); |
| | | super.cachedEndpoint = endpointURL; |
| | | } |
| | | |
| | | public MessagingInsertSoap12Stub(javax.xml.rpc.Service service) throws org.apache.axis.AxisFault { |
| | | if (service == null) { |
| | | super.service = new org.apache.axis.client.Service(); |
| | | } else { |
| | | super.service = service; |
| | | } |
| | | ((org.apache.axis.client.Service) super.service).setTypeMappingVersion("1.1"); |
| | | } |
| | | |
| | | protected org.apache.axis.client.Call createCall() throws java.rmi.RemoteException { |
| | | try { |
| | | org.apache.axis.client.Call _call = super._createCall(); |
| | | if (super.maintainSessionSet) { |
| | | _call.setMaintainSession(super.maintainSession); |
| | | } |
| | | if (super.cachedUsername != null) { |
| | | _call.setUsername(super.cachedUsername); |
| | | } |
| | | if (super.cachedPassword != null) { |
| | | _call.setPassword(super.cachedPassword); |
| | | } |
| | | if (super.cachedEndpoint != null) { |
| | | _call.setTargetEndpointAddress(super.cachedEndpoint); |
| | | } |
| | | if (super.cachedTimeout != null) { |
| | | _call.setTimeout(super.cachedTimeout); |
| | | } |
| | | if (super.cachedPortName != null) { |
| | | _call.setPortName(super.cachedPortName); |
| | | } |
| | | java.util.Enumeration keys = super.cachedProperties.keys(); |
| | | while (keys.hasMoreElements()) { |
| | | String key = (String) keys.nextElement(); |
| | | _call.setProperty(key, super.cachedProperties.get(key)); |
| | | } |
| | | return _call; |
| | | } catch (Throwable _t) { |
| | | throw new org.apache.axis.AxisFault("Failure trying to get the Call object", _t); |
| | | } |
| | | } |
| | | |
| | | public Integer SMSMessageAccept(String xmlReq, javax.xml.rpc.holders.IntHolder SMSMessageAcceptResult, javax.xml.rpc.holders.StringHolder xmlResp) throws java.rmi.RemoteException { |
| | | Integer success = null; |
| | | if (super.cachedEndpoint == null) { |
| | | throw new org.apache.axis.NoEndPointException(); |
| | | } |
| | | org.apache.axis.client.Call _call = createCall(); |
| | | _call.setOperation(_operations[0]); |
| | | _call.setUseSOAPAction(true); |
| | | _call.setSOAPActionURI("http://tempuri.org/SMSMessageAccept"); |
| | | _call.setEncodingStyle(null); |
| | | _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE); |
| | | _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE); |
| | | _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP12_CONSTANTS); |
| | | _call.setOperationName(new javax.xml.namespace.QName("http://tempuri.org/", "SMSMessageAccept")); |
| | | |
| | | setRequestHeaders(_call); |
| | | setAttachments(_call); |
| | | try { |
| | | Object _resp = _call.invoke(new Object[]{xmlReq}); |
| | | |
| | | if (_resp instanceof java.rmi.RemoteException) { |
| | | throw (java.rmi.RemoteException) _resp; |
| | | } else { |
| | | extractAttachments(_call); |
| | | java.util.Map _output; |
| | | _output = _call.getOutputParams(); |
| | | try { |
| | | success = ((Integer) _output.get(new javax.xml.namespace.QName("http://tempuri.org/", "SMSMessageAcceptResult"))).intValue(); |
| | | } catch (Exception _exception) { |
| | | success = ((Integer) org.apache.axis.utils.JavaUtils.convert(_output.get(new javax.xml.namespace.QName("http://tempuri.org/", "SMSMessageAcceptResult")), int.class)).intValue(); |
| | | } |
| | | try { |
| | | xmlResp.value = (String) _output.get(new javax.xml.namespace.QName("http://tempuri.org/", "xmlResp")); |
| | | } catch (Exception _exception) { |
| | | xmlResp.value = (String) org.apache.axis.utils.JavaUtils.convert(_output.get(new javax.xml.namespace.QName("http://tempuri.org/", "xmlResp")), String.class); |
| | | } |
| | | } |
| | | } catch (org.apache.axis.AxisFault axisFaultException) { |
| | | throw axisFaultException; |
| | | } |
| | | return success; |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /** |
| | | * MessagingInsertSoap_BindingStub.java |
| | | * <p> |
| | | * This file was auto-generated from WSDL |
| | | * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. |
| | | */ |
| | | |
| | | package WebServiceClient; |
| | | |
| | | import org.apache.axis.client.Stub; |
| | | |
| | | public class MessagingInsertSoap_BindingStub extends Stub implements MessagingInsertSoap_PortType { |
| | | private java.util.Vector cachedSerClasses = new java.util.Vector(); |
| | | private java.util.Vector cachedSerQNames = new java.util.Vector(); |
| | | private java.util.Vector cachedSerFactories = new java.util.Vector(); |
| | | private java.util.Vector cachedDeserFactories = new java.util.Vector(); |
| | | |
| | | static org.apache.axis.description.OperationDesc[] _operations; |
| | | |
| | | static { |
| | | _operations = new org.apache.axis.description.OperationDesc[1]; |
| | | _initOperationDesc1(); |
| | | } |
| | | |
| | | private static void _initOperationDesc1() { |
| | | org.apache.axis.description.OperationDesc oper; |
| | | org.apache.axis.description.ParameterDesc param; |
| | | oper = new org.apache.axis.description.OperationDesc(); |
| | | oper.setName("SMSMessageAccept"); |
| | | param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "xmlReq"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false); |
| | | param.setOmittable(true); |
| | | oper.addParameter(param); |
| | | param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "SMSMessageAcceptResult"), org.apache.axis.description.ParameterDesc.OUT, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"), int.class, false, false); |
| | | oper.addParameter(param); |
| | | param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName("http://tempuri.org/", "xmlResp"), org.apache.axis.description.ParameterDesc.OUT, new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false); |
| | | param.setOmittable(true); |
| | | oper.addParameter(param); |
| | | oper.setReturnType(org.apache.axis.encoding.XMLType.AXIS_VOID); |
| | | oper.setStyle(org.apache.axis.constants.Style.WRAPPED); |
| | | oper.setUse(org.apache.axis.constants.Use.LITERAL); |
| | | _operations[0] = oper; |
| | | |
| | | } |
| | | |
| | | public MessagingInsertSoap_BindingStub() throws org.apache.axis.AxisFault { |
| | | this(null); |
| | | } |
| | | |
| | | public MessagingInsertSoap_BindingStub(java.net.URL endpointURL, javax.xml.rpc.Service service) throws org.apache.axis.AxisFault { |
| | | this(service); |
| | | super.cachedEndpoint = endpointURL; |
| | | } |
| | | |
| | | public MessagingInsertSoap_BindingStub(javax.xml.rpc.Service service) throws org.apache.axis.AxisFault { |
| | | if (service == null) { |
| | | super.service = new org.apache.axis.client.Service(); |
| | | } else { |
| | | super.service = service; |
| | | } |
| | | ((org.apache.axis.client.Service) super.service).setTypeMappingVersion("1.1"); |
| | | } |
| | | |
| | | protected org.apache.axis.client.Call createCall() throws java.rmi.RemoteException { |
| | | try { |
| | | org.apache.axis.client.Call _call = super._createCall(); |
| | | if (super.maintainSessionSet) { |
| | | _call.setMaintainSession(super.maintainSession); |
| | | } |
| | | if (super.cachedUsername != null) { |
| | | _call.setUsername(super.cachedUsername); |
| | | } |
| | | if (super.cachedPassword != null) { |
| | | _call.setPassword(super.cachedPassword); |
| | | } |
| | | if (super.cachedEndpoint != null) { |
| | | _call.setTargetEndpointAddress(super.cachedEndpoint); |
| | | } |
| | | if (super.cachedTimeout != null) { |
| | | _call.setTimeout(super.cachedTimeout); |
| | | } |
| | | if (super.cachedPortName != null) { |
| | | _call.setPortName(super.cachedPortName); |
| | | } |
| | | java.util.Enumeration keys = super.cachedProperties.keys(); |
| | | while (keys.hasMoreElements()) { |
| | | String key = (String) keys.nextElement(); |
| | | _call.setProperty(key, super.cachedProperties.get(key)); |
| | | } |
| | | return _call; |
| | | } catch (Throwable _t) { |
| | | throw new org.apache.axis.AxisFault("Failure trying to get the Call object", _t); |
| | | } |
| | | } |
| | | |
| | | public Integer SMSMessageAccept(String xmlReq, javax.xml.rpc.holders.IntHolder SMSMessageAcceptResult, javax.xml.rpc.holders.StringHolder xmlResp) throws java.rmi.RemoteException { |
| | | Integer success = null; |
| | | if (super.cachedEndpoint == null) { |
| | | throw new org.apache.axis.NoEndPointException(); |
| | | } |
| | | org.apache.axis.client.Call _call = createCall(); |
| | | _call.setOperation(_operations[0]); |
| | | _call.setUseSOAPAction(true); |
| | | _call.setSOAPActionURI("http://tempuri.org/SMSMessageAccept"); |
| | | _call.setEncodingStyle(null); |
| | | _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE); |
| | | _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE); |
| | | _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS); |
| | | _call.setOperationName(new javax.xml.namespace.QName("http://tempuri.org/", "SMSMessageAccept")); |
| | | |
| | | setRequestHeaders(_call); |
| | | setAttachments(_call); |
| | | try { |
| | | Object _resp = _call.invoke(new Object[]{xmlReq}); |
| | | |
| | | if (_resp instanceof java.rmi.RemoteException) { |
| | | throw (java.rmi.RemoteException) _resp; |
| | | } else { |
| | | extractAttachments(_call); |
| | | java.util.Map _output; |
| | | _output = _call.getOutputParams(); |
| | | try { |
| | | success = ((Integer) _output.get(new javax.xml.namespace.QName("http://tempuri.org/", "SMSMessageAcceptResult"))).intValue(); |
| | | } catch (Exception _exception) { |
| | | success = ((Integer) org.apache.axis.utils.JavaUtils.convert(_output.get(new javax.xml.namespace.QName("http://tempuri.org/", "SMSMessageAcceptResult")), int.class)).intValue(); |
| | | } |
| | | try { |
| | | xmlResp.value = (String) _output.get(new javax.xml.namespace.QName("http://tempuri.org/", "xmlResp")); |
| | | } catch (Exception _exception) { |
| | | xmlResp.value = (String) org.apache.axis.utils.JavaUtils.convert(_output.get(new javax.xml.namespace.QName("http://tempuri.org/", "xmlResp")), String.class); |
| | | } |
| | | } |
| | | } catch (org.apache.axis.AxisFault axisFaultException) { |
| | | throw axisFaultException; |
| | | } |
| | | return success; |
| | | } |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /** |
| | | * MessagingInsertSoap_PortType.java |
| | | * |
| | | * This file was auto-generated from WSDL |
| | | * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. |
| | | */ |
| | | |
| | | package WebServiceClient; |
| | | |
| | | public interface MessagingInsertSoap_PortType extends java.rmi.Remote { |
| | | public Integer SMSMessageAccept(String xmlReq, javax.xml.rpc.holders.IntHolder SMSMessageAcceptResult, javax.xml.rpc.holders.StringHolder xmlResp) throws java.rmi.RemoteException; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | /** |
| | | * MessagingInsertTestCase.java |
| | | * <p> |
| | | * This file was auto-generated from WSDL |
| | | * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. |
| | | */ |
| | | |
| | | package WebServiceClient; |
| | | |
| | | public class MessagingInsertTestCase extends junit.framework.TestCase { |
| | | public MessagingInsertTestCase(String name) { |
| | | super(name); |
| | | } |
| | | |
| | | public void testMessagingInsertSoap12WSDL() throws Exception { |
| | | javax.xml.rpc.ServiceFactory serviceFactory = javax.xml.rpc.ServiceFactory.newInstance(); |
| | | java.net.URL url = new java.net.URL(new MessagingInsertLocator().getMessagingInsertSoap12Address() + "?WSDL"); |
| | | javax.xml.rpc.Service service = serviceFactory.createService(url, new MessagingInsertLocator().getServiceName()); |
| | | assertTrue(service != null); |
| | | } |
| | | |
| | | public void test1MessagingInsertSoap12SMSMessageAccept() throws Exception { |
| | | MessagingInsertSoap12Stub binding; |
| | | try { |
| | | binding = (MessagingInsertSoap12Stub) new MessagingInsertLocator().getMessagingInsertSoap12(); |
| | | } catch (javax.xml.rpc.ServiceException jre) { |
| | | if (jre.getLinkedCause() != null) jre.getLinkedCause().printStackTrace(); |
| | | throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); |
| | | } |
| | | assertNotNull("binding is null", binding); |
| | | |
| | | // Time out after a minute |
| | | binding.setTimeout(60000); |
| | | |
| | | // Test operation |
| | | binding.SMSMessageAccept(new String(), new javax.xml.rpc.holders.IntHolder(), new javax.xml.rpc.holders.StringHolder()); |
| | | // TBD - validate results |
| | | } |
| | | |
| | | public void testMessagingInsertSoapWSDL() throws Exception { |
| | | javax.xml.rpc.ServiceFactory serviceFactory = javax.xml.rpc.ServiceFactory.newInstance(); |
| | | java.net.URL url = new java.net.URL(new MessagingInsertLocator().getMessagingInsertSoapAddress() + "?WSDL"); |
| | | javax.xml.rpc.Service service = serviceFactory.createService(url, new MessagingInsertLocator().getServiceName()); |
| | | assertTrue(service != null); |
| | | } |
| | | |
| | | public void test2MessagingInsertSoapSMSMessageAccept() throws Exception { |
| | | MessagingInsertSoap_BindingStub binding; |
| | | try { |
| | | binding = (MessagingInsertSoap_BindingStub) new MessagingInsertLocator().getMessagingInsertSoap(); |
| | | } catch (javax.xml.rpc.ServiceException jre) { |
| | | if (jre.getLinkedCause() != null) jre.getLinkedCause().printStackTrace(); |
| | | throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre); |
| | | } |
| | | assertNotNull("binding is null", binding); |
| | | |
| | | // Time out after a minute |
| | | binding.setTimeout(60000); |
| | | |
| | | // Test operation |
| | | binding.SMSMessageAccept(new String(), new javax.xml.rpc.holders.IntHolder(), new javax.xml.rpc.holders.StringHolder()); |
| | | // TBD - validate results |
| | | } |
| | | |
| | | } |
| | |
| | | @ApiModelProperty(value = "æ¯å¦å卿ä½ï¼1 æ°å¢ 2ä¿®æ¹ 3å é¤") |
| | | private Integer isoperation; |
| | | |
| | | @ApiModelProperty(value = "æ¯å¦ç»æ 0ï¼ä¸ç»æ 1ï¼ç»æ") |
| | | private Integer isEnd; |
| | | |
| | | } |
| | |
| | | @Excel(name = "pageSize") |
| | | private Integer pageSize; |
| | | |
| | | @ApiModelProperty(value = "æ¯å¦ç»æ 0ï¼ä¸ç»æ 1ï¼ç»æ") |
| | | private Integer isEnd; |
| | | |
| | | } |
| | |
| | | @ApiModelProperty(value = "éä»¶ä¿¡æ¯") |
| | | private String appenddesc; |
| | | |
| | | @ApiModelProperty(value = "æ¯å¦ç»æ 0ï¼ä¸ç»æ 1ï¼ç»æ") |
| | | private Integer isEnd; |
| | | |
| | | |
| | | } |
| | |
| | | @ApiModelProperty(value = "é®é¢ç»æï¼ç»âå¼ç±»åâæ¯ææ¬æè
æ°å¼ç¨çï¼") |
| | | private String questionResult; |
| | | |
| | | @ApiModelProperty(value = "éç¨åºå¹é
å°çè¯æ¯") |
| | | private String extemplateText; |
| | | |
| | | /** |
| | | * æ¯å¦å卿ä½ï¼1 æ°å¢ 2ä¿®æ¹ 3å é¤ |
| | | */ |
| | |
| | | @Excel(name = "é项ç»å·") |
| | | @ApiModelProperty(value = "é项ç»å·") |
| | | private String optionCode; |
| | | |
| | | @ApiModelProperty(value = "æ¯å¦ç»æ 0ï¼ä¸ç»æ 1ï¼ç»æ") |
| | | private Integer isEnd; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.domain; |
| | | |
| | | import lombok.Data; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | @Data |
| | | public class QuestionMessagePhone { |
| | | // //é¢å·targetId |
| | | // private Integer code; |
| | | //è¿åçå
容 |
| | | private String content; |
| | | |
| | | //å¼åºç½(ç»æµè¯åè½ç¨ç) |
| | | private String kcb = null; |
| | | |
| | | //ç»æè¯(ç»æµè¯åè½ç¨ç) |
| | | private String jsy = null; |
| | | |
| | | //å½åé®é¢ |
| | | private IvrLibaTemplateScriptVO nowQuestion = new IvrLibaTemplateScriptVO(); |
| | | |
| | | //é®é¢æ¸
å |
| | | private List<IvrLibaTemplateScriptVO> questionList = new ArrayList(); |
| | | |
| | | |
| | | } |
| | |
| | | @ApiModelProperty(value = "å¯¹çæ¡çè¯è¯") |
| | | private String comment; |
| | | |
| | | @ApiModelProperty(value = "éç¨åºå¹é
å°çè¯æ¯") |
| | | private String extemplateText; |
| | | |
| | | @ApiModelProperty(value = "æ£è
ID") |
| | | private Long patid; |
| | | |
| | |
| | | public class SocketMessage { |
| | | //åéå
空çç±»åï¼text,imageï¼ |
| | | private String type; |
| | | //å
容ï¼åéçææ¬å
å®¹ï¼ |
| | | //å
容ï¼åéçææ¬å
容,èªå·± åHTMLæµè¯ç¨çï¼å¹³æ¶æ²¡å¼ï¼ |
| | | private String content; |
| | | //模æ¿ID |
| | | private Long templateId; |
| | |
| | | PatArchiveImport patArchiveImport = new PatArchiveImport(); |
| | | Row row = sheet.getRow(i); |
| | | //妿è¡ä¸ºç©ºï¼è¿è¡ä¸ä¸æ¬¡å¾ªç¯ |
| | | if (ObjectUtils.isEmpty(row.getCell(0)) && ObjectUtils.isEmpty(row.getCell(1)) && ObjectUtils.isEmpty(row.getCell(2))) { |
| | | if (ObjectUtils.isEmpty(row.getCell(0)) && StringUtils.isNotEmpty(row.getCell(0) + "") && ObjectUtils.isEmpty(row.getCell(1)) && StringUtils.isNotEmpty(row.getCell(1) + "") && ObjectUtils.isEmpty(row.getCell(2)) && StringUtils.isNotEmpty(row.getCell(2) + "")) { |
| | | continue; |
| | | } |
| | | //å¤ææ°æ®æ¯å¦æé®é¢ |
| | | |
| | | |
| | | if (ObjectUtils.isNotEmpty(row.getCell(0))) { |
| | | if (ObjectUtils.isNotEmpty(row.getCell(0)) && StringUtils.isNotEmpty(row.getCell(0) + "")) { |
| | | patArchiveImport.setName(row.getCell(0).toString()); |
| | | } else { |
| | | continue; |
| | | } |
| | | if (ObjectUtils.isNotEmpty(row.getCell(1))) { |
| | | if (ObjectUtils.isNotEmpty(row.getCell(1)) && StringUtils.isNotEmpty(row.getCell(1) + "")) { |
| | | Cell cell = row.getCell(1); |
| | | if (row.getCell(1).toString().contains("X") || row.getCell(1).toString().contains("x")) { |
| | | patArchiveImport.setIdcardno(row.getCell(1).toString()); |
| | |
| | | if (contains) continue; |
| | | } |
| | | |
| | | if (ObjectUtils.isNotEmpty(row.getCell(2))) { |
| | | if (ObjectUtils.isNotEmpty(row.getCell(2)) && StringUtils.isNotEmpty(row.getCell(2) + "")) { |
| | | Cell cell = row.getCell(2); |
| | | double numericCellValue = cell.getNumericCellValue(); |
| | | DecimalFormat decimalFormat = new DecimalFormat("#"); |
| | | String formattedValue = decimalFormat.format(numericCellValue); |
| | | patArchiveImport.setTelcode(formattedValue); |
| | | } |
| | | if (ObjectUtils.isNotEmpty(row.getCell(3))) { |
| | | if (ObjectUtils.isNotEmpty(row.getCell(3)) && StringUtils.isNotEmpty(row.getCell(3) + "")) { |
| | | patArchiveImport.setBatchName(row.getCell(3).toString()); |
| | | } |
| | | if (ObjectUtils.isNotEmpty(row.getCell(4))) { |
| | | if (ObjectUtils.isNotEmpty(row.getCell(4)) && StringUtils.isNotEmpty(row.getCell(4) + "")) { |
| | | patArchiveImport.setPatientno(row.getCell(4).toString()); |
| | | } |
| | | |
| | | if (ObjectUtils.isNotEmpty(row.getCell(5))) { |
| | | if (ObjectUtils.isNotEmpty(row.getCell(5)) && StringUtils.isNotEmpty(row.getCell(5) + "")) { |
| | | patArchiveImport.setPattype(row.getCell(5).toString()); |
| | | } |
| | | if (ObjectUtils.isNotEmpty(row.getCell(6))) { |
| | | if (ObjectUtils.isNotEmpty(row.getCell(6)) && StringUtils.isNotEmpty(row.getCell(6) + "")) { |
| | | patArchiveImport.setSex(Long.valueOf(row.getCell(6).toString())); |
| | | } |
| | | if (ObjectUtils.isNotEmpty(row.getCell(7))) { |
| | | if (ObjectUtils.isNotEmpty(row.getCell(7)) && StringUtils.isNotEmpty(row.getCell(7) + "")) { |
| | | patArchiveImport.setAge(Long.valueOf(row.getCell(7).toString())); |
| | | } |
| | | |
| | |
| | | serviceSubtask.setSendname(patTaskRelevance.getName()); |
| | | serviceSubtask.setAge(patTaskRelevance.getAge()); |
| | | serviceSubtask.setSfzh(patTaskRelevance.getSfzh()); |
| | | serviceSubtask.setPhone(patTaskRelevance.getPhone()); |
| | | serviceSubtask.setPhone(patTaskRelevance.getTelcode()); |
| | | serviceSubtask.setAddr(patTaskRelevance.getAddr()); |
| | | serviceSubtask.setPatid(patTaskRelevance.getPatid()); |
| | | serviceSubtask.setOpenid(patTaskRelevance.getOpenid()); |
| | |
| | | return phoneCallBackYQVO; |
| | | } |
| | | //è·åæ¾é³æ¯å¦ç»æ |
| | | boolean isPlayEventOver = redisCache.getCacheObject(phoneCallReqYQVO.getUuid() + "PlayEventCallbackPlaystop"); |
| | | if (!isPlayEventOver) { |
| | | return phoneCallBackYQVO; |
| | | Object isPlayEventOverObj = redisCache.getCacheObject(phoneCallReqYQVO.getUuid() + "PlayEventCallbackPlaystop"); |
| | | if (ObjectUtils.isNotEmpty(isPlayEventOverObj)) { |
| | | Boolean isPlayEventOver = (Boolean) isPlayEventOverObj; |
| | | if (!isPlayEventOver) { |
| | | return phoneCallBackYQVO; |
| | | } |
| | | } |
| | | |
| | | //éè¿åä»»å¡IDè·åå°æ¨¡æ¿ä¿¡æ¯ |
| | |
| | | serviceSubtask.setFinishtime(new Date()); |
| | | serviceSubtaskMapper.updateServiceSubtask(serviceSubtask); |
| | | Map<String, String> map = delRedisValue(null, id.toString()); |
| | | redisCache.setCacheObject(map.get("cacheName"), map.get("val")); |
| | | if (ObjectUtils.isNotEmpty(map)) redisCache.setCacheObject(map.get("cacheName"), map.get("val")); |
| | | redisCache.deleteObject(serviceSubtask.getId() + "-" + serviceSubtask.getPhone()); |
| | | redisCache.deleteObject(phoneCallReqYQVO.getUuid() + "SCORE"); |
| | | redisCache.deleteObject(phoneCallReqYQVO.getUuid() + "PlayEventCallbackPlaystop"); |
| | |
| | | //å¨redisä¸ä¿åä¸ä¸ç»æè¯ï¼å¨è°ç¨æçµè¯çæ¹æ³æ¶å é¤ |
| | | ServiceTask serviceTask = serviceTaskService.selectServiceTaskByTaskid(serviceSubtask.getTaskid()); |
| | | redisCache.setCacheObject(phoneCallReqYQVO.getUuid() + "- jsy", serviceTask.getJsy(), 120, TimeUnit.MINUTES); |
| | | phoneCallBackYQVO.setValue(phoneCallBackYQVO.getCommonValue() + serviceTask.getJsy()); |
| | | phoneCallBackYQVO.setType("text"); |
| | | phoneCallBackYQVO.setValue(phoneCallBackYQVO.getCommonValue() + les.getSwitchText()); |
| | | //å°ç»æåè¿detail表 |
| | | ServiceSubTaskDetailReq serviceSubTaskDetailReq = new ServiceSubTaskDetailReq(); |
| | | List<ServiceSubtaskDetail> serviceSubtaskDetailList = new ArrayList<>(); |
| | | ivrTaskTemplateScriptVO.setExtemplateText(les.getSwitchText()); |
| | | serviceSubtaskDetailList.add(getServiceSubtaskDetail(phoneCallReqYQVO, ivrTaskTemplateScriptVO, serviceSubtask, ivrTaskTemplate)); |
| | | serviceSubTaskDetailReq.setServiceSubtaskDetailList(serviceSubtaskDetailList); |
| | | saveQuestionAnswerPhone(serviceSubTaskDetailReq); |
| | | return phoneCallBackYQVO; |
| | | } |
| | | } |
| | |
| | | serviceSubtaskDetailList.add(getServiceSubtaskDetail(phoneCallReqYQVO, ivrTaskTemplateScriptVO, serviceSubtask, ivrTaskTemplate)); |
| | | serviceSubTaskDetailReq.setServiceSubtaskDetailList(serviceSubtaskDetailList); |
| | | saveQuestionAnswerPhone(serviceSubTaskDetailReq); |
| | | //夿ä¸ä¸ï¼è¿ä¸ªéé¡¹ç»ææ¯ä¸æ¯è¿æç»§ç»é®ä¸å»çå¿
è¦ï¼ä¾å¦éé¡¹ç»ææ¯å«äººä¸æ³ç»§ç»åçé®é¢ï¼å°±è¦ç»ææ |
| | | if (ivrTaskTemplateScriptVO.getIvrTaskScriptTargetoptionList().get(j).getIsEnd() == 1) { |
| | | redisCache.deleteObject(serviceSubtask.getId() + "-" + serviceSubtask.getPhone()); |
| | | redisCache.deleteObject(phoneCallReqYQVO.getUuid() + "SCORE"); |
| | | redisCache.deleteObject(phoneCallReqYQVO.getUuid() + "PlayEventCallbackPlaystop"); |
| | | redisCache.deleteObject(phoneCallReqYQVO.getUuid() + "noVoice"); |
| | | //å¨redisä¸ä¿åä¸ä¸ç»æè¯ï¼å¨è°ç¨æçµè¯çæ¹æ³æ¶å é¤ |
| | | ServiceTask serviceTask = serviceTaskService.selectServiceTaskByTaskid(serviceSubtask.getTaskid()); |
| | | redisCache.setCacheObject(phoneCallReqYQVO.getUuid() + "- jsy", serviceTask.getJsy(), 120, TimeUnit.MINUTES); |
| | | phoneCallBackYQVO.setType("text"); |
| | | phoneCallBackYQVO.setValue(phoneCallBackYQVO.getCommonValue() + serviceTask.getJsy()); |
| | | return phoneCallBackYQVO; |
| | | } |
| | | |
| | | flag = 1; |
| | | //å°å½ååçææ¥ç¶æå é¤ï¼ç»ä¸ä¸é¢è®©ä½ |
| | | redisCache.deleteObject(phoneCallReqYQVO.getUuid() + "PlayEventCallbackPlaystop"); |
| | |
| | | phoneCallBackYQVO.setType("text"); |
| | | phoneCallBackYQVO.setSilent_interval(ivrTaskTemplate.getSilencetime().intValue()); |
| | | //æ´æ°ä¸ä¸åæ° |
| | | double score = redisCache.getCacheObject(phoneCallReqYQVO.getUuid() + "SCORE"); |
| | | double score = 0.0; |
| | | Object scoreObj = redisCache.getCacheObject(phoneCallReqYQVO.getUuid() + "SCORE"); |
| | | if (ObjectUtils.isNotEmpty(scoreObj)) score = (double) scoreObj; |
| | | serviceSubtask.setScore(BigDecimal.valueOf(score)); |
| | | serviceSubtask.setFinishtime(new Date()); |
| | | serviceSubtaskMapper.updateServiceSubtask(serviceSubtask); |
| | |
| | | phoneCallBackYQVO.setValue(phoneCallBackYQVO.getCommonValue() + serviceTask1.getJsy()); |
| | | Long id = serviceSubtask.getId(); |
| | | Map<String, String> map = delRedisValue(null, id.toString()); |
| | | redisCache.setCacheObject(map.get("cacheName"), map.get("val")); |
| | | log.error("mapçå¼ä¸ºï¼{}", map); |
| | | if (ObjectUtils.isNotEmpty(map)) |
| | | redisCache.setCacheObject(map.get("cacheName"), map.get("val")); |
| | | redisCache.deleteObject(serviceSubtask.getId() + "-" + serviceSubtask.getPhone()); |
| | | redisCache.deleteObject(phoneCallReqYQVO.getTaskid().trim() + "&&" + "mate" + "&&" + phoneCallReqYQVO.getUuid()); |
| | | redisCache.deleteObject(phoneCallReqYQVO.getUuid() + "SCORE"); |
| | |
| | | } |
| | | //齿²¡æå¹é
å° |
| | | if (StringUtils.isEmpty(phoneCallBackYQVO.getValue())) { |
| | | Integer count = redisCache.getCacheObject(phoneCallReqYQVO.getTaskid().trim() + "&&" + "mate" + "&&" + phoneCallReqYQVO.getUuid()); |
| | | Integer count = null; |
| | | Object countObj = redisCache.getCacheObject(phoneCallReqYQVO.getTaskid().trim() + "&&" + "mate" + "&&" + phoneCallReqYQVO.getUuid()); |
| | | if (ObjectUtils.isNotEmpty(countObj)) count = (Integer) countObj; |
| | | if (count != null && count >= ivrTaskTemplate.getMateNum()) { |
| | | //妿countå·²ç»å¤§äºæçäºæ²¡æå¹é
æ¬¡æ° |
| | | if (ivrTaskTemplateScriptVO.getBranchFlag().equals("0") && ivrTaskTemplateScriptVO.getNextScriptno() == null || ivrTaskTemplateScriptVO.getBranchFlag().equals("0") && ivrTaskTemplateScriptVO.getNextScriptno() == 0 || ivrTaskTemplateScriptVO.getBranchFlag().equals("1") && ivrTaskTemplateScriptVO.getNextScriptno() == null || ivrTaskTemplateScriptVO.getBranchFlag().equals("1") && ivrTaskTemplateScriptVO.getNextScriptno() == 0) { |
| | |
| | | else phoneCallBackYQVO.setValue(phoneCallBackYQVO.getCommonValue() + serviceTask1.getJsy()); |
| | | |
| | | //æ´æ°ä¸ä¸åæ° |
| | | double score = redisCache.getCacheObject(phoneCallReqYQVO.getUuid() + "SCORE"); |
| | | Double score = null; |
| | | Object scoreObj = redisCache.getCacheObject(phoneCallReqYQVO.getUuid() + "SCORE"); |
| | | if (ObjectUtils.isNotEmpty(scoreObj)) score = (Double) scoreObj; |
| | | serviceSubtask.setScore(BigDecimal.valueOf(score)); |
| | | serviceSubtask.setFinishtime(new Date()); |
| | | serviceSubtaskMapper.updateServiceSubtask(serviceSubtask); |
| | |
| | | redisCache.setCacheObject(phoneCallReqYQVO.getTaskid().trim() + "-" + phoneCallReqYQVO.getPhone().trim(), script.getId().toString(), 120, TimeUnit.MINUTES); |
| | | |
| | | //æ´æ°ä¸ä¸åæ° |
| | | double score = redisCache.getCacheObject(phoneCallReqYQVO.getUuid() + "SCORE"); |
| | | Double score = null; |
| | | Object scoreObj = redisCache.getCacheObject(phoneCallReqYQVO.getUuid() + "SCORE"); |
| | | if (ObjectUtils.isNotEmpty(scoreObj)) score = (Double) scoreObj; |
| | | score = BigDecimal.valueOf(score).add(script.getScore()).doubleValue(); |
| | | |
| | | redisCache.setCacheObject(phoneCallReqYQVO.getUuid() + "SCORE", score, 120, TimeUnit.MINUTES); |
| | |
| | | redisCache.setCacheObject(serviceSubtask.getId() + "-" + serviceSubtask.getPhone(), ivrTaskTemplateScript1.getId().toString()); |
| | | |
| | | //æ´æ°ä¸ä¸åæ° |
| | | double score = redisCache.getCacheObject(phoneCallReqYQVO.getUuid() + "SCORE"); |
| | | Double score = null; |
| | | Object scoreObj = redisCache.getCacheObject(phoneCallReqYQVO.getUuid() + "SCORE"); |
| | | if (ObjectUtils.isNotEmpty(scoreObj)) score = (Double) scoreObj; |
| | | score = BigDecimal.valueOf(score).add(ivrTaskTemplateScriptVO.getScore()).doubleValue(); |
| | | redisCache.setCacheObject(phoneCallReqYQVO.getUuid() + "SCORE", score, 120, TimeUnit.MINUTES); |
| | | |
| | |
| | | phoneCallBackYQVO.setValue(phoneCallBackYQVO.getCommonValue() + serviceTask1.getJsy()); |
| | | |
| | | //æ´æ°ä¸ä¸åæ° |
| | | double score = redisCache.getCacheObject(phoneCallReqYQVO.getUuid() + "SCORE"); |
| | | Double score = null; |
| | | Object scoreObj = redisCache.getCacheObject(phoneCallReqYQVO.getUuid() + "SCORE"); |
| | | if (ObjectUtils.isNotEmpty(scoreObj)) score = (Double) scoreObj; |
| | | serviceSubtask.setScore(BigDecimal.valueOf(score)); |
| | | serviceSubtask.setFinishtime(new Date()); |
| | | serviceSubtaskMapper.updateServiceSubtask(serviceSubtask); |
| | |
| | | scriptContent = scriptContent.replace(key, StringUtils.isNotEmpty(map.get(key)) ? map.get(key) : ""); |
| | | } |
| | | } |
| | | scriptContent.replace("${name}", StringUtils.isNotEmpty(serviceSubtask.getName()) ? serviceSubtask.getName() : ""); |
| | | scriptContent.replace("${dzz}", StringUtils.isNotEmpty(serviceSubtask.getPlaceOfResidence()) ? serviceSubtask.getPlaceOfResidence() : ""); |
| | | scriptContent.replace("${phone}", StringUtils.isNotEmpty(serviceSubtask.getTelcode()) ? serviceSubtask.getTelcode() : ""); |
| | | scriptContent = scriptContent.replace("${name}", StringUtils.isNotEmpty(serviceSubtask.getSendname()) ? serviceSubtask.getSendname() : ""); |
| | | scriptContent = scriptContent.replace("${dzz}", StringUtils.isNotEmpty(serviceSubtask.getAddr()) ? serviceSubtask.getAddr() : ""); |
| | | scriptContent = scriptContent.replace("${phone}", StringUtils.isNotEmpty(serviceSubtask.getTelcode()) ? serviceSubtask.getTelcode() : ""); |
| | | |
| | | return scriptContent; |
| | | } |
| | |
| | | // cache-0为ç«å³åèµ·ç,å
¶å®çå
æ¨è¿ |
| | | if (!StringUtils.isEmpty(value0)) { |
| | | pullTaskVOList = getPullTaskList(value0, "cache-0"); |
| | | //å°cache-0çæ°æ®ï¼è½¬ç§»ä¸å¯¹å²cache-00ä¸ |
| | | //å°cache-0çæ°æ®ï¼è½¬ç§»å°cache-00ä¸ |
| | | redisCache.deleteObject("cache-00"); |
| | | String cache00 = redisCache.getCacheObject("cache-00"); |
| | | if (!StringUtils.isEmpty(cache00)) |
| | |
| | | pullTaskVO.setSections(LocalTime.now().format(DateTimeFormatter.ofPattern("hh:mm")) + "-" + LocalTime.now().plusMinutes(1).format(DateTimeFormatter.ofPattern("hh:mm"))); |
| | | pullTaskVO.setPhones(serviceSubtask.getPhone()); |
| | | pullTaskVO.setPrologue(kcb); |
| | | pullTaskVO.setDisplayNo("85129866"); |
| | | if (cacheName.equals("cache-0")) pullTaskVO.setDisplayNo("2"); |
| | | else pullTaskVO.setDisplayNo("2"); |
| | | pullTaskVOList.add(pullTaskVO); |
| | | redisCache.setCacheObject(subId.trim() + "-" + serviceSubtask.getPhone().trim(), ivrTaskTemplateScript.getId().toString()); |
| | | // redisCache.setCacheObject(subId.trim() + "-" + serviceSubtask.getPhone().trim() + "-firstSort", 1, 120, TimeUnit.MINUTES); |
| | |
| | | return null; |
| | | } |
| | | |
| | | |
| | | private ServiceSubtaskDetail getServiceSubtaskDetail(PhoneCallReqYQVO phoneCallReqYQVO, IvrTaskTemplateScriptVO ivrTaskTemplateScriptVO, ServiceSubtask serviceSubtask, IvrTaskTemplate ivrTaskTemplate) { |
| | | ServiceSubtaskDetail serviceSubtaskDetail = new ServiceSubtaskDetail(); |
| | | serviceSubtaskDetail.setSubId(Long.valueOf(phoneCallReqYQVO.getTaskid())); |
| | |
| | | serviceSubtaskDetail.setTemplateid(ivrTaskTemplate.getId().toString()); |
| | | serviceSubtaskDetail.setTemplatequestionnum(ivrTaskTemplateScriptVO.getId()); |
| | | serviceSubtaskDetail.setQuestiontext(ivrTaskTemplateScriptVO.getScriptContent()); |
| | | serviceSubtaskDetail.setQuestionvoice(phoneCallReqYQVO.getRecordpath()); |
| | | serviceSubtaskDetail.setCategoryname(ivrTaskTemplateScriptVO.getScriptType()); |
| | | serviceSubtaskDetail.setTargetoptions(ivrTaskTemplateScriptVO.getTargetOptions()); |
| | | serviceSubtaskDetail.setExtemplateText(ivrTaskTemplateScriptVO.getExtemplateText()); |
| | | |
| | | int i = 1; |
| | | for (IvrTaskTemplateTargetoption ivrTaskTemplateTargetoption : ivrTaskTemplateScriptVO.getIvrTaskScriptTargetoptionList()) { |
| | |
| | | <result property="appendflag" column="appendflag"/> |
| | | <result property="appenddesc" column="appenddesc"/> |
| | | <result property="picturePath" column="picture_path"/> |
| | | <result property="isEnd" column="is_end"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectIvrLibaScriptTargetoptionVo"> |
| | | select id, |
| | | targetid, |
| | | is_end, |
| | | picture_path, |
| | | targetname, |
| | | appendflag, |
| | |
| | | <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 = #{version}</if> |
| | | <if test="isEnd != null ">and is_end = #{isEnd}</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="appendflag != null">appendflag,</if> |
| | | <if test="appenddesc != null">appenddesc,</if> |
| | | <if test="picturePath != null">picture_path,</if> |
| | | <if test="isEnd != null ">is_end,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id},</if> |
| | |
| | | <if test="appendflag != null">#{appendflag},</if> |
| | | <if test="appenddesc != null">#{appenddesc},</if> |
| | | <if test="picturePath != null">#{picturePath},</if> |
| | | <if test="isEnd != null ">#{isEnd},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="appendflag != null">appendflag = #{appendflag},</if> |
| | | <if test="appenddesc != null">appenddesc = #{appenddesc},</if> |
| | | <if test="picturePath != null">picture_path = #{picturePath},</if> |
| | | <if test="isEnd != null ">is_end = #{isEnd},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | |
| | | <result property="appenddesc" column="appenddesc"/> |
| | | <result property="picturePath" column="picture_path"/> |
| | | <result property="prompt" column="prompt"/> |
| | | <result property="isEnd" column="is_end"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectIvrLibaTargetoptionVo"> |
| | | select targetoptionid, |
| | | targetid, |
| | | is_end, |
| | | appendflag, |
| | | picture_path, |
| | | appenddesc, |
| | |
| | | <if test="appendflag != null">and appendflag = #{appendflag}</if> |
| | | <if test="appenddesc != null">and appenddesc = #{appenddesc}</if> |
| | | <if test="picturePath != null">and picture_path = #{picturePath}</if> |
| | | <if test="isEnd != null ">and is_end = #{isEnd}</if> |
| | | </where> |
| | | order by guid asc |
| | | </select> |
| | |
| | | <if test="appendflag != null">appendflag,</if> |
| | | <if test="appenddesc != null">appenddesc,</if> |
| | | <if test="picturePath != null">picture_path,</if> |
| | | <if test="isEnd != null ">is_end,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="targetid != null">#{targetid},</if> |
| | |
| | | <if test="appendflag != null">#{appendflag},</if> |
| | | <if test="appenddesc != null">#{appenddesc},</if> |
| | | <if test="picturePath != null">#{picturePath},</if> |
| | | <if test="isEnd != null ">#{isEnd},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="appendflag != null">appendflag = #{appendflag},</if> |
| | | <if test="appenddesc != null">appenddesc = #{appenddesc},</if> |
| | | <if test="picturePath != null">picture_path = #{picturePath},</if> |
| | | <if test="isEnd != null ">is_end = #{isEnd},</if> |
| | | </trim> |
| | | where targetoptionid = #{targetoptionid} |
| | | </update> |
| | |
| | | <result property="optionNo" column="option_no"/> |
| | | <result property="score" column="score"/> |
| | | <result property="prompt" column="prompt"/> |
| | | <result property="isEnd" column="is_end"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectIvrLibaTemplateTargetoptionVo"> |
| | | select id, |
| | | targetid, |
| | | is_end, |
| | | score, |
| | | appendflag, |
| | | appenddesc, |
| | |
| | | <where> |
| | | del_flag=0 |
| | | <if test="targetid != null ">and targetid = #{targetid}</if> |
| | | <if test="isEnd != null ">and is_end = #{isEnd}</if> |
| | | <if test="score != null ">and score = #{score}</if> |
| | | <if test="targetname != null ">and targetname = #{targetname}</if> |
| | | <if test="templateID != null ">and templateID = #{templateID}</if> |
| | |
| | | <if test="appenddesc != null">appenddesc,</if> |
| | | <if test="optionNo != null">option_no,</if> |
| | | <if test="score != null">score,</if> |
| | | <if test="isEnd != null ">is_end,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="targetid != null">#{targetid},</if> |
| | |
| | | <if test="appenddesc != null">#{appenddesc},</if> |
| | | <if test="optionNo != null">#{optionNo},</if> |
| | | <if test="score != null">#{score},</if> |
| | | <if test="isEnd != null ">#{isEnd},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="appenddesc != null">appenddesc = #{appenddesc},</if> |
| | | <if test="optionNo != null">option_no = #{optionNo},</if> |
| | | <if test="score != null">score = #{score},</if> |
| | | <if test="isEnd != null ">is_end = #{isEnd},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | |
| | | <result property="isUserOperation" column="is_user_operation"/> |
| | | <result property="score" column="score"/> |
| | | <result property="prompt" column="prompt"/> |
| | | <result property="isEnd" column="is_end"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectIvrTaskTemplateTargetoptionVo"> |
| | | select id, |
| | | taskid, |
| | | is_end, |
| | | templateID, |
| | | score, |
| | | is_user_operation, |
| | |
| | | <include refid="selectIvrTaskTemplateTargetoptionVo"/> |
| | | <where> |
| | | <if test="taskid != null ">and taskid = #{taskid}</if> |
| | | <if test="isEnd != null ">and is_end = #{isEnd}</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="optionCode != null ">option_code,</if> |
| | | <if test="isUserOperation != null ">is_user_operation,</if> |
| | | <if test="score != null ">score,</if> |
| | | <if test="isEnd != null ">is_end,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="taskid != null">#{taskid},</if> |
| | |
| | | <if test="optionCode != null ">#{optionCode},</if> |
| | | <if test="isUserOperation != null ">#{isUserOperation},</if> |
| | | <if test="score != null ">#{score},</if> |
| | | <if test="isEnd != null ">#{isEnd},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="optionCode != null ">option_code = #{optionCode},</if> |
| | | <if test="isUserOperation != null ">is_user_operation = #{isUserOperation},</if> |
| | | <if test="score != null ">score = #{score},</if> |
| | | |
| | | <if test="isEnd != null ">is_end = #{isEnd},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | |
| | | <result property="answerps" column="answerps"/> |
| | | <result property="comment" column="comment"/> |
| | | <result property="patid" column="patid"/> |
| | | <result property="extemplateText" column="extemplate_text"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectServiceSubtaskDetailVo"> |
| | |
| | | sub_id, |
| | | answerps, |
| | | scriptid, |
| | | extemplate_text, |
| | | comment, |
| | | patid, |
| | | taskid, |
| | |
| | | <include refid="selectServiceSubtaskDetailVo"/> |
| | | <where> |
| | | <if test="subId != null">and sub_id = #{subId}</if> |
| | | <if test="extemplateText != null">and extemplate_text = #{extemplateText}</if> |
| | | <if test="taskid != null">and taskid = #{taskid}</if> |
| | | <if test="uuid != null and uuid != ''">and uuid = #{uuid}</if> |
| | | <if test="phone != null and phone != ''">and phone = #{phone}</if> |
| | |
| | | <if test="comment != null and comment != ''">comment,</if> |
| | | <if test="scriptid != null ">scriptid,</if> |
| | | <if test=" patid != null">patid,</if> |
| | | <if test=" extemplateText != null">extemplate_text,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id},</if> |
| | |
| | | <if test="comment != null and comment != ''">#{comment},</if> |
| | | <if test="scriptid != null ">#{scriptid},</if> |
| | | <if test=" patid != null">#{patid},</if> |
| | | <if test=" extemplateText != null">#{extemplateText},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="comment != null and comment != ''">comment = #{comment},</if> |
| | | <if test="scriptid != null ">scriptid = #{scriptid},</if> |
| | | <if test=" patid != null">patid = #{patid},</if> |
| | | <if test=" extemplateText != null">extemplate_text = #{extemplateText},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | |
| | | <if test="comment != null and comment != ''">comment = #{comment},</if> |
| | | <if test="scriptid != null ">scriptid = #{scriptid},</if> |
| | | <if test=" patid != null">patid = #{patid},</if> |
| | | <if test=" extemplateText != null">extemplate_text = #{extemplateText},</if> |
| | | </trim> |
| | | where patid = #{patid} and scriptid = #{scriptid} and sub_id = #{subId} |
| | | </update> |