ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/PatArchiveController.java
@@ -174,6 +174,9 @@ @PostMapping("/patInfoByContion") public TableDataInfo patInfoByCondition(@RequestBody PatArchiveReq patArchive) { // PageUtils.startPageByPost(patArchive.getPageNum(), patArchive.getPageSize()); LoginUser loginUser = getLoginUser(); SysUser user = loginUser.getUser(); patArchive.setOrgid(user.getOrgid()); if (CollectionUtils.isEmpty(patArchive.getLeavehospitaldistrictcodes()) || patArchive.getLeavehospitaldistrictcodes().size() == 0) { patArchive.setLeavehospitaldistrictcodes(null); } @@ -198,6 +201,9 @@ @PostMapping("/exportPatInfo") public void exportPpatInfo(HttpServletResponse response, @RequestBody PatArchiveReq patArchive) { startPage(); LoginUser loginUser = getLoginUser(); SysUser user = loginUser.getUser(); patArchive.setOrgid(user.getOrgid()); List<PatArchive> patArchives = patArchiveService.patInfoByContion(patArchive); if (!CollectionUtils.isEmpty(patArchives)) { for (int i = 0; i < patArchives.size(); i++) { @@ -215,6 +221,9 @@ @PostMapping("/getPatientInfo") public TableDataInfo getPatientInfo(@RequestBody PatArchiveReq patArchiveReq) { PageUtils.startPageByPost(patArchiveReq.getPageNum(), patArchiveReq.getPageSize()); LoginUser loginUser = getLoginUser(); SysUser user = loginUser.getUser(); patArchiveReq.setOrgid(user.getOrgid()); if (CollectionUtils.isEmpty(patArchiveReq.getLeavehospitaldistrictcodes()) || patArchiveReq.getLeavehospitaldistrictcodes().size() == 0) { patArchiveReq.setLeavehospitaldistrictcodes(null); } @@ -238,6 +247,9 @@ @PostMapping("/getPatientInfoQC") public TableDataInfo getPatientInfoQC(@RequestBody PatArchiveReq patArchiveReq) { PageUtils.startPageByPost(patArchiveReq.getPageNum(), patArchiveReq.getPageSize()); LoginUser loginUser = getLoginUser(); SysUser user = loginUser.getUser(); patArchiveReq.setOrgid(user.getOrgid()); if (CollectionUtils.isEmpty(patArchiveReq.getLeavehospitaldistrictcodes()) || patArchiveReq.getLeavehospitaldistrictcodes().size() == 0) { patArchiveReq.setLeavehospitaldistrictcodes(null); } ruoyi-admin/src/main/java/com/ruoyi/web/controller/smartor/SvyTaskSingleController.java
@@ -28,7 +28,7 @@ */ @Api(description = "åä¸ä»»å¡ï¼é®å·ï¼(å·²ç»æ¢æservice_subtask)") @RestController @RequestMapping("/smartor/svysingle") //@RequestMapping("/smartor/svysingle") public class SvyTaskSingleController extends BaseController { @Autowired private ISvyTaskSingleService svyTaskSingleService; ruoyi-common/src/main/java/com/ruoyi/common/enums/ServiceTaskTypeEnum.java
@@ -4,7 +4,10 @@ * åéç±»åæä¸¾ */ public enum ServiceTaskTypeEnum { 使£é访("9", "使£é访"), 廿é访("10", "廿é访"); çæµè¯ä¼°("1", "çæµè¯ä¼°"), åºé¢é访("2", "åºé¢é访"), é¨è¯é访("3", "é¨è¯é访"), 宣æå ³æ("4", "宣æå ³æ"), å¤è¯ç®¡ç("5", "å¤è¯ç®¡ç"), 满æåº¦è°æ¥("6", "满æåº¦è°æ¥"), æ£è æ¥å("7", "æ£è æ¥å"), å ¶ä»éç¥("8", "å ¶ä»éç¥"), 使£é访("9", "使£é访"), 廿é访("10", "廿é访"), å½±åä¸ç§é访("11", "å½±åä¸ç§é访"), å¿çµä¸ç§é访("12", "å¿çµä¸ç§é访"), ä¸ç§é访("13", "ä¸ç§é访"); private String code; ruoyi-common/src/main/java/com/ruoyi/common/enums/TaskTypeEnum.java
ÎļþÒÑɾ³ý ruoyi-framework/src/main/java/com/ruoyi/framework/interceptor/HospitalFilterInterceptor.java
@@ -97,7 +97,9 @@ } // ä¿®æ¹ SQL if (originalSql.toUpperCase().contains("WHERE")) { if (originalSql.toUpperCase().contains("ORGID =")) { return originalSql; } else if (originalSql.toUpperCase().contains("WHERE")) { // å¨å·²æ WHERE åæ·»å orgid æ¡ä»¶ if (originalSql.toUpperCase().contains("(SELECT")) { int i = originalSql.toUpperCase().lastIndexOf("WHERE"); smartor/src/main/java/com/smartor/domain/PatArchiveReq.java
@@ -20,7 +20,7 @@ */ @ApiModel(value = "PatArchiveReq" , description = "æ£è æ¡£æ¡è¯·æ±å¯¹è±¡") @Data public class PatArchiveReq { public class PatArchiveReq extends BaseEntity { /** * å§å */ smartor/src/main/java/com/smartor/domain/ServiceSubtask.java
@@ -149,15 +149,15 @@ /** * ä»»å¡ç±»å(é¨è¯ï¼ä½é¢ï¼å¤è¯â¦) */ @Excel(name = "ä»»å¡ç±»å(0éç¥ã1宣æã2é¨è¯ã3åºé¢ã4å¤è¯ã5使£ã6é®å·ã7廿â¦â¦)") @ApiModelProperty(value = "ä»»å¡ç±»å(0éç¥ã1宣æã2é¨è¯ã3åºé¢ã4å¤è¯ã5使£ã6é®å·ã7廿ã8使£é访ã9å½±åä¸ç§é访ã10å¿çµä¸ç§é访â¦â¦)") @Excel(name = "ä»»å¡ç±»åï¼1ï¼æºå¨äººè¯é³ï¼éè®¿ï¼ 2ï¼é®å·ï¼3ï¼éç¥ï¼å®£æï¼") @ApiModelProperty(value = "ä»»å¡ç±»åï¼1ï¼æºå¨äººè¯é³ï¼éè®¿ï¼ 2ï¼é®å·ï¼3ï¼éç¥ï¼å®£æï¼ï¼)") private String type; /** * æå¡ç±»å(1ãçæµè¯ä¼°ï¼2ãåºé¢é访ï¼3ãé¨è¯é访ï¼4ã宣æå ³æï¼5ãå¤è¯éç¥ï¼6ãæ»¡æåº¦è°æ¥ï¼7ãæ£è æ¥åï¼ 8ãå ¶ä»éç¥) * æå¡ç±»å(1ãçæµè¯ä¼°ï¼2ãåºé¢é访ï¼3ãé¨è¯é访ï¼4ã宣æå ³æï¼5ãå¤è¯ç®¡çï¼6ãæ»¡æåº¦è°æ¥ï¼7ãæ£è æ¥åï¼ 8ãå ¶ä»éç¥ 9使£é访 10.廿é访 11ï¼å½±åä¸ç§é访 12ãå¿çµä¸ç§éè®¿ï¼ 13ä¸ç§é访) */ @Excel(name = "æå¡ç±»å(1ãçæµè¯ä¼°ï¼2ãåºé¢é访ï¼3ãé¨è¯é访ï¼4ã宣æå ³æï¼5ãå¤è¯éç¥ï¼6ãæ»¡æåº¦è°æ¥ï¼7ãæ£è æ¥åï¼ 8ãå ¶ä»éç¥)") @ApiModelProperty(value = "æå¡ç±»å(1ãçæµè¯ä¼°ï¼2ãåºé¢é访ï¼3ãé¨è¯é访ï¼4ã宣æå ³æï¼5ãå¤è¯éç¥ï¼6ãæ»¡æåº¦è°æ¥ï¼7ãæ£è æ¥åï¼ 8ãå ¶ä»éç¥ 9使£é访 10廿é访") @Excel(name = "æå¡ç±»å(1ãçæµè¯ä¼°ï¼2ãåºé¢é访ï¼3ãé¨è¯é访ï¼4ã宣æå ³æï¼5ãå¤è¯ç®¡çï¼6ãæ»¡æåº¦è°æ¥ï¼7ãæ£è æ¥åï¼ 8ãå ¶ä»éç¥ 9使£é访 10.廿é访 11ï¼å½±åä¸ç§é访 12ãå¿çµä¸ç§éè®¿ï¼ 13ä¸ç§é访)") @ApiModelProperty(value = "æå¡ç±»å(1ãçæµè¯ä¼°ï¼2ãåºé¢é访ï¼3ãé¨è¯é访ï¼4ã宣æå ³æï¼5ãå¤è¯ç®¡çï¼6ãæ»¡æåº¦è°æ¥ï¼7ãæ£è æ¥åï¼ 8ãå ¶ä»éç¥ 9使£é访 10.廿é访 11ï¼å½±åä¸ç§é访 12ãå¿çµä¸ç§éè®¿ï¼ 13ä¸ç§é访") private String serviceType; /** smartor/src/main/java/com/smartor/domain/ServiceTask.java
@@ -165,17 +165,17 @@ private Date checktime; /** * ä»»å¡ç±»å:1ãçæµè¯ä¼°;2ãåºé¢é访;3ãé¨è¯é访 * ä»»å¡ç±»åï¼1ï¼æºå¨äººè¯é³ 2ï¼é®å·ï¼3ï¼éç¥ï¼ */ @Excel(name = "ä»»å¡ç±»å(éç¥ãé®å·ãæºå¨äººè¯é³)") @ApiModelProperty(value = "ä»»å¡ç±»å(éç¥ãé®å·ãæºå¨äººè¯é³)") @Excel(name = "ä»»å¡ç±»åï¼1ï¼æºå¨äººè¯é³ 2ï¼é®å·ï¼3ï¼éç¥ï¼") @ApiModelProperty(value = "ä»»å¡ç±»åï¼1ï¼æºå¨äººè¯é³ 2ï¼é®å·ï¼3ï¼éç¥ï¼") private String type; /** * æå¡ç±»å(1ãçæµè¯ä¼°ï¼2ãåºé¢é访ï¼3ãé¨è¯é访ï¼4ã宣æå ³æï¼5ãå¤è¯éç¥ï¼6ãæ»¡æåº¦è°æ¥ï¼7ãæ£è æ¥åï¼ 8ãå ¶ä»éç¥) */ @Excel(name = "æå¡ç±»å(1ãçæµè¯ä¼°ï¼2ãåºé¢é访ï¼3ãé¨è¯é访ï¼4ã宣æå ³æï¼5ãå¤è¯éç¥ï¼6ãæ»¡æåº¦è°æ¥ï¼7ãæ£è æ¥åï¼ 8ãå ¶ä»éç¥)") @ApiModelProperty(value = "æå¡ç±»å(1ãçæµè¯ä¼°ï¼2ãåºé¢é访ï¼3ãé¨è¯é访ï¼4ã宣æå ³æï¼5ãå¤è¯éç¥ï¼6ãæ»¡æåº¦è°æ¥ï¼7ãæ£è æ¥åï¼ 8ãå ¶ä»éç¥)") @ApiModelProperty(value = "æå¡ç±»å : 1ãçæµè¯ä¼°ï¼2ãåºé¢é访ï¼3ãé¨è¯é访ï¼4ã宣æå ³æï¼5ãå¤è¯ç®¡çï¼6ãæ»¡æåº¦è°æ¥ï¼7ãæ£è æ¥åï¼ 8ãå ¶ä»éç¥ 9使£é访 10ï¼å½±åä¸ç§é访 11ãå¿çµä¸ç§éè®¿ï¼ 12ä¸ç§é访") private String serviceType; /** smartor/src/main/java/com/smartor/mapper/IvrLibaTargetMapper.java
@@ -31,8 +31,6 @@ */ public List<IvrLibaTarget> selectIvrLibaTargetList(IvrLibaTarget ivrLibaTarget); public List<IvrLibaTargetVO> targetInfo(IvrLibaTarget ivrLibaTarget); /** * æ°å¢ææ éé¡¹åº * smartor/src/main/java/com/smartor/service/impl/SvyTaskSingleServiceImpl.java
@@ -1,7 +1,5 @@ package com.smartor.service.impl; import cn.hutool.json.JSONUtil; import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson2.JSON; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.ObjectMapper; @@ -9,22 +7,15 @@ import com.ruoyi.common.core.redis.RedisCache; import com.ruoyi.common.enums.HospTypeEnum; import com.ruoyi.common.enums.ServiceTaskTypeEnum; import com.ruoyi.common.enums.TaskTypeEnum; import com.ruoyi.common.exception.base.BaseException; import com.ruoyi.common.utils.*; import com.ruoyi.common.utils.http.HttpEntity; import com.ruoyi.common.utils.http.HttpUtils; import com.smartor.common.LyraTokenUtil; import com.smartor.domain.*; import com.smartor.mapper.BaseOrganizationMapper; import com.smartor.mapper.ServiceSubtaskMapper; import com.smartor.service.IServiceTaskService; import com.smartor.service.ISvyTaskSingleService; import com.sun.org.apache.bcel.internal.generic.NEW; import lombok.extern.slf4j.Slf4j; import okhttp3.OkHttpClient; import okhttp3.Request; import okhttp3.Response; import org.apache.commons.collections4.CollectionUtils; import org.apache.commons.lang3.ObjectUtils; import org.springframework.beans.factory.annotation.Autowired; @@ -248,14 +239,13 @@ if (StringUtils.isNotEmpty(serviceTaskVO.getServicetype())) type = ServiceTaskTypeEnum.getDescByCode(serviceTaskVO.getServicetype()); serviceSubtask.setServiceType(type); String tasktype = "-1"; if (StringUtils.isNotEmpty(serviceTaskVO.getTasktype())) tasktype = TaskTypeEnum.getDescByCode(serviceTaskVO.getTasktype()); serviceSubtask.setType(tasktype); //ç¬¬ä¸æ¹ä¼ è¿æ¥çï¼ç´æ¥ç»ä¸å®ä¸ºé®å· serviceSubtask.setType("2"); serviceSubtask.setLabelstatus(serviceTaskVO.getTaskstate()); serviceSubtask.setTaskName(serviceTaskVO.getTaskname()); serviceSubtask.setTaskDesc(serviceTaskVO.getTaskdesc()); serviceSubtask.setPreachform(serviceTaskVO.getExemode()); //ç¬¬ä¸æ¹ä¼ è¿æ¥çï¼ç´æ¥ç»ä¸å®ä¸º"人工" serviceSubtask.setPreachform("1"); serviceSubtask.setCreateBy(serviceTaskVO.getCreateBy()); serviceSubtask.setCreateTime(serviceTaskVO.getCreateTime()); serviceSubtask.setOperatorNo(serviceTaskVO.getOperatorno()); smartor/src/main/resources/mapper/smartor/PatArchiveMapper.xml
@@ -474,6 +474,7 @@ LEFT JOIN pat_archivetag b ON a.id = b.patid AND b.del_flag = 0 <where> a.del_flag = 0 and a.orgid = #{orgid} <if test="name != null and name != ''">and a.name like concat('%', #{name}, '%')</if> <if test="idcardno != null and idcardno != ''">and a.idcardno = #{idcardno}</if> <if test="notrequiredFlag != null and notrequiredFlag != ''">and a.notrequired_flag = #{notrequiredFlag} @@ -550,6 +551,7 @@ <where> d.del_flag != 1 AND a.del_flag != 1 and d.orgid = #{orgid} <if test="name != null and name != ''">and a.name like concat('%', #{name}, '%')</if> <if test="idcardno != null and idcardno != ''">and a.idcardno = #{idcardno}</if> <if test="pid != null and pid != ''">and a.id = #{id}</if> @@ -674,6 +676,7 @@ <where> d.del_flag != 1 AND a.del_flag != 1 and d.orgid = #{orgid} <if test="pid != null and pid != ''">and a.id = #{pid}</if> <if test="name != null and name != ''">and a.name like concat('%', #{name}, '%')</if> <if test="idcardno != null and idcardno != ''">and a.idcardno = #{idcardno}</if> @@ -761,6 +764,7 @@ <where> d.del_flag != 1 AND a.del_flag != 1 and d.orgid = #{orgid} <if test="pid != null and pid != ''">and a.id = #{pid}</if> <if test="name != null and name != ''">and a.name like concat('%', #{name}, '%')</if> <if test="idcardno != null and idcardno != ''">and a.idcardno = #{idcardno}</if> @@ -860,6 +864,7 @@ <where> d.del_flag != 1 AND a.del_flag != 1 and d.orgid = #{orgid} <if test="name != null and name != ''">and a.name like concat('%', #{name}, '%')</if> <if test="idcardno != null and idcardno != ''">and a.idcardno = #{idcardno}</if> <if test="pid != null and pid != ''">and a.id = #{id}</if> @@ -966,6 +971,7 @@ <where> d.del_flag != 1 AND a.del_flag != 1 and d.orgid = #{orgid} <if test="pid != null and pid != ''">and a.id = #{pid}</if> <if test="name != null and name != ''">and a.name like concat('%', #{name}, '%')</if> <if test="idcardno != null and idcardno != ''">and a.idcardno = #{idcardno}</if> @@ -1053,6 +1059,7 @@ <where> d.del_flag != 1 AND a.del_flag != 1 and d.orgid = #{orgid} <if test="pid != null and pid != ''">and a.id = #{pid}</if> <if test="name != null and name != ''">and a.name like concat('%', #{name}, '%')</if> <if test="idcardno != null and idcardno != ''">and a.idcardno = #{idcardno}</if>