| | |
| | | @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); |
| | | } |
| | |
| | | @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++) { |
| | |
| | | @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); |
| | | } |
| | |
| | | @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); |
| | | } |
| | |
| | | */ |
| | | @Api(description = "åä¸ä»»å¡ï¼é®å·ï¼(å·²ç»æ¢æservice_subtask)") |
| | | @RestController |
| | | @RequestMapping("/smartor/svysingle") |
| | | //@RequestMapping("/smartor/svysingle") |
| | | public class SvyTaskSingleController extends BaseController { |
| | | @Autowired |
| | | private ISvyTaskSingleService svyTaskSingleService; |
| | |
| | | * åéç±»åæä¸¾ |
| | | */ |
| | | public enum ServiceTaskTypeEnum { |
| | | 使£é访("9", "使£é访"), 廿é访("10", "廿é访"); |
| | | |
| | | çæµè¯ä¼°("1", "çæµè¯ä¼°"), åºé¢é访("2", "åºé¢é访"), é¨è¯é访("3", "é¨è¯é访"), 宣æå
³æ("4", "宣æå
³æ"), å¤è¯ç®¡ç("5", "å¤è¯ç®¡ç"), |
| | | 满æåº¦è°æ¥("6", "满æåº¦è°æ¥"), æ£è
æ¥å("7", "æ£è
æ¥å"), å
¶ä»éç¥("8", "å
¶ä»éç¥"), 使£é访("9", "使£é访"), 廿é访("10", "廿é访"), |
| | | å½±åä¸ç§é访("11", "å½±åä¸ç§é访"), å¿çµä¸ç§é访("12", "å¿çµä¸ç§é访"), ä¸ç§é访("13", "ä¸ç§é访"); |
| | | |
| | | |
| | | private String code; |
| | |
| | | } |
| | | |
| | | // ä¿®æ¹ 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"); |
| | |
| | | * @author ls |
| | | * @date 2023-06-14 |
| | | */ |
| | | @ApiModel(value = "PatArchiveReq" , description = "æ£è
æ¡£æ¡è¯·æ±å¯¹è±¡") |
| | | @ApiModel(value = "PatArchiveReq", description = "æ£è
æ¡£æ¡è¯·æ±å¯¹è±¡") |
| | | @Data |
| | | public class PatArchiveReq { |
| | | public class PatArchiveReq extends BaseEntity { |
| | | /** |
| | | * å§å |
| | | */ |
| | |
| | | /** |
| | | * ä»»å¡ç±»å(é¨è¯ï¼ä½é¢ï¼å¤è¯â¦) |
| | | */ |
| | | @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; |
| | | |
| | | /** |
| | |
| | | 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; |
| | | |
| | | /** |
| | |
| | | |
| | | /** |
| | | * ææ é项åºMapperæ¥å£ |
| | | * |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-12-14 |
| | | */ |
| | | @Mapper |
| | | public interface IvrLibaTargetMapper |
| | | public interface IvrLibaTargetMapper |
| | | { |
| | | /** |
| | | * æ¥è¯¢ææ éé¡¹åº |
| | | * |
| | | * |
| | | * @param targetID ææ é项åºä¸»é® |
| | | * @return ææ éé¡¹åº |
| | | */ |
| | |
| | | |
| | | /** |
| | | * æ¥è¯¢ææ é项åºå表 |
| | | * |
| | | * |
| | | * @param ivrLibaTarget ææ éé¡¹åº |
| | | * @return ææ é项åºéå |
| | | */ |
| | | public List<IvrLibaTarget> selectIvrLibaTargetList(IvrLibaTarget ivrLibaTarget); |
| | | |
| | | public List<IvrLibaTargetVO> targetInfo(IvrLibaTarget ivrLibaTarget); |
| | | |
| | | /** |
| | | * æ°å¢ææ éé¡¹åº |
| | | * |
| | | * |
| | | * @param ivrLibaTarget ææ éé¡¹åº |
| | | * @return ç»æ |
| | | */ |
| | |
| | | |
| | | /** |
| | | * ä¿®æ¹ææ éé¡¹åº |
| | | * |
| | | * |
| | | * @param ivrLibaTarget ææ éé¡¹åº |
| | | * @return ç»æ |
| | | */ |
| | |
| | | |
| | | /** |
| | | * å 餿æ éé¡¹åº |
| | | * |
| | | * |
| | | * @param targetID ææ é项åºä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | |
| | | |
| | | /** |
| | | * æ¹éå 餿æ éé¡¹åº |
| | | * |
| | | * |
| | | * @param targetIDs éè¦å é¤çæ°æ®ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | |
| | | 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; |
| | |
| | | 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; |
| | |
| | | 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()); |
| | |
| | | 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} |
| | |
| | | <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> |
| | |
| | | <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> |
| | |
| | | <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> |
| | |
| | | <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> |
| | |
| | | <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> |
| | |
| | | <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> |