| .idea/encodings.xml | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| ruoyi-admin/pom.xml | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/ServiceTaskController.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| ruoyi-admin/src/main/resources/application-huizhou.yml | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| smartor/pom.xml | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| smartor/src/main/java/com/smartor/domain/ServiceTaskScriptQues.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| smartor/src/main/java/com/smartor/domain/SvyTaskTemplate.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| smartor/src/main/java/com/smartor/service/impl/ServiceSubtaskServiceImpl.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| smartor/src/main/resources/mapper/smartor/SvyTaskTemplateMapper.xml | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
.idea/encodings.xml
@@ -40,7 +40,6 @@ <file url="file://$PROJECT_DIR$/ruoyi-system/src/main/resources" charset="UTF-8" /> <file url="file://$PROJECT_DIR$/smartor/src/main/java" charset="UTF-8" /> <file url="file://$PROJECT_DIR$/smartor/src/main/java/com/smartor/common/DeepSeekApi.java" charset="UTF-8" /> <file url="file://$PROJECT_DIR$/smartor/src/main/java/com/smartor/common/DeepSeekApi.java" charset="GBK" /> <file url="file://$PROJECT_DIR$/smartor/src/main/java/com/smartor/domain/PatMedOuthospProvisional.java" charset="UTF-8" /> <file url="file://$PROJECT_DIR$/smartor/src/main/java/com/smartor/domain/ServiceSubtaskPreachform.java" charset="UTF-8" /> <file url="file://$PROJECT_DIR$/smartor/src/main/java/com/smartor/mapper/PatMedOuthospProvisionalMapper.java" charset="UTF-8" /> ruoyi-admin/pom.xml
@@ -55,6 +55,13 @@ <version>9.2.1.jre8</version> </dependency> <!-- Kingbase8 JDBCé©±å¨ --> <dependency> <groupId>cn.com.kingbase</groupId> <artifactId>kingbase8</artifactId> <version>8.6.0</version> </dependency> <!-- æ ¸å¿æ¨¡å--> <dependency> <groupId>com.ruoyi</groupId> ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/ServiceTaskController.java
@@ -219,18 +219,21 @@ public AjaxResult getScriptInfoByCondition(@RequestBody ServiceTaskScriptQues serviceTaskScriptQues) { Long tid = null; Long pid = null; Long sid = null; log.info("getScriptInfoByConditionå ¥å为ï¼{}", serviceTaskScriptQues); try { tid = Long.valueOf(rsaPublicKeyExample.decryptedData(serviceTaskScriptQues.getParam1(), pri_key)); if (StringUtils.isNotEmpty(serviceTaskScriptQues.getParam2())) pid = Long.valueOf(rsaPublicKeyExample.decryptedData(serviceTaskScriptQues.getParam2(), pri_key)); if (StringUtils.isNotEmpty(serviceTaskScriptQues.getParam6())) sid = Long.valueOf(rsaPublicKeyExample.decryptedData(serviceTaskScriptQues.getParam6(), pri_key)); } catch (Exception e) { log.error("getScriptInfoByConditionæ¥éäºï¼{}", e.getMessage()); } log.info("tidåpidçå¼ä¸ºï¼{},{}", tid, pid); if (StringUtils.isEmpty(serviceTaskScriptQues.getPatfrom())) serviceTaskScriptQues.setPatfrom("0"); return success(serviceTaskService.getScriptInfoByCondition(tid, pid, true, serviceTaskScriptQues.getPatfrom(), null)); return success(serviceTaskService.getScriptInfoByCondition(tid, pid, true, serviceTaskScriptQues.getPatfrom(), sid)); } ruoyi-admin/src/main/resources/application-huizhou.yml
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,249 @@ # æ°æ®æºé ç½® spring: datasource: type: com.alibaba.druid.pool.DruidDataSource # driverClassName: com.mysql.cj.jdbc.Driver druid: # ä¸»åºæ°æ®æº master: url: jdbc:kingbase8://10.100.1.23:54321/smartor-huizhou?currentSchema=smartor,sys_catalog&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&connectTimeout=60000&socketTimeout=120000 username: smartor password: smartor.2025 driverClassName: com.kingbase8.Driver # ä»åºæ°æ®æº slave: # 仿°æ®æºå¼å ³/é»è®¤å ³é(å ¬å¸) # enabled: true # url: jdbc:sqlserver://116.62.18.175:6001;DatabaseName=iv-ywey;encrypt=false;SelectMethod=cursor # username: sa # password: Hxerp2000 # driverClassName: com.microsoft.sqlserver.jdbc.SQLServerDriver # 仿°æ®æºå¼å ³/é»è®¤å ³é(ä¹ä¹äºé¢) # enabled: true # url: jdbc:sqlserver://127.0.0.1:1433;DatabaseName=IntelligentVoice;encrypt=false;SelectMethod=cursor # username: sa # password: sfxt#2023 # driverClassName: com.microsoft.sqlserver.jdbc.SQLServerDriver # åå§è¿æ¥æ° initialSize: 5 # æå°è¿æ¥æ± æ°é minIdle: 10 # æå¤§è¿æ¥æ± æ°é maxActive: 20 # é ç½®è·åè¿æ¥çå¾ è¶ æ¶çæ¶é´ maxWait: 60000 # é ç½®é´éå¤ä¹ æè¿è¡ä¸æ¬¡æ£æµï¼æ£æµéè¦å ³éç空é²è¿æ¥ï¼å使¯æ¯«ç§ timeBetweenEvictionRunsMillis: 60000 # é ç½®ä¸ä¸ªè¿æ¥å¨æ± 䏿å°çåçæ¶é´ï¼å使¯æ¯«ç§ minEvictableIdleTimeMillis: 300000 # é ç½®ä¸ä¸ªè¿æ¥å¨æ± 䏿大çåçæ¶é´ï¼å使¯æ¯«ç§ maxEvictableIdleTimeMillis: 900000 # é ç½®æ£æµè¿æ¥æ¯å¦ææ # validationQuery: SELECT 1 FROM DUAL validationQuery: SELECT 1 testWhileIdle: true testOnBorrow: false testOnReturn: false webStatFilter: enabled: true statViewServlet: enabled: false # 设置ç½ååï¼ä¸å¡«åå 许ææè®¿é® allow: url-pattern: /druid/* # æ§å¶å°ç®¡çç¨æ·ååå¯ç login-username: lihu login-password: Lihu@1363419#$ filter: stat: enabled: false # æ ¢SQLè®°å½ log-slow-sql: false slow-sql-millis: 1000 merge-sql: true wall: config: multi-statement-allow: true # redis é ç½® redis: host: 127.0.0.1 port: 6379 # æ°æ®åºç´¢å¼ database: 0 # å¯ç password: Smartor # è¿æ¥è¶ æ¶æ¶é´ timeout: 30s lettuce: pool: # è¿æ¥æ± ä¸çæå°ç©ºé²è¿æ¥ min-idle: 0 # è¿æ¥æ± ä¸çæå¤§ç©ºé²è¿æ¥ max-idle: 8 # è¿æ¥æ± çæå¤§æ°æ®åºè¿æ¥æ° max-active: 8 # #è¿æ¥æ± æå¤§é»å¡çå¾ æ¶é´ï¼ä½¿ç¨è´å¼è¡¨ç¤ºæ²¡æéå¶ï¼ max-wait: -1ms # Swaggeré ç½® swagger: # æ¯å¦å¼å¯swagger enabled: false # 请æ±åç¼ pathMapping: /dev-api # PageHelperå页æä»¶ #pagehelper: # helperDialect: mysql # supportMethodsArguments: true ## params: countSql;pageSizeZero=true magic-api: web: /magic/web resource: type: database # é ç½®åå¨å¨æ°æ®åºä¸ tableName: magic_config # æ°æ®åºä¸ç表å prefix: /api readonly: false sql-column-case: camel show-sql: true #é ç½®æå°SQL page-config: size: size page: page default-page: 1 default-size: 10 #ééçå¯é¥ dingAppid: dingn8iip5ubj7clrrsv dingAppSecret: qlEK8D3oOVwGPOTiBQIBYTqQVlAfy9S_qQizEQFjJdSScwemWFryg4gbneu-NqWD # websocketè¶ æ¶æ¶é´ server: websocket: timeout=60000: accessKeyId: LTAI5tPfc1VJzz7VuhzcBwug accessKeySecret: gG1srKxPFDBNWe2oHfqmK1qsSQkf1e 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 pub_key: MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBALQzqW1EIXBKGMu+2oEYSB5gM7Ox/ihyYTeeoE0yPX1qtt4++5yNOeTBVd6EEM4iKzVEzWj6REIWVwaSNPn/SvUCAwEAAQ== #è¿ä¸ªæ¯å端çç§é¥ï¼ç¨ä¸å° pri_key: MIIBUwIBADANBgkqhkiG9w0BAQEFAASCAT0wggE5AgEAAkEAtDOpbUQhcEoYy77agRhIHmAzs7H+KHJhN56gTTI9fWq23j77nI055MFV3oQQziIrNUTNaPpEQhZXBpI0+f9K9QIDAQABAkB3n0fcWfrcoMN/FU3VnrnZOEF6CzFNxkgU9P8y36QECWKZ9JhYQkNpKrMC9oXlN3VSaRigV7B+L/I/a0Rs1W+tAiEA4jx7xcXJ4y4BNwAmVHt6NNiEkzIwWnwC/0qsEu8NsOsCIQDL6MMn1D2uznC6OuOWpxDCkBh1JL1NzZTZeH2G+hj7nwIgKGAC9tjFnvWm4dn0/T7MIIJDpsFeP8fCAS2iZ/6hwuECIAS/eLvWr1EAsZNEh8QcQ8GkBU3E+ztyjAK8UX/xFt/VAiBf79/1tDErX4/DChecM8w3c3DhbBcjuE3fHZn7p6/UKg== #å端ç§é¥ï¼ç¨ä¸å°äºï¼ #pri_key: MIIBVQIBADANBgkqhkiG9w0BAQEFAASCAT8wggE7AgEAAkEApHTIe/StslZAT5Jzv8XClbrqox32pfaTrP5IOCRJ3FaH/UZsGgA/tsNBBEXq9eagqwPbJrjYfpdEtINcChrK4wIDAQABAkEAilDujdKshGGmlUZHs/NQRT6AOdDpsYxBiC4V76IVvQpw0IW6c4HGEvH4T+xRufika7/48L0eu0f06H+YtL5lgQIhANUd0a6oSsVxWifAjtKwMZcXD3OaIxQIQSCN4NT4VFY3AiEAxYxYrIhkIyg+UVw3WOSvBpXKxM4/WL9HRzkxDLvp2rUCIQCK23P8tgCJ5xJT5l3onw6goFDcBKkoazxsBqVgfjENPwIgWbuTd+OIYPPhwsE5ntZZrosSDO2GlsBkFzUiU59z7VUCIA0LL+9IFb+FWCl3DGTwIQ9SZYbv61T83LKjebUcSOfe #äºç»´ç è·¯å¾ qrpath: D:\qrcode #å ¬å¸å å¤é¾è¯·æ±IPå端å£å· #req_path: 8095 #localIP: 192.168.2.13 #æ°åå»é¢å¤é¾è¯·æ±IPå端å£å· req_path: 8093 #localIP: https://wx.lihusmart.com #丽水å¤é¾è¯·æ±IPå端å£å· localIP: https://lishuisf.health-y.cn #è·åæ£è ä¿¡æ¯URL(ååæä¾) hosp_info_url: http://esb-core-rest.wowjoy.cn/esb/exchange # 0代表走é»è®¤çä¸ä¼ 1 代ç èµ°æ°åå»é¢çä¸ä¼ uploadSwitch: 1 ## æå®asråè°çurlè·¯å¾(æ¬å°) #ASRCallBackPath: http://192.168.2.13:8095/smartor/serviceSubtask/phoneCallBackYQ ##ææIP(æ¬å°) #hangup: http://192.168.2.13:8091/hangup ##fsæä½¿ç¨çé¿éçapp_key(æ¬å°) #app_key_yq: ZurNHpaQLq6P55YS # æå®asråè°çurlè·¯å¾(æ°å) ASRCallBackPath: http://192.168.101.135:8095/smartor/serviceSubtask/phoneCallBackYQ #ææIP(æ°å) hangup: http://192.16.4.220:8091/hangup #fsæä½¿ç¨çé¿éçapp_key(æ°å) app_key_yq: ZurNHpaQLq6P55YS #æ¬ å° ç信请æ±å°å(è¿ä¸ªæå¡æ¯æä»¬èªå·±åç) #xhsmsPath: http://192.168.2.13:8092/sendSms #æ°åç信请æ±å°å(è¿ä¸ªæå¡æ¯æä»¬èªå·±åç) xhsmsPath: http://192.16.4.220:8092/sendSms #å¸å· xhsmsAccount: 911124 #æ¥å£å¯ç xhsmsPwd: zW5eXe #èææ¥å ¥ç xhsmsjrm: 1069055 ##æ¬å°FTPè¿æ¥ #FTP_SERVER: "192.168.2.13" #FTP_USERNAME: voice #FTP_PASSWORD: xh@2023 #æ°åFTPè¿æ¥ FTP_SERVER: "192.16.4.220" FTP_USERNAME: voice FTP_PASSWORD: xh@2023 #è¯é³å°å访é®åç¼(æ°å) voicePathPrefix: http://192.168.191.181:8095/profile/upload/vadio/ #è¯é³å°å访é®åç¼(å ¬å¸) #voicePathPrefix: http://192.168.2.13:8095/profile/upload/vadio/ #ç¬¬ä¸ªå°æ¶çµè¯æ¨æçä¸é phoneUpEveryHour: 12 #çµè¯æ¯å¤©ç»ææ¶é´ phoneEndHour: 20 #æ°åå·¥é»è®¤å¯ç defaultPwd: 123456 #æ¯å¦éè¦æ ¹æ®ç¾ç 建ç«åºé¢æ£è é访 createIcd10Visit: false #admin管çåuserId isAdmin: 1,2,3,4,5,6,7,8,9,10,11,12,13 #å¤çæè¯å»ºè®®çé¨é¨ç¼ç dealDeptCode: #æ¯å¦å å¯ 0ä¸å 1å å¯ isEncryp: 0 #æä»¶ä¸ä¼ å°å fileUpload: profile: # PageHelperå页æä»¶ pagehelper: helperDialect: mysql supportMethodsArguments: true params: count=countSql smartor/pom.xml
@@ -145,6 +145,12 @@ <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> </dependency> <!-- Kingbase8 JDBCé©±å¨ --> <dependency> <groupId>cn.com.kingbase</groupId> <artifactId>kingbase8</artifactId> <version>8.6.0</version> </dependency> <dependency> <groupId>com.ruoyi</groupId> <artifactId>ruoyi-system</artifactId> smartor/src/main/java/com/smartor/domain/ServiceTaskScriptQues.java
@@ -46,6 +46,13 @@ private String param4; /** * åä»»å¡ID subId */ @Excel(name = "åä»»å¡ID subId ") @ApiModelProperty(value = "åä»»å¡ID subId") private String param6; /** * æ£è æ¥æº */ @Excel(name = "patfrom ") smartor/src/main/java/com/smartor/domain/SvyTaskTemplate.java
@@ -63,10 +63,10 @@ private String description; /** * é®å·ä»ç» * é®å·ä»ç»ï¼å½å¤æ³¨ç¨ï¼ */ @Excel(name = " é®å·ä»ç» ") @ApiModelProperty(value = "é®å·ä»ç»") @Excel(name = " é®å·ä»ç»ï¼å½å¤æ³¨ç¨ï¼ ") @ApiModelProperty(value = "é®å·ä»ç»ï¼å½å¤æ³¨ç¨ï¼") private String introduce; /** smartor/src/main/java/com/smartor/service/impl/ServiceSubtaskServiceImpl.java
@@ -655,9 +655,16 @@ ServiceSubtask serviceSubtask = serviceSubtaskMapper.selectServiceSubtaskById(serviceSubtaskTemplateVO.getSubId()); if (serviceSubtask == null || serviceSubtask.getSendstate() != 2L) throw new BaseException("该任å¡å·²åéç»æ£è ï¼ä¸è½åè¿è¡ä¿®æ¹æ¨¡æ¿"); serviceSubtaskTemplateVO.getSvyTaskTemplateVO().setIntroduce("该é®å·æ¯æ¿æ¢åçé®é¢ï¼æ¿æ¢åçé®é¢æ¯ï¼" + serviceSubtask.getTemplateid()); Integer taskTempid = svyTaskTemplateService.saveOrUpdateTemplate(serviceSubtaskTemplateVO.getSvyTaskTemplateVO()); if (taskTempid == null) return false; //æ¯æ¬¡é½æ°å»ºä¸ä¸ªä¹å¯ä»¥ï¼ä½æ°å»ºä¹åè¦æä¹åçå é¤ if (serviceSubtask.getType().equals("2")) { svyTaskTemplateService.deleteSvyTaskTemplateBySvyid(serviceSubtask.getTemplateid()); } else if (serviceSubtask.getType().equals("1")) ivrTaskTemplateService.deleteIvrTaskTemplateByID(serviceSubtask.getTemplateid()); String tempName = svyTaskTemplateService.selectSvyTaskTemplateBySvyid(Long.valueOf(taskTempid)).getSvyname(); serviceSubtask.setTemplateid(taskTempid.longValue()); @@ -1731,19 +1738,19 @@ continue; } //2-AIè¯å« SysConfig configVoiceMatchType = new SysConfig(); configVoiceMatchType.setOrgid(phoneCallReqYQVO.getOrgid()); configVoiceMatchType.setConfigKey("sys.voice.match.type"); SysConfig matchType = sysConfigMapper.selectConfig(configVoiceMatchType); // SysConfig configVoiceMatchType = new SysConfig(); // configVoiceMatchType.setOrgid(phoneCallReqYQVO.getOrgid()); // configVoiceMatchType.setConfigKey("sys.voice.match.type"); // SysConfig matchType = sysConfigMapper.selectConfig(configVoiceMatchType); boolean matchedFlag = false; if(ObjectUtils.isNotEmpty(matchType) && StringUtils.isNotEmpty(matchType.getConfigValue()) && matchType.getConfigValue().equals("2")){ int checkFlag = DeepSeekApi.matchQuestionAnswer(ivrTaskTemplateScriptVO.getScriptContent(), phoneCallReqYQVO.getAsrtext(), ivrTaskTemplateScriptVO.getIvrTaskScriptTargetoptionList().get(j).getTargetvalue()); if(checkFlag == 1){ matchedFlag = true; } }else { // if (ObjectUtils.isNotEmpty(matchType) && StringUtils.isNotEmpty(matchType.getConfigValue()) && matchType.getConfigValue().equals("2")) { // int checkFlag = DeepSeekApi.matchQuestionAnswer(ivrTaskTemplateScriptVO.getScriptContent(), // phoneCallReqYQVO.getAsrtext(), // ivrTaskTemplateScriptVO.getIvrTaskScriptTargetoptionList().get(j).getTargetvalue()); // if (checkFlag == 1) { // matchedFlag = true; // } // } else { //å å« Matcher matcher = null; if (StringUtils.isNotEmpty(ivrTaskTemplateScriptVO.getIvrTaskScriptTargetoptionList().get(j).getTargetregex())) { @@ -1760,7 +1767,7 @@ 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).getTargetregex()) && StringUtils.isNotEmpty(ivrTaskTemplateScriptVO.getIvrTaskScriptTargetoptionList().get(j).getTargetregex2()) && matcher2.matches() || StringUtils.isEmpty(ivrTaskTemplateScriptVO.getIvrTaskScriptTargetoptionList().get(j).getTargetregex2()) && StringUtils.isNotEmpty(ivrTaskTemplateScriptVO.getIvrTaskScriptTargetoptionList().get(j).getTargetregex()) && matcher.matches()) { matchedFlag = true; } } // } //说æå¹é æ£ç¡®äº if(matchedFlag){ //è¿éåºè¯¥å å¤æç±»åï¼å»åä¿®æ¹ï¼è®¾ç½®IsUserOperationæ¯åéé¢çæ¹æ³ @@ -4862,7 +4869,7 @@ ServiceTaskdept serviceTaskdept = new ServiceTaskdept(); if (ObjectUtils.isNotEmpty(serviceTaskVo.getDeptcode())) { serviceTaskdept.setDeptType("1"); serviceTaskdept.setDeptCode(serviceTask.getDeptcode()); serviceTaskdept.setDeptCode(serviceTaskVo.getDeptcode()); } if (ObjectUtils.isNotEmpty(serviceTaskVo.getLeavehospitaldistrictcode())) { serviceTaskdept.setDeptType("2"); @@ -4875,10 +4882,10 @@ if (!CollectionUtils.isEmpty(serviceTaskdepts)) { PatArchive patArchive = new PatArchive(); patArchive.setId(-1L); patArchive.setId(999999999L); patArchive.setName("èææ£è "); //å°è£ serviceSubtask ServiceSubtask serviceSubtask = boxedServiceSubtask(serviceTask, patArchive); ServiceSubtask serviceSubtask = boxedServiceSubtask(serviceTask, serviceTaskdepts.get(0), patArchive); int i = serviceSubtaskMapper.insertServiceSubtask(serviceSubtask); //æ ¹æ®çæå¤é¾ if (ObjectUtils.isNotEmpty(serviceSubtask.getTaskid()) && ObjectUtils.isNotEmpty(serviceSubtask.getPatid()) && ObjectUtils.isNotEmpty(serviceSubtask.getId())) { @@ -4912,7 +4919,7 @@ return content; } public ServiceSubtask boxedServiceSubtask(ServiceTask serviceTask, PatArchive patArchive) { public ServiceSubtask boxedServiceSubtask(ServiceTask serviceTask, ServiceTaskdept serviceTaskdept, PatArchive patArchive) { ServiceSubtask serviceSubtask = DtoConversionUtils.sourceToTarget(serviceTask, ServiceSubtask.class); serviceSubtask.setTaskid(serviceTask.getTaskid()); if (StringUtils.isNotEmpty(serviceTask.getLibtemplateid())) @@ -4921,10 +4928,13 @@ // serviceSubtask.setNurseName(patMedInhosp1.getNurseName()); // serviceSubtask.setDrcode(patMedInhosp1.getDrcode()); // serviceSubtask.setDrname(patMedInhosp1.getDrname()); serviceSubtask.setDeptcode(serviceTask.getDeptcode()); serviceSubtask.setDeptname(serviceTask.getDeptname()); serviceSubtask.setLeavehospitaldistrictcode(serviceTask.getLeavehospitaldistrictcode()); serviceSubtask.setLeavehospitaldistrictname(serviceTask.getLeavehospitaldistrictname()); if(StringUtils.isNotEmpty(serviceTaskdept.getDeptType()) && serviceTaskdept.getDeptType().equals("1")){ serviceSubtask.setDeptcode(serviceTaskdept.getDeptCode()); serviceSubtask.setDeptname(serviceTaskdept.getDeptName()); }else { serviceSubtask.setLeavehospitaldistrictcode(serviceTaskdept.getDeptCode()); serviceSubtask.setLeavehospitaldistrictname(serviceTaskdept.getDeptName()); } serviceSubtask.setTemplateid(serviceTask.getTemplateid()); serviceSubtask.setTemplatename(serviceTask.getTemplatename()); serviceSubtask.setPatid(patArchive.getId()); smartor/src/main/resources/mapper/smartor/SvyTaskTemplateMapper.xml
@@ -93,45 +93,45 @@ resultMap="SvyTaskTemplateResult"> <include refid="selectSvyTaskTemplateVo"/> where 1=1 and del_flag = 0 <if test="templateid != null ">and templateid = #{templateid}</if> <if test="id != null ">and id = #{id}</if> <if test="categoryid != null ">and categoryid = #{categoryid}</if> <if test="svycode != null and svycode != ''">and svycode = #{svycode}</if> <if test="svyname != null and svyname != ''">and svyname like concat('%', #{svyname}, '%')</if> <if test="description != null and description != ''">and description = #{description}</if> <if test="introduce != null and introduce != ''">and introduce = #{introduce}</if> <if test="submitprompt != null and submitprompt != ''">and submitprompt = #{submitprompt}</if> <if test="tag != null and tag != ''">and tag = #{tag}</if> <if test="version != null ">and version = #{version}</if> <if test="centerlibrarycode != null and centerlibrarycode != ''">and centerlibrarycode = #{centerlibrarycode} </if> <if test="centerlibraryid != null ">and centerlibraryid = #{centerlibraryid}</if> <if test="islocal != null ">and islocal = #{islocal}</if> <if test="isenable != null and isenable != ''">and isenable = #{isenable}</if> <if test="orgid != null and orgid != ''">and orgid = #{orgid}</if> <if test="isupload != null ">and isupload = #{isupload}</if> <if test="uploadTime != null ">and upload_time = #{uploadTime}</if> <if test="taskScriptId != null and taskScriptId != ''">and task_script_id = #{taskScriptId}</if> <if test="pid != null ">and pid = #{pid}</if> <if test="guid != null and guid != ''">and guid = #{guid}</if> <if test="deptNames != null and deptNames != ''">and dept_names = #{deptNames}</if> <if test="labelInfo != null and labelInfo != ''">and label_info = #{labelInfo}</if> <if test="campus != null and campus != ''">and campus = #{campus}</if> <if test="suitway != null and suitway != ''">and suitway = #{suitway}</if> <if test="otherdata != null and otherdata != ''">and otherdata = #{otherdata}</if> <if test="valueType != null and valueType != ''">and value_type = #{valueType}</if> <if test="reply != null and reply != ''">and reply = #{reply}</if> <if test="taskid != null ">and taskid = #{taskid}</if> <if test="deptCode != null ">and dept_code = #{deptCode}</if> <if test="longTemp != null ">and long_temp = #{longTemp}</if> <if test="sendDay != null ">and send_day = #{sendDay}</if> and del_flag = 0 <if test="templateid != null ">and templateid = #{templateid}</if> <if test="id != null ">and id = #{id}</if> <if test="categoryid != null ">and categoryid = #{categoryid}</if> <if test="svycode != null and svycode != ''">and svycode = #{svycode}</if> <if test="svyname != null and svyname != ''">and svyname like concat('%', #{svyname}, '%')</if> <if test="description != null and description != ''">and description = #{description}</if> <if test="introduce != null and introduce != ''">and introduce = #{introduce}</if> <if test="submitprompt != null and submitprompt != ''">and submitprompt = #{submitprompt}</if> <if test="tag != null and tag != ''">and tag = #{tag}</if> <if test="version != null ">and version = #{version}</if> <if test="centerlibrarycode != null and centerlibrarycode != ''">and centerlibrarycode = #{centerlibrarycode} </if> <if test="centerlibraryid != null ">and centerlibraryid = #{centerlibraryid}</if> <if test="islocal != null ">and islocal = #{islocal}</if> <if test="isenable != null and isenable != ''">and isenable = #{isenable}</if> <if test="orgid != null and orgid != ''">and orgid = #{orgid}</if> <if test="isupload != null ">and isupload = #{isupload}</if> <if test="uploadTime != null ">and upload_time = #{uploadTime}</if> <if test="taskScriptId != null and taskScriptId != ''">and task_script_id = #{taskScriptId}</if> <if test="pid != null ">and pid = #{pid}</if> <if test="guid != null and guid != ''">and guid = #{guid}</if> <if test="deptNames != null and deptNames != ''">and dept_names = #{deptNames}</if> <if test="labelInfo != null and labelInfo != ''">and label_info = #{labelInfo}</if> <if test="campus != null and campus != ''">and campus = #{campus}</if> <if test="suitway != null and suitway != ''">and suitway = #{suitway}</if> <if test="otherdata != null and otherdata != ''">and otherdata = #{otherdata}</if> <if test="valueType != null and valueType != ''">and value_type = #{valueType}</if> <if test="reply != null and reply != ''">and reply = #{reply}</if> <if test="taskid != null ">and taskid = #{taskid}</if> <if test="deptCode != null ">and dept_code = #{deptCode}</if> <if test="longTemp != null ">and long_temp = #{longTemp}</if> <if test="sendDay != null ">and send_day = #{sendDay}</if> </select> <select id="selectSvyTaskTemplateBySvyid" parameterType="Long" resultMap="SvyTaskTemplateResult"> <include refid="selectSvyTaskTemplateVo"/> where del_flag=0 and id = #{id} where del_flag=0 and id = #{id} </select> <insert id="insertSvyTaskTemplate" parameterType="com.smartor.domain.SvyTaskTemplate" useGeneratedKeys="true" @@ -265,8 +265,8 @@ </update> <delete id="deleteSvyTaskTemplateBySvyid" parameterType="Long"> delete from svy_task_template update svy_task_template set del_flag=1 where id = #{id} </delete>