| | |
| | | serviceSubtaskRecordService.insertServiceSubtaskRecord(serviceSubtaskRecord); |
| | | |
| | | } else if (descByCode.equals("çä¿¡")) { |
| | | log.info("----activeçå¼ä¸ºï¼{}", active); |
| | | //çä¿¡ |
| | | //对urlä¸ä¸¤ä¸ªåæ°å å¯ |
| | | RSAPublicKeyExample rsaPublicKeyExample = new RSAPublicKeyExample(); |
| | |
| | | } else if (active.equals("xh")) { |
| | | sendMagParam.setContent("ãæ°åå»é¢ãæ¨å¥½ï¼é请æ¨å¡«ååºé¢å®£æè°æ¥è¡¨ï¼è¯·ç¹å»" + sendMagParam.getUrl() + "æ¥çãæè°¢æ¨é
åï¼"); |
| | | } |
| | | } else { |
| | | } else if (heLibrary.getHetype().equals("2")) { |
| | | //éç¥ |
| | | sendMagParam.setPhone(serviceSubtask.getPhone()); |
| | | sendMagParam.setContent(heLibrary.getPreachcontent()); |
| | |
| | | throw new BaseException("çä¿¡åé失败"); |
| | | } |
| | | } else if (active.equals("sltd")) { |
| | | log.info("-------è¿æ¥äºä¸ï¼ï¼"); |
| | | //çç«åå¾·ççä¿¡åéæ¹å¼ |
| | | JSONObject data = MessageSend.sendMsg(sendMagParam.getContent(), "2", sendMagParam.getPhone(), LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyyMMddHHmmss"))); |
| | | String code = data.get("code").toString(); |
| | | if (StringUtils.isNotEmpty(code) && code.equals("00000")) { |
| | | String data = MessageSend.sendMsg(sendMagParam.getContent(), "2", sendMagParam.getPhone(), LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyyMMddHHmmss"))); |
| | | if (StringUtils.isNotEmpty(data) && data.contains("result=0")) { |
| | | s = "true"; |
| | | } else { |
| | | setFailPreachForm(serviceSubtask, sendPreachform, "çä¿¡åé失败", "5"); |
| | |
| | | @Value("${uploadSwitch}") |
| | | private Integer uploadSwitch; |
| | | |
| | | @Value("${fileUpload}") |
| | | private String fileUpload; |
| | | |
| | | @Value("${profile}") |
| | | private String profile; |
| | | |
| | | @Value("${spring.profiles.active}") |
| | | private String active; |
| | | |
| | | /** |
| | | * éç¨ä¸è½½è¯·æ± |
| | | * |
| | |
| | | // ä¸ä¼ å¹¶è¿åæ°æä»¶åç§° |
| | | String fileName = FileUploadUtils.uploadSort(filePath, file); |
| | | String url = null; |
| | | //æ°åå»é¢ç¹æ®ï¼è¿ä¸ªè§é¢ç访é®å¾è½¬ |
| | | String xhPath = "http://218.108.11.22:8093/profile-api"; |
| | | String xhPath = fileUpload + profile; |
| | | |
| | | if (uploadSwitch == 1) { |
| | | String fn = fileName.replaceAll("/profile", ""); |
| | | url = xhPath + fn; |
| | |
| | | e.printStackTrace(); |
| | | } |
| | | String url = null; |
| | | String xhPath = "http://218.108.11.22:8093/profile-api"; |
| | | String xhPath = fileUpload + profile; |
| | | if (uploadSwitch == 1) { |
| | | url = xhPath + "/upload/show/" + fileName.split("\\.", 2)[0] + "/" + fileName; |
| | | } else { |
| | |
| | | patArchiveReq.setPageNum(null); |
| | | patArchiveReq.setPageSize(null); |
| | | List<PatArchiveOthreInfo> count = patArchiveService.getPatientInfo(patArchiveReq); |
| | | map.put("total", count); |
| | | map.put("total", count.size()); |
| | | return map; |
| | | } |
| | | |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import java.util.List; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.PutMapping; |
| | | import org.springframework.web.bind.annotation.DeleteMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.smartor.domain.PatMedOuthospProvisional; |
| | | import com.smartor.service.IPatMedOuthospProvisionalService; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.ruoyi.common.core.page.TableDataInfo; |
| | | |
| | | /** |
| | | * æ£è
é¨è¯è®°å½ï¼è¿æ¸¡ï¼Controller |
| | | * |
| | | * @author ls |
| | | * @date 2025-11-04 |
| | | */ |
| | | @Api("æ£è
é¨è¯è®°å½ï¼è¿æ¸¡ï¼") |
| | | @RestController |
| | | @RequestMapping("/smartor/provisional") |
| | | public class PatMedOuthospProvisionalController extends BaseController |
| | | { |
| | | @Autowired |
| | | private IPatMedOuthospProvisionalService patMedOuthospProvisionalService; |
| | | |
| | | /** |
| | | * æ¥è¯¢æ£è
é¨è¯è®°å½ï¼è¿æ¸¡ï¼å表 |
| | | */ |
| | | @ApiOperation("æ¥è¯¢æ£è
é¨è¯è®°å½ï¼è¿æ¸¡ï¼å表") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:provisional:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody PatMedOuthospProvisional patMedOuthospProvisional) |
| | | { |
| | | startPage(); |
| | | List<PatMedOuthospProvisional> list = patMedOuthospProvisionalService.selectPatMedOuthospProvisionalList(patMedOuthospProvisional); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | /** |
| | | * å¯¼åºæ£è
é¨è¯è®°å½ï¼è¿æ¸¡ï¼å表 |
| | | */ |
| | | @ApiOperation("å¯¼åºæ£è
é¨è¯è®°å½ï¼è¿æ¸¡ï¼å表") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:provisional:export')") |
| | | @Log(title = "æ£è
é¨è¯è®°å½ï¼è¿æ¸¡ï¼", businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, PatMedOuthospProvisional patMedOuthospProvisional) |
| | | { |
| | | List<PatMedOuthospProvisional> list = patMedOuthospProvisionalService.selectPatMedOuthospProvisionalList(patMedOuthospProvisional); |
| | | ExcelUtil<PatMedOuthospProvisional> util = new ExcelUtil<PatMedOuthospProvisional>(PatMedOuthospProvisional.class); |
| | | util.exportExcel(response, list, "æ£è
é¨è¯è®°å½ï¼è¿æ¸¡ï¼æ°æ®"); |
| | | } |
| | | |
| | | /** |
| | | * è·åæ£è
é¨è¯è®°å½ï¼è¿æ¸¡ï¼è¯¦ç»ä¿¡æ¯ |
| | | */ |
| | | @ApiOperation("è·åæ£è
é¨è¯è®°å½ï¼è¿æ¸¡ï¼è¯¦ç»ä¿¡æ¯") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:provisional:query')") |
| | | @GetMapping(value = "/getInfo/{id}") |
| | | public AjaxResult getInfo(@PathVariable("id") Long id) |
| | | { |
| | | return success(patMedOuthospProvisionalService.selectPatMedOuthospProvisionalById(id)); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢æ£è
é¨è¯è®°å½ï¼è¿æ¸¡ï¼ |
| | | */ |
| | | @ApiOperation("æ°å¢æ£è
é¨è¯è®°å½ï¼è¿æ¸¡ï¼") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:provisional:add')") |
| | | @Log(title = "æ£è
é¨è¯è®°å½ï¼è¿æ¸¡ï¼", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody PatMedOuthospProvisional patMedOuthospProvisional) |
| | | { |
| | | return toAjax(patMedOuthospProvisionalService.insertPatMedOuthospProvisional(patMedOuthospProvisional)); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹æ£è
é¨è¯è®°å½ï¼è¿æ¸¡ï¼ |
| | | */ |
| | | @ApiOperation("ä¿®æ¹æ£è
é¨è¯è®°å½ï¼è¿æ¸¡ï¼") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:provisional:edit')") |
| | | @Log(title = "æ£è
é¨è¯è®°å½ï¼è¿æ¸¡ï¼", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody PatMedOuthospProvisional patMedOuthospProvisional) |
| | | { |
| | | return toAjax(patMedOuthospProvisionalService.updatePatMedOuthospProvisional(patMedOuthospProvisional)); |
| | | } |
| | | |
| | | /** |
| | | * å 餿£è
é¨è¯è®°å½ï¼è¿æ¸¡ï¼ |
| | | */ |
| | | @ApiOperation("å 餿£è
é¨è¯è®°å½ï¼è¿æ¸¡ï¼") |
| | | //@PreAuthorize("@ss.hasPermi('smartor:provisional:remove')") |
| | | @Log(title = "æ£è
é¨è¯è®°å½ï¼è¿æ¸¡ï¼", businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{ids}") |
| | | public AjaxResult remove(@PathVariable Long[] ids) |
| | | { |
| | | return toAjax(patMedOuthospProvisionalService.deletePatMedOuthospProvisionalByIds(ids)); |
| | | } |
| | | } |
| | |
| | | # driverClassName: com.mysql.cj.jdbc.Driver |
| | | |
| | | # å
¬å¸äº |
| | | # url: jdbc:mysql://116.62.18.175:6002/smartor_xinhua?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 |
| | | # username: hxsoft |
| | | # password: Hxerp2000 |
| | | # driverClassName: com.mysql.cj.jdbc.Driver |
| | | # url: jdbc:mysql://116.62.18.175:6002/smartor_xinhua?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 |
| | | # username: hxsoft |
| | | # password: Hxerp2000 |
| | | # driverClassName: com.mysql.cj.jdbc.Driver |
| | | # å
¬å¸æ¬å° |
| | | url: jdbc:mysql://haiershi.a1.luyouxia.net:23844/smartor_lishui?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 |
| | | url: jdbc:mysql://haiershi.a1.luyouxia.net:23844/smartor_sltd?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 |
| | | username: smartor |
| | | password: Smartor.2023 |
| | | driverClassName: com.mysql.cj.jdbc.Driver |
| | |
| | | # password: Smartor.2023 |
| | | # driverClassName: com.mysql.cj.jdbc.Driver |
| | | # 仿°æ®æºå¼å
³/é»è®¤å
³é(å
¬å¸) |
| | | # 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://116.62.18.175:6001;DatabaseName=iv-ywey;encrypt=false;SelectMethod=cursor |
| | | # username: sa |
| | | # password: Hxerp2000 |
| | | # driverClassName: com.microsoft.sqlserver.jdbc.SQLServerDriver |
| | | |
| | | # 仿°æ®æºå¼å
³/é»è®¤å
³é(ä¹ä¹äºé¢) |
| | | # enabled: true |
| | |
| | | multi-statement-allow: true |
| | | # redis é
ç½® |
| | | redis: |
| | | host: 192.168.100.10 |
| | | host: 127.0.0.1 |
| | | port: 6020 |
| | | database: 0 |
| | | password: Smartor |
| | |
| | | isEncryp: |
| | | |
| | | dealDeptCode: |
| | | |
| | | #æä»¶ä¸ä¼ å°å |
| | | fileUpload: |
| | | profile: |
| | |
| | | |
| | | #æ¯å¦å å¯ 0ä¸å 1å å¯ |
| | | isEncryp: 0 |
| | | |
| | | #æä»¶ä¸ä¼ å°å |
| | | fileUpload: |
| | | profile: |
| | |
| | | |
| | | #æ¯å¦å å¯ 0ä¸å 1å å¯ |
| | | isEncryp: 0 |
| | | |
| | | #æä»¶ä¸ä¼ å°å |
| | | fileUpload: |
| | | profile: |
| | |
| | | #æ¯å¦å å¯ 0ä¸å 1å å¯ |
| | | isEncryp: 0 |
| | | |
| | | |
| | | #æä»¶ä¸ä¼ å°å |
| | | fileUpload: http://192.88.117.236:8090 |
| | | profile: /prod-api/profile |
| | |
| | | |
| | | #æ¯å¦å å¯ 0ä¸å 1å å¯ |
| | | isEncryp: 0 |
| | | |
| | | #æä»¶ä¸ä¼ å°å |
| | | fileUpload: http://218.108.11.22:8093 |
| | | profile: /profile-api |
| | |
| | | package com.ruoyi.common.core.domain.entity; |
| | | |
| | | import com.ruoyi.common.annotation.Excel; |
| | | import com.ruoyi.common.core.domain.BaseEntity; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | |
| | | @ApiModelProperty("é¨é¨ç¼ç ") |
| | | private String type; |
| | | |
| | | /** |
| | | * æºæID |
| | | */ |
| | | @ApiModelProperty("é¢åº") |
| | | @Excel(name = " é¢åº ") |
| | | private String campusid; |
| | | |
| | | } |
| | |
| | | private List<Map<String, Object>> belongDepts = new ArrayList(); |
| | | |
| | | |
| | | public String getCampusid() { |
| | | return campusid; |
| | | } |
| | | |
| | | public void setCampusid(String campusid) { |
| | | this.campusid = campusid; |
| | | } |
| | | |
| | | /** |
| | | * æºæID |
| | | */ |
| | | @ApiModelProperty("é¢åº") |
| | | @Excel(name = " é¢åº ") |
| | | private String campusid; |
| | | |
| | | |
| | | public SysUser() { |
| | | |
| | | } |
| | |
| | | private Long delFlag; |
| | | |
| | | |
| | | /** |
| | | * æºæID |
| | | */ |
| | | @ApiModelProperty("é¢åº") |
| | | @Excel(name = " é¢åº ") |
| | | private String campusid; |
| | | |
| | | } |
| | | |
| | |
| | | * @param sScheduleTime é¢çº¦åéæ¶é´ |
| | | * @return |
| | | */ |
| | | public static JSONObject sendMsg(String sMessageContent, String sMessageType, String sUserNumber, String sScheduleTime) { |
| | | public static String sendMsg(String sMessageContent, String sMessageType, String sUserNumber, String sScheduleTime) { |
| | | log.info("--sMessageContentçå¼ä¸ºï¼{} ,--sMessageTypeçå¼ä¸ºï¼{}, --sUserNumberçå¼ä¸ºï¼{}, --sScheduleTimeçå¼ä¸ºï¼{}", sMessageContent, sMessageType, sUserNumber, sScheduleTime); |
| | | com.ruoyi.common.dx.SmsService service = new SmsService(); |
| | | SmsServiceSoap soap = service.getSmsServiceSoap(); |
| | | String result = soap.i5GSend("202508291634227086", "T202508291635259440", UUID.randomUUID().toString(), sMessageContent, sMessageType, sUserNumber, sScheduleTime); |
| | | return JSONObject.parseObject(result); |
| | | log.info("----çä¿¡è¿åçæ°æ®ä¸ºï¼{}", result); |
| | | return result; |
| | | } |
| | | } |
| | |
| | | import com.ruoyi.common.utils.http.HttpUtils; |
| | | import com.ruoyi.common.utils.sms.smsUtils; |
| | | import com.ruoyi.quartz.service.ICollectHISService; |
| | | import com.ruoyi.system.domain.SysConfig; |
| | | import com.ruoyi.system.service.ISysConfigService; |
| | | import com.smartor.common.LSHospTokenUtil; |
| | | import com.smartor.domain.*; |
| | |
| | | import java.nio.file.Files; |
| | | import java.nio.file.Paths; |
| | | import java.security.MessageDigest; |
| | | import java.text.SimpleDateFormat; |
| | | import java.time.LocalDate; |
| | | import java.time.LocalDateTime; |
| | | import java.time.LocalTime; |
| | | import java.time.ZoneId; |
| | | import java.time.format.DateTimeFormatter; |
| | | import java.util.*; |
| | | import java.util.stream.Collectors; |
| | | |
| | | import static cn.hutool.core.convert.Convert.toHex; |
| | | |
| | |
| | | } |
| | | } else if (active.trim().equals("sltd")) { |
| | | try { |
| | | //è·åæ¯å¦éè¦ééç¨æ·ãé¨é¨ä¿¡æ¯ |
| | | SysConfig config = new SysConfig(); |
| | | config.setConfigKey("sltd.gather.sysuser"); |
| | | config.setOrgid("20001001"); |
| | | List<SysConfig> sysConfigs = configService.selectConfigList(config); |
| | | |
| | | //è·åçç«åå¾·è¦ééçé¢åº |
| | | SysConfig cf = new SysConfig(); |
| | | cf.setConfigKey("sltd.gather.campusid"); |
| | | cf.setOrgid("20001001"); |
| | | List<SysConfig> sysConfigcampusids = configService.selectConfigList(cf); |
| | | |
| | | List<Long> campusidList = new ArrayList<>(); |
| | | if (CollectionUtils.isNotEmpty(sysConfigcampusids)) { |
| | | String[] split = sysConfigcampusids.get(0).getConfigValue().split(","); |
| | | campusidList = Arrays.stream(split).map(Long::valueOf).collect(Collectors.toList()); |
| | | } else { |
| | | log.error("SysConfigä¸çé¢åºID为空ï¼"); |
| | | return; |
| | | } |
| | | |
| | | //configValue = 1 ä¸éè¦éé configValue = 2éè¦éé |
| | | if (CollectionUtils.isNotEmpty(sysConfigs) && sysConfigs.get(0).getConfigValue().equals("2")) { |
| | | log.info("ãdealHisDataãçç«åå¾·âé¨é¨ä¿¡æ¯âå¼å§ééæ°æ®"); |
| | | ServiceSLTDDeptReqVO serviceSLTDDeptReqVO = new ServiceSLTDDeptReqVO(); |
| | | serviceSLTDDeptReqVO.setOrgId("20001001"); |
| | | serviceSLTDDeptReqVO.setCampusIds(campusidList); |
| | | Boolean aBoolean1 = serviceSLTDHealthcareRecordService.queryDeptWardAreaInfoList(serviceSLTDDeptReqVO); |
| | | log.info("ãdealHisDataãçç«åå¾·âé¨é¨ä¿¡æ¯âç»æééæ°æ®ï¼{}", aBoolean1); |
| | | |
| | | Boolean aBoolean = false; |
| | | for (Long cid : campusidList) { |
| | | log.info("ãdealHisDataãçç«åå¾·âç¨æ·ä¿¡æ¯âå¼å§ééæ°æ®ï¼é¢åºï¼{}", cid); |
| | | ServiceSLTDInhospReqVO reqVO = new ServiceSLTDInhospReqVO(); |
| | | reqVO.setOrgId("20001001"); |
| | | reqVO.setCampusId(cid); |
| | | ArrayList<String> statusList = new ArrayList<>(); |
| | | statusList.add("1"); |
| | | reqVO.setStatusList(statusList); |
| | | aBoolean = serviceSLTDHealthcareRecordService.queryHospUserInfoList(reqVO); |
| | | } |
| | | log.info("ãdealHisDataãçç«åå¾·âç¨æ·ä¿¡æ¯âç»æééæ°æ®ï¼{}", aBoolean); |
| | | } |
| | | |
| | | // çç«åå¾·æ°æ®éé |
| | | log.info("ãdealHisDataãçç«åå¾·âå
¥é¢âå¼å§ééæ°æ®"); |
| | | String yesterday = LocalDate.now().minusDays(1).format(DateTimeFormatter.ofPattern("yyyy-MM-dd")); |
| | | ServiceSLTDInhospReqVO serviceSLTDInhospReqVO = new ServiceSLTDInhospReqVO(); |
| | | serviceSLTDInhospReqVO.setOrgId("20001001"); |
| | | serviceSLTDInhospReqVO.setCampusId(30001002L); |
| | | serviceSLTDInhospReqVO.setStartHeadTime(yesterday); |
| | | serviceSLTDInhospReqVO.setStartTailTime(yesterday); |
| | | List<String> list = new ArrayList<>(); |
| | | list.add("FH0108.02"); |
| | | serviceSLTDInhospReqVO.setHealthcareRecordTypeList(list); |
| | | serviceSLTDHealthcareRecordService.queryHealthcareRecordList(serviceSLTDInhospReqVO); |
| | | log.info("ãdealHisDataãçç«åå¾·âå
¥é¢âçµæééæ°æ®"); |
| | | for (Long cid : campusidList) { |
| | | log.info("ãdealHisDataãçç«åå¾·âå
¥é¢âå¼å§ééæ°æ®ï¼é¢åºï¼{}", cid); |
| | | String nowTime = LocalDate.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd")); |
| | | ServiceSLTDInhospReqVO serviceSLTDInhospReqVO = new ServiceSLTDInhospReqVO(); |
| | | serviceSLTDInhospReqVO.setOrgId("20001001"); |
| | | serviceSLTDInhospReqVO.setCampusId(cid); |
| | | serviceSLTDInhospReqVO.setStartHeadTime(nowTime); |
| | | serviceSLTDInhospReqVO.setStartTailTime(nowTime); |
| | | List<String> list = new ArrayList<>(); |
| | | list.add("FH0108.02"); |
| | | serviceSLTDInhospReqVO.setHealthcareRecordTypeList(list); |
| | | log.info("ãdealHisDataãçç«åå¾·âå
¥é¢âééæ°æ®å
¥åï¼{}", serviceSLTDInhospReqVO); |
| | | serviceSLTDHealthcareRecordService.queryHealthcareRecordList(serviceSLTDInhospReqVO); |
| | | log.info("ãdealHisDataãçç«åå¾·âå
¥é¢âçµæééæ°æ®ï¼é¢åºï¼{}", cid); |
| | | |
| | | log.info("ãdealHisDataãçç«åå¾·â鍿¥è¯âå¼å§ééæ°æ®"); |
| | | serviceSLTDInhospReqVO.setStartHeadTime(null); |
| | | serviceSLTDInhospReqVO.setStartTailTime(null); |
| | | serviceSLTDInhospReqVO.setEncounterTimeStart(yesterday); |
| | | serviceSLTDInhospReqVO.setEncounterTimeEnd(yesterday); |
| | | List<String> list1 = new ArrayList<>(); |
| | | list1.add("FH0108.01"); |
| | | list1.add("FH0108.03"); |
| | | serviceSLTDInhospReqVO.setHealthcareRecordTypeList(list1); |
| | | serviceSLTDHealthcareRecordService.queryHealthcareRecordList(serviceSLTDInhospReqVO); |
| | | log.info("ãdealHisDataãæ²³åç»â鍿¥è¯âæééæ°æ®"); |
| | | log.info("ãdealHisDataãçç«åå¾·â鍿¥è¯âå¼å§ééæ°æ®ï¼é¢åºï¼{}", cid); |
| | | serviceSLTDInhospReqVO.setStartHeadTime(null); |
| | | serviceSLTDInhospReqVO.setStartTailTime(null); |
| | | serviceSLTDInhospReqVO.setEncounterTimeStart(nowTime); |
| | | serviceSLTDInhospReqVO.setEncounterTimeEnd(nowTime); |
| | | List<String> list1 = new ArrayList<>(); |
| | | list1.add("FH0108.01"); |
| | | list1.add("FH0108.03"); |
| | | serviceSLTDInhospReqVO.setHealthcareRecordTypeList(list1); |
| | | log.info("ãdealHisDataãçç«åå¾·â鍿¥è¯âééæ°æ®å
¥åï¼{}", serviceSLTDInhospReqVO); |
| | | serviceSLTDHealthcareRecordService.queryHealthcareRecordList(serviceSLTDInhospReqVO); |
| | | log.info("ãdealHisDataãçç«åå¾·â鍿¥è¯âæééæ°æ®ï¼é¢åºï¼{}", cid); |
| | | |
| | | log.info("ãdealHisDataãçç«åå¾·âåºé¢âå¼å§ééæ°æ®"); |
| | | serviceSLTDInhospReqVO.setStartHeadTime(null); |
| | | serviceSLTDInhospReqVO.setStartTailTime(null); |
| | | serviceSLTDInhospReqVO.setEncounterTimeStart(null); |
| | | serviceSLTDInhospReqVO.setEncounterTimeEnd(null); |
| | | serviceSLTDInhospReqVO.setPreOutHospitalHeadDate(yesterday); |
| | | serviceSLTDInhospReqVO.setPreOutHospitalTailDate(yesterday); |
| | | List<String> list2 = new ArrayList<>(); |
| | | list2.add("FH0108.02"); |
| | | serviceSLTDInhospReqVO.setHealthcareRecordTypeList(list2); |
| | | serviceSLTDHealthcareRecordService.queryHealthcareRecordList(serviceSLTDInhospReqVO); |
| | | log.info("ãdealHisDataãæ²³åç»âåºé¢âæééæ°æ®"); |
| | | |
| | | log.info("ãdealHisDataãçç«åå¾·âåºé¢âå¼å§ééæ°æ®ï¼é¢åºï¼{}", cid); |
| | | serviceSLTDInhospReqVO.setStartHeadTime(null); |
| | | serviceSLTDInhospReqVO.setStartTailTime(null); |
| | | serviceSLTDInhospReqVO.setEncounterTimeStart(null); |
| | | serviceSLTDInhospReqVO.setEncounterTimeEnd(null); |
| | | serviceSLTDInhospReqVO.setPreOutHospitalHeadDate(nowTime); |
| | | serviceSLTDInhospReqVO.setPreOutHospitalTailDate(nowTime); |
| | | List<String> list2 = new ArrayList<>(); |
| | | list2.add("FH0108.02"); |
| | | serviceSLTDInhospReqVO.setHealthcareRecordTypeList(list2); |
| | | log.info("ãdealHisDataãçç«åå¾·âåºé¢âééæ°æ®å
¥åï¼{}", serviceSLTDInhospReqVO); |
| | | serviceSLTDHealthcareRecordService.queryHealthcareRecordList(serviceSLTDInhospReqVO); |
| | | log.info("ãdealHisDataãçç«åå¾·âåºé¢âæééæ°æ®ï¼é¢åºï¼{}", cid); |
| | | } |
| | | // SysConfig sysConfig = sysConfigs.get(0); |
| | | // sysConfig.setConfigValue(nowTime); |
| | | // configService.updateConfig(sysConfig); |
| | | } catch (Exception e) { |
| | | log.error("ãdealHisDataãçç«åå¾·æ°æ®ééå¼å¸¸", e); |
| | | } |
| | |
| | | sendMagParam.setContent("æ¨å¥½ï¼é请æ¨å¡«ååºé¢è°æ¥è¡¨ï¼è¯·ç¹å»" + sendMagParam.getUrl() + "å¡«åãæè°¢æ¨é
åï¼"); |
| | | } else { |
| | | HeLibrary heLibrary = heLibraryMapper.selectHeLibraryById(serviceSubtask.getLibtemplateid()); |
| | | if ("2".equals(heLibrary.getHetype())) { |
| | | if (heLibrary.getHetype().equals("1")) { |
| | | sendMagParam.setPhone(serviceSubtask.getPhone()); |
| | | sendMagParam.setUrl(localIP + ":" + req_path + "/xj?p=" + format); |
| | | if (active.equals("ls") || active.equals("sltd")) { |
| | | sendMagParam.setContent("æ¨å¥½ï¼é请æ¨å¡«ååºé¢å®£æè°æ¥è¡¨ï¼è¯·ç¹å»" + sendMagParam.getUrl() + "æ¥çãæè°¢æ¨é
åï¼"); |
| | | } else if (active.equals("xh")) { |
| | | sendMagParam.setContent("ãæ°åå»é¢ãæ¨å¥½ï¼é请æ¨å¡«ååºé¢å®£æè°æ¥è¡¨ï¼è¯·ç¹å»" + sendMagParam.getUrl() + "æ¥çãæè°¢æ¨é
åï¼"); |
| | | } |
| | | } else if (heLibrary.getHetype().equals("2")) { |
| | | //éç¥ |
| | | sendMagParam.setPhone(serviceSubtask.getPhone()); |
| | | sendMagParam.setContent(heLibrary.getPreachcontent()); |
| | | } |
| | | |
| | | } |
| | | String isSuccess = null; |
| | | log.info("activeçå¼ä¸ºï¼{}", active); |
| | | if (active.equals("xh")) { |
| | | Map<String, String> req = new HashMap<>(); |
| | | req.put("phone", sendMagParam.getPhone()); |
| | |
| | | isSuccess = "true"; |
| | | } |
| | | } else if (active.equals("sltd")) { |
| | | log.info("sltdè¿æ¥äºåï¼{} ,---sendMagParam.getContent()çåæ°ä¸ºï¼{}", active, sendMagParam.getContent()); |
| | | //çç«åå¾·ççä¿¡åéæ¹å¼ |
| | | JSONObject data = MessageSend.sendMsg(sendMagParam.getContent(), "2", sendMagParam.getPhone(), LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyyMMddHHmmss"))); |
| | | String code = data.get("code").toString(); |
| | | if (StringUtils.isNotEmpty(code) && code.equals("00000")) { |
| | | String data = MessageSend.sendMsg(sendMagParam.getContent(), "2", sendMagParam.getPhone(), LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyyMMddHHmmss"))); |
| | | if (StringUtils.isNotEmpty(data) && data.contains("result=0")) { |
| | | isSuccess = "true"; |
| | | } |
| | | } else if (active.equals("hzszlyy")) {//å¸ä¸å»é¢ |
| | |
| | | if (CollectionUtils.isNotEmpty(serviceSubtaskPreachforms)) { |
| | | ServiceSubtaskPreachform serviceSubtaskPreachform1 = serviceSubtaskPreachforms.get(0); |
| | | serviceSubtaskPreachform1.setSendstate(failSendstate); |
| | | if (serviceSubtask.getType().equals("3") || serviceSubtask.getType().equals("4")) { |
| | | //妿æ¯å®£ææéç¥ï¼å¹¶ä¸åéæåï¼ç´æ¥å°åéç¶ææ¹æ9 |
| | | if (failSendstate.equals("2")) serviceSubtaskPreachform1.setSendstate("9"); |
| | | } |
| | | serviceSubtaskPreachform1.setRemark(remark); |
| | | serviceSubtaskPreachformMapper.updateServiceSubtaskPreachform(serviceSubtaskPreachform1); |
| | | |
| | |
| | | serviceSubtask.setVisitTime(getNextVisitTime(serviceSubtask.getId(), serviceSubtask.getTaskid(), serviceSubtask.getVisitTime())); |
| | | serviceSubtask.setCurrentPreachform(preachform); |
| | | serviceSubtask.setSendstate(3L); |
| | | if (serviceSubtask.getType().equals("3") || serviceSubtask.getType().equals("4")) { |
| | | //妿æ¯å®£ææéç¥ï¼å¹¶ä¸åéæåï¼åç´æ¥å°serviceSubtaskç¶ææ¹æ6Lï¼è¿ä¸ªæ£è
æ¯æ²¡æé¢åçï¼ä¸ä¼åè§¦åæ¥å£è¿è¡ç¶æä¿®æ¹ï¼ |
| | | if (failSendstate.equals("2")) { |
| | | serviceSubtask.setSendstate(6L); |
| | | } |
| | | } |
| | | serviceSubtaskMapper.updateServiceSubtask(serviceSubtask); |
| | | return true; |
| | | } |
| | |
| | | <result property="deptType" column="dept_type"/> |
| | | <result property="guid" column="guid"/> |
| | | <result property="orgid" column="orgid"/> |
| | | <result property="campusid" column="campusid"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectDeptVo"> |
| | | select d.dept_id, |
| | | d.dept_code, |
| | | d.campusid, |
| | | d.parent_id, |
| | | d.ancestors, |
| | | d.dept_name, |
| | |
| | | <if test="deptType != null and deptType != ''"> |
| | | AND dept_type = #{deptType} |
| | | </if> |
| | | <if test="campusid != null and campusid != ''"> |
| | | AND campusid = #{campusid} |
| | | </if> |
| | | <if test="hisDeptId != null and hisDeptId != ''"> |
| | | AND his_dept_id = #{hisDeptId} |
| | | </if> |
| | | <if test="hisParentId != null and hisParentId != ''"> |
| | | AND his_parent_id = #{hisParentId} |
| | | </if> |
| | | <if test="orgid != null and orgid != ''"> |
| | | <if test="orgid != null and orgid != ''"> |
| | | AND orgid = #{orgid} |
| | | </if> |
| | | <!-- æ°æ®èå´è¿æ»¤ --> |
| | |
| | | d.leader, |
| | | d.phone, |
| | | d.email, |
| | | d.campusid, |
| | | d.status, |
| | | d.his_dept_id, |
| | | d.his_parent_id, |
| | |
| | | <select id="selectDeptByCode" parameterType="string" resultMap="SysDeptResult"> |
| | | select d.dept_id, |
| | | d.parent_id, |
| | | d.campusid, |
| | | d.dept_code, |
| | | d.dept_type, |
| | | d.ancestors, |
| | |
| | | <if test="hisDeptId != null and hisDeptId != ''">his_dept_id,</if> |
| | | <if test="hisParentId != null and hisParentId != ''">his_parent_id,</if> |
| | | <if test="orgid != null and orgid != ''">orgid,</if> |
| | | <if test="campusid != null and campusid != ''">campusid,</if> |
| | | create_time |
| | | )values( |
| | | <if test="deptId != null and deptId != 0">#{deptId},</if> |
| | |
| | | <if test="hisDeptId != null and hisDeptId != ''">#{hisDeptId},</if> |
| | | <if test="hisParentId != null and hisParentId != ''">#{hisParentId},</if> |
| | | <if test="orgid != null and orgid != ''">#{orgid},</if> |
| | | <if test="campusid != null and campusid != ''">#{campusid},</if> |
| | | sysdate() |
| | | ) |
| | | </insert> |
| | |
| | | <if test="hisParentId != null and hisParentId != ''">his_parent_id = #{hisParentId},</if> |
| | | <if test="hisDeptId != null and hisDeptId != ''">his_dept_id = #{hisDeptId},</if> |
| | | <if test="orgid != null and orgid != ''">orgid = #{orgid},</if> |
| | | <if test="campusid != null and campusid != ''">campusid = #{campusid},</if> |
| | | update_time = sysdate() |
| | | </set> |
| | | where dept_id = #{deptId} |
| | |
| | | <result property="searchscope" column="searchscope"/> |
| | | <result property="guid" column="guid"/> |
| | | <result property="orgid" column="orgid"/> |
| | | <result property="campusid" column="campusid"/> |
| | | <association property="dept" column="dept_id" javaType="com.ruoyi.common.core.domain.entity.SysDept" |
| | | resultMap="deptResult"/> |
| | | <collection property="roles" javaType="java.util.List" resultMap="RoleResult"/> |
| | |
| | | <result property="orderNum" column="order_num"/> |
| | | <result property="leader" column="leader"/> |
| | | <result property="status" column="dept_status"/> |
| | | <result property="campusid" column="campusid"/> |
| | | </resultMap> |
| | | |
| | | <resultMap id="RoleResult" type="com.ruoyi.common.core.domain.entity.SysRole"> |
| | |
| | | u.dept_id, |
| | | u.id_card, |
| | | u.hosp_info, |
| | | u.campusid, |
| | | u.dept_info, |
| | | u.searchscope, |
| | | u.user_name, |
| | |
| | | u.nick_name, u.user_name, |
| | | u.email,u.id_card, |
| | | u.avatar, |
| | | u.campusid, |
| | | u.dept_name, |
| | | u.dept_code, |
| | | u.birthday, |
| | |
| | | </if> |
| | | <if test="status != null and status != ''"> |
| | | AND u.status = #{status} |
| | | </if> |
| | | <if test="campusid != null and campusid != ''"> |
| | | AND u.campusid = #{campusid} |
| | | </if> |
| | | <if test="idCard != null and idCard != ''"> |
| | | AND u.id_card = #{idCard} |
| | |
| | | </select> |
| | | <select id="getUserList" parameterType="com.ruoyi.common.core.domain.entity.SysUser" resultMap="SysUserResult"> |
| | | select u.user_id,u.title,u.his_user_id,u.hosp_info,u.dept_info, u.searchscope, u.dept_id, u.user_type, |
| | | u.nick_name, u.user_name, |
| | | u.nick_name, u.user_name,u.campusid, |
| | | u.email,u.id_card, |
| | | u.avatar, |
| | | u.dept_name, |
| | |
| | | </if> |
| | | <if test="orgid != null and orgid != ''"> |
| | | AND u.orgid = #{orgid} |
| | | </if> |
| | | <if test="campusid != null and campusid != ''"> |
| | | AND u.campusid = #{campusid} |
| | | </if> |
| | | <if test="userName != null and userName != ''"> |
| | | AND u.user_name like concat('%', #{userName}, '%') |
| | |
| | | u.email, |
| | | u.dept_code, |
| | | u.dept_name, |
| | | u.campusid, |
| | | u.birthday, |
| | | u.job_phone, |
| | | u.phonenumber, u.status,u.id_card, |
| | |
| | | resultMap="SysUserResult"> |
| | | select distinct u.user_id, u.dept_id, u.hosp_info, u.dept_info,u.searchscope, u.user_name, u.user_type, |
| | | u.nick_name, |
| | | u.campusid, |
| | | u.email, |
| | | u.his_user_id, |
| | | u.title, |
| | |
| | | <if test="orgid != null and orgid != ''">orgid,</if> |
| | | <if test="deptCode != null and deptCode != ''">dept_code,</if> |
| | | <if test="deptName != null and deptName != ''">dept_name,</if> |
| | | <if test="campusid != null and campusid != ''">campusid,</if> |
| | | create_time |
| | | )values( |
| | | <if test="userId != null and userId != ''">#{userId},</if> |
| | |
| | | <if test="orgid != null and orgid != ''">#{orgid},</if> |
| | | <if test="deptCode != null and deptCode != ''">#{deptCode},</if> |
| | | <if test="deptName != null and deptName != ''">#{deptName},</if> |
| | | <if test="campusid != null and campusid != ''">#{campusid},</if> |
| | | sysdate() |
| | | ) |
| | | </insert> |
| | |
| | | </if> |
| | | <if test="deptCode != null and deptCode != ''">dept_code=#{deptCode},</if> |
| | | <if test="deptName != null and deptName != ''">dept_name=#{deptName},</if> |
| | | <if test="campusid != null and campusid != ''">campusid=#{campusid},</if> |
| | | update_time = sysdate() |
| | | </set> |
| | | where user_id = #{userId} |
| | |
| | | private String orgid; |
| | | |
| | | /** |
| | | * æºæID |
| | | */ |
| | | @ApiModelProperty("é¢åº") |
| | | @Excel(name = " é¢åº ") |
| | | private String campusid; |
| | | |
| | | /** |
| | | * 微信openid |
| | | */ |
| | | @ApiModelProperty("微信openid") |
| | |
| | | private String guid; |
| | | |
| | | /** |
| | | * é¢åº |
| | | */ |
| | | @ApiModelProperty("é¢åº") |
| | | private String campusid; |
| | | |
| | | /** |
| | | * GUID |
| | | */ |
| | | @ApiModelProperty("åºé¢è¯æ") |
| | |
| | | */ |
| | | @ApiModelProperty("åºå
¥é¢æ è¯ï¼0å
¥é¢ 1åºé¢ ") |
| | | private Integer cry; |
| | | |
| | | /** |
| | | * æºæID |
| | | */ |
| | | @ApiModelProperty("é¢åº") |
| | | @Excel(name = " é¢åº ") |
| | | private String campusid; |
| | | } |
| | |
| | | @Excel(name = "主è¦ç
§æ¤äººå¹´é¾") |
| | | private String casePersonAge; |
| | | |
| | | /** |
| | | * æºæID |
| | | */ |
| | | @ApiModelProperty("é¢åº") |
| | | @Excel(name = " é¢åº ") |
| | | private String campusid; |
| | | } |
| | |
| | | |
| | | @ApiModelProperty(value = "æåç»ææ¶é´") |
| | | private String lastEndTime; |
| | | |
| | | /** |
| | | * æºæID |
| | | */ |
| | | @ApiModelProperty("é¢åº") |
| | | @Excel(name = " é¢åº ") |
| | | private String campusid; |
| | | } |
| | |
| | | @ApiModelProperty("ç»ç®¡å»ç") |
| | | @Excel(name = " ç»ç®¡å»ç ") |
| | | private String managementDoctorCode; |
| | | |
| | | /** |
| | | * æºæID |
| | | */ |
| | | @ApiModelProperty("é¢åº") |
| | | @Excel(name = " é¢åº ") |
| | | private String campusid; |
| | | } |
| | | |
| | |
| | | @ApiModelProperty(value = "æåç»ææ¶é´") |
| | | private String lastEndTime; |
| | | |
| | | /** |
| | | * æºæID |
| | | */ |
| | | @ApiModelProperty("é¢åº") |
| | | @Excel(name = " é¢åº ") |
| | | private String campusid; |
| | | |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.domain; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.ruoyi.common.annotation.Excel; |
| | | import com.ruoyi.common.core.domain.BaseEntity; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * æ£è
é¨è¯è®°å½ï¼è¿æ¸¡ï¼å¯¹è±¡ pat_med_outhosp_provisional |
| | | * |
| | | * @author ls |
| | | * @date 2025-11-04 |
| | | */ |
| | | @Data |
| | | @ApiModel("æ£è
é¨è¯è®°å½ï¼è¿æ¸¡ï¼") |
| | | public class PatMedOuthospProvisional extends BaseEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * èªå¢ID |
| | | */ |
| | | @ApiModelProperty("èªå¢ID") |
| | | //æ°æ®åºèªå¢æ¹æ@TableId(type = IdType.AUTO) |
| | | private Long id; |
| | | |
| | | /** |
| | | * é¨è¯ç¼å· |
| | | */ |
| | | @ApiModelProperty("é¨è¯ç¼å·") |
| | | @Excel(name = "é¨è¯ç¼å·") |
| | | private String outhospno; |
| | | |
| | | /** |
| | | * æµæ°´å· |
| | | */ |
| | | @ApiModelProperty("æµæ°´å·") |
| | | @Excel(name = "æµæ°´å·") |
| | | private String serialnum; |
| | | |
| | | /** |
| | | * æ£è
æ¡£æ¡ID |
| | | */ |
| | | @ApiModelProperty("æ£è
æ¡£æ¡ID") |
| | | @Excel(name = "æ£è
æ¡£æ¡ID") |
| | | private Long patid; |
| | | |
| | | /** |
| | | * ç
人å§å |
| | | */ |
| | | @ApiModelProperty("ç
人å§å") |
| | | @Excel(name = "ç
人å§å") |
| | | private String patname; |
| | | |
| | | /** |
| | | * æ£è
æ¡£æ¡ç¼å· |
| | | */ |
| | | @ApiModelProperty("æ£è
æ¡£æ¡ç¼å·") |
| | | @Excel(name = "æ£è
æ¡£æ¡ç¼å·") |
| | | private String patno; |
| | | |
| | | /** |
| | | * å»é¢åç§° |
| | | */ |
| | | @ApiModelProperty("å»é¢åç§°") |
| | | @Excel(name = "å»é¢åç§°") |
| | | private String hospitalname; |
| | | |
| | | /** |
| | | * å»é¢ç¼å· |
| | | */ |
| | | @ApiModelProperty("å»é¢ç¼å·") |
| | | @Excel(name = "å»é¢ç¼å·") |
| | | private String hospitalcode; |
| | | |
| | | /** |
| | | * è¯æICDå¼ |
| | | */ |
| | | @ApiModelProperty("è¯æICDå¼") |
| | | @Excel(name = "è¯æICDå¼") |
| | | private String icd10code; |
| | | |
| | | /** |
| | | * è¯æåç§° |
| | | */ |
| | | @ApiModelProperty("è¯æåç§°") |
| | | @Excel(name = "è¯æåç§°") |
| | | private String diagname; |
| | | |
| | | /** |
| | | * ç§å®¤ID |
| | | */ |
| | | @ApiModelProperty("ç§å®¤ID") |
| | | @Excel(name = "ç§å®¤ID") |
| | | private Long deptid; |
| | | |
| | | /** |
| | | * ç§å®¤ä»£ç |
| | | */ |
| | | @ApiModelProperty("ç§å®¤ä»£ç ") |
| | | @Excel(name = "ç§å®¤ä»£ç ") |
| | | private String deptcode; |
| | | |
| | | /** |
| | | * ç§å®¤åç§° |
| | | */ |
| | | @ApiModelProperty("ç§å®¤åç§°") |
| | | @Excel(name = "ç§å®¤åç§°") |
| | | private String deptname; |
| | | |
| | | /** |
| | | * å»çå·¥å· |
| | | */ |
| | | @ApiModelProperty("å»çå·¥å·") |
| | | @Excel(name = "å»çå·¥å·") |
| | | private String drcode; |
| | | |
| | | /** |
| | | * å»çåç§° |
| | | */ |
| | | @ApiModelProperty("å»çåç§°") |
| | | @Excel(name = "å»çåç§°") |
| | | private String drname; |
| | | |
| | | /** |
| | | * å°±è¯æ¥æ |
| | | */ |
| | | @ApiModelProperty("å°±è¯æ¥æ") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @Excel(name = "å°±è¯æ¥æ", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") |
| | | private Date admitdate; |
| | | |
| | | /** |
| | | * å»é¢æºæID |
| | | */ |
| | | @ApiModelProperty("å»é¢æºæID") |
| | | @Excel(name = "å»é¢æºæID") |
| | | private String orgid; |
| | | |
| | | /** |
| | | * å 餿 å¿ï¼0ï¼æªå é¤ 1ï¼å·²å é¤ï¼ |
| | | */ |
| | | @ApiModelProperty("å 餿 å¿ï¼0ï¼æªå é¤ 1ï¼å·²å é¤ï¼") |
| | | private String delFlag; |
| | | |
| | | /** |
| | | * ä¸ä¼ æ å¿ï¼0ï¼æªä¸ä¼ 1ï¼å·²ä¸ä¼ ï¼ |
| | | */ |
| | | @ApiModelProperty("ä¸ä¼ æ å¿ï¼0ï¼æªä¸ä¼ 1ï¼å·²ä¸ä¼ ï¼") |
| | | @Excel(name = "ä¸ä¼ æ å¿", readConverterExp = "0=ï¼æªä¸ä¼ ,1=ï¼å·²ä¸ä¼ ") |
| | | private Long isupload; |
| | | |
| | | /** |
| | | * ä¸ä¼ æ¶é´ |
| | | */ |
| | | @ApiModelProperty("ä¸ä¼ æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @Excel(name = "ä¸ä¼ æ¶é´", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") |
| | | private Date uploadTime; |
| | | |
| | | /** |
| | | * æ¯å¦çææ¹æ¡ç¶æ;0æªçæ 1çæå°±è¯ 9æ å¹é
æ¹æ¡ |
| | | */ |
| | | @ApiModelProperty("æ¯å¦çææ¹æ¡ç¶æ;0æªçæ 1çæå°±è¯ 9æ å¹é
æ¹æ¡") |
| | | @Excel(name = "æ¯å¦çææ¹æ¡ç¶æ;0æªçæ 1çæå°±è¯ 9æ å¹é
æ¹æ¡") |
| | | private Long schemestatus; |
| | | |
| | | /** |
| | | * æ¹æ¡ç¶ææä½æ¶é´ |
| | | */ |
| | | @ApiModelProperty("æ¹æ¡ç¶ææä½æ¶é´") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @Excel(name = "æ¹æ¡ç¶ææä½æ¶é´", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") |
| | | private Date schemetime; |
| | | |
| | | /** |
| | | * ç°ç
å² |
| | | */ |
| | | @ApiModelProperty("ç°ç
å²") |
| | | @Excel(name = "ç°ç
å²") |
| | | private String hpi; |
| | | |
| | | /** |
| | | * 主述 |
| | | */ |
| | | @ApiModelProperty("主述") |
| | | @Excel(name = "主述") |
| | | private String mainsuit; |
| | | |
| | | /** |
| | | * ç¶ID |
| | | */ |
| | | @ApiModelProperty("ç¶ID") |
| | | @Excel(name = "ç¶ID") |
| | | private Long pid; |
| | | |
| | | /** |
| | | * GUID |
| | | */ |
| | | @ApiModelProperty("GUID") |
| | | @Excel(name = "GUID") |
| | | private String guid; |
| | | |
| | | /** |
| | | * ç¶GUID |
| | | */ |
| | | @ApiModelProperty("ç¶GUID") |
| | | @Excel(name = "ç¶GUID") |
| | | private String pguid; |
| | | |
| | | /** |
| | | * é¢åºç¼å· |
| | | */ |
| | | @ApiModelProperty("é¢åºç¼å·") |
| | | @Excel(name = "é¢åºç¼å·") |
| | | private String hospitaldistrictcode; |
| | | |
| | | /** |
| | | * é¢åºåç§° |
| | | */ |
| | | @ApiModelProperty("é¢åºåç§°") |
| | | @Excel(name = "é¢åºåç§°") |
| | | private String hospitaldistrictname; |
| | | |
| | | /** |
| | | * ç¾ç
é¿æä»»å¡ï¼æ¯å¦å¤çï¼0æªå¤ç 1å¤çæå 2å¤ç失败 |
| | | */ |
| | | @ApiModelProperty("ç¾ç
é¿æä»»å¡ï¼æ¯å¦å¤çï¼0æªå¤ç 1å¤çæå 2å¤ç失败") |
| | | @Excel(name = "ç¾ç
é¿æä»»å¡ï¼æ¯å¦å¤çï¼0æªå¤ç 1å¤çæå 2å¤ç失败") |
| | | private String diagcheckFlag; |
| | | |
| | | /** |
| | | * éè®¿æ¥æ |
| | | */ |
| | | @ApiModelProperty("éè®¿æ¥æ") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @Excel(name = "éè®¿æ¥æ", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") |
| | | private Date fudate; |
| | | |
| | | /** |
| | | * é访æ è¯ |
| | | */ |
| | | @ApiModelProperty("é访æ è¯") |
| | | @Excel(name = "é访æ è¯") |
| | | private String fuflag; |
| | | |
| | | /** |
| | | * é¢åº |
| | | */ |
| | | @ApiModelProperty("é¢åº") |
| | | @Excel(name = "é¢åº") |
| | | private String campusid; |
| | | |
| | | } |
| | | |
| | |
| | | package com.smartor.domain; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | |
| | | @ApiModelProperty(value = "æºæID æºæå¯ä¸ç¼å·") |
| | | private String orgId; |
| | | |
| | | @ApiModelProperty(value = "æºæID æºæå¯ä¸ç¼å·") |
| | | private String campusId; |
| | | |
| | | @ApiModelProperty(value = "è¯çè®°å½id æ£è
æ¯æ¬¡å°±è¯é½ä¸ç¸å") |
| | | private Long healthcareRecordId; |
| | | |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.mapper; |
| | | |
| | | import com.smartor.domain.PatMedOuthospProvisional; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æ£è
é¨è¯è®°å½ï¼è¿æ¸¡ï¼Mapperæ¥å£ |
| | | * |
| | | * @author ls |
| | | * @date 2025-11-04 |
| | | */ |
| | | @Mapper |
| | | public interface PatMedOuthospProvisionalMapper |
| | | { |
| | | /** |
| | | * æ¥è¯¢æ£è
é¨è¯è®°å½ï¼è¿æ¸¡ï¼ |
| | | * |
| | | * @param id æ£è
é¨è¯è®°å½ï¼è¿æ¸¡ï¼ä¸»é® |
| | | * @return æ£è
é¨è¯è®°å½ï¼è¿æ¸¡ï¼ |
| | | */ |
| | | public PatMedOuthospProvisional selectPatMedOuthospProvisionalById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢æ£è
é¨è¯è®°å½ï¼è¿æ¸¡ï¼å表 |
| | | * |
| | | * @param patMedOuthospProvisional æ£è
é¨è¯è®°å½ï¼è¿æ¸¡ï¼ |
| | | * @return æ£è
é¨è¯è®°å½ï¼è¿æ¸¡ï¼éå |
| | | */ |
| | | public List<PatMedOuthospProvisional> selectPatMedOuthospProvisionalList(PatMedOuthospProvisional patMedOuthospProvisional); |
| | | |
| | | /** |
| | | * æ°å¢æ£è
é¨è¯è®°å½ï¼è¿æ¸¡ï¼ |
| | | * |
| | | * @param patMedOuthospProvisional æ£è
é¨è¯è®°å½ï¼è¿æ¸¡ï¼ |
| | | * @return ç»æ |
| | | */ |
| | | public int insertPatMedOuthospProvisional(PatMedOuthospProvisional patMedOuthospProvisional); |
| | | |
| | | /** |
| | | * ä¿®æ¹æ£è
é¨è¯è®°å½ï¼è¿æ¸¡ï¼ |
| | | * |
| | | * @param patMedOuthospProvisional æ£è
é¨è¯è®°å½ï¼è¿æ¸¡ï¼ |
| | | * @return ç»æ |
| | | */ |
| | | public int updatePatMedOuthospProvisional(PatMedOuthospProvisional patMedOuthospProvisional); |
| | | |
| | | /** |
| | | * å 餿£è
é¨è¯è®°å½ï¼è¿æ¸¡ï¼ |
| | | * |
| | | * @param id æ£è
é¨è¯è®°å½ï¼è¿æ¸¡ï¼ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deletePatMedOuthospProvisionalById(Long id); |
| | | |
| | | /** |
| | | * æ¹éå 餿£è
é¨è¯è®°å½ï¼è¿æ¸¡ï¼ |
| | | * |
| | | * @param ids éè¦å é¤çæ°æ®ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deletePatMedOuthospProvisionalByIds(Long[] ids); |
| | | } |
| | |
| | | * @author ruoyi |
| | | */ |
| | | @Mapper |
| | | public interface SysUserRole2Mapper |
| | | { |
| | | public interface SysUserRole2Mapper { |
| | | /** |
| | | * éè¿ç¨æ·IDå é¤ç¨æ·åè§è²å
³è |
| | | * |
| | |
| | | */ |
| | | public int countUserRoleByRoleId(Long roleId); |
| | | |
| | | public SysUserRole selectUserRoleByRoleIdAndUserId(@Param("roleId") Long roleId, @Param("userId") Long userId); |
| | | |
| | | /** |
| | | * æ¹éæ°å¢ç¨æ·è§è²ä¿¡æ¯ |
| | | * |
| | |
| | | /** |
| | | * æ¹éåæ¶ææç¨æ·è§è² |
| | | * |
| | | * @param roleId è§è²ID |
| | | * @param roleId è§è²ID |
| | | * @param userIds éè¦å é¤çç¨æ·æ°æ®ID |
| | | * @return ç»æ |
| | | */ |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service; |
| | | |
| | | import com.smartor.domain.PatMedOuthospProvisional; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * æ£è
é¨è¯è®°å½ï¼è¿æ¸¡ï¼Serviceæ¥å£ |
| | | * |
| | | * @author ls |
| | | * @date 2025-11-04 |
| | | */ |
| | | public interface IPatMedOuthospProvisionalService |
| | | { |
| | | /** |
| | | * æ¥è¯¢æ£è
é¨è¯è®°å½ï¼è¿æ¸¡ï¼ |
| | | * |
| | | * @param id æ£è
é¨è¯è®°å½ï¼è¿æ¸¡ï¼ä¸»é® |
| | | * @return æ£è
é¨è¯è®°å½ï¼è¿æ¸¡ï¼ |
| | | */ |
| | | public PatMedOuthospProvisional selectPatMedOuthospProvisionalById(Long id); |
| | | |
| | | /** |
| | | * æ¥è¯¢æ£è
é¨è¯è®°å½ï¼è¿æ¸¡ï¼å表 |
| | | * |
| | | * @param patMedOuthospProvisional æ£è
é¨è¯è®°å½ï¼è¿æ¸¡ï¼ |
| | | * @return æ£è
é¨è¯è®°å½ï¼è¿æ¸¡ï¼éå |
| | | */ |
| | | public List<PatMedOuthospProvisional> selectPatMedOuthospProvisionalList(PatMedOuthospProvisional patMedOuthospProvisional); |
| | | |
| | | /** |
| | | * æ°å¢æ£è
é¨è¯è®°å½ï¼è¿æ¸¡ï¼ |
| | | * |
| | | * @param patMedOuthospProvisional æ£è
é¨è¯è®°å½ï¼è¿æ¸¡ï¼ |
| | | * @return ç»æ |
| | | */ |
| | | public int insertPatMedOuthospProvisional(PatMedOuthospProvisional patMedOuthospProvisional); |
| | | |
| | | /** |
| | | * ä¿®æ¹æ£è
é¨è¯è®°å½ï¼è¿æ¸¡ï¼ |
| | | * |
| | | * @param patMedOuthospProvisional æ£è
é¨è¯è®°å½ï¼è¿æ¸¡ï¼ |
| | | * @return ç»æ |
| | | */ |
| | | public int updatePatMedOuthospProvisional(PatMedOuthospProvisional patMedOuthospProvisional); |
| | | |
| | | /** |
| | | * æ¹éå 餿£è
é¨è¯è®°å½ï¼è¿æ¸¡ï¼ |
| | | * |
| | | * @param ids éè¦å é¤çæ£è
é¨è¯è®°å½ï¼è¿æ¸¡ï¼ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deletePatMedOuthospProvisionalByIds(Long[] ids); |
| | | |
| | | /** |
| | | * å 餿£è
é¨è¯è®°å½ï¼è¿æ¸¡ï¼ä¿¡æ¯ |
| | | * |
| | | * @param id æ£è
é¨è¯è®°å½ï¼è¿æ¸¡ï¼ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deletePatMedOuthospProvisionalById(Long id); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service.impl; |
| | | |
| | | import java.util.List; |
| | | import com.ruoyi.common.utils.DateUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import com.smartor.mapper.PatMedOuthospProvisionalMapper; |
| | | import com.smartor.domain.PatMedOuthospProvisional; |
| | | import com.smartor.service.IPatMedOuthospProvisionalService; |
| | | |
| | | /** |
| | | * æ£è
é¨è¯è®°å½ï¼è¿æ¸¡ï¼Serviceä¸å¡å±å¤ç |
| | | * |
| | | * @author ls |
| | | * @date 2025-11-04 |
| | | */ |
| | | @Service |
| | | public class PatMedOuthospProvisionalServiceImpl implements IPatMedOuthospProvisionalService |
| | | { |
| | | @Autowired |
| | | private PatMedOuthospProvisionalMapper patMedOuthospProvisionalMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢æ£è
é¨è¯è®°å½ï¼è¿æ¸¡ï¼ |
| | | * |
| | | * @param id æ£è
é¨è¯è®°å½ï¼è¿æ¸¡ï¼ä¸»é® |
| | | * @return æ£è
é¨è¯è®°å½ï¼è¿æ¸¡ï¼ |
| | | */ |
| | | @Override |
| | | public PatMedOuthospProvisional selectPatMedOuthospProvisionalById(Long id) |
| | | { |
| | | return patMedOuthospProvisionalMapper.selectPatMedOuthospProvisionalById(id); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢æ£è
é¨è¯è®°å½ï¼è¿æ¸¡ï¼å表 |
| | | * |
| | | * @param patMedOuthospProvisional æ£è
é¨è¯è®°å½ï¼è¿æ¸¡ï¼ |
| | | * @return æ£è
é¨è¯è®°å½ï¼è¿æ¸¡ï¼ |
| | | */ |
| | | @Override |
| | | public List<PatMedOuthospProvisional> selectPatMedOuthospProvisionalList(PatMedOuthospProvisional patMedOuthospProvisional) |
| | | { |
| | | return patMedOuthospProvisionalMapper.selectPatMedOuthospProvisionalList(patMedOuthospProvisional); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢æ£è
é¨è¯è®°å½ï¼è¿æ¸¡ï¼ |
| | | * |
| | | * @param patMedOuthospProvisional æ£è
é¨è¯è®°å½ï¼è¿æ¸¡ï¼ |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertPatMedOuthospProvisional(PatMedOuthospProvisional patMedOuthospProvisional) |
| | | { |
| | | patMedOuthospProvisional.setCreateTime(DateUtils.getNowDate()); |
| | | return patMedOuthospProvisionalMapper.insertPatMedOuthospProvisional(patMedOuthospProvisional); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹æ£è
é¨è¯è®°å½ï¼è¿æ¸¡ï¼ |
| | | * |
| | | * @param patMedOuthospProvisional æ£è
é¨è¯è®°å½ï¼è¿æ¸¡ï¼ |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updatePatMedOuthospProvisional(PatMedOuthospProvisional patMedOuthospProvisional) |
| | | { |
| | | patMedOuthospProvisional.setUpdateTime(DateUtils.getNowDate()); |
| | | return patMedOuthospProvisionalMapper.updatePatMedOuthospProvisional(patMedOuthospProvisional); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå 餿£è
é¨è¯è®°å½ï¼è¿æ¸¡ï¼ |
| | | * |
| | | * @param ids éè¦å é¤çæ£è
é¨è¯è®°å½ï¼è¿æ¸¡ï¼ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deletePatMedOuthospProvisionalByIds(Long[] ids) |
| | | { |
| | | return patMedOuthospProvisionalMapper.deletePatMedOuthospProvisionalByIds(ids); |
| | | } |
| | | |
| | | /** |
| | | * å 餿£è
é¨è¯è®°å½ï¼è¿æ¸¡ï¼ä¿¡æ¯ |
| | | * |
| | | * @param id æ£è
é¨è¯è®°å½ï¼è¿æ¸¡ï¼ä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deletePatMedOuthospProvisionalById(Long id) |
| | | { |
| | | return patMedOuthospProvisionalMapper.deletePatMedOuthospProvisionalById(id); |
| | | } |
| | | } |
| | |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | | import com.ruoyi.common.core.domain.entity.SysUserDept; |
| | | import com.ruoyi.common.core.domain.entity.SysUserRole; |
| | | import com.ruoyi.common.utils.DtoConversionUtils; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.ruoyi.common.utils.http.HttpUtils; |
| | | import com.smartor.domain.*; |
| | |
| | | import com.sun.org.apache.bcel.internal.generic.NEW; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.collections4.CollectionUtils; |
| | | import org.apache.commons.lang3.ObjectUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder; |
| | |
| | | log.info("-----------dataListæ¥å£ååºç»æï¼{}", dataList.size()); |
| | | for (Map<String, Object> dataItem : dataList) { |
| | | SysDept sysDept = new SysDept(); |
| | | sysDept.setOrgid("" + serviceSLTDDeptReqVO.getCampusIds().get(0)); |
| | | sysDept.setOrgid("" + getLongValue(dataItem, "orgId")); |
| | | sysDept.setCampusid("" + getLongValue(dataItem, "campusId")); |
| | | sysDept.setHisDeptId("" + getLongValue(dataItem, "deptId")); |
| | | sysDept.setHisParentId(getStringValue(dataItem, "parentDeptId")); |
| | | //éè¿hisçç¶ç§å®¤ID廿¾å°ç§å®¤ID,å¡«å
parentId |
| | |
| | | sysUser.setUpdateBy("admin"); |
| | | sysUser.setCreateBy("admin"); |
| | | sysUser.setCreateBy("admin"); |
| | | sysUser.setOrgid(reqVO.getCampusId().toString()); |
| | | sysUser.setOrgid("" + getLongValue(dataItem, "orgId")); |
| | | // sysUser.setCampusid("" + getLongValue(dataItem, "cmpusId")); |
| | | BCryptPasswordEncoder passwordEncoder = new BCryptPasswordEncoder(); |
| | | sysUser.setPassword(passwordEncoder.encode(userPwd)); |
| | | |
| | | sysUser2Mapper.insertUser(sysUser); |
| | | SysUser sysUser1 = sysUser2Mapper.selectUserByUserName(sysUser.getUserName()); |
| | | if (ObjectUtils.isNotEmpty(sysUser1)) { |
| | | sysUser.setUserId(sysUser1.getUserId()); |
| | | sysUser2Mapper.updateUser(sysUser); |
| | | } else { |
| | | sysUser2Mapper.insertUser(sysUser); |
| | | } |
| | | |
| | | // å¤çç¨æ·ä¸é¨é¨çå
³ç³» |
| | | List personnelDepts = (List<?>) dataItem.get("personnelDepts"); |
| | | if (CollectionUtils.isEmpty(personnelDepts)) { |
| | | List businessDepts = (List<?>) dataItem.get("businessDepts"); |
| | | if (CollectionUtils.isEmpty(businessDepts)) { |
| | | continue; |
| | | } |
| | | |
| | | List<List<String>> deptInfoList = new ArrayList<>(); |
| | | List<List<String>> hospInfoList = new ArrayList<>(); |
| | | for (Object personnelDept : personnelDepts) { |
| | | if (personnelDept instanceof Map) { |
| | | Map<String, Object> personnelDeptMap = (Map<String, Object>) personnelDept; |
| | | log.info("------businessDeptsæ¯å¦æå¼ï¼{}", businessDepts.size()); |
| | | for (Object businessDept : businessDepts) { |
| | | if (businessDept instanceof Map) { |
| | | Map<String, Object> businessDeptMap = (Map<String, Object>) businessDept; |
| | | log.info("------businessDeptMapæ¯å¦æå¼ï¼{}", businessDeptMap); |
| | | // Long hisDeptId = (Long) personnelDeptMap.get("deptId"); |
| | | String hisDeptId = getStringValue(personnelDeptMap, "deptId"); |
| | | String hisDeptId = getStringValue(businessDeptMap, "deptId"); |
| | | log.info("------hisDeptIdæ¯å¦æå¼ï¼{}, reqVO.getOrgId()çå¼ä¸º:{}", hisDeptId, reqVO.getCampusId()); |
| | | //å¨è¿éï¼hisDeptIdå°±æ¯deptCode |
| | | SysDept sysDept = sysDeptMapper.selectDeptByCode(hisDeptId, reqVO.getCampusId().toString()); |
| | | SysDept sysDept = sysDeptMapper.selectDeptByCode(hisDeptId, reqVO.getOrgId()); |
| | | log.info("------hisDeptIdæ¯å¦æå¼ï¼{}, reqVO.getCampusId()çå¼ä¸º:{}", hisDeptId, reqVO.getCampusId()); |
| | | if (Objects.isNull(sysDept)) continue; |
| | | SysUserDept sysUserDept = new SysUserDept(); |
| | | sysUserDept.setUserId(sysUser.getUserId()); |
| | |
| | | sysUserDept.setOrgid(sysDept.getOrgid()); |
| | | sysUserDept.setCreateTime(new Date()); |
| | | sysUserDept.setDelFlag(0L); |
| | | sysUserDeptMapper.insertSysUserDept(sysUserDept); |
| | | |
| | | //夿ä¸ä¸æ¯ä¸æ¯å·²ç»åå¨äº |
| | | if (ObjectUtils.isNotEmpty(sysUser1) && ObjectUtils.isNotEmpty(sysDept)) { |
| | | SysUserDept sud = new SysUserDept(); |
| | | sud.setUserId(sysUser1.getUserId()); |
| | | sud.setDeptId(sysDept.getDeptId()); |
| | | List<SysUserDept> sysUserDepts = sysUserDeptMapper.selectSysUserDeptList(sud); |
| | | if (CollectionUtils.isNotEmpty(sysUserDepts)) { |
| | | sysUserDept.setId(sysUserDepts.get(0).getId()); |
| | | sysUserDeptMapper.updateSysUserDept(sysUserDept); |
| | | } |
| | | } else { |
| | | //ä¸åå¨ï¼åæ°å¢ |
| | | sysUserDeptMapper.insertSysUserDept(sysUserDept); |
| | | } |
| | | if (StringUtils.isNotEmpty(sysDept.getDeptType()) && sysDept.getDeptType().equals("1")) { |
| | | hospInfoList.add(Arrays.asList(sysDept.getDeptCode())); |
| | | } else if (StringUtils.isNotEmpty(sysDept.getDeptType()) && sysDept.getDeptType().equals("2")) { |
| | |
| | | sur.setUserId(sysUser.getUserId()); |
| | | sur.setRoleId(3L); |
| | | sur.setOrgid(sysUser.getOrgid()); |
| | | |
| | | //å
æ¥è¯¢ä¸ä¸ï¼æ¯å¦åå¨ |
| | | SysUserRole sysUserRole = sysUserRoleMapper.selectUserRoleByRoleIdAndUserId(sysUser.getUserId(), 3L); |
| | | if (ObjectUtils.isNotEmpty(sysUserRole)) continue; |
| | | |
| | | userRoleList.add(sur); |
| | | sysUserRoleMapper.batchUserRole(userRoleList); |
| | | |
| | | } |
| | | |
| | | return true; |
| | |
| | | if (Objects.isNull(dto)) continue; |
| | | PatArchive patArchive = processPatientArchive(dto, orgid); |
| | | PatMedOuthosp patMedOuthosp = buildPatMedOuthosp(dto, patArchive, orgid); |
| | | //æ¥è¯¢å½åæ°å¢ç鍿¥è¯æ°æ®ï¼æ¯å¦å¨è¿æ¸¡è¡¨ä¸æ¯å¦åå¨ï¼å¦æåå¨ï¼å°±ä¸å¾é¨æ¥è¯è¡¨éæ°å¢äº |
| | | PatMedOuthospProvisional pmop = DtoConversionUtils.sourceToTarget(patMedOuthosp, PatMedOuthospProvisional.class); |
| | | |
| | | |
| | | patMedOuthospMapper.insertPatMedOuthosp(patMedOuthosp); |
| | | } |
| | | return true; |
| | |
| | | patMedOuthosp.setMainsuit(dto.getDiagnosisName()); |
| | | patMedOuthosp.setHpi(null); |
| | | patMedOuthosp.setCreateTime(new Date()); |
| | | patMedOuthosp.setOrgid("" + orgid); |
| | | patMedOuthosp.setOrgid(dto.getOrgId()); |
| | | patMedOuthosp.setCampusid(dto.getCampusId()); |
| | | return patMedOuthosp; |
| | | } |
| | | |
| | |
| | | PatMedInhosp queryInhosp = new PatMedInhosp(); |
| | | queryInhosp.setPatno(patArchive.getPatientno()); |
| | | queryInhosp.setSerialnum(patMedInhosp.getSerialnum()); |
| | | queryInhosp.setOrgid("" + orgid); |
| | | queryInhosp.setOrgid(dto.getOrgId()); |
| | | queryInhosp.setCampusid(dto.getCampusId()); |
| | | queryInhosp.setInhospstate(cry); |
| | | log.info("----------------è¿éçå
¥å为ï¼{}", queryInhosp); |
| | | List<PatMedInhosp> existingInhosps = patMedInhospService.selectPatMedInhospList(queryInhosp); |
| | | |
| | | if (cry.equals("0") && CollectionUtils.isNotEmpty(existingInhosps)) { |
| | | //æ°å¢è¿çå
¥é¢æ°æ®ï¼ä¸åå¤ç |
| | | return; |
| | | } |
| | | |
| | | log.info("----------------è¿éçè¿å为ï¼{}", existingInhosps); |
| | | if (CollectionUtils.isNotEmpty(existingInhosps)) { |
| | |
| | | patMedInhosp.setDrcode("" + dto.getDoctorId()); |
| | | patMedInhosp.setSchemestatus("0".equals(cry) ? 1L : 2L); |
| | | patMedInhosp.setDelFlag("0"); |
| | | patMedInhosp.setOrgid("" + orgid); |
| | | patMedInhosp.setOrgid(dto.getOrgId()); |
| | | patMedInhosp.setCampusid(dto.getCampusId()); |
| | | return patMedInhosp; |
| | | } |
| | | |
| | |
| | | patArchive.setDelFlag("0"); |
| | | patArchive.setCreateTime(new Date()); |
| | | patArchive.setUpdateTime(new Date()); |
| | | patArchive.setOrgid("" + orgid); |
| | | patArchive.setOrgid("" + dto.getOrgId()); |
| | | patArchive.setCampusid(dto.getCampusId()); |
| | | return patArchive; |
| | | } |
| | | |
| | | private ServiceSLTDInhospResDTO convertToDTO(Map<String, Object> dataItem) { |
| | | ServiceSLTDInhospResDTO dto = new ServiceSLTDInhospResDTO(); |
| | | dto.setOrgId(getStringValue(dataItem, "orgId")); |
| | | dto.setCampusId(getStringValue(dataItem, "campusId")); |
| | | dto.setHealthcareRecordId(getLongValue(dataItem, "healthcareRecordId")); |
| | | dto.setHealthcareRecordNo(getStringValue(dataItem, "healthcareRecordNo")); |
| | | dto.setPatientId(getLongValue(dataItem, "patientId")); |
| | |
| | | return serviceSubtaskAnswerMapper.deleteServiceSubtaskAnswerById(id); |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public Integer saveQuestionAnswer(ServiceSubTaskAnswerReq serviceSubTaskAnswerReq, Long flag) { |
| | | Long tid = null; |
| | |
| | | serviceSubtask.setTaskid(serviceTask.getTaskid().longValue()); |
| | | serviceSubtask.setTemplatename(tempName); |
| | | serviceSubtask.setTemplateid(tempid); |
| | | serviceSubtask.setLibtemplateid(ObjectUtils.isEmpty(serviceTaskVO.getLibtemplateid()) ? null : Long.valueOf(serviceTaskVO.getLibtemplateid())); |
| | | serviceSubtask.setLibtemplatename(serviceTaskVO.getLibtemplatename()); |
| | | //æ°å¢ |
| | | if (CollectionUtils.isNotEmpty(serviceTaskVO.getPatTaskRelevances())) { |
| | | for (PatTaskRelevance patTaskRelevance : serviceTaskVO.getPatTaskRelevances()) { |
| | |
| | | if (CollectionUtils.isNotEmpty(serviceSubtaskList1)) serviceSubtaskList.addAll(serviceSubtaskList1); |
| | | } else { |
| | | if (CollectionUtils.isNotEmpty(serviceSubtaskList1)) serviceSubtaskList = serviceSubtaskList1; |
| | | } |
| | | if (CollectionUtils.isNotEmpty(serviceSubtaskList)) { |
| | | for (ServiceSubtask serviceSubtask : serviceSubtaskList) { |
| | | log.error("sfSendéè¦ç§»é¤çsubId为ï¼{}", serviceSubtask.getId().toString()); |
| | | serviceSubtaskMapper.deleteServiceSubtaskById(serviceSubtask.getId()); |
| | | redisCache.removeElementFromList("cache-exist", serviceSubtask.getId().toString()); |
| | | redisCache.removeElementFromList("cache-0", serviceSubtask.getId().toString()); |
| | | redisCache.removeElementFromList("cache-1", serviceSubtask.getId().toString()); |
| | | redisCache.removeElementFromList("cache-2", serviceSubtask.getId().toString()); |
| | | redisCache.removeElementFromList("cache-3", serviceSubtask.getId().toString()); |
| | | redisCache.removeElementFromList("cache-4", serviceSubtask.getId().toString()); |
| | | } |
| | | } |
| | | |
| | | if (serviceTaskVO.getLibtemplateid() != null) |
| | |
| | | if (CollectionUtils.isNotEmpty(serviceTaskVO.getPatTaskRelevances())) { |
| | | for (PatTaskRelevance patTaskRelevance : serviceTaskVO.getPatTaskRelevances()) { |
| | | ServiceSubtask serviceSubtask = DtoConversionUtils.sourceToTarget(serviceTaskVO, ServiceSubtask.class); |
| | | serviceSubtask.setLibtemplateid(ObjectUtils.isEmpty(serviceTaskVO.getLibtemplateid()) ? null : Long.valueOf(serviceTaskVO.getLibtemplateid())); |
| | | serviceSubtask.setLibtemplatename(serviceTaskVO.getLibtemplatename()); |
| | | serviceSubtask.setSendname(patTaskRelevance.getName()); |
| | | serviceSubtask.setAge(patTaskRelevance.getAge()); |
| | | serviceSubtask.setSfzh(patTaskRelevance.getSfzh()); |
| | |
| | | stringBuilder.append(patArchiveSrmVO.getName() + ",æ¨å¥½ï¼ä¸»ç®¡å»ç已为æ¨å®æä½é¢åæ£æ¥ï¼è¯·å½å¤©ç©ºè
¹å¹¶äº"); |
| | | } |
| | | |
| | | stringBuilder.append(timestamp + ",ä¹åæºå¸¦å»ä¿å¡æçµåå»ä¿å¡èº«ä»½è¯åæ¤æ¡çä¿¡å°1å·æ¥¼3楼åå
¥é¢åå¤ä¸å¿å
¥é¢ç»è®°çªå£ï¼åçæ£å¼ä½é¢æç»ï¼å®æåé¡¹æ£æ¥ååå°ç¸åºç
åºæ¤å£«ç«æ¥å°ã"); |
| | | stringBuilder.append(timestamp + "ä¹åæºå¸¦å»ä¿å¡æçµåå»ä¿å¡èº«ä»½è¯åæ¤æ¡çä¿¡å°1å·æ¥¼3楼åå
¥é¢åå¤ä¸å¿å
¥é¢ç»è®°çªå£ï¼åçæ£å¼ä½é¢æç»ï¼å®æåé¡¹æ£æ¥ååå°ç¸åºç
åºæ¤å£«ç«æ¥å°ã"); |
| | | stringBuilder.append("å
¥é¢åå¤ä¸å¿çµè¯ï¼89975977ãå
¥é¢åçé¡»ç¥:https://mp.weixin.qq.com/s/OCkotuRyQ8Ld2owFF0YErw"); |
| | | |
| | | JSONObject data = MessageSend.sendMsg(stringBuilder.toString(), "2", patArchiveSrmVO.getPhone(), LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyyMMddHHmmss"))); |
| | | String code = data.get("code").toString(); |
| | | if (StringUtils.isNotEmpty(code) && !code.equals("00000")) { |
| | | String data = MessageSend.sendMsg(stringBuilder.toString(), "2", patArchiveSrmVO.getPhone(), LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyyMMddHHmmss"))); |
| | | if (StringUtils.isNotEmpty(data) && data.contains("result=0")) { |
| | | sendError.add(patArchiveSrmVO); |
| | | } |
| | | } |
| | |
| | | <result property="guid" column="guid"/> |
| | | <result property="filterDrname" column="filter_drname"/> |
| | | <result property="filterDrcode" column="filter_drcode"/> |
| | | <result property="campusid" column="campusid"/> |
| | | </resultMap> |
| | | |
| | | |
| | |
| | | <result property="leaveicd10code" column="leaveicd10code"/> |
| | | <result property="filterDrname" column="filter_drname"/> |
| | | <result property="filterDrcode" column="filter_drcode"/> |
| | | <result property="campusid" column="campusid"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectPatArchiveVo"> |
| | |
| | | notrequired_flag, |
| | | notrequiredreason, |
| | | patientno, |
| | | campusid, |
| | | filter_drname, |
| | | filter_drcode, |
| | | patid_his, |
| | |
| | | <if test="casePersonAge != null ">and case_person_age = #{casePersonAge}</if> |
| | | <if test="filterDrname != null ">and filter_drname = #{filterDrname}</if> |
| | | <if test="filterDrcode != null ">and filter_drcode = #{filterDrcode}</if> |
| | | <if test="campusid != null ">and campusid = #{campusid}</if> |
| | | </where> |
| | | </select> |
| | | |
| | |
| | | a.age_unit, |
| | | a.age_unit2, |
| | | a.notrequired_flag, |
| | | a.campusid, |
| | | a.notrequiredreason, |
| | | a.patientno, |
| | | a.patid_his, |
| | |
| | | <if test="name != null and name != ''">and a.name like concat('%', #{name}, '%')</if> |
| | | <if test="idcardno != null and idcardno != ''">and idcardno = #{idcardno}</if> |
| | | <if test="telcode != null and telcode != ''">and telcode = #{telcode}</if> |
| | | <if test="campusid != null and campusid != ''">and campusid = #{campusid}</if> |
| | | <if test="tagIds != null and tagIds != ''">and c.tagid in |
| | | <foreach collection="tagIds" item="tagId" open="(" separator="," close=")"> |
| | | #{tagId} |
| | |
| | | <if test="casePersonAge != null ">case_person_age,</if> |
| | | <if test="filterDrname != null ">filter_drname,</if> |
| | | <if test="filterDrcode != null ">filter_drcode,</if> |
| | | <if test="campusid != null ">campusid,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="patientno != null">#{patientno},</if> |
| | |
| | | <if test="casePersonAge != null ">#{casePersonAge},</if> |
| | | <if test="filterDrname != null ">#{filterDrname},</if> |
| | | <if test="filterDrcode != null ">#{filterDrcode},</if> |
| | | <if test="campusid != null ">#{campusid},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | insert into |
| | | pat_archive(name,viptype,sex,idcardno,birthdate,place_of_residence,age,age2,sourcefrom,archivetime,archiveby,telcode,relativetelcode,idcardtype,orgid,openid,dduserid,update_by,update_time |
| | | ,create_by,create_time,isupload,upload_time,pattype,nation,birthplace,native_place,patientno,patid_his,sd_flag,age_unit,age_unit2,notrequired_flag,notrequiredreason,care_facilities,case_path, |
| | | degree_of_education,marital_status,income,medicare_type,care_person,case_person_age,filter_drname,filter_drcode) |
| | | degree_of_education,marital_status,income,medicare_type,care_person,case_person_age,filter_drname,filter_drcode,campusid) |
| | | values |
| | | <foreach item="item" index="index" collection="list" separator=","> |
| | | (#{item.name},#{item.viptype},#{item.sex},#{item.idcardno},#{item.birthdate},#{item.placeOfResidence},#{item.age},#{item.age2},#{item.sourcefrom},#{item.archivetime},#{item.archiveby} |
| | | ,#{item.telcode},#{item.archiveby},#{item.idcardtype},#{item.orgid},#{item.openid},#{item.dduserid},#{item.updateBy}, |
| | | #{item.updateTime},#{item.createBy},#{item.createTime},#{item.isupload},#{item.uploadTime},#{item.pattype},#{item.nation},#{item.birthplace},#{item.nativePlace},#{item.patientno}, |
| | | #{item.patidHis},#{item.sdFlag},#{item.ageUnit},#{item.ageUnit2},#{item.notrequiredFlag},#{item.notrequiredreason} |
| | | ,#{item.careFacilities},#{item.casePath},#{item.degreeOfEducation},#{item.maritalStatus},#{item.income},#{item.medicareType},#{item.carePerson},#{item.casePersonAge},#{item.filterDrname},#{item.filterDrcode}) |
| | | ,#{item.careFacilities},#{item.casePath},#{item.degreeOfEducation},#{item.maritalStatus},#{item.income},#{item.medicareType},#{item.carePerson},#{item.casePersonAge},#{item.filterDrname},#{item.filterDrcode},#{item.campusid}) |
| | | </foreach> |
| | | </insert> |
| | | |
| | |
| | | <if test="guid != null ">guid = #{guid},</if> |
| | | <if test="filterDrname != null ">filter_drname = #{filterDrname},</if> |
| | | <if test="filterDrcode != null ">filter_drcode = #{filterDrcode},</if> |
| | | <if test="campusid != null ">campusid = #{campusid},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | |
| | | a.pattype, |
| | | a.filter_drname, |
| | | a.filter_drcode, |
| | | a.campusid, |
| | | b.tagname AS tag, |
| | | b.tagid AS tagid |
| | | FROM |
| | |
| | | <if test="notrequiredFlag != null and notrequiredFlag != ''">and a.notrequired_flag = #{notrequiredFlag} |
| | | </if> |
| | | <if test="pid != null and pid != ''">and a.id = #{pid}</if> |
| | | <if test="campusid != null and campusid != ''">and a.campusid = #{campusid}</if> |
| | | <if test="telcode != null and telcode != ''">and a.telcode = #{telcode}</if> |
| | | <if test="tagIds != null and tagIds != ''">and b.tagid in |
| | | <foreach collection="tagIds" item="tagId" open="(" separator="," close=")"> |
| | |
| | | a.id, |
| | | a.age_unit, |
| | | a.age_unit2, |
| | | a.campusid, |
| | | a.inhospno, |
| | | a.notrequired_flag, |
| | | a.notrequiredreason, |
| | |
| | | <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> |
| | | <if test="campusid != null and campusid != ''">and a.campusid = #{campusid}</if> |
| | | <if test="telcode != null and telcode != ''">and a.telcode = #{telcode}</if> |
| | | <if test="notrequiredFlag != null and notrequiredFlag != ''">and a.notrequired_flag = #{notrequiredFlag} |
| | | </if> |
| | |
| | | a.age_unit, |
| | | a.age_unit2, |
| | | a.patid_his, |
| | | a.campusid, |
| | | a.sd_flag, |
| | | a.patientno, |
| | | a.notrequired_flag, |
| | |
| | | AND a.del_flag != 1 |
| | | and d.orgid = #{orgid} |
| | | <if test="pid != null and pid != ''">and a.id = #{pid}</if> |
| | | <if test="campusid != null and campusid != ''">and a.campusid = #{campusid}</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> |
| | | <if test="telcode != null and telcode != ''">and a.telcode = #{telcode}</if> |
| | |
| | | a.notrequiredreason, |
| | | a.patid_his, |
| | | a.sd_flag, |
| | | a.campusid, |
| | | a.patientno, |
| | | a.sex, |
| | | d.deptname, |
| | |
| | | AND a.del_flag != 1 |
| | | and d.orgid = #{orgid} |
| | | <if test="pid != null and pid != ''">and a.id = #{pid}</if> |
| | | <if test="campusid != null and campusid != ''">and a.campusid = #{campusid}</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> |
| | | <if test="telcode != null and telcode != ''">and a.telcode = #{telcode}</if> |
| | |
| | | a.age_unit, |
| | | a.age_unit2, |
| | | a.inhospno, |
| | | a.campusid, |
| | | a.notrequired_flag, |
| | | a.notrequiredreason, |
| | | a.patid_his, |
| | |
| | | <if test="drcode != null"> |
| | | AND d.drcode = #{drcode} |
| | | </if> |
| | | <if test="campusid != null"> |
| | | AND d.campusid = #{campusid} |
| | | </if> |
| | | <if test="allhosp != null and allhosp == 1 ">and d.endtime is null</if> |
| | | <if test="allhosp != null and allhosp == 4 ">and d.endtime is not null</if> |
| | | <if test="visitno != null and visitno != ''"> |
| | |
| | | a.age_unit2, |
| | | a.patid_his, |
| | | a.sd_flag, |
| | | a.campusid, |
| | | a.patientno, |
| | | a.notrequired_flag, |
| | | a.notrequiredreason, |
| | |
| | | AND a.del_flag != 1 |
| | | and d.orgid = #{orgid} |
| | | <if test="pid != null and pid != ''">and a.id = #{pid}</if> |
| | | <if test="campusid != null and campusid != ''">and a.campusid = #{campusid}</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> |
| | | <if test="telcode != null and telcode != ''">and a.telcode = #{telcode}</if> |
| | |
| | | select |
| | | a.idcardno, |
| | | a.id, |
| | | a.campusid, |
| | | a.age_unit, |
| | | a.age_unit2, |
| | | a.name, |
| | |
| | | AND a.del_flag != 1 |
| | | and d.orgid = #{orgid} |
| | | <if test="pid != null and pid != ''">and a.id = #{pid}</if> |
| | | <if test="campusid != null and campusid != ''">and a.campusid = #{campusid}</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> |
| | | <if test="telcode != null and telcode != ''">and a.telcode = #{telcode}</if> |
| | |
| | | <result property="fuspecialadvice" column="fuspecialadvice"/> |
| | | <result property="managementDoctor" column="management_doctor"/> |
| | | <result property="managementDoctorCode" column="management_doctor_code"/> |
| | | <result property="campusid" column="campusid"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectPatMedInhospVo"> |
| | | select inhospid, |
| | | patname, |
| | | campusid, |
| | | fuflag, |
| | | management_doctor, |
| | | management_doctor_code, |
| | |
| | | b.starttime, |
| | | b.endtime, |
| | | b.deptcode, |
| | | b.campusid, |
| | | b.deptname, |
| | | b.roomno, |
| | | b.bed_no, |
| | |
| | | <if test="cry != null and cry == 0 ">and b.endtime is null</if> |
| | | <if test="cry != null and cry == 1 ">and b.inhospstate=1</if> |
| | | <if test="inhospstate != null ">and b.inhospstate = #{inhospstate}</if> |
| | | <if test="campusid != null ">and b.campusid = #{campusid}</if> |
| | | <if test="schemestatus != null ">and b.schemestatus = #{schemestatus}</if> |
| | | <if test="outWayId != null ">and b.out_way_id = #{outWayId}</if> |
| | | <if test="outWayName != null ">and b.out_way_name = #{outWayName}</if> |
| | |
| | | b.management_doctor, |
| | | b.management_doctor_code, |
| | | b.out_way_id, |
| | | b.campusid, |
| | | b.out_way_name, |
| | | b.deptcheck_flag, |
| | | b.wardcheck_flag, |
| | |
| | | b.patname, |
| | | b.operator_id, |
| | | b.operator, |
| | | b.campusid, |
| | | b.remark, |
| | | b.out_way_id, |
| | | b.out_way_name, |
| | |
| | | <if test="nurseId != null ">and b.nurse_id = #{nurseId}</if> |
| | | <if test="nurseName != null ">and b.nurse_name = #{nurseName}</if> |
| | | <if test="patno != null ">and b.patno = #{patno}</if> |
| | | <if test="campusid != null ">and b.campusid = #{campusid}</if> |
| | | <if test="diagcheckFlag != null ">and b.diagcheck_flag = #{diagcheckFlag}</if> |
| | | <if test="deptcheckFlag != null ">and b.deptcheck_flag = #{deptcheckFlag}</if> |
| | | <if test="wardcheckFlag != null ">and b.wardcheck_flag = #{wardcheckFlag}</if> |
| | |
| | | <if test="fuspecialadvice != null ">fuspecialadvice,</if> |
| | | <if test="managementDoctor != null ">management_doctor,</if> |
| | | <if test="managementDoctorCode != null ">management_doctor_code,</if> |
| | | <if test="campusid != null ">campusid,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="serialnum != null">#{serialnum},</if> |
| | |
| | | <if test="fuspecialadvice != null ">#{fuspecialadvice},</if> |
| | | <if test="managementDoctor != null ">#{managementDoctor},</if> |
| | | <if test="managementDoctorCode != null ">#{managementDoctorCode},</if> |
| | | <if test="campusid != null ">#{campusid},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | nurse_id, nurse_name, out_way_id, out_way_name, guid, |
| | | operator, operator_id, inhospno, remark, |
| | | fuflag, fudate, fuperiod, futypecode, futypedesc, fuadvice, fuspecialadvice, management_doctor, |
| | | management_doctor_doctor |
| | | management_doctor_doctor,campusid |
| | | ) |
| | | values |
| | | <foreach collection="list" item="item" separator=","> |
| | |
| | | #{item.nurseId}, #{item.nurseName}, #{item.outWayId}, #{item.outWayName}, #{item.guid}, |
| | | #{item.operator}, #{item.operatorId}, #{item.inhospno}, #{item.remark}, |
| | | #{item.fuflag}, #{item.fudate}, #{item.fuperiod}, #{item.futypecode}, #{item.futypedesc}, #{item.fuadvice}, |
| | | #{item.fuspecialadvice}, #{item.managementDoctor}, #{item.managementDoctorCode} |
| | | #{item.fuspecialadvice}, #{item.managementDoctor}, #{item.managementDoctorCode}, #{item.campusid} |
| | | ) |
| | | </foreach> |
| | | </insert> |
| | |
| | | <if test="fuspecialadvice != null ">fuspecialadvice = #{fuspecialadvice},</if> |
| | | <if test="managementDoctor != null ">management_doctor = #{managementDoctor},</if> |
| | | <if test="managementDoctorCode != null ">management_doctor_code = #{managementDoctorCode}</if> |
| | | <if test="campusid != null ">campusid = #{campusid}</if> |
| | | |
| | | </trim> |
| | | where inhospid = #{inhospid} |
| | |
| | | <result property="idcardno" column="idcardno"/> |
| | | <result property="remark" column="remark"/> |
| | | <result property="fudate" column="fudate"/> |
| | | <result property="campusid" column="campusid"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectPatMedOuthospVo"> |
| | | select id, |
| | | outhospno, |
| | | campusid, |
| | | diagcheck_flag, |
| | | patno, |
| | | remark, |
| | |
| | | resultMap="PatMedOuthospResult"> |
| | | select |
| | | pmo.id, |
| | | pmo.campusid, |
| | | pmo.remark, |
| | | pmo.fudate, |
| | | pmo.outhospno, |
| | |
| | | date_format(#{endTime},'%y%m%d') |
| | | </if> |
| | | <if test="patid != null ">and pmo.patid = #{patid}</if> |
| | | <if test="campusid != null ">and pmo.campusid = #{campusid}</if> |
| | | <if test="fuflag != null ">and pmo.fuflag = #{fuflag}</if> |
| | | <if test="patno != null ">and pmo.patno = #{patno}</if> |
| | | <if test="outhospno != null and outhospno != ''">and pmo.outhospno = #{outhospno}</if> |
| | |
| | | <if test="remark != null">remark,</if> |
| | | <if test="fuflag != null">fuflag,</if> |
| | | <if test="fudate != null">fudate,</if> |
| | | <if test="campusid != null">campusid,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="serialnum != null">#{serialnum},</if> |
| | |
| | | <if test="remark != null">#{remark},</if> |
| | | <if test="fuflag != null">#{fuflag},</if> |
| | | <if test="fudate != null">#{fudate},</if> |
| | | <if test="campusid != null">#{campusid},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | diagcheck_flag, |
| | | fuflag, |
| | | fudate, |
| | | campusid, |
| | | remark) |
| | | values |
| | | <foreach collection="list" item="item" separator=","> |
| | |
| | | #{item.diagcheckFlag}, |
| | | #{item.fuflag}, |
| | | #{item.fudate}, |
| | | #{item.campusid}, |
| | | #{item.remark} |
| | | ) |
| | | </foreach> |
| | |
| | | <if test="remark != null">remark = #{remark},</if> |
| | | <if test="fuflag != null">fuflag = #{fuflag},</if> |
| | | <if test="fudate != null">fudate = #{fudate},</if> |
| | | <if test="campusid != null">campusid = #{campusid},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.smartor.mapper.PatMedOuthospProvisionalMapper"> |
| | | |
| | | <resultMap type="com.smartor.domain.PatMedOuthospProvisional" id="PatMedOuthospProvisionalResult"> |
| | | <result property="id" column="id"/> |
| | | <result property="outhospno" column="outhospno"/> |
| | | <result property="serialnum" column="serialnum"/> |
| | | <result property="patid" column="patid"/> |
| | | <result property="patname" column="patname"/> |
| | | <result property="patno" column="patno"/> |
| | | <result property="hospitalname" column="hospitalname"/> |
| | | <result property="hospitalcode" column="hospitalcode"/> |
| | | <result property="icd10code" column="icd10code"/> |
| | | <result property="diagname" column="diagname"/> |
| | | <result property="deptid" column="deptid"/> |
| | | <result property="deptcode" column="deptcode"/> |
| | | <result property="deptname" column="deptname"/> |
| | | <result property="drcode" column="drcode"/> |
| | | <result property="drname" column="drname"/> |
| | | <result property="admitdate" column="admitdate"/> |
| | | <result property="orgid" column="orgid"/> |
| | | <result property="delFlag" column="del_flag"/> |
| | | <result property="updateBy" column="update_by"/> |
| | | <result property="updateTime" column="update_time"/> |
| | | <result property="createBy" column="create_by"/> |
| | | <result property="createTime" column="create_time"/> |
| | | <result property="isupload" column="isupload"/> |
| | | <result property="uploadTime" column="upload_time"/> |
| | | <result property="schemestatus" column="schemestatus"/> |
| | | <result property="schemetime" column="schemetime"/> |
| | | <result property="hpi" column="hpi"/> |
| | | <result property="mainsuit" column="mainsuit"/> |
| | | <result property="pid" column="pid"/> |
| | | <result property="guid" column="guid"/> |
| | | <result property="pguid" column="pguid"/> |
| | | <result property="hospitaldistrictcode" column="hospitaldistrictcode"/> |
| | | <result property="hospitaldistrictname" column="hospitaldistrictname"/> |
| | | <result property="diagcheckFlag" column="diagcheck_flag"/> |
| | | <result property="remark" column="remark"/> |
| | | <result property="fudate" column="fudate"/> |
| | | <result property="fuflag" column="fuflag"/> |
| | | <result property="campusid" column="campusid"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectPatMedOuthospProvisionalVo"> |
| | | select id, outhospno, serialnum, patid, patname, patno, hospitalname, hospitalcode, icd10code, diagname, deptid, deptcode, deptname, drcode, drname, admitdate, orgid, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, schemestatus, schemetime, hpi, mainsuit, pid, guid, pguid, hospitaldistrictcode, hospitaldistrictname, diagcheck_flag, remark, fudate, fuflag, campusid |
| | | from pat_med_outhosp_provisional |
| | | </sql> |
| | | |
| | | <select id="selectPatMedOuthospProvisionalList" parameterType="com.smartor.domain.PatMedOuthospProvisional" |
| | | resultMap="PatMedOuthospProvisionalResult"> |
| | | <include refid="selectPatMedOuthospProvisionalVo"/> |
| | | <where> |
| | | del_flag=0 |
| | | <if test="outhospno != null and outhospno != ''"> |
| | | and outhospno = #{outhospno} |
| | | </if> |
| | | <if test="serialnum != null and serialnum != ''"> |
| | | and serialnum = #{serialnum} |
| | | </if> |
| | | <if test="patid != null "> |
| | | and patid = #{patid} |
| | | </if> |
| | | <if test="patname != null and patname != ''"> |
| | | and patname like concat('%', #{patname}, '%') |
| | | </if> |
| | | <if test="patno != null and patno != ''"> |
| | | and patno = #{patno} |
| | | </if> |
| | | <if test="hospitalname != null and hospitalname != ''"> |
| | | and hospitalname like concat('%', #{hospitalname}, '%') |
| | | </if> |
| | | <if test="hospitalcode != null and hospitalcode != ''"> |
| | | and hospitalcode = #{hospitalcode} |
| | | </if> |
| | | <if test="icd10code != null and icd10code != ''"> |
| | | and icd10code = #{icd10code} |
| | | </if> |
| | | <if test="diagname != null and diagname != ''"> |
| | | and diagname like concat('%', #{diagname}, '%') |
| | | </if> |
| | | <if test="deptid != null "> |
| | | and deptid = #{deptid} |
| | | </if> |
| | | <if test="deptcode != null and deptcode != ''"> |
| | | and deptcode = #{deptcode} |
| | | </if> |
| | | <if test="deptname != null and deptname != ''"> |
| | | and deptname like concat('%', #{deptname}, '%') |
| | | </if> |
| | | <if test="drcode != null and drcode != ''"> |
| | | and drcode = #{drcode} |
| | | </if> |
| | | <if test="drname != null and drname != ''"> |
| | | and drname like concat('%', #{drname}, '%') |
| | | </if> |
| | | <if test="admitdate != null "> |
| | | and admitdate = #{admitdate} |
| | | </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="schemestatus != null "> |
| | | and schemestatus = #{schemestatus} |
| | | </if> |
| | | <if test="schemetime != null "> |
| | | and schemetime = #{schemetime} |
| | | </if> |
| | | <if test="hpi != null and hpi != ''"> |
| | | and hpi = #{hpi} |
| | | </if> |
| | | <if test="mainsuit != null and mainsuit != ''"> |
| | | and mainsuit = #{mainsuit} |
| | | </if> |
| | | <if test="pid != null "> |
| | | and pid = #{pid} |
| | | </if> |
| | | <if test="guid != null and guid != ''"> |
| | | and guid = #{guid} |
| | | </if> |
| | | <if test="pguid != null and pguid != ''"> |
| | | and pguid = #{pguid} |
| | | </if> |
| | | <if test="hospitaldistrictcode != null and hospitaldistrictcode != ''"> |
| | | and hospitaldistrictcode = #{hospitaldistrictcode} |
| | | </if> |
| | | <if test="hospitaldistrictname != null and hospitaldistrictname != ''"> |
| | | and hospitaldistrictname like concat('%', #{hospitaldistrictname}, '%') |
| | | </if> |
| | | <if test="diagcheckFlag != null and diagcheckFlag != ''"> |
| | | and diagcheck_flag = #{diagcheckFlag} |
| | | </if> |
| | | <if test="fudate != null "> |
| | | and fudate = #{fudate} |
| | | </if> |
| | | <if test="fuflag != null and fuflag != ''"> |
| | | and fuflag = #{fuflag} |
| | | </if> |
| | | <if test="campusid != null and campusid != ''"> |
| | | and campusid = #{campusid} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectPatMedOuthospProvisionalById" parameterType="Long" |
| | | resultMap="PatMedOuthospProvisionalResult"> |
| | | <include refid="selectPatMedOuthospProvisionalVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertPatMedOuthospProvisional" parameterType="com.smartor.domain.PatMedOuthospProvisional" useGeneratedKeys="true" keyProperty="id"> |
| | | insert into pat_med_outhosp_provisional |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="outhospno != null">outhospno, |
| | | </if> |
| | | <if test="serialnum != null">serialnum, |
| | | </if> |
| | | <if test="patid != null">patid, |
| | | </if> |
| | | <if test="patname != null">patname, |
| | | </if> |
| | | <if test="patno != null">patno, |
| | | </if> |
| | | <if test="hospitalname != null">hospitalname, |
| | | </if> |
| | | <if test="hospitalcode != null">hospitalcode, |
| | | </if> |
| | | <if test="icd10code != null">icd10code, |
| | | </if> |
| | | <if test="diagname != null">diagname, |
| | | </if> |
| | | <if test="deptid != null">deptid, |
| | | </if> |
| | | <if test="deptcode != null">deptcode, |
| | | </if> |
| | | <if test="deptname != null">deptname, |
| | | </if> |
| | | <if test="drcode != null">drcode, |
| | | </if> |
| | | <if test="drname != null">drname, |
| | | </if> |
| | | <if test="admitdate != null">admitdate, |
| | | </if> |
| | | <if test="orgid != null">orgid, |
| | | </if> |
| | | <if test="delFlag != null">del_flag, |
| | | </if> |
| | | <if test="updateBy != null">update_by, |
| | | </if> |
| | | <if test="updateTime != null">update_time, |
| | | </if> |
| | | <if test="createBy != null">create_by, |
| | | </if> |
| | | <if test="createTime != null">create_time, |
| | | </if> |
| | | <if test="isupload != null">isupload, |
| | | </if> |
| | | <if test="uploadTime != null">upload_time, |
| | | </if> |
| | | <if test="schemestatus != null">schemestatus, |
| | | </if> |
| | | <if test="schemetime != null">schemetime, |
| | | </if> |
| | | <if test="hpi != null">hpi, |
| | | </if> |
| | | <if test="mainsuit != null">mainsuit, |
| | | </if> |
| | | <if test="pid != null">pid, |
| | | </if> |
| | | <if test="guid != null">guid, |
| | | </if> |
| | | <if test="pguid != null">pguid, |
| | | </if> |
| | | <if test="hospitaldistrictcode != null">hospitaldistrictcode, |
| | | </if> |
| | | <if test="hospitaldistrictname != null">hospitaldistrictname, |
| | | </if> |
| | | <if test="diagcheckFlag != null">diagcheck_flag, |
| | | </if> |
| | | <if test="remark != null">remark, |
| | | </if> |
| | | <if test="fudate != null">fudate, |
| | | </if> |
| | | <if test="fuflag != null">fuflag, |
| | | </if> |
| | | <if test="campusid != null">campusid, |
| | | </if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="outhospno != null">#{outhospno}, |
| | | </if> |
| | | <if test="serialnum != null">#{serialnum}, |
| | | </if> |
| | | <if test="patid != null">#{patid}, |
| | | </if> |
| | | <if test="patname != null">#{patname}, |
| | | </if> |
| | | <if test="patno != null">#{patno}, |
| | | </if> |
| | | <if test="hospitalname != null">#{hospitalname}, |
| | | </if> |
| | | <if test="hospitalcode != null">#{hospitalcode}, |
| | | </if> |
| | | <if test="icd10code != null">#{icd10code}, |
| | | </if> |
| | | <if test="diagname != null">#{diagname}, |
| | | </if> |
| | | <if test="deptid != null">#{deptid}, |
| | | </if> |
| | | <if test="deptcode != null">#{deptcode}, |
| | | </if> |
| | | <if test="deptname != null">#{deptname}, |
| | | </if> |
| | | <if test="drcode != null">#{drcode}, |
| | | </if> |
| | | <if test="drname != null">#{drname}, |
| | | </if> |
| | | <if test="admitdate != null">#{admitdate}, |
| | | </if> |
| | | <if test="orgid != null">#{orgid}, |
| | | </if> |
| | | <if test="delFlag != null">#{delFlag}, |
| | | </if> |
| | | <if test="updateBy != null">#{updateBy}, |
| | | </if> |
| | | <if test="updateTime != null">#{updateTime}, |
| | | </if> |
| | | <if test="createBy != null">#{createBy}, |
| | | </if> |
| | | <if test="createTime != null">#{createTime}, |
| | | </if> |
| | | <if test="isupload != null">#{isupload}, |
| | | </if> |
| | | <if test="uploadTime != null">#{uploadTime}, |
| | | </if> |
| | | <if test="schemestatus != null">#{schemestatus}, |
| | | </if> |
| | | <if test="schemetime != null">#{schemetime}, |
| | | </if> |
| | | <if test="hpi != null">#{hpi}, |
| | | </if> |
| | | <if test="mainsuit != null">#{mainsuit}, |
| | | </if> |
| | | <if test="pid != null">#{pid}, |
| | | </if> |
| | | <if test="guid != null">#{guid}, |
| | | </if> |
| | | <if test="pguid != null">#{pguid}, |
| | | </if> |
| | | <if test="hospitaldistrictcode != null">#{hospitaldistrictcode}, |
| | | </if> |
| | | <if test="hospitaldistrictname != null">#{hospitaldistrictname}, |
| | | </if> |
| | | <if test="diagcheckFlag != null">#{diagcheckFlag}, |
| | | </if> |
| | | <if test="remark != null">#{remark}, |
| | | </if> |
| | | <if test="fudate != null">#{fudate}, |
| | | </if> |
| | | <if test="fuflag != null">#{fuflag}, |
| | | </if> |
| | | <if test="campusid != null">#{campusid}, |
| | | </if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updatePatMedOuthospProvisional" parameterType="com.smartor.domain.PatMedOuthospProvisional"> |
| | | update pat_med_outhosp_provisional |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="outhospno != null">outhospno = |
| | | #{outhospno}, |
| | | </if> |
| | | <if test="serialnum != null">serialnum = |
| | | #{serialnum}, |
| | | </if> |
| | | <if test="patid != null">patid = |
| | | #{patid}, |
| | | </if> |
| | | <if test="patname != null">patname = |
| | | #{patname}, |
| | | </if> |
| | | <if test="patno != null">patno = |
| | | #{patno}, |
| | | </if> |
| | | <if test="hospitalname != null">hospitalname = |
| | | #{hospitalname}, |
| | | </if> |
| | | <if test="hospitalcode != null">hospitalcode = |
| | | #{hospitalcode}, |
| | | </if> |
| | | <if test="icd10code != null">icd10code = |
| | | #{icd10code}, |
| | | </if> |
| | | <if test="diagname != null">diagname = |
| | | #{diagname}, |
| | | </if> |
| | | <if test="deptid != null">deptid = |
| | | #{deptid}, |
| | | </if> |
| | | <if test="deptcode != null">deptcode = |
| | | #{deptcode}, |
| | | </if> |
| | | <if test="deptname != null">deptname = |
| | | #{deptname}, |
| | | </if> |
| | | <if test="drcode != null">drcode = |
| | | #{drcode}, |
| | | </if> |
| | | <if test="drname != null">drname = |
| | | #{drname}, |
| | | </if> |
| | | <if test="admitdate != null">admitdate = |
| | | #{admitdate}, |
| | | </if> |
| | | <if test="orgid != null">orgid = |
| | | #{orgid}, |
| | | </if> |
| | | <if test="delFlag != null">del_flag = |
| | | #{delFlag}, |
| | | </if> |
| | | <if test="updateBy != null">update_by = |
| | | #{updateBy}, |
| | | </if> |
| | | <if test="updateTime != null">update_time = |
| | | #{updateTime}, |
| | | </if> |
| | | <if test="createBy != null">create_by = |
| | | #{createBy}, |
| | | </if> |
| | | <if test="createTime != null">create_time = |
| | | #{createTime}, |
| | | </if> |
| | | <if test="isupload != null">isupload = |
| | | #{isupload}, |
| | | </if> |
| | | <if test="uploadTime != null">upload_time = |
| | | #{uploadTime}, |
| | | </if> |
| | | <if test="schemestatus != null">schemestatus = |
| | | #{schemestatus}, |
| | | </if> |
| | | <if test="schemetime != null">schemetime = |
| | | #{schemetime}, |
| | | </if> |
| | | <if test="hpi != null">hpi = |
| | | #{hpi}, |
| | | </if> |
| | | <if test="mainsuit != null">mainsuit = |
| | | #{mainsuit}, |
| | | </if> |
| | | <if test="pid != null">pid = |
| | | #{pid}, |
| | | </if> |
| | | <if test="guid != null">guid = |
| | | #{guid}, |
| | | </if> |
| | | <if test="pguid != null">pguid = |
| | | #{pguid}, |
| | | </if> |
| | | <if test="hospitaldistrictcode != null">hospitaldistrictcode = |
| | | #{hospitaldistrictcode}, |
| | | </if> |
| | | <if test="hospitaldistrictname != null">hospitaldistrictname = |
| | | #{hospitaldistrictname}, |
| | | </if> |
| | | <if test="diagcheckFlag != null">diagcheck_flag = |
| | | #{diagcheckFlag}, |
| | | </if> |
| | | <if test="remark != null">remark = |
| | | #{remark}, |
| | | </if> |
| | | <if test="fudate != null">fudate = |
| | | #{fudate}, |
| | | </if> |
| | | <if test="fuflag != null">fuflag = |
| | | #{fuflag}, |
| | | </if> |
| | | <if test="campusid != null">campusid = |
| | | #{campusid}, |
| | | </if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <update id="deletePatMedOuthospProvisionalById" parameterType="Long"> |
| | | update pat_med_outhosp_provisional |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | del_flag =1 |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <update id="deletePatMedOuthospProvisionalByIds" parameterType="String"> |
| | | update pat_med_outhosp_provisional |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | del_flag =1 |
| | | </trim> |
| | | where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </update> |
| | | |
| | | |
| | | |
| | | |
| | | </mapper> |
| | |
| | | <result property="guid" column="guid"/> |
| | | <result property="orgid" column="orgid"/> |
| | | <result property="type" column="type"/> |
| | | <result property="campusid" column="campusid"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectDeptVo"> |
| | |
| | | d.dept_code, |
| | | d.type, |
| | | d.orgid, |
| | | d.campusid, |
| | | d.parent_id, |
| | | d.ancestors, |
| | | d.dept_name, |
| | |
| | | <if test="hisParentId != null and hisParentId != ''"> |
| | | AND his_parent_id = #{hisParentId} |
| | | </if> |
| | | <if test="campusid != null and campusid != ''"> |
| | | AND campusid = #{campusid} |
| | | </if> |
| | | order by d.parent_id, d.order_num |
| | | </select> |
| | | |
| | |
| | | <select id="selectDeptById" parameterType="Long" resultMap="SysDeptResult"> |
| | | select d.dept_id, |
| | | d.parent_id, |
| | | d.campusid, |
| | | d.dept_code, |
| | | d.type, |
| | | d.dept_type, |
| | |
| | | select d.dept_id, |
| | | d.parent_id, |
| | | d.type, |
| | | d.campusid, |
| | | d.dept_code, |
| | | d.dept_type, |
| | | d.ancestors, |
| | |
| | | type, |
| | | guid, |
| | | orgid, |
| | | campusid, |
| | | create_time |
| | | ) values |
| | | <foreach collection="list" item="item" separator=","> |
| | |
| | | #{item.type}, |
| | | #{item.guid}, |
| | | #{item.orgid}, |
| | | #{item.campusid}, |
| | | now() |
| | | ) |
| | | </foreach> |
| | |
| | | <if test="type != null and type != ''">type,</if> |
| | | <if test="guid != null and guid != ''">guid,</if> |
| | | <if test="orgid != null and orgid != ''">orgid,</if> |
| | | <if test="campusid != null and campusid != ''">campusid,</if> |
| | | create_time |
| | | )values( |
| | | <if test="deptId != null and deptId != 0">#{deptId},</if> |
| | |
| | | <if test="type != null and type != ''">#{type},</if> |
| | | <if test="guid != null and guid != ''">#{guid},</if> |
| | | <if test="orgid != null and orgid != ''">#{orgid},</if> |
| | | <if test="campusid != null and campusid != ''">#{campusid},</if> |
| | | sysdate() |
| | | ) |
| | | </insert> |
| | |
| | | <if test="hisParentId != null and hisParentId != ''">his_parent_id = #{hisParentId},</if> |
| | | <if test="hisDeptId != null and hisDeptId != ''">his_dept_id = #{hisDeptId},</if> |
| | | <if test="type != null and type != ''">type = #{type},</if> |
| | | <if test="campusid != null and campusid != ''">campusid = #{campusid},</if> |
| | | update_time = sysdate() |
| | | </set> |
| | | where dept_id = #{deptId} |
| | |
| | | <result property="deptType" column="dept_type"/> |
| | | <result property="createTime" column="create_time"/> |
| | | <result property="updateTime" column="update_time"/> |
| | | <result property="campusid" column="campusid"/> |
| | | </resultMap> |
| | | |
| | | <resultMap id="deptResult" type="com.ruoyi.common.core.domain.entity.SysDept"> |
| | |
| | | <result property="orderNum" column="order_num"/> |
| | | <result property="leader" column="leader"/> |
| | | <result property="status" column="dept_status"/> |
| | | <result property="campusid" column="campusid"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectSysUserDeptVo"> |
| | |
| | | user_id, |
| | | dept_id, |
| | | del_flag, |
| | | campusid, |
| | | orgid, |
| | | create_time, |
| | | update_time, |
| | |
| | | </if> |
| | | <if test="deptCode != null "> |
| | | and dept_code = #{deptCode} |
| | | </if> |
| | | <if test="campusid != null "> |
| | | and campusid = #{campusid} |
| | | </if> |
| | | </where> |
| | | </select> |
| | |
| | | <if test="userCode != null "> |
| | | user_code, |
| | | </if> |
| | | <if test="campusid != null "> |
| | | campusid, |
| | | </if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="userId != null">#{userId}, |
| | |
| | | </if> |
| | | <if test="userCode != null "> |
| | | #{userCode}, |
| | | </if> |
| | | <if test="campusid != null "> |
| | | #{campusid}, |
| | | </if> |
| | | </trim> |
| | | </insert> |
| | |
| | | <if test="orgid != null "> |
| | | orgid = #{orgid}, |
| | | </if> |
| | | <if test="campusid != null "> |
| | | campusid = #{campusid}, |
| | | </if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | |
| | | d.ancestors, |
| | | d.dept_name, |
| | | d.order_num, |
| | | d.campusid, |
| | | d.leader, |
| | | d.orgid, |
| | | d.status as dept_status |
| | |
| | | <result property="userType" column="user_type"/> |
| | | <result property="searchscope" column="searchscope"/> |
| | | <result property="guid" column="guid"/> |
| | | <result property="campusid" column="campusid"/> |
| | | <association property="dept" column="dept_id" javaType="com.ruoyi.common.core.domain.entity.SysDept" |
| | | resultMap="deptResult"/> |
| | | <collection property="roles" javaType="java.util.List" resultMap="RoleResult"/> |
| | |
| | | <result property="orderNum" column="order_num"/> |
| | | <result property="leader" column="leader"/> |
| | | <result property="status" column="dept_status"/> |
| | | <result property="campusid" column="campusid"/> |
| | | </resultMap> |
| | | |
| | | <resultMap id="RoleResult" type="com.ruoyi.common.core.domain.entity.SysRole"> |
| | |
| | | u.id_card, |
| | | u.hosp_info, |
| | | u.dept_info, |
| | | u.campusid, |
| | | u.searchscope, |
| | | u.user_name, |
| | | u.user_type, |
| | |
| | | <select id="selectUserList" parameterType="com.ruoyi.common.core.domain.entity.SysUser" resultMap="SysUserResult"> |
| | | select u.user_code,u.user_id,u.title,u.his_user_id,u.hosp_info,u.dept_info, u.searchscope, u.dept_id, |
| | | u.user_type, |
| | | u.campusid, |
| | | u.nick_name, u.user_name, |
| | | u.email,u.id_card, |
| | | u.avatar, |
| | |
| | | <if test="userName != null and userName != ''"> |
| | | AND u.user_name = #{userName} |
| | | </if> |
| | | <if test="orgid != null and orgid != ''"> |
| | | <if test="orgid != null and orgid != ''"> |
| | | AND u.orgid = #{orgid} |
| | | </if> |
| | | <if test="nickName != null and nickName != ''"> |
| | |
| | | </if> |
| | | <if test="jobPhone != null and jobPhone != ''"> |
| | | AND u.job_phone = #{jobPhone} |
| | | </if> |
| | | <if test="campusid != null and campusid != ''"> |
| | | AND u.campusid = #{campusid} |
| | | </if> |
| | | <if test="birthday != null and birthday != ''"> |
| | | AND u.birthday = #{birthday} |
| | |
| | | u.birthday, |
| | | u.job_phone, |
| | | u.orgid, |
| | | u.campusid, |
| | | u.phonenumber, u.status,u.id_card, |
| | | u.create_time |
| | | from sys_user u |
| | |
| | | <if test="hisUserId != null and hisUserId != ''"> |
| | | AND u.his_user_id = #{hisUserId} |
| | | </if> |
| | | <if test="campusid != null and campusid != ''"> |
| | | AND u.campusid = #{campusid} |
| | | </if> |
| | | <!-- æ°æ®èå´è¿æ»¤ --> |
| | | ${params.dataScope} |
| | | </select> |
| | |
| | | u.nick_name, |
| | | u.user_code, |
| | | u.email, |
| | | u.campusid, |
| | | u.his_user_id, |
| | | u.title, |
| | | u.orgid, |
| | |
| | | <if test="deptCode != null and deptCode != ''">dept_code,</if> |
| | | <if test="deptName != null and deptName != ''">dept_name,</if> |
| | | <if test="userCode != null and userCode != ''">user_code,</if> |
| | | <if test="campusid != null and campusid != ''">campusid,</if> |
| | | create_time |
| | | )values( |
| | | <if test="userId != null and userId != ''">#{userId},</if> |
| | |
| | | <if test="deptCode != null and deptCode != ''">#{deptCode},</if> |
| | | <if test="deptName != null and deptName != ''">#{deptName},</if> |
| | | <if test="userCode != null and userCode != ''">#{userCode},</if> |
| | | <if test="campusid != null and campusid != ''">#{campusid},</if> |
| | | sysdate() |
| | | ) |
| | | </insert> |
| | |
| | | insert into sys_user( |
| | | user_id, dept_id, user_name, nick_name, email, avatar, phonenumber, sex, password, status, create_by, remark, |
| | | user_type, dept_info, hosp_info, searchscope, id_card, title, job_phone, birthday, his_user_id, guid, |
| | | orgid,user_code, |
| | | orgid,user_code,campusid, |
| | | create_time |
| | | ) values |
| | | <foreach collection="list" item="item" separator=","> |
| | |
| | | #{item.guid}, |
| | | #{item.orgid}, |
| | | #{item.userCode}, |
| | | #{item.campusid}, |
| | | now() |
| | | ) |
| | | </foreach> |
| | |
| | | <if test="birthday != null ">birthday=#{birthday},</if> |
| | | <if test="orgid != null ">orgid=#{orgid},</if> |
| | | <if test="userCode != null ">user_code=#{userCode},</if> |
| | | <if test="campusid != null ">campusid=#{campusid},</if> |
| | | <if test="title != null and title != ''"> |
| | | title = #{title}, |
| | | </if> |
| | |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.smartor.mapper.SysUserRole2Mapper"> |
| | | |
| | | <resultMap type="SysUserRole" id="SysUserRoleResult"> |
| | | <resultMap type="com.ruoyi.common.core.domain.entity.SysUserRole" id="SysUserRoleResult"> |
| | | <result property="userId" column="user_id"/> |
| | | <result property="roleId" column="role_id"/> |
| | | <result property="guid" column="guid"/> |
| | |
| | | where role_id = #{roleId} |
| | | </select> |
| | | |
| | | <select id="selectUserRoleByRoleIdAndUserId" resultMap="SysUserRoleResult"> |
| | | select user_id,role_id,guid,orgid |
| | | from sys_user_role |
| | | <where> |
| | | <if test="roleId != null ">and role_id = #{roleId}</if> |
| | | <if test="userId != null ">and user_id = #{userId}</if> |
| | | |
| | | </where> |
| | | </select> |
| | | |
| | | <delete id="deleteUserRole" parameterType="Long"> |
| | | delete from sys_user_role where user_id in |
| | | <foreach collection="array" item="userId" open="(" separator="," close=")"> |