| | |
| | | <artifactId>mysql-connector-java</artifactId> |
| | | </dependency> |
| | | |
| | | <!-- SQL_SERVER驱å¨å
--> |
| | | <dependency> |
| | | <groupId>com.microsoft.sqlserver</groupId> |
| | | <artifactId>mssql-jdbc</artifactId> |
| | | <version>9.2.1.jre8</version> |
| | | </dependency> |
| | | |
| | | <!-- æ ¸å¿æ¨¡å--> |
| | | <dependency> |
| | | <groupId>com.ruoyi</groupId> |
| | |
| | | <groupId>org.springframework.boot</groupId> |
| | | <artifactId>spring-boot-starter-web-services</artifactId> |
| | | </dependency> |
| | | |
| | | <dependency> |
| | | <groupId>org.apache.cxf</groupId> |
| | | <artifactId>cxf-rt-frontend-jaxws</artifactId> |
| | |
| | | <groupId>org.codehaus.woodstox</groupId> |
| | | <artifactId>stax2-api</artifactId> |
| | | <version>3.1.1</version> |
| | | </dependency> |
| | | |
| | | <!-- https://mvnrepository.com/artifact/ca.uhn.hapi/hapi-base --> |
| | | <dependency> |
| | | <groupId>ca.uhn.hapi</groupId> |
| | | <artifactId>hapi-base</artifactId> |
| | | <version>2.3</version> |
| | | </dependency> |
| | | <!-- https://mvnrepository.com/artifact/ca.uhn.hapi/hapi-structures-v24 --> |
| | | <dependency> |
| | | <groupId>ca.uhn.hapi</groupId> |
| | | <artifactId>hapi-structures-v24</artifactId> |
| | | <version>2.3</version> |
| | | </dependency> |
| | | |
| | | <dependency> |
| | |
| | | " | | \\ / \\ / \n" + |
| | | " ''-' `'-' `-..-' "); |
| | | //å¼å¯SOCKET |
| | | // new SocketCommunication().socketCommunication(); |
| | | new SocketCommunication().socketCommunication(); |
| | | } |
| | | } |
| | |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.ruoyi.common.core.page.TableDataInfo; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.ruoyi.common.utils.PageUtils; |
| | | import com.smartor.domain.HeTask; |
| | | import com.smartor.domain.HeTaskVO; |
| | | import com.smartor.domain.PatArchiveReq; |
| | |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢å®£æä»»å¡ |
| | | * æ°å¢æä¿®æ¹å é¤å®£æä»»å¡ |
| | | */ |
| | | @ApiOperation("æ°å¢å®£æä»»å¡(åéä»»å¡)") |
| | | @ApiOperation("æ°å¢æä¿®æ¹å é¤å®£æä»»å¡") |
| | | @PreAuthorize("@ss.hasPermi('system:task:add')") |
| | | @Log(title = "宣æä»»å¡", businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody HeTaskVO heTaskVO) { |
| | | return toAjax(heTaskService.insertHeTask(heTaskVO)); |
| | | @PostMapping("/insertOrUpdateHeTask") |
| | | public AjaxResult insertOrUpdateHeTask(@RequestBody HeTaskVO heTaskVO) { |
| | | return toAjax(heTaskService.insertOrUpdateHeTask(heTaskVO)); |
| | | } |
| | | |
| | | /** |
| | |
| | | @ApiOperation("è·åæ£è
ä¿¡æ¯") |
| | | @PostMapping("/getPatientInfo") |
| | | public TableDataInfo getPatientInfo(@RequestBody PatArchiveReq patArchiveReq) { |
| | | PageUtils.startPageByPost(patArchiveReq.getPageNum(), patArchiveReq.getPageSize()); |
| | | return getDataTable(heTaskService.getPatientInfo(patArchiveReq)); |
| | | } |
| | | |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.web.controller.smartor; |
| | | |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.controller.BaseController; |
| | | import com.ruoyi.common.core.domain.AjaxResult; |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | | import com.ruoyi.common.core.domain.model.LoginUser; |
| | | import com.ruoyi.common.core.page.TableDataInfo; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.ruoyi.common.utils.poi.ExcelUtil; |
| | | import com.smartor.domain.ServiceThirdData; |
| | | import com.smartor.domain.SvyLibTopicRes; |
| | | import com.smartor.domain.SvyTopic; |
| | | import com.smartor.domain.SvyTopicReq; |
| | | import com.smartor.service.IServiceThirdDataService; |
| | | import com.smartor.service.ISvyTopicService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * é¢ç®Controller |
| | | * |
| | | * @author ruoyi |
| | | * @date 2023-06-26 |
| | | */ |
| | | @Api(description = "testController") |
| | | @RestController |
| | | @RequestMapping("/tc") |
| | | public class TestLsController extends BaseController { |
| | | @Autowired |
| | | private IServiceThirdDataService iServiceThirdDataService; |
| | | |
| | | /** |
| | | * æ¥è¯¢é¢ç®å表 |
| | | */ |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody ServiceThirdData serviceThirdData) { |
| | | List<ServiceThirdData> list = iServiceThirdDataService.queryList(serviceThirdData); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | } |
| | |
| | | import java.nio.file.Paths; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.regex.Matcher; |
| | | import java.util.regex.Pattern; |
| | | |
| | | public class pctest { |
| | | |
| | | public static void main(String[] args) { |
| | | String str = null; |
| | | // for (int i = 51; i <= 189; i++) { |
| | | // System.out.print(i + " "); |
| | | try { |
| | | // å¾
å¹é
çå符串 |
| | | String sentence = "135465465好46546"; |
| | | |
| | | // long l = System.currentTimeMillis(); |
| | | //// str = "2263Å189ÅÅ232105105§è¸é¨è¿ç¤ç§æ¥é´ç
æ¿æ£è
<font color='#30a6f5'>é</font><font color='#30a6f5'>访</font>§11¤232334680§è¸é¨è¿ç¤ç§æ£è
åºé¢<font color='#30a6f5'>é</font><font color='#30a6f5'>访</font>§19¤232313714§è¸é¨è¿ç¤ç§é£ç®¡çæ£è
åºé¢<font color='#30a6f5'>é</font><font color='#30a6f5'>访</font>§20¤232294126§è¸é¨è¿ç¤ç§èºçæ£è
åºé¢<font color='#30a6f5'>é</font><font color='#30a6f5'>访</font>§22¤232231895§TKAæ¯å<font color='#30a6f5'>é</font><font color='#30a6f5'>访</font>§16¤232349695§<font color='#30a6f5'>é</font><font color='#30a6f5'>访</font>1æÂ§29¤232303115§é«ç³<font color='#30a6f5'>é</font><font color='#30a6f5'>访</font>å·¥ä½å¹è®è¯é¢Â§16¤232295017§è¿ç¤<font color='#30a6f5'>é</font><font color='#30a6f5'>访</font>ç»è®°å¹è®æµè¯é¢Â§15¤232233427§èå¹´å¥åº·çæµéå<font color='#30a6f5'>é</font><font color='#30a6f5'>访</font>å¹è®æµè¯Â§10¤232215217§24ç
åºIBDæ£è
<font color='#30a6f5'>é</font><font color='#30a6f5'>访</font>é®å·ï¼8.22-8.28ï¼Â§20¤232169849§2023.8.25å°é人俱ä¹é¨MDTé¨è¯<font color='#30a6f5'>é</font><font color='#30a6f5'>访</font>§9¤232173705§<font color='#30a6f5'>é</font><font color='#30a6f5'>访</font>ä¿¡æ¯åé¦è¡¨Â§6¤"; |
| | | //// str = HttpUtils.sendGet("https://www.wjx.cn/handler/Search.ashx?input=%E9%9A%8F%E8%AE%BF&qc=&cp=" + i + "&nw=1&qt=1&accurate=0&t=" + l); |
| | | // while (true) { |
| | | // if (str.contains("<font")) { |
| | | // str = str.substring(0, str.indexOf("<font")) + str.substring(str.indexOf("</font>") + 7); |
| | | // } else { |
| | | //// System.out.println(str); |
| | | // å®ä¹æ£åè¡¨è¾¾å¼ |
| | | // String regex = ".*åäº.*æ©ä¸å¥½.*"; |
| | | // String regex = ".*åäº.*|.*æ©ä¸å¥½.*"; |
| | | // String regex = "^(?!.*å¾å¥½ï¼åäºå).*|.*没å.*æ©ä¸å¥½.*å»é¢.*"; |
| | | String regex = "^(?!.å«|ä¸å¯|ä¸å¯é )(.(好|幸ç¦)+.*)$"; |
| | | |
| | | List<String> list = new ArrayList<>(); |
| | | String folderPath = "E:/pc"; |
| | | try { |
| | | Files.walk(Paths.get(folderPath)).filter(Files::isRegularFile).forEach(path -> list.add(path.getFileName().toString())); |
| | | } catch (IOException e) { |
| | | System.out.println("An error occurred while traversing the folder."); |
| | | e.printStackTrace(); |
| | | // ç¼è¯æ£åè¡¨è¾¾å¼ |
| | | Pattern pattern = Pattern.compile(regex); |
| | | |
| | | // å建 Matcher 对象 |
| | | Matcher matcher = pattern.matcher(sentence); |
| | | |
| | | // è¿è¡å¹é
|
| | | if (matcher.matches()) { |
| | | System.out.println("å¥åä¸å
å«\"åäºï¼æ©ä¸å¥½\"ã"); |
| | | } else { |
| | | System.out.println("å¥åä¸ä¸å
å«\"åäºï¼æ©ä¸å¥½\"ã"); |
| | | } |
| | | |
| | | for (String name : list) { |
| | | name = name.substring(0, name.indexOf(".html")); |
| | | // String sd = "https://www.wjx.cn/xz/" + name + ".aspx"; |
| | | // String content = HttpUtils.sendGet(sd, "review=1&u_atoken=31d3a0e6-e00e-483c-b956-b6177972e734&u_asession=01691hXKO9p1D59fHgd0NAIGdr-8HrPakCUS6X_v_Z43ohuMPPQJnwrrPl3mly-UFXYrO71Pz35K7wOrV6v8t3g9sq8AL43dpOnCClYrgFm6o&u_asig=052KZ_HPijdQddSitCTcvhNlwy7cGO2t46JgQGTyclFPT7xwZjoK0YBNED-DbuN5gugFYO36lFqDfxMpnRFufeLFk7BSuILL02zWW0QNCM-NWgLElQ9wTw7yMg4BFlXpIhOVzkXl1W45ZWoBPny57uZ3WVmTrcdvNBGM1L1rWev0UwpA9oQuqX4mfRyWspmK8gksmHjM0JOodanL5-M1Qs1Srh04GpT7zItRH0TxDThMR15LDAE7pTBPfvFUyoAgUl5gGKGQH-vEmN2Ae1t4GLLQkS6fjps_twKYxR-u2135jY94r_LXIIil3Y3aVPRGAe&u_aref=gk2k7DQa4vfdgaFwA4iVd7KUI4Q%3D", Constants.UTF8); |
| | | // String sd = "https://www.wjx.cn/xz/214877887.aspx?review=1&u_atoken=7ea94b7e-ff2c-4f9f-a16a-2377e7b932f7&u_asession=01mUmaPv86XmI35R93EFzW4vAn-_bjd_hg8O3aV3Qj_hY4LTkzoq3vcQyaBAt_bXG0L3UvT1OC8yhlQ_Vrlj1nD9sq8AL43dpOnCClYrgFm6o&u_asig=05qqfmDpV5jnzQ3zaOR-kKvhCvox19kVoC-lC8wI68PnJ7lkckawOfhM2Sz6TSlLyxhPCLiM-UkS5JtWfnNrZeTMme2Xl4_nh34yljc8iiZeJybY6mcSFGRriqnFvQfUeuCvV5odDJuWRnGyKMRbx_RypafWqYj328He90miD2j6an7QQBtuwLgtjfNI6ktmk7ksmHjM0JOodanL5-M1Qs1cOGKb4pT6nOz7TsF50O_Y5mwcLzFTlOSTrqpuPzNwho1AC5ZokKrUg3JS1GlbH-sRHfAvD91UjmwUK--AQbESDY94r_LXIIil3Y3aVPRGAe&u_aref=muWANYNZeB7WW%2B%2F7kLKv3uRT8ws%3D"; |
| | | // String content = HttpUtils.sendGet(sd); |
| | | HttpRequest get = HttpUtil.createGet("https://www.wjx.cn/xz/215122141.aspx?review=1&u_atoken=ae7fe80c-bf23-4e45-bcda-e1a79738fa28&u_asession=014vQCkRvW7c3i2ofZKQ4cwL_Kbllht28bP58Yv5WaOmib7bTm0yOu3E9ghHeDwRromXsXiqHPUHP-r4N4zkLsNdsq8AL43dpOnCClYrgFm6o&u_asig=05cv8a98zgMB5Y5sCj2tshR0ymwhcsf5o0ZnRdzw_MWEqjWv9qUXA2y-W56hqxwwu62XCEZ1EDfpROWbv7u5K0esMlHJrRxH3x6MobynAbRVK73TZbz-pPzJrSvkDKmiOfptL_k4wm25Oa44SC2LnI-f_gUMOBxNBqpVgCnR54boOBWxWY3t65iSXiQbR5_szmksmHjM0JOodanL5-M1Qs1XAPImYHnI2tMZUJbFSrHeeZf56fnMo9lJFDBHsYIUFUSQYCfCQCLXjf34sWIadxtsAb6Kn2CIzT3kClvRmyaM_Y94r_LXIIil3Y3aVPRGAe&u_aref=OUtfes0VUTyTV7SKqEByRa9VGaU%3D"); |
| | | String content = get.execute().body(); |
| | | //å建æä»¶å¤¹ |
| | | Path folder = Paths.get("E:/pc2/" + name + ".html"); |
| | | Files.createFile(folder); |
| | | Files.write(Paths.get("E:/pc2/" + name + ".html"), content.getBytes()); |
| | | } |
| | | |
| | | |
| | | // int index = 0; |
| | | // while (true) { |
| | | // int dd = str.indexOf("¤", index) + 1; |
| | | // String newStr = str.substring(dd, str.indexOf("§", dd)); |
| | | // index = dd; |
| | | // String sd = "https://www.wjx.cn/xz/" + newStr + ".aspx"; |
| | | // String content = HttpUtils.sendGet(sd, "review=1"); |
| | | // String str = null; |
| | | //// for (int i = 51; i <= 189; i++) { |
| | | //// System.out.print(i + " "); |
| | | // try { |
| | | // |
| | | //// long l = System.currentTimeMillis(); |
| | | ////// str = "2263Å189ÅÅ232105105§è¸é¨è¿ç¤ç§æ¥é´ç
æ¿æ£è
<font color='#30a6f5'>é</font><font color='#30a6f5'>访</font>§11¤232334680§è¸é¨è¿ç¤ç§æ£è
åºé¢<font color='#30a6f5'>é</font><font color='#30a6f5'>访</font>§19¤232313714§è¸é¨è¿ç¤ç§é£ç®¡çæ£è
åºé¢<font color='#30a6f5'>é</font><font color='#30a6f5'>访</font>§20¤232294126§è¸é¨è¿ç¤ç§èºçæ£è
åºé¢<font color='#30a6f5'>é</font><font color='#30a6f5'>访</font>§22¤232231895§TKAæ¯å<font color='#30a6f5'>é</font><font color='#30a6f5'>访</font>§16¤232349695§<font color='#30a6f5'>é</font><font color='#30a6f5'>访</font>1æÂ§29¤232303115§é«ç³<font color='#30a6f5'>é</font><font color='#30a6f5'>访</font>å·¥ä½å¹è®è¯é¢Â§16¤232295017§è¿ç¤<font color='#30a6f5'>é</font><font color='#30a6f5'>访</font>ç»è®°å¹è®æµè¯é¢Â§15¤232233427§èå¹´å¥åº·çæµéå<font color='#30a6f5'>é</font><font color='#30a6f5'>访</font>å¹è®æµè¯Â§10¤232215217§24ç
åºIBDæ£è
<font color='#30a6f5'>é</font><font color='#30a6f5'>访</font>é®å·ï¼8.22-8.28ï¼Â§20¤232169849§2023.8.25å°é人俱ä¹é¨MDTé¨è¯<font color='#30a6f5'>é</font><font color='#30a6f5'>访</font>§9¤232173705§<font color='#30a6f5'>é</font><font color='#30a6f5'>访</font>ä¿¡æ¯åé¦è¡¨Â§6¤"; |
| | | ////// str = HttpUtils.sendGet("https://www.wjx.cn/handler/Search.ashx?input=%E9%9A%8F%E8%AE%BF&qc=&cp=" + i + "&nw=1&qt=1&accurate=0&t=" + l); |
| | | //// while (true) { |
| | | //// if (str.contains("<font")) { |
| | | //// str = str.substring(0, str.indexOf("<font")) + str.substring(str.indexOf("</font>") + 7); |
| | | //// } else { |
| | | ////// System.out.println(str); |
| | | // |
| | | // List<String> list = new ArrayList<>(); |
| | | // String folderPath = "E:/pc"; |
| | | // try { |
| | | // Files.walk(Paths.get(folderPath)).filter(Files::isRegularFile).forEach(path -> list.add(path.getFileName().toString())); |
| | | // } catch (IOException e) { |
| | | // System.out.println("An error occurred while traversing the folder."); |
| | | // e.printStackTrace(); |
| | | // } |
| | | // |
| | | // for (String name : list) { |
| | | // name = name.substring(0, name.indexOf(".html")); |
| | | //// String sd = "https://www.wjx.cn/xz/" + name + ".aspx"; |
| | | //// String content = HttpUtils.sendGet(sd, "review=1&u_atoken=31d3a0e6-e00e-483c-b956-b6177972e734&u_asession=01691hXKO9p1D59fHgd0NAIGdr-8HrPakCUS6X_v_Z43ohuMPPQJnwrrPl3mly-UFXYrO71Pz35K7wOrV6v8t3g9sq8AL43dpOnCClYrgFm6o&u_asig=052KZ_HPijdQddSitCTcvhNlwy7cGO2t46JgQGTyclFPT7xwZjoK0YBNED-DbuN5gugFYO36lFqDfxMpnRFufeLFk7BSuILL02zWW0QNCM-NWgLElQ9wTw7yMg4BFlXpIhOVzkXl1W45ZWoBPny57uZ3WVmTrcdvNBGM1L1rWev0UwpA9oQuqX4mfRyWspmK8gksmHjM0JOodanL5-M1Qs1Srh04GpT7zItRH0TxDThMR15LDAE7pTBPfvFUyoAgUl5gGKGQH-vEmN2Ae1t4GLLQkS6fjps_twKYxR-u2135jY94r_LXIIil3Y3aVPRGAe&u_aref=gk2k7DQa4vfdgaFwA4iVd7KUI4Q%3D", Constants.UTF8); |
| | | //// String sd = "https://www.wjx.cn/xz/214877887.aspx?review=1&u_atoken=7ea94b7e-ff2c-4f9f-a16a-2377e7b932f7&u_asession=01mUmaPv86XmI35R93EFzW4vAn-_bjd_hg8O3aV3Qj_hY4LTkzoq3vcQyaBAt_bXG0L3UvT1OC8yhlQ_Vrlj1nD9sq8AL43dpOnCClYrgFm6o&u_asig=05qqfmDpV5jnzQ3zaOR-kKvhCvox19kVoC-lC8wI68PnJ7lkckawOfhM2Sz6TSlLyxhPCLiM-UkS5JtWfnNrZeTMme2Xl4_nh34yljc8iiZeJybY6mcSFGRriqnFvQfUeuCvV5odDJuWRnGyKMRbx_RypafWqYj328He90miD2j6an7QQBtuwLgtjfNI6ktmk7ksmHjM0JOodanL5-M1Qs1cOGKb4pT6nOz7TsF50O_Y5mwcLzFTlOSTrqpuPzNwho1AC5ZokKrUg3JS1GlbH-sRHfAvD91UjmwUK--AQbESDY94r_LXIIil3Y3aVPRGAe&u_aref=muWANYNZeB7WW%2B%2F7kLKv3uRT8ws%3D"; |
| | | //// String content = HttpUtils.sendGet(sd); |
| | | // HttpRequest get = HttpUtil.createGet("https://www.wjx.cn/xz/215122141.aspx?review=1&u_atoken=ae7fe80c-bf23-4e45-bcda-e1a79738fa28&u_asession=014vQCkRvW7c3i2ofZKQ4cwL_Kbllht28bP58Yv5WaOmib7bTm0yOu3E9ghHeDwRromXsXiqHPUHP-r4N4zkLsNdsq8AL43dpOnCClYrgFm6o&u_asig=05cv8a98zgMB5Y5sCj2tshR0ymwhcsf5o0ZnRdzw_MWEqjWv9qUXA2y-W56hqxwwu62XCEZ1EDfpROWbv7u5K0esMlHJrRxH3x6MobynAbRVK73TZbz-pPzJrSvkDKmiOfptL_k4wm25Oa44SC2LnI-f_gUMOBxNBqpVgCnR54boOBWxWY3t65iSXiQbR5_szmksmHjM0JOodanL5-M1Qs1XAPImYHnI2tMZUJbFSrHeeZf56fnMo9lJFDBHsYIUFUSQYCfCQCLXjf34sWIadxtsAb6Kn2CIzT3kClvRmyaM_Y94r_LXIIil3Y3aVPRGAe&u_aref=OUtfes0VUTyTV7SKqEByRa9VGaU%3D"); |
| | | // String content = get.execute().body(); |
| | | // //å建æä»¶å¤¹ |
| | | // Path folder = Paths.get("E:/pc/" + newStr + ".html"); |
| | | // Path folder = Paths.get("E:/pc2/" + name + ".html"); |
| | | // Files.createFile(folder); |
| | | // Files.write(Paths.get("E:/pc/" + newStr + ".html"), content.getBytes()); |
| | | // Files.write(Paths.get("E:/pc2/" + name + ".html"), content.getBytes()); |
| | | // } |
| | | // |
| | | // if (index == -1) { |
| | | // break; |
| | | // |
| | | //// int index = 0; |
| | | //// while (true) { |
| | | //// int dd = str.indexOf("¤", index) + 1; |
| | | //// String newStr = str.substring(dd, str.indexOf("§", dd)); |
| | | //// index = dd; |
| | | //// String sd = "https://www.wjx.cn/xz/" + newStr + ".aspx"; |
| | | //// String content = HttpUtils.sendGet(sd, "review=1"); |
| | | //// |
| | | //// //å建æä»¶å¤¹ |
| | | //// Path folder = Paths.get("E:/pc/" + newStr + ".html"); |
| | | //// Files.createFile(folder); |
| | | //// Files.write(Paths.get("E:/pc/" + newStr + ".html"), content.getBytes()); |
| | | //// |
| | | //// if (index == -1) { |
| | | //// break; |
| | | //// } |
| | | //// } |
| | | //// break; |
| | | //// } |
| | | // |
| | | //// } |
| | | // |
| | | // } catch (Exception e) { |
| | | // } |
| | | // } |
| | | // break; |
| | | } |
| | | } |
| | | // } |
| | | |
| | | // } |
| | | |
| | | } catch (Exception e) { |
| | | } |
| | | } |
| | | } |
| | | //} |
| | |
| | | spring: |
| | | datasource: |
| | | type: com.alibaba.druid.pool.DruidDataSource |
| | | driverClassName: com.mysql.cj.jdbc.Driver |
| | | # driverClassName: com.mysql.cj.jdbc.Driver |
| | | druid: |
| | | # ä¸»åºæ°æ®æº |
| | | master: |
| | |
| | | url: jdbc:mysql://116.62.18.175:6002/smartor?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 |
| | | username: hxsoft |
| | | password: Hxerp2000 |
| | | driverClassName: com.mysql.cj.jdbc.Driver |
| | | # ä»åºæ°æ®æº |
| | | slave: |
| | | # 仿°æ®æºå¼å
³/é»è®¤å
³é |
| | | enabled: false |
| | | url: |
| | | username: |
| | | password: |
| | | 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 |
| | | # åå§è¿æ¥æ° |
| | | initialSize: 5 |
| | | # æå°è¿æ¥æ± æ°é |
| | |
| | | # é
ç½®ä¸ä¸ªè¿æ¥å¨æ± 䏿大çåçæ¶é´ï¼å使¯æ¯«ç§ |
| | | maxEvictableIdleTimeMillis: 900000 |
| | | # é
ç½®æ£æµè¿æ¥æ¯å¦ææ |
| | | validationQuery: SELECT 1 FROM DUAL |
| | | # validationQuery: SELECT 1 FROM DUAL |
| | | validationQuery: SELECT 1 |
| | | testWhileIdle: true |
| | | testOnBorrow: false |
| | | testOnReturn: false |
| | | webStatFilter: |
| | | enabled: true |
| | | statViewServlet: |
| | | enabled: true |
| | | enabled: false |
| | | # 设置ç½ååï¼ä¸å¡«åå
许ææè®¿é® |
| | | allow: |
| | | url-pattern: /druid/* |
| | | # æ§å¶å°ç®¡çç¨æ·ååå¯ç |
| | | login-username: ruoyi |
| | | login-password: 123456 |
| | | login-username: lihu |
| | | login-password: Lihu@1363419#$ |
| | | filter: |
| | | stat: |
| | | enabled: true |
| | |
| | | # 项ç®ç¸å
³é
ç½® |
| | | ruoyi: |
| | | # åç§° |
| | | name: RuoYi |
| | | name: lihu |
| | | # çæ¬ |
| | | version: 3.8.5 |
| | | # çæå¹´ä»½ |
| | |
| | | </root> |
| | | |
| | | <!--ç³»ç»æä½æ¥å¿--> |
| | | <root level="info"> |
| | | <root level="debug"> |
| | | <appender-ref ref="file_info" /> |
| | | <appender-ref ref="file_error" /> |
| | | </root> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.common.enums; |
| | | |
| | | public enum AdmTypeEnum { |
| | | |
| | | JZ("E", "æ¥è¯"), ZY("I", "ä½é¢"), MZ("O", "é¨è¯"), TJ("T", "使£"); |
| | | |
| | | |
| | | private String code; |
| | | private String desc; |
| | | |
| | | AdmTypeEnum(String code, String desc) { |
| | | this.code = code; |
| | | this.desc = desc; |
| | | } |
| | | |
| | | public static String getDescByCode(String code) { |
| | | AdmTypeEnum[] organEnums = values(); |
| | | for (int i = 0; i < organEnums.length; i++) { |
| | | AdmTypeEnum organEnum = organEnums[i]; |
| | | if (organEnum.getCode().equals(code)) { |
| | | return organEnum.getDesc(); |
| | | } |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | |
| | | public String getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public void setCode(String code) { |
| | | this.code = code; |
| | | } |
| | | |
| | | public String getDesc() { |
| | | return desc; |
| | | } |
| | | |
| | | public void setDesc(String desc) { |
| | | this.desc = desc; |
| | | } |
| | | } |
| | |
| | | public enum FollowUpEnum { |
| | | |
| | | HZGH("ADT^A04", "æ£è
æå·"), |
| | | YZZXJH("RGV^O15", "å»å±æ§è¡è®¡å"), |
| | | WCJZ("REF^I12", "宿æ¥è¯"), |
| | | CFSQ("OMP^O09[NW~PH~IP]", "夿¹ç³è¯·"), |
| | | CFSFQR("OMP^O09[OK^SC]", "夿¹æ¶è´¹ç¡®è®¤"), |
| | |
| | | HZJBXXXG("ADT^A31", "æ£è
åºæ¬ä¿¡æ¯ä¿®æ¹"), |
| | | |
| | | HZRY("ADT^A01", "æ£è
å
¥é¢"), |
| | | HZCY("ADT^A03", "æ£è
åºé¢"), |
| | | HZJD("ADT^A28", "æ£è
建档"), |
| | | HZQXRY("ADT^A11", "æ£è
åæ¶å
¥é¢"), |
| | | HZRK("ADT^A10", "æ£è
å
¥ç§"), |
| | | HZQXRK("ADT^A32", "æ£è
åæ¶å
¥ç§"), |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.ruoyi.common.enums; |
| | | |
| | | public enum LevelHospEnum { |
| | | |
| | | QY("01", "çæ"), HZ("02", "好转"), WY("03", "æªæ"), SW("04", "æ»äº¡"), WZ("05", "æªæ²»"), LY("06", "离é¢"), LYY("07", "çé¢"), |
| | | |
| | | QT("09", "å
¶å"); |
| | | |
| | | |
| | | private String code; |
| | | private String desc; |
| | | |
| | | LevelHospEnum(String code, String desc) { |
| | | this.code = code; |
| | | this.desc = desc; |
| | | } |
| | | |
| | | public static String getDescByCode(String code) { |
| | | LevelHospEnum[] organEnums = values(); |
| | | for (int i = 0; i < organEnums.length; i++) { |
| | | LevelHospEnum organEnum = organEnums[i]; |
| | | if (organEnum.getCode().equals(code)) { |
| | | return organEnum.getDesc(); |
| | | } |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | |
| | | public String getCode() { |
| | | return code; |
| | | } |
| | | |
| | | public void setCode(String code) { |
| | | this.code = code; |
| | | } |
| | | |
| | | public String getDesc() { |
| | | return desc; |
| | | } |
| | | |
| | | public void setDesc(String desc) { |
| | | this.desc = desc; |
| | | } |
| | | } |
| | |
| | | <groupId>com.ruoyi</groupId> |
| | | <artifactId>ruoyi-common</artifactId> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>com.ruoyi</groupId> |
| | | <artifactId>smartor</artifactId> |
| | | <version>3.8.5</version> |
| | | </dependency> |
| | | |
| | | </dependencies> |
| | | |
| | |
| | | package com.ruoyi.quartz.task; |
| | | |
| | | import com.smartor.domain.ServiceThirdData; |
| | | import com.smartor.service.IServiceThirdDataService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Component; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * 宿¶ä»»å¡è°åº¦æµè¯ |
| | |
| | | * @author ruoyi |
| | | */ |
| | | @Component("ryTask") |
| | | public class RyTask |
| | | { |
| | | public void ryMultipleParams(String s, Boolean b, Long l, Double d, Integer i) |
| | | { |
| | | public class RyTask { |
| | | @Autowired |
| | | private IServiceThirdDataService iServiceThirdDataService; |
| | | |
| | | public void ryMultipleParams(String s, Boolean b, Long l, Double d, Integer i) { |
| | | System.out.println(StringUtils.format("æ§è¡å¤åæ¹æ³ï¼ å符串类å{}ï¼å¸å°ç±»å{}ï¼é¿æ´å{}ï¼æµ®ç¹å{}ï¼æ´å½¢{}", s, b, l, d, i)); |
| | | } |
| | | |
| | | public void ryParams(String params) |
| | | { |
| | | public void ryParams(String params) { |
| | | System.out.println("æ§è¡æåæ¹æ³ï¼" + params); |
| | | } |
| | | |
| | | public void ryNoParams() |
| | | { |
| | | public void ryNoParams() { |
| | | System.out.println("æ§è¡æ åæ¹æ³"); |
| | | } |
| | | |
| | | public void analysisData() { |
| | | System.out.println("---------------------------"); |
| | | //æ°æ®è§£æ |
| | | ServiceThirdData serviceThirdData = new ServiceThirdData(); |
| | | serviceThirdData.setDataType("ADT^A03"); |
| | | serviceThirdData.setIsDeal(0); |
| | | serviceThirdData.setCreateTime(new Date()); |
| | | iServiceThirdDataService.queryList(serviceThirdData); |
| | | |
| | | } |
| | | } |
| | |
| | | { |
| | | // æ§è¡è°åº¦ä»»å¡ |
| | | scheduler.scheduleJob(jobDetail, trigger); |
| | | scheduler.deleteJob(jobDetail.getKey()); |
| | | // scheduler.deleteJob(jobDetail.getKey()); |
| | | } |
| | | |
| | | // æåä»»å¡ |
| | |
| | | <artifactId>nls-sdk-tts</artifactId> |
| | | <version>2.2.1</version> |
| | | </dependency> |
| | | |
| | | <!-- https://mvnrepository.com/artifact/ca.uhn.hapi/hapi-base --> |
| | | <dependency> |
| | | <groupId>ca.uhn.hapi</groupId> |
| | | <artifactId>hapi-base</artifactId> |
| | | <version>2.3</version> |
| | | </dependency> |
| | | <!-- https://mvnrepository.com/artifact/ca.uhn.hapi/hapi-structures-v24 --> |
| | | <dependency> |
| | | <groupId>ca.uhn.hapi</groupId> |
| | | <artifactId>hapi-structures-v24</artifactId> |
| | | <version>2.3</version> |
| | | </dependency> |
| | | |
| | | <dependency> |
| | | <groupId>com.googlecode.json-simple</groupId> |
| | | <artifactId>json-simple</artifactId> |
| | | <version>1.1.1</version> |
| | | </dependency> |
| | | </dependencies> |
| | | |
| | | |
| | |
| | | */ |
| | | @Excel(name = " çæ¬ ") |
| | | @ApiModelProperty("çæ¬") |
| | | private BigDecimal version; |
| | | private String version; |
| | | |
| | | /** |
| | | * 宣æå½¢å¼ :ææ¬ãå¾çãè¯é³ãè§é¢ãæ··å |
| | |
| | | */ |
| | | @Excel(name = "éç¨æ¹å¼ï¼è°æ¥è¡¨1ï¼æºè½è¯é³2ã人工3") |
| | | @ApiModelProperty("éç¨æ¹å¼ï¼è°æ¥è¡¨1ï¼æºè½è¯é³2ã人工3") |
| | | private String suitway; |
| | | private String suitway = ""; |
| | | |
| | | /** |
| | | * ç§å®¤åç§° |
| | |
| | | */ |
| | | @Excel(name = " çæ¬ ") |
| | | @ApiModelProperty("çæ¬") |
| | | private BigDecimal version; |
| | | private String version; |
| | | |
| | | /** |
| | | * 宣æå½¢å¼ :ææ¬ãå¾çãè¯é³ãè§é¢ãæ··å |
| | |
| | | */ |
| | | @Excel(name = "éç¨æ¹å¼ï¼è°æ¥è¡¨1ï¼æºè½è¯é³2ã人工3") |
| | | @ApiModelProperty("éç¨æ¹å¼ï¼è°æ¥è¡¨1ï¼æºè½è¯é³2ã人工3") |
| | | private String suitway; |
| | | private String suitway = ""; |
| | | |
| | | @ApiModelProperty("ææ æ ç¾å¯¹è±¡éå") |
| | | private List<HeLibraryTag> heLibraryTagList = new ArrayList<>(); |
| | |
| | | */ |
| | | private HeLibraryVO heLibraryVOs; |
| | | |
| | | /** |
| | | * æ¯å¦å卿ä½ï¼1 æ°å¢ 2ä¿®æ¹ 3å é¤ |
| | | */ |
| | | @ApiModelProperty(value = "æ¯å¦å卿ä½ï¼1 æ°å¢ 2ä¿®æ¹ 3å é¤") |
| | | private Integer isoperation; |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.domain; |
| | | |
| | | import io.swagger.annotations.ApiModel; |
| | | import lombok.Data; |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | import com.ruoyi.common.annotation.Excel; |
| | | import com.ruoyi.common.core.domain.BaseEntity; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * ã请填ååè½åç§°ã对象 hospital_record |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-01-26 |
| | | */ |
| | | @Data |
| | | @ApiModel(value = "HospitalRecord", description = "å»é¢æ£è
è®°å½") |
| | | public class HospitalRecord extends BaseEntity { |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private Long ID; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String sourceSystem; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String messageID; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String methodName; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String reqIimRules; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String patientID; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private Date opreationTime; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String episodeID; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String outMedNO; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String inMedNO; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String visitNum; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String admTypeCode; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String admTypeDesc; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String admStatus; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String admDate; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String encPatName; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String encPatGender; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String encPatBirthDate; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String transferstart; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String transferend; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String encPatMaritalStatus; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String originalText; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String encDocList; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String encAdmLocList; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String encounterPeriodStart; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String encounterPeriodEnd; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String encounterBooktime; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String encAdmSource; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String encInhostype; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String encDietName; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String encOuthostype; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String encVisitnum; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String encChargeType; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String encChargeTypeName; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String encChargeCode; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String encChargeName; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String encReglevelcode; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String encCareLevel; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String specialday; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String primaryday; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String secondaryday; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String tertiaryday; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String enroomno; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String enBedno; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String encSeeno; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String encAgeUnit; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String encAgeValue; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String enIsbaby; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String encHavebaby; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String encDiagList; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String directorCode; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String directorName; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String encDiagnosisCode; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String encDiagnosisDesc; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String encAdmLocCode; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String encAdmLocName; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private Long taskStatus; |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.domain; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import lombok.Data; |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | import com.ruoyi.common.annotation.Excel; |
| | | import com.ruoyi.common.core.domain.BaseEntity; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * ã请填ååè½åç§°ã对象 hospital_userinfo |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-01-29 |
| | | */ |
| | | @Data |
| | | public class HospitalUserinfo{ |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | private Long ID; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String SourceSystem; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String MessageID; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String MethodName; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String ReqIimRules; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String PatientID; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String VisitNum; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String RegDate; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String IdentityID; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String PatName; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String Phone; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String PatSex; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String BirthDate; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String Address; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String AddProvince; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String AddCity; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String AddCounty; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String AddTown; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String AddVillage; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String AddHouseNo; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String HouseAddress; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String HouseAddProvince; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String HouseAddCity; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String HouseAddCounty; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String HouseAddTown; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String HouseAddVillage; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String HouseAddHouseNo; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String BirthAddress; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String BirthAddProvince; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String BirthAddCity; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String BirthAddCounty; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String BirthAddTown; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String BirthAddVillage; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String BirthAddHouseNo; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String ContactsAddress; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String ContactsAddProvince; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String ContactsAddCity; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String ContactsAddCounty; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String ContactsAddTown; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String ContactsAddVillage; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String ContactsAddHouseNo; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String NativeAddress; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String NativeAddProvince; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String NativeAddCity; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String NativeAddCounty; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String NativeAddTown; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String NativeAddVillage; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String NativeAddHouseNo; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String PostalCode; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String HouseCode; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String WorkCode; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String MaritalStatus; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String Country; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String Nation; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String NationCode; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String OccupType; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String OccupTypeCode; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String WorkUnit; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String WorkPhone; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String HCardNo; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String HCIssuersCode; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String HUrbanCode; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String MedOrgCode; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String paycode; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String payname; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String ConRelShip; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String ConPerPhone; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String ConPerName; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String RegOrgCode; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String RegOrgDesc; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String InsureOrgName; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String InsureOrgCode; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String RegEmpCode; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String RegEmpName; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String INEnroomno; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String OUTEnroomno; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String EncAdmSource; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String Directordoc; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String Attenddoc; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String Beddoc; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String Bednur; |
| | | |
| | | /** |
| | | * $column.columnComment |
| | | */ |
| | | @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") |
| | | private String Regdoc; |
| | | |
| | | /** |
| | | * å建æ¶é´ |
| | | */ |
| | | private String CreateTime; |
| | | |
| | | } |
| | |
| | | private String guid; |
| | | |
| | | /** |
| | | * GUID |
| | | */ |
| | | @Excel(name = "GUID") |
| | | @ApiModelProperty(value = "GUID") |
| | | private String tagname; |
| | | |
| | | /** |
| | | * æ¯å¦å卿ä½ï¼1 æ°å¢ 2ä¿®æ¹ 3å é¤ |
| | | */ |
| | | @ApiModelProperty(value = "æ¯å¦å卿ä½ï¼1 æ°å¢ 2ä¿®æ¹ 3å é¤") |
| | |
| | | @Excel(name = " ç§å®¤ ") |
| | | private String dept; |
| | | |
| | | /** |
| | | * ééå· |
| | | */ |
| | | @ApiModelProperty("ç§å®¤") |
| | | @Excel(name = " ç§å®¤ ") |
| | | private String bedNo; |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("patid", getPatid()).append("name", getName()).append("sex", getSex()).append("idcardno", getIdcardno()).append("birthdate", getBirthdate()).append("age", getAge()).append("source", getSource()).append("archivetime", getArchivetime()).append("archiveby", getArchiveby()).append("telcode", getTelcode()).append("relativetelcode", getRelativetelcode()).append("idcardtype", getIdcardtype()).append("orgid", getOrgid()).append("openid", getOpenid()).append("delFlag", getDelFlag()).append("updateBy", getUpdateBy()).append("updateTime", getUpdateTime()).append("createBy", getCreateBy()).append("createTime", getCreateTime()).append("isupload", getIsupload()).append("uploadTime", getUploadTime()).toString(); |
| | |
| | | @ApiModelProperty(value = "æ¯å¦å卿ä½ï¼1 æ°å¢ 2ä¿®æ¹ 3å é¤") |
| | | private Integer isoperation; |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("tagname", getTagname()).append("id", getId()).append("tagcategoryid", getTagcategoryid()).append("tagid", getTagid()).append("orgid", getOrgid()).append("delFlag", getDelFlag()).append("updateBy", getUpdateBy()).append("updateTime", getUpdateTime()).append("createBy", getCreateBy()).append("createTime", getCreateTime()).append("isupload", getIsupload()).append("uploadTime", getUploadTime()).append("patid", getPatid()).toString(); |
| | | } |
| | | |
| | | } |
| | |
| | | import com.ruoyi.common.annotation.Excel; |
| | | import com.ruoyi.common.core.domain.BaseEntity; |
| | | |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * æ£è
ä¸å®£æä»»å¡å
³è对象 pat_hetask_relevance |
| | | * |
| | |
| | | */ |
| | | @Excel(name = "æ£è
ID") |
| | | @ApiModelProperty("æ£è
ID") |
| | | private Long patId; |
| | | private Long patid; |
| | | |
| | | /** |
| | | * 宣æä»»å¡ID |
| | |
| | | private Long heTaskId; |
| | | |
| | | /** |
| | | * å é¤ï¼0ä¸å é¤ 1å é¤ |
| | | * å 餿 è®° |
| | | */ |
| | | @ApiModelProperty("å é¤ï¼0ä¸å é¤ 1å é¤") |
| | | private Long delFlag; |
| | | @ApiModelProperty(value = "å 餿 è®°") |
| | | private String delFlag; |
| | | |
| | | /** |
| | | * å§å |
| | |
| | | */ |
| | | @Excel(name = "åºå·") |
| | | @ApiModelProperty("åºå·") |
| | | private Long badNo; |
| | | private Long bedno; |
| | | |
| | | /** |
| | | * ç§å®¤ |
| | |
| | | @ApiModelProperty("ç
åå·") |
| | | private String medicalRecordNo; |
| | | |
| | | /** |
| | | * ç
åå· |
| | | */ |
| | | @Excel(name = "åéç¶æ") |
| | | @ApiModelProperty("åéç¶æ") |
| | | private Integer sendStatus; |
| | | |
| | | |
| | | /** |
| | | * åéæ¶é´ |
| | | */ |
| | | @Excel(name = "åéæ¶é´") |
| | | @ApiModelProperty("åéæ¶é´") |
| | | private Date sendTime; |
| | | |
| | | |
| | | /** |
| | | * æä½äºº |
| | | */ |
| | | @Excel(name = "æä½äºº") |
| | | @ApiModelProperty("æä½äºº") |
| | | private String operatePerson; |
| | | |
| | | |
| | | /** |
| | | * æ¥æ¶æ¶é´ |
| | | */ |
| | | @Excel(name = "æ¥æ¶æ¶é´") |
| | | @ApiModelProperty("æ¥æ¶æ¶é´") |
| | | private String receiveTime; |
| | | |
| | | /** |
| | | * æ¯å¦å卿ä½ï¼1 æ°å¢ 2ä¿®æ¹ 3å é¤ |
| | | */ |
| | | @ApiModelProperty(value = "æ¯å¦å卿ä½ï¼1 æ°å¢ 2ä¿®æ¹ 3å é¤") |
| | | private Integer isoperation; |
| | | |
| | | } |
| | |
| | | /** |
| | | * é®å¸é¢ç®åç±»ID |
| | | */ |
| | | @ApiModelProperty("èçæ¬ID") |
| | | @ApiModelProperty("åç±»ID") |
| | | private Long categoryid; |
| | | |
| | | /** |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.mapper; |
| | | |
| | | import com.ruoyi.common.annotation.DataSource; |
| | | import com.ruoyi.common.enums.DataSourceType; |
| | | import com.smartor.domain.HospitalRecord; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * ã请填ååè½åç§°ãMapperæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-01-26 |
| | | */ |
| | | @DataSource(value = DataSourceType.SLAVE) |
| | | @Mapper |
| | | public interface HospitalRecordMapper { |
| | | /** |
| | | * æ¥è¯¢ã请填ååè½åç§°ã |
| | | * |
| | | * @param ID ã请填ååè½åç§°ãä¸»é® |
| | | * @return ã请填ååè½åç§°ã |
| | | */ |
| | | public HospitalRecord selectHospitalRecordByID(String ID); |
| | | |
| | | /** |
| | | * æ¥è¯¢ã请填ååè½åç§°ãå表 |
| | | * |
| | | * @param hospitalRecord ã请填ååè½åç§°ã |
| | | * @return ã请填ååè½åç§°ãéå |
| | | */ |
| | | public List<HospitalRecord> selectHospitalRecordList(HospitalRecord hospitalRecord); |
| | | |
| | | /** |
| | | * æ°å¢ã请填ååè½åç§°ã |
| | | * |
| | | * @param hospitalRecord ã请填ååè½åç§°ã |
| | | * @return ç»æ |
| | | */ |
| | | public int insertHospitalRecord(HospitalRecord hospitalRecord); |
| | | |
| | | /** |
| | | * ä¿®æ¹ã请填ååè½åç§°ã |
| | | * |
| | | * @param hospitalRecord ã请填ååè½åç§°ã |
| | | * @return ç»æ |
| | | */ |
| | | public int updateHospitalRecord(HospitalRecord hospitalRecord); |
| | | |
| | | /** |
| | | * å é¤ã请填ååè½åç§°ã |
| | | * |
| | | * @param ID ã请填ååè½åç§°ãä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteHospitalRecordByID(String ID); |
| | | |
| | | /** |
| | | * æ¹éå é¤ã请填ååè½åç§°ã |
| | | * |
| | | * @param IDs éè¦å é¤çæ°æ®ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteHospitalRecordByIDs(String[] IDs); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.mapper; |
| | | |
| | | import com.ruoyi.common.annotation.DataSource; |
| | | import com.ruoyi.common.enums.DataSourceType; |
| | | import com.smartor.domain.HospitalUserinfo; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * ã请填ååè½åç§°ãMapperæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-01-29 |
| | | */ |
| | | @DataSource(value = DataSourceType.SLAVE) |
| | | @Mapper |
| | | public interface HospitalUserinfoMapper { |
| | | /** |
| | | * æ¥è¯¢ã请填ååè½åç§°ã |
| | | * |
| | | * @param ID ã请填ååè½åç§°ãä¸»é® |
| | | * @return ã请填ååè½åç§°ã |
| | | */ |
| | | public HospitalUserinfo selectHospitalUserinfoByID(Long ID); |
| | | |
| | | /** |
| | | * æ¥è¯¢ã请填ååè½åç§°ãå表 |
| | | * |
| | | * @param hospitalUserinfo ã请填ååè½åç§°ã |
| | | * @return ã请填ååè½åç§°ãéå |
| | | */ |
| | | public List<HospitalUserinfo> selectHospitalUserinfoList(HospitalUserinfo hospitalUserinfo); |
| | | |
| | | /** |
| | | * æ°å¢ã请填ååè½åç§°ã |
| | | * |
| | | * @param hospitalUserinfo ã请填ååè½åç§°ã |
| | | * @return ç»æ |
| | | */ |
| | | public int insertHospitalUserinfo(HospitalUserinfo hospitalUserinfo); |
| | | |
| | | /** |
| | | * ä¿®æ¹ã请填ååè½åç§°ã |
| | | * |
| | | * @param hospitalUserinfo ã请填ååè½åç§°ã |
| | | * @return ç»æ |
| | | */ |
| | | public int updateHospitalUserinfo(HospitalUserinfo hospitalUserinfo); |
| | | |
| | | /** |
| | | * å é¤ã请填ååè½åç§°ã |
| | | * |
| | | * @param ID ã请填ååè½åç§°ãä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteHospitalUserinfoByID(Long ID); |
| | | |
| | | /** |
| | | * æ¹éå é¤ã请填ååè½åç§°ã |
| | | * |
| | | * @param IDs éè¦å é¤çæ°æ®ä¸»é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteHospitalUserinfoByIDs(Long[] IDs); |
| | | } |
| | |
| | | * @return ç»æ |
| | | */ |
| | | public int insertThirdData(ServiceThirdData serviceThirdData); |
| | | |
| | | public int insertThirdDataZxyzjh(ServiceThirdData serviceThirdData); |
| | | |
| | | public int insertThirdDataCfxzsq(ServiceThirdData serviceThirdData); |
| | | |
| | | public int updateIsDeal(Long id); |
| | | } |
| | |
| | | * @param heTaskVO 宣æä»»å¡ |
| | | * @return ç»æ |
| | | */ |
| | | public int insertHeTask(HeTaskVO heTaskVO); |
| | | public int insertOrUpdateHeTask(HeTaskVO heTaskVO); |
| | | |
| | | /** |
| | | * ä¿®æ¹å®£æä»»å¡ |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service; |
| | | |
| | | import com.smartor.domain.HospitalRecord; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * ã请填ååè½åç§°ãServiceæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-01-26 |
| | | */ |
| | | public interface IHospitalRecordService |
| | | { |
| | | /** |
| | | * æ¥è¯¢ã请填ååè½åç§°ã |
| | | * |
| | | * @param ID ã请填ååè½åç§°ãä¸»é® |
| | | * @return ã请填ååè½åç§°ã |
| | | */ |
| | | public HospitalRecord selectHospitalRecordByID(String ID); |
| | | |
| | | /** |
| | | * æ¥è¯¢ã请填ååè½åç§°ãå表 |
| | | * |
| | | * @param hospitalRecord ã请填ååè½åç§°ã |
| | | * @return ã请填ååè½åç§°ãéå |
| | | */ |
| | | public List<HospitalRecord> selectHospitalRecordList(HospitalRecord hospitalRecord); |
| | | |
| | | /** |
| | | * æ°å¢ã请填ååè½åç§°ã |
| | | * |
| | | * @param hospitalRecord ã请填ååè½åç§°ã |
| | | * @return ç»æ |
| | | */ |
| | | public int insertHospitalRecord(HospitalRecord hospitalRecord); |
| | | |
| | | /** |
| | | * ä¿®æ¹ã请填ååè½åç§°ã |
| | | * |
| | | * @param hospitalRecord ã请填ååè½åç§°ã |
| | | * @return ç»æ |
| | | */ |
| | | public int updateHospitalRecord(HospitalRecord hospitalRecord); |
| | | |
| | | /** |
| | | * æ¹éå é¤ã请填ååè½åç§°ã |
| | | * |
| | | * @param IDs éè¦å é¤çã请填ååè½åç§°ã主é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteHospitalRecordByIDs(String[] IDs); |
| | | |
| | | /** |
| | | * å é¤ã请填ååè½åç§°ãä¿¡æ¯ |
| | | * |
| | | * @param ID ã请填ååè½åç§°ãä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteHospitalRecordByID(String ID); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service; |
| | | |
| | | import com.smartor.domain.HospitalUserinfo; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * ã请填ååè½åç§°ãServiceæ¥å£ |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-01-29 |
| | | */ |
| | | public interface IHospitalUserinfoService |
| | | { |
| | | /** |
| | | * æ¥è¯¢ã请填ååè½åç§°ã |
| | | * |
| | | * @param ID ã请填ååè½åç§°ãä¸»é® |
| | | * @return ã请填ååè½åç§°ã |
| | | */ |
| | | public HospitalUserinfo selectHospitalUserinfoByID(Long ID); |
| | | |
| | | /** |
| | | * æ¥è¯¢ã请填ååè½åç§°ãå表 |
| | | * |
| | | * @param hospitalUserinfo ã请填ååè½åç§°ã |
| | | * @return ã请填ååè½åç§°ãéå |
| | | */ |
| | | public List<HospitalUserinfo> selectHospitalUserinfoList(HospitalUserinfo hospitalUserinfo); |
| | | |
| | | /** |
| | | * æ°å¢ã请填ååè½åç§°ã |
| | | * |
| | | * @param hospitalUserinfo ã请填ååè½åç§°ã |
| | | * @return ç»æ |
| | | */ |
| | | public int insertHospitalUserinfo(HospitalUserinfo hospitalUserinfo); |
| | | |
| | | /** |
| | | * ä¿®æ¹ã请填ååè½åç§°ã |
| | | * |
| | | * @param hospitalUserinfo ã请填ååè½åç§°ã |
| | | * @return ç»æ |
| | | */ |
| | | public int updateHospitalUserinfo(HospitalUserinfo hospitalUserinfo); |
| | | |
| | | /** |
| | | * æ¹éå é¤ã请填ååè½åç§°ã |
| | | * |
| | | * @param IDs éè¦å é¤çã请填ååè½åç§°ã主é®éå |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteHospitalUserinfoByIDs(Long[] IDs); |
| | | |
| | | /** |
| | | * å é¤ã请填ååè½åç§°ãä¿¡æ¯ |
| | | * |
| | | * @param ID ã请填ååè½åç§°ãä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | public int deleteHospitalUserinfoByID(Long ID); |
| | | } |
| | |
| | | package com.smartor.service.impl; |
| | | |
| | | import com.ruoyi.common.enums.SendTypeEnum; |
| | | import com.ruoyi.common.exception.base.BaseException; |
| | | import com.ruoyi.common.utils.DateUtils; |
| | | import com.ruoyi.common.utils.DtoConversionUtils; |
| | | import com.smartor.common.SendService; |
| | |
| | | import com.smartor.mapper.PatArchiveMapper; |
| | | import com.smartor.mapper.PatHetaskRelevanceMapper; |
| | | import com.smartor.service.IHeTaskService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.collections4.CollectionUtils; |
| | | import org.apache.commons.lang3.ObjectUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | * @author ruoyi |
| | | * @date 2024-01-07 |
| | | */ |
| | | @Slf4j |
| | | @Service |
| | | public class HeTaskServiceImpl implements IHeTaskService { |
| | | @Autowired |
| | |
| | | * @param heTaskVO 宣æä»»å¡ |
| | | * @return ç»æ |
| | | */ |
| | | // @Transactional(rollbackFor = Exception.class) |
| | | // @Override |
| | | // public int insertHeTask(HeTaskVO heTaskVO) { |
| | | // |
| | | // Integer integer = 0; |
| | | // //夿åéç¶æ 0 æååé 1 宿¶åé 2 ç«å³åé |
| | | // if (heTaskVO.getIsSend() == 2) { |
| | | // //åéæ¹å¼ |
| | | // String sendtype = SendTypeEnum.getDescByCode(heTaskVO.getPreachform().intValue()); |
| | | // for (PatHetaskRelevance patHetaskRelevance : heTaskVO.getPatHetaskRelevances()) { |
| | | // //å¼å§åé |
| | | // SendMagParam sendMagParam = new SendMagParam(); |
| | | // sendMagParam.setType(sendtype); |
| | | // sendMagParam.setPhone(patHetaskRelevance.getPhone()); |
| | | // //è¿éçæ¨¡æ¿IDä¸ç¡®å®ï¼å
è¿æ ·å |
| | | // sendMagParam.setTmpCode("SMS_461860582"); |
| | | // sendMagParam.setContent("Teståéæ°æ®"); |
| | | // Boolean success = sendService.sendMsg(sendMagParam); |
| | | // if (success) { |
| | | // integer = integer + 1; |
| | | // } |
| | | // |
| | | // //å¿
é¡»å
¨é¨æåï¼æè½ä¿®æ¹åéç¶æ |
| | | // if (heTaskVO.getPatHetaskRelevances().size() == integer) { |
| | | // //妿åéæå |
| | | // heTaskVO.setSendState(1L); |
| | | // } |
| | | // } |
| | | // //å°ä»»å¡ä¿¡æ¯æ°å¢å°å®£æä»»å¡è¡¨ä¸ |
| | | // HeTask heTask = DtoConversionUtils.sourceToTarget(heTaskVO, HeTask.class); |
| | | // heTask.setCreateTime(DateUtils.getNowDate()); |
| | | // heTaskMapper.insertHeTask(heTask); |
| | | // |
| | | // //å°ä»»å¡ä¸æ£è
å
³è |
| | | // Integer i = null; |
| | | // if (ObjectUtils.isNotEmpty(heTaskVO.getPatHetaskRelevances())) { |
| | | // for (PatHetaskRelevance patHetaskRelevance : heTaskVO.getPatHetaskRelevances()) { |
| | | // patHetaskRelevance.setHeTaskId(heTask.getId()); |
| | | // i = patHetaskRelevanceMapper.insertPatHetaskRelevance(patHetaskRelevance); |
| | | // } |
| | | // |
| | | // } |
| | | // |
| | | // } else if (heTaskVO.getIsSend() == 1) { |
| | | // //宿¶åé(弿¥) |
| | | // Timer timer = new Timer(); |
| | | // timer.schedule(new TimerTask() { |
| | | // @Override |
| | | // public void run() { |
| | | // Integer integer = 0; |
| | | // for (PatHetaskRelevance patHetaskRelevance : heTaskVO.getPatHetaskRelevances()) { |
| | | // String sendtype = SendTypeEnum.getDescByCode(heTaskVO.getPreachform().intValue()); |
| | | // SendMagParam sendMagParam = new SendMagParam(); |
| | | // sendMagParam.setType(sendtype); |
| | | // sendMagParam.setPhone(patHetaskRelevance.getPhone()); |
| | | // //è¿éçæ¨¡æ¿IDä¸ç¡®å®ï¼å
è¿æ ·å |
| | | // sendMagParam.setTmpCode("SMS_461860582"); |
| | | // sendMagParam.setContent("Teståéæ°æ®"); |
| | | // Boolean success = sendService.sendMsg(sendMagParam); |
| | | // if (success) { |
| | | // integer = integer + 1; |
| | | // } |
| | | // } |
| | | // //å¿
é¡»å
¨é¨æåï¼æè½ä¿®æ¹åéç¶æ |
| | | // if (heTaskVO.getPatHetaskRelevances().size() == integer) { |
| | | // //妿åéæå |
| | | // heTaskVO.setSendState(1L); |
| | | // } |
| | | // HeTask heTask = DtoConversionUtils.sourceToTarget(heTaskVO, HeTask.class); |
| | | // heTask.setCreateTime(DateUtils.getNowDate()); |
| | | // heTaskMapper.insertHeTask(heTask); |
| | | // |
| | | // if (ObjectUtils.isNotEmpty(heTaskVO.getPatHetaskRelevances())) { |
| | | // for (PatHetaskRelevance patHetaskRelevance : heTaskVO.getPatHetaskRelevances()) { |
| | | // patHetaskRelevance.setHeTaskId(heTask.getId()); |
| | | // patHetaskRelevanceMapper.insertPatHetaskRelevance(patHetaskRelevance); |
| | | // } |
| | | // |
| | | // } |
| | | // } |
| | | // }, heTaskVO.getSendTime()); |
| | | // |
| | | // } |
| | | // return 1; |
| | | // } |
| | | |
| | | /** |
| | | * æ°å¢å®£æä»»å¡ |
| | | * |
| | | * @param heTaskVO 宣æä»»å¡ |
| | | * @return ç»æ |
| | | */ |
| | | @Transactional(rollbackFor = Exception.class) |
| | | @Override |
| | | public int insertHeTask(HeTaskVO heTaskVO) { |
| | | |
| | | public int insertOrUpdateHeTask(HeTaskVO heTaskVO) { |
| | | if (ObjectUtils.isEmpty(heTaskVO)) { |
| | | log.info("宣æä»»å¡å
¥å为空ï¼è¯·æ£æ¥å
¥å"); |
| | | throw new BaseException("宣æä»»å¡å
¥å为空ï¼è¯·æ£æ¥å
¥å"); |
| | | } |
| | | Integer integer = 0; |
| | | //夿åéç¶æ 0 æååé 1 宿¶åé 2 ç«å³åé |
| | | if (heTaskVO.getIsSend() == 2) { |
| | | //åéæ¹å¼ |
| | | String sendtype = SendTypeEnum.getDescByCode(heTaskVO.getPreachform().intValue()); |
| | | for (PatHetaskRelevance patHetaskRelevance : heTaskVO.getPatHetaskRelevances()) { |
| | | //å¼å§åé |
| | | SendMagParam sendMagParam = new SendMagParam(); |
| | | sendMagParam.setType(sendtype); |
| | | sendMagParam.setPhone(patHetaskRelevance.getPhone()); |
| | | //è¿éçæ¨¡æ¿IDä¸ç¡®å®ï¼å
è¿æ ·å |
| | | sendMagParam.setTmpCode("SMS_461860582"); |
| | | sendMagParam.setContent("Teståéæ°æ®"); |
| | | Boolean success = sendService.sendMsg(sendMagParam); |
| | | if (success) { |
| | | integer = integer + 1; |
| | | } |
| | | if (heTaskVO.getIsoperation() != null && heTaskVO.getIsoperation() == 1) { |
| | | |
| | | //å¿
é¡»å
¨é¨æåï¼æè½ä¿®æ¹åéç¶æ |
| | | if (heTaskVO.getPatHetaskRelevances().size() == integer) { |
| | | //妿åéæå |
| | | heTaskVO.setSendState(1L); |
| | | } |
| | | } |
| | | //å°ä»»å¡ä¿¡æ¯æ°å¢å°å®£æä»»å¡è¡¨ä¸ |
| | | HeTask heTask = DtoConversionUtils.sourceToTarget(heTaskVO, HeTask.class); |
| | | heTask.setCreateTime(DateUtils.getNowDate()); |
| | | heTaskMapper.insertHeTask(heTask); |
| | | |
| | | //å°ä»»å¡ä¸æ£è
å
³è |
| | | Integer i = null; |
| | | if (ObjectUtils.isNotEmpty(heTaskVO.getPatHetaskRelevances())) { |
| | | for (PatHetaskRelevance patHetaskRelevance : heTaskVO.getPatHetaskRelevances()) { |
| | | patHetaskRelevance.setHeTaskId(heTask.getId()); |
| | | i = patHetaskRelevanceMapper.insertPatHetaskRelevance(patHetaskRelevance); |
| | | } |
| | | |
| | | } |
| | | |
| | | } else if (heTaskVO.getIsSend() == 1) { |
| | | //宿¶åé(弿¥) |
| | | Timer timer = new Timer(); |
| | | timer.schedule(new TimerTask() { |
| | | @Override |
| | | public void run() { |
| | | Integer integer = 0; |
| | | for (PatHetaskRelevance patHetaskRelevance : heTaskVO.getPatHetaskRelevances()) { |
| | | String sendtype = SendTypeEnum.getDescByCode(heTaskVO.getPreachform().intValue()); |
| | | SendMagParam sendMagParam = new SendMagParam(); |
| | | sendMagParam.setType(sendtype); |
| | | sendMagParam.setPhone(patHetaskRelevance.getPhone()); |
| | | //è¿éçæ¨¡æ¿IDä¸ç¡®å®ï¼å
è¿æ ·å |
| | | sendMagParam.setTmpCode("SMS_461860582"); |
| | | sendMagParam.setContent("Teståéæ°æ®"); |
| | | Boolean success = sendService.sendMsg(sendMagParam); |
| | | if (success) { |
| | | integer = integer + 1; |
| | | } |
| | | } |
| | | //å¿
é¡»å
¨é¨æåï¼æè½ä¿®æ¹åéç¶æ |
| | | if (heTaskVO.getPatHetaskRelevances().size() == integer) { |
| | | //妿åéæå |
| | | heTaskVO.setSendState(1L); |
| | | } |
| | | HeTask heTask = DtoConversionUtils.sourceToTarget(heTaskVO, HeTask.class); |
| | | heTask.setCreateTime(DateUtils.getNowDate()); |
| | | heTaskMapper.insertHeTask(heTask); |
| | | |
| | | if (ObjectUtils.isNotEmpty(heTaskVO.getPatHetaskRelevances())) { |
| | | integer = heTask.getId().intValue(); |
| | | //æ°å¢ |
| | | for (PatHetaskRelevance patHetaskRelevance : heTaskVO.getPatHetaskRelevances()) { |
| | | patHetaskRelevance.setHeTaskId(heTask.getId()); |
| | | patHetaskRelevanceMapper.insertPatHetaskRelevance(patHetaskRelevance); |
| | | } |
| | | |
| | | } else if (heTaskVO.getIsoperation() != null && heTaskVO.getIsoperation() == 2) { |
| | | HeTask heTask = DtoConversionUtils.sourceToTarget(heTaskVO, HeTask.class); |
| | | heTask.setUpdateTime(DateUtils.getNowDate()); |
| | | heTaskMapper.updateHeTask(heTask); |
| | | //æ°å¢ãå é¤ãä¿®æ¹æ£è
ä¿¡æ¯ |
| | | for (PatHetaskRelevance patHetaskRelevance : heTaskVO.getPatHetaskRelevances()) { |
| | | if (patHetaskRelevance.getIsoperation() != null && patHetaskRelevance.getIsoperation() == 1) { |
| | | patHetaskRelevanceMapper.insertPatHetaskRelevance(patHetaskRelevance); |
| | | } else if (patHetaskRelevance.getIsoperation() != null && patHetaskRelevance.getIsoperation() == 2) { |
| | | patHetaskRelevance.setHeTaskId(heTask.getId()); |
| | | patHetaskRelevanceMapper.updatePatHetaskRelevance(patHetaskRelevance); |
| | | } else if (patHetaskRelevance.getIsoperation() != null && patHetaskRelevance.getIsoperation() == 3) { |
| | | patHetaskRelevanceMapper.deletePatHetaskRelevanceById(patHetaskRelevance.getId()); |
| | | } |
| | | } |
| | | }, heTaskVO.getSendTime()); |
| | | integer = heTask.getId().intValue(); |
| | | } else if (heTaskVO.getIsoperation() != null && heTaskVO.getIsoperation() == 3) { |
| | | heTaskMapper.deleteHeTaskById(heTaskVO.getId()); |
| | | |
| | | //å 餿£è
ä¿¡æ¯ |
| | | for (PatHetaskRelevance patHetaskRelevance : heTaskVO.getPatHetaskRelevances()) { |
| | | if (patHetaskRelevance.getIsoperation() != null && patHetaskRelevance.getIsoperation() == 3) { |
| | | patHetaskRelevanceMapper.deletePatHetaskRelevanceById(patHetaskRelevance.getId()); |
| | | } |
| | | return 1; |
| | | } |
| | | integer = heTaskVO.getId().intValue(); |
| | | } |
| | | return integer; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * ä¿®æ¹å®£æä»»å¡ |
| | |
| | | } |
| | | for (PatArchive patArchive : patArchiveList) { |
| | | PatHetaskRelevance patHetaskRelevance = DtoConversionUtils.sourceToTarget(patArchive, PatHetaskRelevance.class); |
| | | patHetaskRelevance.setDept(patArchive.getArchiveby()); |
| | | patHetaskRelevance.setCreateTime(patArchive.getCreateTime()); |
| | | patHetaskRelevance.setCreateBy(patArchive.getCreateBy()); |
| | | patHetaskRelevances.add(patHetaskRelevance); |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service.impl; |
| | | |
| | | import com.smartor.domain.HospitalRecord; |
| | | import com.smartor.mapper.HospitalRecordMapper; |
| | | import com.smartor.service.IHospitalRecordService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * ã请填ååè½åç§°ãServiceä¸å¡å±å¤ç |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-01-26 |
| | | */ |
| | | @Service |
| | | public class HospitalRecordServiceImpl implements IHospitalRecordService |
| | | { |
| | | @Autowired |
| | | private HospitalRecordMapper hospitalRecordMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢ã请填ååè½åç§°ã |
| | | * |
| | | * @param ID ã请填ååè½åç§°ãä¸»é® |
| | | * @return ã请填ååè½åç§°ã |
| | | */ |
| | | @Override |
| | | public HospitalRecord selectHospitalRecordByID(String ID) |
| | | { |
| | | return hospitalRecordMapper.selectHospitalRecordByID(ID); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢ã请填ååè½åç§°ãå表 |
| | | * |
| | | * @param hospitalRecord ã请填ååè½åç§°ã |
| | | * @return ã请填ååè½åç§°ã |
| | | */ |
| | | @Override |
| | | public List<HospitalRecord> selectHospitalRecordList(HospitalRecord hospitalRecord) |
| | | { |
| | | return hospitalRecordMapper.selectHospitalRecordList(hospitalRecord); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢ã请填ååè½åç§°ã |
| | | * |
| | | * @param hospitalRecord ã请填ååè½åç§°ã |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertHospitalRecord(HospitalRecord hospitalRecord) |
| | | { |
| | | return hospitalRecordMapper.insertHospitalRecord(hospitalRecord); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹ã请填ååè½åç§°ã |
| | | * |
| | | * @param hospitalRecord ã请填ååè½åç§°ã |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updateHospitalRecord(HospitalRecord hospitalRecord) |
| | | { |
| | | return hospitalRecordMapper.updateHospitalRecord(hospitalRecord); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤ã请填ååè½åç§°ã |
| | | * |
| | | * @param IDs éè¦å é¤çã请填ååè½åç§°ãä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteHospitalRecordByIDs(String[] IDs) |
| | | { |
| | | return hospitalRecordMapper.deleteHospitalRecordByIDs(IDs); |
| | | } |
| | | |
| | | /** |
| | | * å é¤ã请填ååè½åç§°ãä¿¡æ¯ |
| | | * |
| | | * @param ID ã请填ååè½åç§°ãä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteHospitalRecordByID(String ID) |
| | | { |
| | | return hospitalRecordMapper.deleteHospitalRecordByID(ID); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.service.impl; |
| | | |
| | | import com.smartor.domain.HospitalUserinfo; |
| | | import com.smartor.mapper.HospitalUserinfoMapper; |
| | | import com.smartor.service.IHospitalUserinfoService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * ã请填ååè½åç§°ãServiceä¸å¡å±å¤ç |
| | | * |
| | | * @author ruoyi |
| | | * @date 2024-01-29 |
| | | */ |
| | | @Service |
| | | public class HospitalUserinfoServiceImpl implements IHospitalUserinfoService { |
| | | @Autowired |
| | | private HospitalUserinfoMapper hospitalUserinfoMapper; |
| | | |
| | | /** |
| | | * æ¥è¯¢ã请填ååè½åç§°ã |
| | | * |
| | | * @param ID ã请填ååè½åç§°ãä¸»é® |
| | | * @return ã请填ååè½åç§°ã |
| | | */ |
| | | @Override |
| | | public HospitalUserinfo selectHospitalUserinfoByID(Long ID) { |
| | | return hospitalUserinfoMapper.selectHospitalUserinfoByID(ID); |
| | | } |
| | | |
| | | /** |
| | | * æ¥è¯¢ã请填ååè½åç§°ãå表 |
| | | * |
| | | * @param hospitalUserinfo ã请填ååè½åç§°ã |
| | | * @return ã请填ååè½åç§°ã |
| | | */ |
| | | @Override |
| | | public List<HospitalUserinfo> selectHospitalUserinfoList(HospitalUserinfo hospitalUserinfo) { |
| | | return hospitalUserinfoMapper.selectHospitalUserinfoList(hospitalUserinfo); |
| | | } |
| | | |
| | | /** |
| | | * æ°å¢ã请填ååè½åç§°ã |
| | | * |
| | | * @param hospitalUserinfo ã请填ååè½åç§°ã |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int insertHospitalUserinfo(HospitalUserinfo hospitalUserinfo) { |
| | | return hospitalUserinfoMapper.insertHospitalUserinfo(hospitalUserinfo); |
| | | } |
| | | |
| | | /** |
| | | * ä¿®æ¹ã请填ååè½åç§°ã |
| | | * |
| | | * @param hospitalUserinfo ã请填ååè½åç§°ã |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int updateHospitalUserinfo(HospitalUserinfo hospitalUserinfo) { |
| | | return hospitalUserinfoMapper.updateHospitalUserinfo(hospitalUserinfo); |
| | | } |
| | | |
| | | /** |
| | | * æ¹éå é¤ã请填ååè½åç§°ã |
| | | * |
| | | * @param IDs éè¦å é¤çã请填ååè½åç§°ãä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteHospitalUserinfoByIDs(Long[] IDs) { |
| | | return hospitalUserinfoMapper.deleteHospitalUserinfoByIDs(IDs); |
| | | } |
| | | |
| | | /** |
| | | * å é¤ã请填ååè½åç§°ãä¿¡æ¯ |
| | | * |
| | | * @param ID ã请填ååè½åç§°ãä¸»é® |
| | | * @return ç»æ |
| | | */ |
| | | @Override |
| | | public int deleteHospitalUserinfoByID(Long ID) { |
| | | return hospitalUserinfoMapper.deleteHospitalUserinfoByID(ID); |
| | | } |
| | | } |
| | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | IvrLibaTemplate ivrLibaTemplate = DtoConversionUtils.sourceToTarget(ivrLibaTemplateVO, IvrLibaTemplate.class); |
| | | if (ivrLibaTemplateVO.getIsoperation() != null && ivrLibaTemplateVO.getIsoperation() == 1) { |
| | | //æ°å¢ |
| | | i = ivrLibaTemplateMapper.insertIvrLibaTemplate(ivrLibaTemplate); |
| | | ivrLibaTemplate.setCreateTime(new Date()); |
| | | ivrLibaTemplateMapper.insertIvrLibaTemplate(ivrLibaTemplate); |
| | | i = ivrLibaTemplate.getID().intValue(); |
| | | } else if (ivrLibaTemplateVO.getIsoperation() != null && ivrLibaTemplateVO.getIsoperation() == 2) { |
| | | //ä¿®æ¹ |
| | | i = ivrLibaTemplateMapper.updateIvrLibaTemplate(ivrLibaTemplate); |
| | | ivrLibaTemplate.setUpdateTime(new Date()); |
| | | ivrLibaTemplateMapper.updateIvrLibaTemplate(ivrLibaTemplate); |
| | | i = ivrLibaTemplate.getID().intValue(); |
| | | } |
| | | log.info("æ°å¢æä¿®æ¹æ¨¡æ¿è¯¦æ
çid为ï¼{}", ivrLibaTemplate.getID()); |
| | | |
| | |
| | | if (ivrLibaTemplateTag.getIsoperation() != null && ivrLibaTemplateTag.getIsoperation() == 1) { |
| | | //æ°å¢ |
| | | ivrLibaTemplateTag.setTemplateid(ivrLibaTemplate.getID()); |
| | | ivrLibaTemplateTag.setCreateTime(new Date()); |
| | | ivrLibaTemplateTagMapper.insertIvrLibaTemplateTag(ivrLibaTemplateTag); |
| | | } else if (ivrLibaTemplateTag.getIsoperation() != null && ivrLibaTemplateTag.getIsoperation() == 2) { |
| | | //ä¿®æ¹ |
| | | ivrLibaTemplateTag.setTemplateid(ivrLibaTemplate.getID()); |
| | | ivrLibaTemplateTag.setUploadTime(new Date()); |
| | | ivrLibaTemplateTagMapper.updateIvrLibaTemplateTag(ivrLibaTemplateTag); |
| | | } else if (ivrLibaTemplateTag.getIsoperation() != null && ivrLibaTemplateTag.getIsoperation() == 3) { |
| | | //å é¤ |
| | | if (ivrLibaTemplateTag.getId() == null) { |
| | | log.info("å é¤å¤±è´¥,æ¨¡æ¿ææ id为空"); |
| | | } else { |
| | | ivrLibaTemplateTag.setUploadTime(new Date()); |
| | | ivrLibaTemplateTagMapper.deleteIvrLibaTemplateTagById(ivrLibaTemplateTag.getId()); |
| | | } |
| | | } |
| | |
| | | //æ°å¢ |
| | | IvrLibaTemplateScript ivrLibaTemplateScript = DtoConversionUtils.sourceToTarget(ivrLibaTemplateScriptVO, IvrLibaTemplateScript.class); |
| | | ivrLibaTemplateScript.setTemplateID(ivrLibaTemplate.getID()); |
| | | ivrLibaTemplateScript.setCreateTime(new Date()); |
| | | ivrLibaTemplateScriptMapper.insertIvrLibaTemplateScript(ivrLibaTemplateScript); |
| | | //对é项ç®è¿è¡å¤ç |
| | | dealOption(ivrLibaTemplateScriptVO.getIvrLibaTemplateTargetoptionList(), ivrLibaTemplateScript, ivrLibaTemplate.getID()); |
| | |
| | | //ä¿®æ¹ |
| | | IvrLibaTemplateScript ivrLibaTemplateScript = DtoConversionUtils.sourceToTarget(ivrLibaTemplateScriptVO, IvrLibaTemplateScript.class); |
| | | ivrLibaTemplateScript.setTemplateID(ivrLibaTemplate.getID()); |
| | | ivrLibaTemplateScript.setUpdateTime(new Date()); |
| | | ivrLibaTemplateScriptMapper.updateIvrLibaTemplateScript(ivrLibaTemplateScript); |
| | | //对é项ç®è¿è¡å¤ç |
| | | dealOption(ivrLibaTemplateScriptVO.getIvrLibaTemplateTargetoptionList(), ivrLibaTemplateScript, ivrLibaTemplate.getID()); |
| | |
| | | if (ivrLibaTemplateScriptVO.getID() == null) { |
| | | log.info("å é¤å¤±è´¥,模æ¿è¯æ¯id为空"); |
| | | } else { |
| | | ivrLibaTemplateScriptVO.setUpdateTime(new Date()); |
| | | ivrLibaTemplateTagMapper.deleteIvrLibaTemplateTagById(ivrLibaTemplateScriptVO.getID()); |
| | | } |
| | | } |
| | |
| | | //æ°å¢ |
| | | tempDetpRelevance.setTempid(ivrLibaTemplate.getID()); |
| | | tempDetpRelevance.setType(2L); |
| | | tempDetpRelevance.setCreateTime(new Date()); |
| | | tempDetpRelevanceMapper.insertTempDetpRelevance(tempDetpRelevance); |
| | | } else { |
| | | tempDetpRelevance.setUpdateTime(new Date()); |
| | | tempDetpRelevanceMapper.updateTempDetpRelevance(tempDetpRelevance); |
| | | } |
| | | } |
| | |
| | | //æ¤å¤å¼ä¸å°spingä¸çmapper,åªè½éè¿ä¸ä¸æï¼å»è·åmapper对象 |
| | | ServiceThirdDataMapper serviceThirdDataMapper = SpringUtils.getBean(ServiceThirdDataMapper.class); |
| | | try { |
| | | int i = serviceThirdDataMapper.insertThirdData(serviceThirdData); |
| | | if (dataType.equals("RGV^O15")) { |
| | | //ç´æ¥æå°"æ§è¡å»å±è®¡å表" |
| | | int i1 = serviceThirdDataMapper.insertThirdDataZxyzjh(serviceThirdData); |
| | | } else if (dataType.equals("OMP^O09")) { |
| | | //夿¹æ°å¢ç³è¯· |
| | | int i2 = serviceThirdDataMapper.insertThirdDataCfxzsq(serviceThirdData); |
| | | } else { |
| | | int i3 = serviceThirdDataMapper.insertThirdData(serviceThirdData); |
| | | } |
| | | } catch (Exception e) { |
| | | SimpleDateFormat simpleDateFormat1 = new SimpleDateFormat("YYYY-MM-dd HH:mm:ss"); |
| | | String date = simpleDateFormat1.format(new Date()); |
| | |
| | | e.getMessage(); |
| | | } |
| | | |
| | | |
| | | // //æ ¹æ®æ°æ®ç±»åï¼å»è°ç¨ç¸åºçæ¹æ³è¿è¡æ°æ®ä¿å(è¿ä¸åå
ä¸åäºï¼åé¢åå) |
| | | // switch (dataType) { |
| | | // case "ADT^A31": |
| | | // //æ£è
åºæ¬ä¿¡æ¯ |
| | | // patientInfo(map); |
| | | // break; |
| | | // case "ADT^A08": |
| | | // //æ£è
è¯æä¿¡æ¯ä¿®æ¹/ |
| | | // patientInfoEdit(map); |
| | | // case "ADT^A01": |
| | | // //æ£è
å
¥é¢ |
| | | // patientHospitalized(map); |
| | | // break; |
| | | // } |
| | | } |
| | | |
| | | /** |
| | |
| | | package com.smartor.service.impl; |
| | | |
| | | import java.util.List; |
| | | |
| | | import ca.uhn.hl7v2.HL7Exception; |
| | | import ca.uhn.hl7v2.model.Message; |
| | | import ca.uhn.hl7v2.parser.PipeParser; |
| | | import com.smartor.domain.HospitalRecord; |
| | | import com.smartor.domain.HospitalUserinfo; |
| | | import com.smartor.domain.ServiceThirdData; |
| | | import com.smartor.mapper.ServiceThirdDataMapper; |
| | | import com.smartor.service.IHospitalRecordService; |
| | | import com.smartor.service.IHospitalUserinfoService; |
| | | import com.smartor.service.IServiceThirdDataService; |
| | | import com.smartor.yiwudataanalysis.ADT_A03; |
| | | import lombok.extern.log4j.Log4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | |
| | | /** |
| | |
| | | * @author ruoyi |
| | | * @date 2023-10-10 |
| | | */ |
| | | @Log4j |
| | | @Service |
| | | public class ServiceThirdDataServiceImpl implements IServiceThirdDataService { |
| | | |
| | | @Autowired |
| | | private ServiceThirdDataMapper serviceThirdDataMapper; |
| | | |
| | | @Autowired |
| | | private IHospitalRecordService iHospitalRecordService; |
| | | @Autowired |
| | | private IHospitalUserinfoService iHospitalUserinfoService; |
| | | |
| | | @Override |
| | | public List<ServiceThirdData> queryList(ServiceThirdData serviceThirdData) { |
| | | return null; |
| | | |
| | | List<ServiceThirdData> serviceThirdDataList = serviceThirdDataMapper.selectServiceThirdDataList(serviceThirdData); |
| | | for (ServiceThirdData std : serviceThirdDataList) { |
| | | PipeParser parser = new PipeParser(); |
| | | Message message = null; |
| | | try { |
| | | String dataInfo = std.getDataInfo().substring(1); |
| | | dataInfo = dataInfo.replaceAll("\n", ""); |
| | | dataInfo = dataInfo.substring(0, dataInfo.length() - 1); |
| | | message = parser.parse(dataInfo); |
| | | ADT_A03 adt_a03 = new ADT_A03(); |
| | | |
| | | List<Object> objectList = adt_a03.explainPID(message, dataInfo); |
| | | HospitalRecord hospitalRecord = (HospitalRecord) objectList.get(0); |
| | | iHospitalRecordService.insertHospitalRecord(hospitalRecord); |
| | | |
| | | HospitalUserinfo hospitalUserinfo = (HospitalUserinfo) objectList.get(1); |
| | | iHospitalUserinfoService.insertHospitalUserinfo(hospitalUserinfo); |
| | | |
| | | int ii = serviceThirdDataMapper.updateIsDeal(std.getId()); |
| | | System.out.println("æ¯å¦ä¿®æ¹æåï¼" + ii); |
| | | } catch (HL7Exception e) { |
| | | e.printStackTrace(); |
| | | } |
| | | |
| | | } |
| | | |
| | | return new ArrayList<>(); |
| | | } |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.smartor.yiwudataanalysis; |
| | | |
| | | import ca.uhn.hl7v2.HL7Exception; |
| | | import ca.uhn.hl7v2.model.Message; |
| | | import ca.uhn.hl7v2.model.Structure; |
| | | import ca.uhn.hl7v2.model.v24.datatype.*; |
| | | import ca.uhn.hl7v2.model.v24.segment.DG1; |
| | | import ca.uhn.hl7v2.model.v24.segment.PID; |
| | | import ca.uhn.hl7v2.model.v24.segment.PV1; |
| | | import ca.uhn.hl7v2.model.v24.segment.PV2; |
| | | import com.ruoyi.common.enums.AdmTypeEnum; |
| | | import com.ruoyi.common.enums.LevelHospEnum; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.smartor.domain.HospitalRecord; |
| | | import com.smartor.domain.HospitalUserinfo; |
| | | |
| | | import java.text.ParseException; |
| | | import java.text.SimpleDateFormat; |
| | | import java.time.Year; |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | //åºé¢æ°æ® |
| | | public class ADT_A03 { |
| | | //è§£æPID |
| | | public List<Object> explainPID(Message message, String dataInfo) throws HL7Exception { |
| | | //è§£æPIDï¼æ£è
åºæ¬ä¿¡æ¯ï¼ |
| | | PID pid = (PID) message.get("PID"); |
| | | |
| | | //æ£è
主索å¼ä¿¡æ¯ |
| | | CX pid2_patientID = pid.getPid2_PatientID(); |
| | | //æ£è
å
¨é¢å¯ä¸æ è¯ï¼æ£è
主索å¼/IDï¼ |
| | | String patientID = pid2_patientID.getID().encode(); |
| | | //VIP-å
è¯çåä»è´¹æ å¿ï¼0/1ï¼ |
| | | String cd = pid2_patientID.getCheckDigit().encode(); |
| | | |
| | | //æ£è
ç¸å
³ ID^^^æææºæ |
| | | CX[] pid3_patientIdentifierList = pid.getPid3_PatientIdentifierList(); |
| | | if (pid3_patientIdentifierList != null || pid3_patientIdentifierList.length > 0) { |
| | | for (CX cx : pid3_patientIdentifierList) { |
| | | //æ£è
ç¸å
³ID |
| | | String hzxgID = cx.getID().encode(); |
| | | //åé
æ£è
ID æºæ |
| | | String patiendOrgan = cx.getAssigningAuthority().encode(); |
| | | } |
| | | } |
| | | |
| | | //é¨è¯ä¸å¡«ï¼ä½é¢å¿
å¡« |
| | | CX[] pid4_alternatePatientIDPID = pid.getPid4_AlternatePatientIDPID(); |
| | | if (pid4_alternatePatientIDPID != null || pid4_alternatePatientIDPID.length > 0) { |
| | | for (CX cx : pid4_alternatePatientIDPID) { |
| | | //éå©´å¿ 0 å©´å¿ 1 |
| | | String s = cx.getID().encode(); |
| | | // 0/空-ä¸éè¦ä¿å¯ï¼ 1-ä¿å¯ |
| | | String s1 = cx.getIdentifierTypeCode().encode(); |
| | | } |
| | | } |
| | | |
| | | //æ£è
å§å |
| | | XPN[] pid5_patientName = pid.getPid5_PatientName(); |
| | | String patientName = ""; |
| | | for (XPN xpn : pid5_patientName) { |
| | | //æ¼é³ |
| | | String pinyin = xpn.getFamilyName().encode(); |
| | | //æ£è
å§å |
| | | patientName = xpn.getGivenName().encode(); |
| | | } |
| | | |
| | | |
| | | //åºçæ¥æ |
| | | String birthday = pid.getPid7_DateTimeOfBirth().encode(); |
| | | SimpleDateFormat inputFormatt = new SimpleDateFormat("yyyyMMddHHmmss"); // è¾å
¥æ¥ææ ¼å¼ |
| | | Date date = null; // è§£æä¸ºDate对象 |
| | | try { |
| | | date = inputFormatt.parse(birthday); |
| | | } catch (ParseException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | SimpleDateFormat outputFormatt = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); // è¾åºæ¥ææ ¼å¼ |
| | | String birthdatTime = outputFormatt.format(date); |
| | | |
| | | |
| | | //æ§å« 1ç· 2女 |
| | | String xb = pid.getPid8_AdministrativeSex().encode(); |
| | | |
| | | //è¡åä¿¡æ¯ |
| | | CE[] pid10_race = pid.getPid10_Race(); |
| | | for (CE ce : pid10_race) { |
| | | //è¡å代ç |
| | | String xxdm = ce.getCe1_Identifier().encode(); |
| | | //è¡ååç§° |
| | | String xxmc = ce.getCe2_Text().encode(); |
| | | //rhè¡å代ç |
| | | String rhxxdm = ce.getCe4_AlternateIdentifier().encode(); |
| | | //rhè¡ååç§° |
| | | String rhxxmc = ce.getCe5_AlternateText().encode(); |
| | | } |
| | | |
| | | //å°åä¿¡æ¯ |
| | | XAD[] pid11_patientAddress = pid.getPid11_PatientAddress(); |
| | | String xxdzxx = null; |
| | | String streetName = null; |
| | | String dwellingNumber = null; |
| | | String otherDesignation = null; |
| | | String city = null; |
| | | String province = null; |
| | | for (XAD xad : pid11_patientAddress) { |
| | | //详ç»å°åä¿¡æ¯ |
| | | xxdzxx = xad.getXad1_StreetAddress().getSad1_StreetOrMailingAddress().encode(); |
| | | //è¡éä¿¡æ¯ï¼æ/è¡/éï¼ |
| | | streetName = xad.getXad1_StreetAddress().getStreetName().encode(); |
| | | //é¨çå·ç |
| | | dwellingNumber = xad.getXad1_StreetAddress().getDwellingNumber().encode(); |
| | | //å¿å°åºï¼å¿) |
| | | otherDesignation = xad.getXad2_OtherDesignation().encode(); |
| | | //åå¸ï¼å¸ï¼ |
| | | city = xad.getXad3_City().encode(); |
| | | //ç |
| | | province = xad.getXad4_StateOrProvince().encode(); |
| | | //å°åç±»åï¼åèåå
¸ï¼ |
| | | String addressType = xad.getXad7_AddressType().encode(); |
| | | //乡éä¿¡æ¯ |
| | | String designation = xad.getXad8_OtherGeographicDesignation().encode(); |
| | | //å¿å°åºç¼ç |
| | | String parishCode = xad.getXad9_CountyParishCode().encode(); |
| | | //è¡éæ åç¼ç ï¼ä¿çï¼ |
| | | String censusTract = xad.getXad10_CensusTract().encode(); |
| | | } |
| | | |
| | | //个人çµè¯ |
| | | XTN[] pid13_phoneNumberHome = pid.getPid13_PhoneNumberHome(); |
| | | String phone = null; |
| | | for (XTN xtn : pid13_phoneNumberHome) { |
| | | //çµè¯ç±»å代ç ï¼åèåå
¸ï¼ |
| | | String lxdm = xtn.getTelecommunicationEquipmentType().encode(); |
| | | //çµè¯å·ç |
| | | phone = xtn.getPhoneNumber().encode(); |
| | | } |
| | | |
| | | //å·¥ä½çµè¯ |
| | | XTN[] pid14_phoneNumberBusiness = pid.getPid14_PhoneNumberBusiness(); |
| | | for (XTN xtn : pid14_phoneNumberBusiness) { |
| | | //å·¥ä½çµè¯ |
| | | String phoneNumberWork = xtn.getPhoneNumber().encode(); |
| | | } |
| | | |
| | | //å©å§»ç¶åµä»£ç |
| | | String identifier = pid.getPid16_MaritalStatus().getIdentifier().encode(); |
| | | //å©å§»ç¶åµåç§° |
| | | String text = pid.getPid16_MaritalStatus().getText().encode(); |
| | | |
| | | //è¯ä»¶å·ç |
| | | String id = pid.getPid18_PatientAccountNumber().getID().encode(); |
| | | //è¯ä»¶ç±»åï¼åèåå
¸ï¼ |
| | | String assigningAuthority = pid.getPid18_PatientAccountNumber().getAssigningAuthority().encode(); |
| | | //è¯ä»¶ä¸è¯¦åå |
| | | HD assigningFacility = pid.getPid18_PatientAccountNumber().getAssigningFacility(); |
| | | //åå 代ç |
| | | String namespaceID = assigningFacility.getNamespaceID().encode(); |
| | | //åå åç§° |
| | | String universalID = assigningFacility.getUniversalID().encode(); |
| | | |
| | | //身份è¯å· |
| | | String SSNNumberPatient = pid.getPid19_SSNNumberPatient().encode(); |
| | | |
| | | CX[] pid21_motherSIdentifier = pid.getPid21_MotherSIdentifier(); |
| | | for (CX cx : pid21_motherSIdentifier) { |
| | | //æ¯äº²ä½é¢ ID(é¨è¯ä¸å¡«ï¼ä½é¢å¿
å¡«) |
| | | String mqid = cx.getID().encode(); |
| | | } |
| | | |
| | | //æ°æ |
| | | CE[] pid22_ethnicGroup = pid.getPid22_EthnicGroup(); |
| | | String mztext = null; |
| | | for (CE ce : pid22_ethnicGroup) { |
| | | //æ°æ ID |
| | | String Identifier = ce.getIdentifier().encode(); |
| | | //æ°æåç§° |
| | | mztext = ce.getText().encode(); |
| | | } |
| | | |
| | | //åºçå° |
| | | String encode = pid.getPid23_BirthPlace().encode(); |
| | | |
| | | //èä¸ |
| | | CE[] citizenship = pid.getPid26_Citizenship(); |
| | | for (CE ce : citizenship) { |
| | | //èä¸ä»£ç |
| | | String Identifier = ce.getIdentifier().encode(); |
| | | //èä¸åç§° |
| | | String zytext = ce.getText().encode(); |
| | | } |
| | | |
| | | //å½ç±ä»£ç |
| | | String Identifier = pid.getPid28_Nationality().getIdentifier().encode(); |
| | | //å½ç±åç§° |
| | | String gjtext = pid.getPid28_Nationality().getText().encode(); |
| | | |
| | | //æ»èæ å¿ é»è®¤æ¯ 0/空ï¼1-æ»è |
| | | String patientDeathIndicator = pid.getPid30_PatientDeathIndicator().encode(); |
| | | |
| | | //é»ååç
人 |
| | | IS[] pid32_identityReliabilityCode = pid.getPid32_IdentityReliabilityCode(); |
| | | |
| | | //æ£è
屿§ (åèåå
¸) |
| | | //æ ¼å¼å¦ï¼0101000 |
| | | //说æï¼ç±å¤ä½ç»æï¼ç¬¬ä¸ |
| | | //ä½è¡¨ç¤ºå±æ§ 1 çå¼ï¼ |
| | | // 第äºä½è¡¨ç¤ºå±æ§ 2 çå¼ã |
| | | String hzIdentifier = pid.getPid38_ProductionClassCode().getIdentifier().encode(); |
| | | |
| | | //-------------------------------------------------------------- |
| | | //è§£æ PV1ï¼æ£è
访é®ä¿¡æ¯ï¼ |
| | | PV1 pv1 = (PV1) message.get("PV1"); |
| | | |
| | | //æå·åºå·æä½é¢æ¬¡æ° |
| | | String xh = pv1.getPv11_SetIDPV1().encode(); |
| | | |
| | | //æ£è
åç±» Eï¼æ¥è¯ï¼ Iï¼ä½é¢ï¼ Oï¼é¨è¯ï¼Tï¼ä½æ£ |
| | | String patientClass = pv1.getPv12_PatientClass().encode(); |
| | | |
| | | //æ£è
ä½ç½®ä¿¡æ¯ |
| | | PL pv13_assignedPatientLocation = pv1.getPv13_AssignedPatientLocation(); |
| | | //å½åç
åº |
| | | String bq = pv13_assignedPatientLocation.getPointOfCare().encode(); |
| | | //å½åç
æ¿ |
| | | String room = pv13_assignedPatientLocation.getRoom().encode(); |
| | | //å½åç
åº |
| | | String bad = pv13_assignedPatientLocation.getBed().encode(); |
| | | //å½åç§å®¤ ID |
| | | String namespaceID1 = pv13_assignedPatientLocation.getFacility().getNamespaceID().encode(); |
| | | //å½åç§å®¤åç§° |
| | | String ksuniversalID = pv13_assignedPatientLocation.getFacility().getUniversalID().encode(); |
| | | //å½ååºä½åç§° |
| | | String locationStatus = pv13_assignedPatientLocation.getLocationStatus().encode(); |
| | | //å½åç
åºåç§° |
| | | String personLocationType = pv13_assignedPatientLocation.getPersonLocationType().encode(); |
| | | |
| | | //å
¥é¢ç±»å R:å¸¸è§ E:ç´§æ¥ W:çè§ å
¶ä½è§ HL7 çº¦å® |
| | | String admissionType = pv1.getPv14_AdmissionType().encode(); |
| | | |
| | | //转åä½ç½®ä¿¡æ¯ |
| | | //转åç
åº |
| | | String pointOfCare = pv1.getPv16_PriorPatientLocation().getPointOfCare().encode(); |
| | | //转åç
æ¿ |
| | | String room1 = pv1.getPv16_PriorPatientLocation().getRoom().encode(); |
| | | //转åç
åº |
| | | String bed = pv1.getPv16_PriorPatientLocation().getBed().encode(); |
| | | //转åç§å®¤ |
| | | HD facility = pv1.getPv16_PriorPatientLocation().getFacility(); |
| | | //转åç§å®¤ ID |
| | | String namespaceID2 = facility.getNamespaceID().encode(); |
| | | //转åç§å®¤åç§° |
| | | String universalID1 = facility.getUniversalID().encode(); |
| | | //转ååºä½åç§° |
| | | String locationStatus1 = pv1.getPv16_PriorPatientLocation().getLocationStatus().encode(); |
| | | //转åç
åºåç§° |
| | | String personLocationType1 = pv1.getPv16_PriorPatientLocation().getPersonLocationType().encode(); |
| | | |
| | | //é¨è¯ä¸ºå°±è¯å»ç |
| | | XCN[] pv17_attendingDoctor = pv1.getPv17_AttendingDoctor(); |
| | | String IDNumber = null; |
| | | String givenName = null; |
| | | for (XCN xcn : pv17_attendingDoctor) { |
| | | //主治å»ç ID |
| | | IDNumber = xcn.getIDNumber().encode(); |
| | | //主治å»çå§å |
| | | givenName = xcn.getGivenName().encode(); |
| | | //å»çç»ä¿¡æ¯ |
| | | HD xcn14_assigningFacility = xcn.getXcn14_AssigningFacility(); |
| | | //å»çç»åç§° |
| | | String universalID2 = xcn14_assigningFacility.getNamespaceID().encode(); |
| | | //æ¶æ²»å»ç ID |
| | | String universalID3 = xcn14_assigningFacility.getUniversalID().encode(); |
| | | } |
| | | |
| | | //æå·ç±»å« 1-æ®éï¼2-æ¥è¯ 4-ä¸å®¶ï¼6-èææ |
| | | String pv110_hospitalService = pv1.getPv110_HospitalService().encode(); |
| | | |
| | | //颿¶å
¥é¢æ£éªæ è¯ é»è®¤ä¸ºç©º 0-å¦ï¼1-æ¯ |
| | | String pv112_preadmitTestIndicator = pv1.getPv112_PreadmitTestIndicator().encode(); |
| | | |
| | | //忬¡å
¥é¢æ å¿ é»è®¤ä¸ºç©ºï¼ âRâ表示åå
¥é¢ |
| | | String pv113_reAdmissionIndicator = pv1.getPv113_ReAdmissionIndicator().encode(); |
| | | |
| | | //å
¥é¢éå¾ |
| | | String pv114_admitSource = pv1.getPv114_AdmitSource().encode(); |
| | | |
| | | //å
¥é¢å»ç |
| | | XCN[] pv117_admittingDoctor = pv1.getPv117_AdmittingDoctor(); |
| | | for (XCN xcn : pv117_admittingDoctor) { |
| | | //åå·¥å· |
| | | String idNumber = xcn.getIDNumber().encode(); |
| | | //å§å |
| | | String givenName2 = xcn.getGivenName().encode(); |
| | | } |
| | | |
| | | //è´¹ç¨ç±»å« |
| | | String pv118_patientType = pv1.getPv118_PatientType().encode(); |
| | | |
| | | //å°±è¯ ID æè
æ£è
ä½é¢ ID |
| | | String id1 = pv1.getPv119_VisitNumber().getID().encode(); |
| | | |
| | | //伿 ç±»å« |
| | | FC[] pv120_financialClass = pv1.getPv120_FinancialClass(); |
| | | for (FC fc : pv120_financialClass) { |
| | | String financialClass = fc.getFinancialClass().encode(); |
| | | } |
| | | |
| | | //è´¹ç¨æ§è´¨ |
| | | String pv121_chargePriceIndicator = pv1.getPv121_ChargePriceIndicator().encode(); |
| | | |
| | | //å
¥ç§æ¥æ |
| | | DT[] pv125_contractEffectiveDate = pv1.getPv125_ContractEffectiveDate(); |
| | | DT dt = pv125_contractEffectiveDate[0]; |
| | | |
| | | SimpleDateFormat inputFormattt = new SimpleDateFormat("yyyyMMdd"); // è¾å
¥æ¥ææ ¼å¼ |
| | | Date date22 = null; // è§£æä¸ºDate对象 |
| | | try { |
| | | date22 = inputFormattt.parse(dt.encode()); |
| | | } catch (ParseException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | SimpleDateFormat outputFormat2 = new SimpleDateFormat("yyyy-MM-dd"); // è¾åºæ¥ææ ¼å¼ |
| | | String rkdate = outputFormat2.format(date22); |
| | | |
| | | |
| | | //è´¦æ·å»ç»å»ºè®® |
| | | String pv128_interestCode = pv1.getPv128_InterestCode().encode(); |
| | | |
| | | //æ¬ è´¹å»ç»æ è¯ é»è®¤æ¯ 0/空 1ï¼å»ç»ï¼2ï¼æ°¸ä¸å»ç» |
| | | String pv129_transferToBadDebtCode = pv1.getPv129_TransferToBadDebtCode().encode(); |
| | | |
| | | //å»ç»æ¥æ |
| | | String pv130_transferToBadDebtDate = pv1.getPv130_TransferToBadDebtDate().encode(); |
| | | |
| | | //è§£å»æ¥æ |
| | | String pv135_deleteAccountDate = pv1.getPv135_DeleteAccountDate().encode(); |
| | | |
| | | //离é¢å»å/è½¬å½ |
| | | String pv136_dischargeDisposition = pv1.getPv136_DischargeDisposition().encode(); |
| | | |
| | | //离é¢å»å¾ä½ç½® |
| | | String pv137_dischargedToLocation = pv1.getPv137_DischargedToLocation().getDischargeLocation().encode(); |
| | | |
| | | //饮é£ç±»åID |
| | | String identifier1 = pv1.getPv138_DietType().getIdentifier().encode(); |
| | | //饮é£ç±»ååç§° |
| | | String text1 = pv1.getPv138_DietType().getText().encode(); |
| | | |
| | | //æå·çä¸ä¸åæ å¿ 0-ä¸åï¼1-ä¸åï¼2-æä¸ |
| | | String pv139_servicingFacility = pv1.getPv139_ServicingFacility().encode(); |
| | | |
| | | //ç§å®¤ ID^^^é¢åº ID |
| | | PL pv142_pendingLocation = pv1.getPv142_PendingLocation(); |
| | | //é¨è¯å°±è¯ç§å®¤ ID |
| | | String mzpointOfCare = pv142_pendingLocation.getPointOfCare().encode(); |
| | | //ä½é¢é¢åº ID |
| | | String namespaceID3 = pv142_pendingLocation.getFacility().getNamespaceID().encode(); |
| | | //åºç¨ ID |
| | | String universalIDType = pv142_pendingLocation.getFacility().getUniversalIDType().encode(); |
| | | //å»çæºæä»£ç |
| | | String personLocationType2 = pv142_pendingLocation.getPersonLocationType().encode(); |
| | | //å»çæºæåç§° |
| | | String building = pv142_pendingLocation.getBuilding().encode(); |
| | | |
| | | //å°±è¯/ä½é¢æ¶é´ |
| | | String pv144_admitDateTime = pv1.getPv144_AdmitDateTime().encode(); |
| | | |
| | | //åºé¢æ¶é´ A03 æ¶æ¯å¿
å¡« |
| | | TS[] pv145_dischargeDateTime = pv1.getPv145_DischargeDateTime(); |
| | | TS ts = pv145_dischargeDateTime[0]; |
| | | // Date date2 = new Date(Long.valueOf(ts.encode())); |
| | | // SimpleDateFormat sdff = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
| | | // String dischargeDateTime = sdff.format(date2); |
| | | |
| | | SimpleDateFormat inputFormat = new SimpleDateFormat("yyyyMMddHHmmss"); // è¾å
¥æ¥ææ ¼å¼ |
| | | Date date2 = null; // è§£æä¸ºDate对象 |
| | | try { |
| | | date2 = inputFormat.parse(ts.encode()); |
| | | } catch (ParseException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | SimpleDateFormat outputFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); // è¾åºæ¥ææ ¼å¼ |
| | | String dischargeDateTime = outputFormat.format(date2); |
| | | |
| | | //è®¿é®æ 示 |
| | | String visitIndicator = pv1.getPv151_VisitIndicator().encode(); |
| | | |
| | | //æä½äººä¿¡æ¯ |
| | | XCN[] pv152_otherHealthcareProvider = pv1.getPv152_OtherHealthcareProvider(); |
| | | for (XCN xcn : pv152_otherHealthcareProvider) { |
| | | //åå·¥å· |
| | | String IDNumber2 = xcn.getIDNumber().encode(); |
| | | //å§å |
| | | String givenName3 = xcn.getGivenName().encode(); |
| | | } |
| | | //----------------------------- |
| | | PV2 pv2 = (PV2) message.get("PV2"); |
| | | //å®é
ä½é¢å¤©æ° |
| | | String pv211_actualLengthOfInpatientStay = pv2.getPv211_ActualLengthOfInpatientStay().encode(); |
| | | |
| | | //------------------------------------------ |
| | | Structure[] dg1s = message.getAll("DG1"); |
| | | String dg12_diagnosisCodingMethod = null; |
| | | String dg14_diagnosisDescription = null; |
| | | for (Structure structure : dg1s) { |
| | | DG1 dg11 = (DG1) structure; |
| | | //åºå· |
| | | String dg1xh = dg11.getDg11_SetIDDG1().encode(); |
| | | //è¯æä»£ç |
| | | dg12_diagnosisCodingMethod = dg11.getDg12_DiagnosisCodingMethod().encode(); |
| | | //è¯æåç§° |
| | | dg14_diagnosisDescription = dg11.getDg14_DiagnosisDescription().encode(); |
| | | //è¯æç±»å |
| | | String dg16_diagnosisType = dg11.getDg16_DiagnosisType().encode(); |
| | | System.out.println(dg11); |
| | | |
| | | } |
| | | |
| | | //æ°æ®å
¥åº |
| | | HospitalRecord hospitalRecord = new HospitalRecord(); |
| | | hospitalRecord.setCreateTime(new Date()); |
| | | hospitalRecord.setPatientID(patientID); |
| | | hospitalRecord.setOpreationTime(new Date()); |
| | | //å°±è¯å· |
| | | hospitalRecord.setOutMedNO(id1); |
| | | //å°±è¯ç±»åæè¿°ï¼é¨è¯ãä½é¢...ï¼ |
| | | hospitalRecord.setAdmTypeDesc(AdmTypeEnum.getDescByCode(patientClass)); |
| | | //å
¥é¢ç¶æï¼å°±è¯ä¸ãç»æå°±è¯...ï¼ |
| | | hospitalRecord.setAdmStatus(LevelHospEnum.getDescByCode(pv136_dischargeDisposition)); |
| | | hospitalRecord.setAdmDate(dischargeDateTime); |
| | | hospitalRecord.setEncPatName(patientName); |
| | | if (StringUtils.isNotEmpty(xb)) { |
| | | hospitalRecord.setEncPatGender(xb.equals(1) ? "ç·" : "女"); |
| | | } |
| | | hospitalRecord.setEncPatBirthDate(birthdatTime); |
| | | //è·åå¹´é¾ |
| | | int currentYear = Year.now().getValue(); |
| | | Integer integer = Integer.valueOf(birthdatTime.substring(0, 4)); |
| | | Integer age = currentYear - integer; |
| | | hospitalRecord.setEncAgeValue(age.toString()); |
| | | |
| | | //主治å»çç¼å· |
| | | hospitalRecord.setDirectorCode(IDNumber); |
| | | //主治å»çå§å |
| | | hospitalRecord.setDirectorName(givenName); |
| | | hospitalRecord.setEncAdmLocCode(namespaceID1); |
| | | hospitalRecord.setEncAdmLocName(ksuniversalID); |
| | | hospitalRecord.setEncDiagnosisCode(dg12_diagnosisCodingMethod); |
| | | hospitalRecord.setEncDiagnosisDesc(dg14_diagnosisDescription); |
| | | |
| | | List<Object> objectList = new ArrayList<>(); |
| | | // objectList.add(hospitalRecord); |
| | | |
| | | HospitalUserinfo hospitalUserinfo = new HospitalUserinfo(); |
| | | // hospitalUserinfo.setCreateTime(null); |
| | | hospitalUserinfo.setPatientID(patientID); |
| | | hospitalUserinfo.setRegDate(rkdate); |
| | | hospitalUserinfo.setIdentityID(SSNNumberPatient); |
| | | hospitalUserinfo.setPatName(patientName); |
| | | hospitalUserinfo.setPhone(phone); |
| | | if (StringUtils.isNotEmpty(xb)) { |
| | | hospitalUserinfo.setPatSex(xb.equals(1) ? "ç·" : "女"); |
| | | } |
| | | hospitalUserinfo.setBirthDate(birthdatTime); |
| | | hospitalUserinfo.setAddress(xxdzxx); |
| | | hospitalUserinfo.setAddProvince(province); |
| | | hospitalUserinfo.setAddCity(city); |
| | | hospitalUserinfo.setAddCounty(otherDesignation); |
| | | hospitalUserinfo.setAddTown(streetName); |
| | | hospitalUserinfo.setCountry(gjtext); |
| | | hospitalUserinfo.setNation(mztext); |
| | | hospitalUserinfo.setConPerPhone(phone); |
| | | hospitalUserinfo.setRegOrgDesc("ä¹ä¹å¸ç¬¬äºäººæ°å»é¢"); |
| | | hospitalUserinfo.setEncAdmSource(AdmTypeEnum.getDescByCode(patientClass)); |
| | | objectList.add(hospitalRecord); |
| | | objectList.add(hospitalUserinfo); |
| | | |
| | | return objectList; |
| | | |
| | | } |
| | | } |
| | |
| | | resultMap="HeLibraryAssortResult"> |
| | | <include refid="selectHeLibraryAssortVo"/> |
| | | <where> |
| | | del_flag != 1 |
| | | <if test="assortname != null and assortname != ''">and assortname like concat('%', #{assortname}, '%')</if> |
| | | <if test="orgid != null and orgid != ''">and orgid = #{orgid}</if> |
| | | <if test="isupload != null ">and isupload = #{isupload}</if> |
| | |
| | | <if test="pid != null ">and pid = #{pid}</if> |
| | | <if test="guid != null and guid != ''">and guid = #{guid}</if> |
| | | <if test="seqno != null ">and seqno = #{seqno}</if> |
| | | and del_flag != 1 |
| | | |
| | | </where> |
| | | order by seqno asc |
| | | </select> |
| | |
| | | <select id="selectHeLibraryTagList" parameterType="com.smartor.domain.HeLibraryTag" resultMap="HeLibraryTagResult"> |
| | | <include refid="selectHeLibraryTagVo"/> |
| | | <where> |
| | | del_flag=0 |
| | | <if test="tagcategoryid != null ">and tagcategoryid = #{tagcategoryid}</if> |
| | | <if test="tagid != null ">and tagid = #{tagid}</if> |
| | | <if test="orgid != null and orgid != ''">and orgid = #{orgid}</if> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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.HospitalRecordMapper"> |
| | | |
| | | <resultMap type="com.smartor.domain.HospitalRecord" id="HospitalRecordResult"> |
| | | <result property="ID" column="ID"/> |
| | | <result property="sourceSystem" column="SourceSystem"/> |
| | | <result property="messageID" column="MessageID"/> |
| | | <result property="createTime" column="CreateTime"/> |
| | | <result property="methodName" column="MethodName"/> |
| | | <result property="reqIimRules" column="ReqIimRules"/> |
| | | <result property="patientID" column="PatientID"/> |
| | | <result property="opreationTime" column="OpreationTime"/> |
| | | <result property="episodeID" column="EpisodeID"/> |
| | | <result property="outMedNO" column="OutMedNO"/> |
| | | <result property="inMedNO" column="InMedNO"/> |
| | | <result property="visitNum" column="VisitNum"/> |
| | | <result property="admTypeCode" column="AdmTypeCode"/> |
| | | <result property="admTypeDesc" column="AdmTypeDesc"/> |
| | | <result property="admStatus" column="AdmStatus"/> |
| | | <result property="admDate" column="AdmDate"/> |
| | | <result property="encPatName" column="EncPatName"/> |
| | | <result property="encPatGender" column="EncPatGender"/> |
| | | <result property="encPatBirthDate" column="EncPatBirthDate"/> |
| | | <result property="transferstart" column="Transferstart"/> |
| | | <result property="transferend" column="Transferend"/> |
| | | <result property="encPatMaritalStatus" column="EncPatMaritalStatus"/> |
| | | <result property="originalText" column="OriginalText"/> |
| | | <result property="encDocList" column="EncDocList"/> |
| | | <result property="encAdmLocList" column="EncAdmLocList"/> |
| | | <result property="encounterPeriodStart" column="Encounter_period_start"/> |
| | | <result property="encounterPeriodEnd" column="Encounter_period_end"/> |
| | | <result property="encounterBooktime" column="Encounter_booktime"/> |
| | | <result property="encAdmSource" column="EncAdmSource"/> |
| | | <result property="encInhostype" column="EncInhostype"/> |
| | | <result property="encDietName" column="EncDietName"/> |
| | | <result property="encOuthostype" column="EncOuthostype"/> |
| | | <result property="encVisitnum" column="EncVisitnum"/> |
| | | <result property="encChargeType" column="EncChargeType"/> |
| | | <result property="encChargeTypeName" column="EncChargeTypeName"/> |
| | | <result property="encChargeCode" column="EncChargeCode"/> |
| | | <result property="encChargeName" column="EncChargeName"/> |
| | | <result property="encReglevelcode" column="EncReglevelcode"/> |
| | | <result property="encCareLevel" column="EncCareLevel"/> |
| | | <result property="specialday" column="Specialday"/> |
| | | <result property="primaryday" column="Primaryday"/> |
| | | <result property="secondaryday" column="Secondaryday"/> |
| | | <result property="tertiaryday" column="Tertiaryday"/> |
| | | <result property="enroomno" column="Enroomno"/> |
| | | <result property="enBedno" column="EnBedno"/> |
| | | <result property="encSeeno" column="EncSeeno"/> |
| | | <result property="encAgeUnit" column="EncAgeUnit"/> |
| | | <result property="encAgeValue" column="EncAgeValue"/> |
| | | <result property="enIsbaby" column="EnIsbaby"/> |
| | | <result property="encHavebaby" column="EncHavebaby"/> |
| | | <result property="encDiagList" column="EncDiagList"/> |
| | | <result property="directorCode" column="DirectorCode"/> |
| | | <result property="directorName" column="DirectorName"/> |
| | | <result property="encDiagnosisCode" column="EncDiagnosisCode"/> |
| | | <result property="encDiagnosisDesc" column="EncDiagnosisDesc"/> |
| | | <result property="encAdmLocCode" column="EncAdmLocCode"/> |
| | | <result property="encAdmLocName" column="EncAdmLocName"/> |
| | | <result property="taskStatus" column="taskStatus"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectHospitalRecordVo"> |
| | | select ID, |
| | | SourceSystem, |
| | | MessageID, |
| | | CreateTime, |
| | | MethodName, |
| | | ReqIimRules, |
| | | PatientID, |
| | | OpreationTime, |
| | | EpisodeID, |
| | | OutMedNO, |
| | | InMedNO, |
| | | VisitNum, |
| | | AdmTypeCode, |
| | | AdmTypeDesc, |
| | | AdmStatus, |
| | | AdmDate, |
| | | EncPatName, |
| | | EncPatGender, |
| | | EncPatBirthDate, |
| | | Transferstart, |
| | | Transferend, |
| | | EncPatMaritalStatus, |
| | | OriginalText, |
| | | EncDocList, |
| | | EncAdmLocList, |
| | | Encounter_period_start, |
| | | Encounter_period_end, |
| | | Encounter_booktime, |
| | | EncAdmSource, |
| | | EncInhostype, |
| | | EncDietName, |
| | | EncOuthostype, |
| | | EncVisitnum, |
| | | EncChargeType, |
| | | EncChargeTypeName, |
| | | EncChargeCode, |
| | | EncChargeName, |
| | | EncReglevelcode, |
| | | EncCareLevel, |
| | | Specialday, |
| | | Primaryday, |
| | | Secondaryday, |
| | | Tertiaryday, |
| | | Enroomno, |
| | | EnBedno, |
| | | EncSeeno, |
| | | EncAgeUnit, |
| | | EncAgeValue, |
| | | EnIsbaby, |
| | | EncHavebaby, |
| | | EncDiagList, |
| | | DirectorCode, |
| | | DirectorName, |
| | | EncDiagnosisCode, |
| | | EncDiagnosisDesc, |
| | | EncAdmLocCode, |
| | | EncAdmLocName, |
| | | taskStatus |
| | | from hospital_record |
| | | </sql> |
| | | |
| | | <select id="selectHospitalRecordList" parameterType="com.smartor.domain.HospitalRecord" |
| | | resultMap="HospitalRecordResult"> |
| | | <include refid="selectHospitalRecordVo"/> |
| | | <where> |
| | | <if test="ID != null and ID != ''">and ID = #{ID}</if> |
| | | <if test="sourceSystem != null and sourceSystem != ''">and SourceSystem = #{sourceSystem}</if> |
| | | <if test="messageID != null and messageID != ''">and MessageID = #{messageID}</if> |
| | | <if test="createTime != null and createTime != ''">and CreateTime = #{createTime}</if> |
| | | <if test="methodName != null and methodName != ''">and MethodName like concat('%', #{methodName}, '%')</if> |
| | | <if test="reqIimRules != null and reqIimRules != ''">and ReqIimRules = #{reqIimRules}</if> |
| | | <if test="patientID != null and patientID != ''">and PatientID = #{patientID}</if> |
| | | <if test="opreationTime != null and opreationTime != ''">and OpreationTime = #{opreationTime}</if> |
| | | <if test="episodeID != null and episodeID != ''">and EpisodeID = #{episodeID}</if> |
| | | <if test="outMedNO != null and outMedNO != ''">and OutMedNO = #{outMedNO}</if> |
| | | <if test="inMedNO != null and inMedNO != ''">and InMedNO = #{inMedNO}</if> |
| | | <if test="visitNum != null and visitNum != ''">and VisitNum = #{visitNum}</if> |
| | | <if test="admTypeCode != null and admTypeCode != ''">and AdmTypeCode = #{admTypeCode}</if> |
| | | <if test="admTypeDesc != null and admTypeDesc != ''">and AdmTypeDesc = #{admTypeDesc}</if> |
| | | <if test="admStatus != null and admStatus != ''">and AdmStatus = #{admStatus}</if> |
| | | <if test="admDate != null and admDate != ''">and AdmDate = #{admDate}</if> |
| | | <if test="encPatName != null and encPatName != ''">and EncPatName like concat('%', #{encPatName}, '%')</if> |
| | | <if test="encPatGender != null and encPatGender != ''">and EncPatGender = #{encPatGender}</if> |
| | | <if test="encPatBirthDate != null and encPatBirthDate != ''">and EncPatBirthDate = #{encPatBirthDate}</if> |
| | | <if test="transferstart != null and transferstart != ''">and Transferstart = #{transferstart}</if> |
| | | <if test="transferend != null and transferend != ''">and Transferend = #{transferend}</if> |
| | | <if test="encPatMaritalStatus != null and encPatMaritalStatus != ''">and EncPatMaritalStatus = |
| | | #{encPatMaritalStatus} |
| | | </if> |
| | | <if test="originalText != null and originalText != ''">and OriginalText = #{originalText}</if> |
| | | <if test="encDocList != null and encDocList != ''">and EncDocList = #{encDocList}</if> |
| | | <if test="encAdmLocList != null and encAdmLocList != ''">and EncAdmLocList = #{encAdmLocList}</if> |
| | | <if test="encounterPeriodStart != null and encounterPeriodStart != ''">and Encounter_period_start = |
| | | #{encounterPeriodStart} |
| | | </if> |
| | | <if test="encounterPeriodEnd != null and encounterPeriodEnd != ''">and Encounter_period_end = |
| | | #{encounterPeriodEnd} |
| | | </if> |
| | | <if test="encounterBooktime != null and encounterBooktime != ''">and Encounter_booktime = |
| | | #{encounterBooktime} |
| | | </if> |
| | | <if test="encAdmSource != null and encAdmSource != ''">and EncAdmSource = #{encAdmSource}</if> |
| | | <if test="encInhostype != null and encInhostype != ''">and EncInhostype = #{encInhostype}</if> |
| | | <if test="encDietName != null and encDietName != ''">and EncDietName like concat('%', #{encDietName}, |
| | | '%') |
| | | </if> |
| | | <if test="encOuthostype != null and encOuthostype != ''">and EncOuthostype = #{encOuthostype}</if> |
| | | <if test="encVisitnum != null and encVisitnum != ''">and EncVisitnum = #{encVisitnum}</if> |
| | | <if test="encChargeType != null and encChargeType != ''">and EncChargeType = #{encChargeType}</if> |
| | | <if test="encChargeTypeName != null and encChargeTypeName != ''">and EncChargeTypeName like concat('%', |
| | | #{encChargeTypeName}, '%') |
| | | </if> |
| | | <if test="encChargeCode != null and encChargeCode != ''">and EncChargeCode = #{encChargeCode}</if> |
| | | <if test="encChargeName != null and encChargeName != ''">and EncChargeName like concat('%', |
| | | #{encChargeName}, '%') |
| | | </if> |
| | | <if test="encReglevelcode != null and encReglevelcode != ''">and EncReglevelcode = #{encReglevelcode}</if> |
| | | <if test="encCareLevel != null and encCareLevel != ''">and EncCareLevel = #{encCareLevel}</if> |
| | | <if test="specialday != null and specialday != ''">and Specialday = #{specialday}</if> |
| | | <if test="primaryday != null and primaryday != ''">and Primaryday = #{primaryday}</if> |
| | | <if test="secondaryday != null and secondaryday != ''">and Secondaryday = #{secondaryday}</if> |
| | | <if test="tertiaryday != null and tertiaryday != ''">and Tertiaryday = #{tertiaryday}</if> |
| | | <if test="enroomno != null and enroomno != ''">and Enroomno = #{enroomno}</if> |
| | | <if test="enBedno != null and enBedno != ''">and EnBedno = #{enBedno}</if> |
| | | <if test="encSeeno != null and encSeeno != ''">and EncSeeno = #{encSeeno}</if> |
| | | <if test="encAgeUnit != null and encAgeUnit != ''">and EncAgeUnit = #{encAgeUnit}</if> |
| | | <if test="encAgeValue != null and encAgeValue != ''">and EncAgeValue = #{encAgeValue}</if> |
| | | <if test="enIsbaby != null and enIsbaby != ''">and EnIsbaby = #{enIsbaby}</if> |
| | | <if test="encHavebaby != null and encHavebaby != ''">and EncHavebaby = #{encHavebaby}</if> |
| | | <if test="encDiagList != null and encDiagList != ''">and EncDiagList = #{encDiagList}</if> |
| | | <if test="directorCode != null and directorCode != ''">and DirectorCode = #{directorCode}</if> |
| | | <if test="directorName != null and directorName != ''">and DirectorName like concat('%', #{directorName}, |
| | | '%') |
| | | </if> |
| | | <if test="dncDiagnosisCode != null and dncDiagnosisCode != ''">and EncDiagnosisCode = #{dncDiagnosisCode} |
| | | </if> |
| | | <if test="encDiagnosisDesc != null and encDiagnosisDesc != ''">and EncDiagnosisDesc = #{encDiagnosisDesc} |
| | | </if> |
| | | <if test="encAdmLocCode != null and encAdmLocCode != ''">and EncAdmLocCode = #{encAdmLocCode}</if> |
| | | <if test="encAdmLocName != null and encAdmLocName != ''">and EncAdmLocName like concat('%', |
| | | #{encAdmLocName}, '%') |
| | | </if> |
| | | <if test="taskStatus != null and taskStatus != ''">and taskStatus = #{taskStatus}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectHospitalRecordByID" parameterType="String" resultMap="HospitalRecordResult"> |
| | | <include refid="selectHospitalRecordVo"/> |
| | | where ID = #{ID} |
| | | </select> |
| | | |
| | | <insert id="insertHospitalRecord" parameterType="com.smartor.domain.HospitalRecord"> |
| | | insert into hospital_record |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="ID != null">ID,</if> |
| | | <if test="sourceSystem != null">SourceSystem,</if> |
| | | <if test="messageID != null">MessageID,</if> |
| | | <if test="createTime != null">CreateTime,</if> |
| | | <if test="methodName != null">MethodName,</if> |
| | | <if test="reqIimRules != null">ReqIimRules,</if> |
| | | <if test="patientID != null">PatientID,</if> |
| | | <if test="opreationTime != null">OpreationTime,</if> |
| | | <if test="episodeID != null">EpisodeID,</if> |
| | | <if test="outMedNO != null">OutMedNO,</if> |
| | | <if test="inMedNO != null">InMedNO,</if> |
| | | <if test="visitNum != null">VisitNum,</if> |
| | | <if test="admTypeCode != null">AdmTypeCode,</if> |
| | | <if test="admTypeDesc != null">AdmTypeDesc,</if> |
| | | <if test="admStatus != null">AdmStatus,</if> |
| | | <if test="admDate != null">AdmDate,</if> |
| | | <if test="encPatName != null">EncPatName,</if> |
| | | <if test="encPatGender != null">EncPatGender,</if> |
| | | <if test="encPatBirthDate != null">EncPatBirthDate,</if> |
| | | <if test="transferstart != null">Transferstart,</if> |
| | | <if test="transferend != null">Transferend,</if> |
| | | <if test="encPatMaritalStatus != null">EncPatMaritalStatus,</if> |
| | | <if test="originalText != null">OriginalText,</if> |
| | | <if test="encDocList != null">EncDocList,</if> |
| | | <if test="encAdmLocList != null">EncAdmLocList,</if> |
| | | <if test="encounterPeriodStart != null">Encounter_period_start,</if> |
| | | <if test="encounterPeriodEnd != null">Encounter_period_end,</if> |
| | | <if test="encounterBooktime != null">Encounter_booktime,</if> |
| | | <if test="encAdmSource != null">EncAdmSource,</if> |
| | | <if test="encInhostype != null">EncInhostype,</if> |
| | | <if test="encDietName != null">EncDietName,</if> |
| | | <if test="encOuthostype != null">EncOuthostype,</if> |
| | | <if test="encVisitnum != null">EncVisitnum,</if> |
| | | <if test="encChargeType != null">EncChargeType,</if> |
| | | <if test="encChargeTypeName != null">EncChargeTypeName,</if> |
| | | <if test="encChargeCode != null">EncChargeCode,</if> |
| | | <if test="encChargeName != null">EncChargeName,</if> |
| | | <if test="encReglevelcode != null">EncReglevelcode,</if> |
| | | <if test="encCareLevel != null">EncCareLevel,</if> |
| | | <if test="specialday != null">Specialday,</if> |
| | | <if test="primaryday != null">Primaryday,</if> |
| | | <if test="secondaryday != null">Secondaryday,</if> |
| | | <if test="tertiaryday != null">Tertiaryday,</if> |
| | | <if test="enroomno != null">Enroomno,</if> |
| | | <if test="enBedno != null">EnBedno,</if> |
| | | <if test="encSeeno != null">EncSeeno,</if> |
| | | <if test="encAgeUnit != null">EncAgeUnit,</if> |
| | | <if test="encAgeValue != null">EncAgeValue,</if> |
| | | <if test="enIsbaby != null">EnIsbaby,</if> |
| | | <if test="encHavebaby != null">EncHavebaby,</if> |
| | | <if test="encDiagList != null">EncDiagList,</if> |
| | | <if test="directorCode != null">DirectorCode,</if> |
| | | <if test="directorName != null">DirectorName,</if> |
| | | <if test="encDiagnosisCode != null">EncDiagnosisCode,</if> |
| | | <if test="encDiagnosisDesc != null">EncDiagnosisDesc,</if> |
| | | <if test="encAdmLocCode != null">EncAdmLocCode,</if> |
| | | <if test="encAdmLocName != null">EncAdmLocName,</if> |
| | | <if test="taskStatus != null">taskStatus,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="ID != null">#{ID},</if> |
| | | <if test="sourceSystem != null">#{sourceSystem},</if> |
| | | <if test="messageID != null">#{messageID},</if> |
| | | <if test="createTime != null">#{createTime},</if> |
| | | <if test="methodName != null">#{methodName},</if> |
| | | <if test="reqIimRules != null">#{reqIimRules},</if> |
| | | <if test="patientID != null">#{patientID},</if> |
| | | <if test="opreationTime != null">#{opreationTime},</if> |
| | | <if test="episodeID != null">#{episodeID},</if> |
| | | <if test="outMedNO != null">#{outMedNO},</if> |
| | | <if test="inMedNO != null">#{inMedNO},</if> |
| | | <if test="visitNum != null">#{visitNum},</if> |
| | | <if test="admTypeCode != null">#{admTypeCode},</if> |
| | | <if test="admTypeDesc != null">#{admTypeDesc},</if> |
| | | <if test="admStatus != null">#{admStatus},</if> |
| | | <if test="admDate != null">#{admDate},</if> |
| | | <if test="encPatName != null">#{encPatName},</if> |
| | | <if test="encPatGender != null">#{encPatGender},</if> |
| | | <if test="encPatBirthDate != null">#{encPatBirthDate},</if> |
| | | <if test="transferstart != null">#{transferstart},</if> |
| | | <if test="transferend != null">#{transferend},</if> |
| | | <if test="encPatMaritalStatus != null">#{encPatMaritalStatus},</if> |
| | | <if test="originalText != null">#{originalText},</if> |
| | | <if test="encDocList != null">#{encDocList},</if> |
| | | <if test="encAdmLocList != null">#{encAdmLocList},</if> |
| | | <if test="encounterPeriodStart != null">#{encounterPeriodStart},</if> |
| | | <if test="encounterPeriodEnd != null">#{encounterPeriodEnd},</if> |
| | | <if test="encounterBooktime != null">#{encounterBooktime},</if> |
| | | <if test="encAdmSource != null">#{encAdmSource},</if> |
| | | <if test="encInhostype != null">#{encInhostype},</if> |
| | | <if test="encDietName != null">#{encDietName},</if> |
| | | <if test="encOuthostype != null">#{encOuthostype},</if> |
| | | <if test="encVisitnum != null">#{encVisitnum},</if> |
| | | <if test="encChargeType != null">#{encChargeType},</if> |
| | | <if test="encChargeTypeName != null">#{encChargeTypeName},</if> |
| | | <if test="encChargeCode != null">#{encChargeCode},</if> |
| | | <if test="encChargeName != null">#{encChargeName},</if> |
| | | <if test="encReglevelcode != null">#{encReglevelcode},</if> |
| | | <if test="encCareLevel != null">#{encCareLevel},</if> |
| | | <if test="specialday != null">#{specialday},</if> |
| | | <if test="primaryday != null">#{primaryday},</if> |
| | | <if test="secondaryday != null">#{secondaryday},</if> |
| | | <if test="tertiaryday != null">#{tertiaryday},</if> |
| | | <if test="enroomno != null">#{enroomno},</if> |
| | | <if test="enBedno != null">#{enBedno},</if> |
| | | <if test="encSeeno != null">#{encSeeno},</if> |
| | | <if test="encAgeUnit != null">#{encAgeUnit},</if> |
| | | <if test="encAgeValue != null">#{encAgeValue},</if> |
| | | <if test="enIsbaby != null">#{enIsbaby},</if> |
| | | <if test="encHavebaby != null">#{encHavebaby},</if> |
| | | <if test="encDiagList != null">#{encDiagList},</if> |
| | | <if test="directorCode != null">#{directorCode},</if> |
| | | <if test="directorName != null">#{directorName},</if> |
| | | <if test="encDiagnosisCode != null">#{encDiagnosisCode},</if> |
| | | <if test="encDiagnosisDesc != null">#{encDiagnosisDesc},</if> |
| | | <if test="encAdmLocCode != null">#{encAdmLocCode},</if> |
| | | <if test="encAdmLocName != null">#{encAdmLocName},</if> |
| | | <if test="taskStatus != null">#{taskStatus},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateHospitalRecord" parameterType="com.smartor.domain.HospitalRecord"> |
| | | update hospital_record |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="SourceSystem != null">SourceSystem = #{SourceSystem},</if> |
| | | <if test="MessageID != null">MessageID = #{MessageID},</if> |
| | | <if test="CreateTime != null">CreateTime = #{CreateTime},</if> |
| | | <if test="MethodName != null">MethodName = #{MethodName},</if> |
| | | <if test="ReqIimRules != null">ReqIimRules = #{ReqIimRules},</if> |
| | | <if test="PatientID != null">PatientID = #{PatientID},</if> |
| | | <if test="OpreationTime != null">OpreationTime = #{OpreationTime},</if> |
| | | <if test="EpisodeID != null">EpisodeID = #{EpisodeID},</if> |
| | | <if test="OutMedNO != null">OutMedNO = #{OutMedNO},</if> |
| | | <if test="InMedNO != null">InMedNO = #{InMedNO},</if> |
| | | <if test="VisitNum != null">VisitNum = #{VisitNum},</if> |
| | | <if test="AdmTypeCode != null">AdmTypeCode = #{AdmTypeCode},</if> |
| | | <if test="AdmTypeDesc != null">AdmTypeDesc = #{AdmTypeDesc},</if> |
| | | <if test="AdmStatus != null">AdmStatus = #{AdmStatus},</if> |
| | | <if test="AdmDate != null">AdmDate = #{AdmDate},</if> |
| | | <if test="EncPatName != null">EncPatName = #{EncPatName},</if> |
| | | <if test="EncPatGender != null">EncPatGender = #{EncPatGender},</if> |
| | | <if test="EncPatBirthDate != null">EncPatBirthDate = #{EncPatBirthDate},</if> |
| | | <if test="Transferstart != null">Transferstart = #{Transferstart},</if> |
| | | <if test="Transferend != null">Transferend = #{Transferend},</if> |
| | | <if test="EncPatMaritalStatus != null">EncPatMaritalStatus = #{EncPatMaritalStatus},</if> |
| | | <if test="OriginalText != null">OriginalText = #{OriginalText},</if> |
| | | <if test="EncDocList != null">EncDocList = #{EncDocList},</if> |
| | | <if test="EncAdmLocList != null">EncAdmLocList = #{EncAdmLocList},</if> |
| | | <if test="encounterPeriodStart != null">Encounter_period_start = #{encounterPeriodStart},</if> |
| | | <if test="encounterPeriodEnd != null">Encounter_period_end = #{encounterPeriodEnd},</if> |
| | | <if test="encounterBooktime != null">Encounter_booktime = #{encounterBooktime},</if> |
| | | <if test="EncAdmSource != null">EncAdmSource = #{EncAdmSource},</if> |
| | | <if test="EncInhostype != null">EncInhostype = #{EncInhostype},</if> |
| | | <if test="EncDietName != null">EncDietName = #{EncDietName},</if> |
| | | <if test="EncOuthostype != null">EncOuthostype = #{EncOuthostype},</if> |
| | | <if test="EncVisitnum != null">EncVisitnum = #{EncVisitnum},</if> |
| | | <if test="EncChargeType != null">EncChargeType = #{EncChargeType},</if> |
| | | <if test="EncChargeTypeName != null">EncChargeTypeName = #{EncChargeTypeName},</if> |
| | | <if test="EncChargeCode != null">EncChargeCode = #{EncChargeCode},</if> |
| | | <if test="EncChargeName != null">EncChargeName = #{EncChargeName},</if> |
| | | <if test="EncReglevelcode != null">EncReglevelcode = #{EncReglevelcode},</if> |
| | | <if test="EncCareLevel != null">EncCareLevel = #{EncCareLevel},</if> |
| | | <if test="Specialday != null">Specialday = #{Specialday},</if> |
| | | <if test="Primaryday != null">Primaryday = #{Primaryday},</if> |
| | | <if test="Secondaryday != null">Secondaryday = #{Secondaryday},</if> |
| | | <if test="Tertiaryday != null">Tertiaryday = #{Tertiaryday},</if> |
| | | <if test="Enroomno != null">Enroomno = #{Enroomno},</if> |
| | | <if test="EnBedno != null">EnBedno = #{EnBedno},</if> |
| | | <if test="EncSeeno != null">EncSeeno = #{EncSeeno},</if> |
| | | <if test="EncAgeUnit != null">EncAgeUnit = #{EncAgeUnit},</if> |
| | | <if test="EncAgeValue != null">EncAgeValue = #{EncAgeValue},</if> |
| | | <if test="EnIsbaby != null">EnIsbaby = #{EnIsbaby},</if> |
| | | <if test="EncHavebaby != null">EncHavebaby = #{EncHavebaby},</if> |
| | | <if test="EncDiagList != null">EncDiagList = #{EncDiagList},</if> |
| | | <if test="DirectorCode != null">DirectorCode = #{DirectorCode},</if> |
| | | <if test="DirectorName != null">DirectorName = #{DirectorName},</if> |
| | | <if test="EncDiagnosisCode != null">EncDiagnosisCode = #{EncDiagnosisCode},</if> |
| | | <if test="EncDiagnosisDesc != null">EncDiagnosisDesc = #{EncDiagnosisDesc},</if> |
| | | <if test="EncAdmLocCode != null">EncAdmLocCode = #{EncAdmLocCode},</if> |
| | | <if test="EncAdmLocName != null">EncAdmLocName = #{EncAdmLocName},</if> |
| | | <if test="taskStatus != null">taskStatus = #{taskStatus},</if> |
| | | </trim> |
| | | where ID = #{ID} |
| | | </update> |
| | | |
| | | <delete id="deleteHospitalRecordByID" parameterType="String"> |
| | | delete |
| | | from hospital_record |
| | | where ID = #{ID} |
| | | </delete> |
| | | |
| | | <delete id="deleteHospitalRecordByIDs" parameterType="String"> |
| | | delete from hospital_record where ID in |
| | | <foreach item="ID" collection="array" open="(" separator="," close=")"> |
| | | #{ID} |
| | | </foreach> |
| | | </delete> |
| | | </mapper> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?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.HospitalUserinfoMapper"> |
| | | |
| | | <resultMap type="com.smartor.domain.HospitalUserinfo" id="HospitalUserinfoResult"> |
| | | <result property="ID" column="ID"/> |
| | | <result property="SourceSystem" column="SourceSystem"/> |
| | | <result property="MessageID" column="MessageID"/> |
| | | <result property="CreateTime" column="CreateTime"/> |
| | | <result property="MethodName" column="MethodName"/> |
| | | <result property="ReqIimRules" column="ReqIimRules"/> |
| | | <result property="PatientID" column="PatientID"/> |
| | | <result property="VisitNum" column="VisitNum"/> |
| | | <result property="RegDate" column="RegDate"/> |
| | | <result property="IdentityID" column="IdentityID"/> |
| | | <result property="PatName" column="PatName"/> |
| | | <result property="Phone" column="Phone"/> |
| | | <result property="PatSex" column="PatSex"/> |
| | | <result property="BirthDate" column="BirthDate"/> |
| | | <result property="Address" column="Address"/> |
| | | <result property="AddProvince" column="AddProvince"/> |
| | | <result property="AddCity" column="AddCity"/> |
| | | <result property="AddCounty" column="AddCounty"/> |
| | | <result property="AddTown" column="AddTown"/> |
| | | <result property="AddVillage" column="AddVillage"/> |
| | | <result property="AddHouseNo" column="AddHouseNo"/> |
| | | <result property="HouseAddress" column="HouseAddress"/> |
| | | <result property="HouseAddProvince" column="HouseAddProvince"/> |
| | | <result property="HouseAddCity" column="HouseAddCity"/> |
| | | <result property="HouseAddCounty" column="HouseAddCounty"/> |
| | | <result property="HouseAddTown" column="HouseAddTown"/> |
| | | <result property="HouseAddVillage" column="HouseAddVillage"/> |
| | | <result property="HouseAddHouseNo" column="HouseAddHouseNo"/> |
| | | <result property="BirthAddress" column="BirthAddress"/> |
| | | <result property="BirthAddProvince" column="BirthAddProvince"/> |
| | | <result property="BirthAddCity" column="BirthAddCity"/> |
| | | <result property="BirthAddCounty" column="BirthAddCounty"/> |
| | | <result property="BirthAddTown" column="BirthAddTown"/> |
| | | <result property="BirthAddVillage" column="BirthAddVillage"/> |
| | | <result property="BirthAddHouseNo" column="BirthAddHouseNo"/> |
| | | <result property="ContactsAddress" column="ContactsAddress"/> |
| | | <result property="ContactsAddProvince" column="ContactsAddProvince"/> |
| | | <result property="ContactsAddCity" column="ContactsAddCity"/> |
| | | <result property="ContactsAddCounty" column="ContactsAddCounty"/> |
| | | <result property="ContactsAddTown" column="ContactsAddTown"/> |
| | | <result property="ContactsAddVillage" column="ContactsAddVillage"/> |
| | | <result property="ContactsAddHouseNo" column="ContactsAddHouseNo"/> |
| | | <result property="NativeAddress" column="NativeAddress"/> |
| | | <result property="NativeAddProvince" column="NativeAddProvince"/> |
| | | <result property="NativeAddCity" column="NativeAddCity"/> |
| | | <result property="NativeAddCounty" column="NativeAddCounty"/> |
| | | <result property="NativeAddTown" column="NativeAddTown"/> |
| | | <result property="NativeAddVillage" column="NativeAddVillage"/> |
| | | <result property="NativeAddHouseNo" column="NativeAddHouseNo"/> |
| | | <result property="PostalCode" column="PostalCode"/> |
| | | <result property="HouseCode" column="HouseCode"/> |
| | | <result property="WorkCode" column="WorkCode"/> |
| | | <result property="MaritalStatus" column="MaritalStatus"/> |
| | | <result property="Country" column="Country"/> |
| | | <result property="Nation" column="Nation"/> |
| | | <result property="NationCode" column="NationCode"/> |
| | | <result property="OccupType" column="OccupType"/> |
| | | <result property="OccupTypeCode" column="OccupTypeCode"/> |
| | | <result property="WorkUnit" column="WorkUnit"/> |
| | | <result property="WorkPhone" column="WorkPhone"/> |
| | | <result property="HCardNo" column="HCardNo"/> |
| | | <result property="HCIssuersCode" column="HCIssuersCode"/> |
| | | <result property="HUrbanCode" column="HUrbanCode"/> |
| | | <result property="MedOrgCode" column="MedOrgCode"/> |
| | | <result property="paycode" column="paycode"/> |
| | | <result property="payname" column="payname"/> |
| | | <result property="ConRelShip" column="ConRelShip"/> |
| | | <result property="ConPerPhone" column="ConPerPhone"/> |
| | | <result property="ConPerName" column="ConPerName"/> |
| | | <result property="RegOrgCode" column="RegOrgCode"/> |
| | | <result property="RegOrgDesc" column="RegOrgDesc"/> |
| | | <result property="InsureOrgName" column="InsureOrgName"/> |
| | | <result property="InsureOrgCode" column="InsureOrgCode"/> |
| | | <result property="RegEmpCode" column="RegEmpCode"/> |
| | | <result property="RegEmpName" column="RegEmpName"/> |
| | | <result property="INEnroomno" column="INEnroomno"/> |
| | | <result property="OUTEnroomno" column="OUTEnroomno"/> |
| | | <result property="EncAdmSource" column="EncAdmSource"/> |
| | | <result property="Directordoc" column="Directordoc"/> |
| | | <result property="Attenddoc" column="Attenddoc"/> |
| | | <result property="Beddoc" column="Beddoc"/> |
| | | <result property="Bednur" column="Bednur"/> |
| | | <result property="Regdoc" column="Regdoc"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectHospitalUserinfoVo"> |
| | | select ID, |
| | | SourceSystem, |
| | | MessageID, |
| | | CreateTime, |
| | | MethodName, |
| | | ReqIimRules, |
| | | PatientID, |
| | | VisitNum, |
| | | RegDate, |
| | | IdentityID, |
| | | PatName, |
| | | Phone, |
| | | PatSex, |
| | | BirthDate, |
| | | Address, |
| | | AddProvince, |
| | | AddCity, |
| | | AddCounty, |
| | | AddTown, |
| | | AddVillage, |
| | | AddHouseNo, |
| | | HouseAddress, |
| | | HouseAddProvince, |
| | | HouseAddCity, |
| | | HouseAddCounty, |
| | | HouseAddTown, |
| | | HouseAddVillage, |
| | | HouseAddHouseNo, |
| | | BirthAddress, |
| | | BirthAddProvince, |
| | | BirthAddCity, |
| | | BirthAddCounty, |
| | | BirthAddTown, |
| | | BirthAddVillage, |
| | | BirthAddHouseNo, |
| | | ContactsAddress, |
| | | ContactsAddProvince, |
| | | ContactsAddCity, |
| | | ContactsAddCounty, |
| | | ContactsAddTown, |
| | | ContactsAddVillage, |
| | | ContactsAddHouseNo, |
| | | NativeAddress, |
| | | NativeAddProvince, |
| | | NativeAddCity, |
| | | NativeAddCounty, |
| | | NativeAddTown, |
| | | NativeAddVillage, |
| | | NativeAddHouseNo, |
| | | PostalCode, |
| | | HouseCode, |
| | | WorkCode, |
| | | MaritalStatus, |
| | | Country, |
| | | Nation, |
| | | NationCode, |
| | | OccupType, |
| | | OccupTypeCode, |
| | | WorkUnit, |
| | | WorkPhone, |
| | | HCardNo, |
| | | HCIssuersCode, |
| | | HUrbanCode, |
| | | MedOrgCode, |
| | | paycode, |
| | | payname, |
| | | ConRelShip, |
| | | ConPerPhone, |
| | | ConPerName, |
| | | RegOrgCode, |
| | | RegOrgDesc, |
| | | InsureOrgName, |
| | | InsureOrgCode, |
| | | RegEmpCode, |
| | | RegEmpName, |
| | | INEnroomno, |
| | | OUTEnroomno, |
| | | EncAdmSource, |
| | | Directordoc, |
| | | Attenddoc, |
| | | Beddoc, |
| | | Bednur, |
| | | Regdoc |
| | | from hospital_userinfo |
| | | </sql> |
| | | |
| | | <select id="selectHospitalUserinfoList" parameterType="HospitalUserinfo" resultMap="HospitalUserinfoResult"> |
| | | <include refid="selectHospitalUserinfoVo"/> |
| | | <where> |
| | | <if test="SourceSystem != null and SourceSystem != ''">and SourceSystem = #{SourceSystem}</if> |
| | | <if test="MessageID != null and MessageID != ''">and MessageID = #{MessageID}</if> |
| | | <if test="CreateTime != null and CreateTime != ''">and CreateTime = #{CreateTime}</if> |
| | | <if test="MethodName != null and MethodName != ''">and MethodName like concat('%', #{MethodName}, '%')</if> |
| | | <if test="ReqIimRules != null and ReqIimRules != ''">and ReqIimRules = #{ReqIimRules}</if> |
| | | <if test="PatientID != null and PatientID != ''">and PatientID = #{PatientID}</if> |
| | | <if test="VisitNum != null and VisitNum != ''">and VisitNum = #{VisitNum}</if> |
| | | <if test="RegDate != null and RegDate != ''">and RegDate = #{RegDate}</if> |
| | | <if test="IdentityID != null and IdentityID != ''">and IdentityID = #{IdentityID}</if> |
| | | <if test="PatName != null and PatName != ''">and PatName like concat('%', #{PatName}, '%')</if> |
| | | <if test="Phone != null and Phone != ''">and Phone = #{Phone}</if> |
| | | <if test="PatSex != null and PatSex != ''">and PatSex = #{PatSex}</if> |
| | | <if test="BirthDate != null and BirthDate != ''">and BirthDate = #{BirthDate}</if> |
| | | <if test="Address != null and Address != ''">and Address = #{Address}</if> |
| | | <if test="AddProvince != null and AddProvince != ''">and AddProvince = #{AddProvince}</if> |
| | | <if test="AddCity != null and AddCity != ''">and AddCity = #{AddCity}</if> |
| | | <if test="AddCounty != null and AddCounty != ''">and AddCounty = #{AddCounty}</if> |
| | | <if test="AddTown != null and AddTown != ''">and AddTown = #{AddTown}</if> |
| | | <if test="AddVillage != null and AddVillage != ''">and AddVillage = #{AddVillage}</if> |
| | | <if test="AddHouseNo != null and AddHouseNo != ''">and AddHouseNo = #{AddHouseNo}</if> |
| | | <if test="HouseAddress != null and HouseAddress != ''">and HouseAddress = #{HouseAddress}</if> |
| | | <if test="HouseAddProvince != null and HouseAddProvince != ''">and HouseAddProvince = #{HouseAddProvince} |
| | | </if> |
| | | <if test="HouseAddCity != null and HouseAddCity != ''">and HouseAddCity = #{HouseAddCity}</if> |
| | | <if test="HouseAddCounty != null and HouseAddCounty != ''">and HouseAddCounty = #{HouseAddCounty}</if> |
| | | <if test="HouseAddTown != null and HouseAddTown != ''">and HouseAddTown = #{HouseAddTown}</if> |
| | | <if test="HouseAddVillage != null and HouseAddVillage != ''">and HouseAddVillage = #{HouseAddVillage}</if> |
| | | <if test="HouseAddHouseNo != null and HouseAddHouseNo != ''">and HouseAddHouseNo = #{HouseAddHouseNo}</if> |
| | | <if test="BirthAddress != null and BirthAddress != ''">and BirthAddress = #{BirthAddress}</if> |
| | | <if test="BirthAddProvince != null and BirthAddProvince != ''">and BirthAddProvince = #{BirthAddProvince} |
| | | </if> |
| | | <if test="BirthAddCity != null and BirthAddCity != ''">and BirthAddCity = #{BirthAddCity}</if> |
| | | <if test="BirthAddCounty != null and BirthAddCounty != ''">and BirthAddCounty = #{BirthAddCounty}</if> |
| | | <if test="BirthAddTown != null and BirthAddTown != ''">and BirthAddTown = #{BirthAddTown}</if> |
| | | <if test="BirthAddVillage != null and BirthAddVillage != ''">and BirthAddVillage = #{BirthAddVillage}</if> |
| | | <if test="BirthAddHouseNo != null and BirthAddHouseNo != ''">and BirthAddHouseNo = #{BirthAddHouseNo}</if> |
| | | <if test="ContactsAddress != null and ContactsAddress != ''">and ContactsAddress = #{ContactsAddress}</if> |
| | | <if test="ContactsAddProvince != null and ContactsAddProvince != ''">and ContactsAddProvince = |
| | | #{ContactsAddProvince} |
| | | </if> |
| | | <if test="ContactsAddCity != null and ContactsAddCity != ''">and ContactsAddCity = #{ContactsAddCity}</if> |
| | | <if test="ContactsAddCounty != null and ContactsAddCounty != ''">and ContactsAddCounty = |
| | | #{ContactsAddCounty} |
| | | </if> |
| | | <if test="ContactsAddTown != null and ContactsAddTown != ''">and ContactsAddTown = #{ContactsAddTown}</if> |
| | | <if test="ContactsAddVillage != null and ContactsAddVillage != ''">and ContactsAddVillage = |
| | | #{ContactsAddVillage} |
| | | </if> |
| | | <if test="ContactsAddHouseNo != null and ContactsAddHouseNo != ''">and ContactsAddHouseNo = |
| | | #{ContactsAddHouseNo} |
| | | </if> |
| | | <if test="NativeAddress != null and NativeAddress != ''">and NativeAddress = #{NativeAddress}</if> |
| | | <if test="NativeAddProvince != null and NativeAddProvince != ''">and NativeAddProvince = |
| | | #{NativeAddProvince} |
| | | </if> |
| | | <if test="NativeAddCity != null and NativeAddCity != ''">and NativeAddCity = #{NativeAddCity}</if> |
| | | <if test="NativeAddCounty != null and NativeAddCounty != ''">and NativeAddCounty = #{NativeAddCounty}</if> |
| | | <if test="NativeAddTown != null and NativeAddTown != ''">and NativeAddTown = #{NativeAddTown}</if> |
| | | <if test="NativeAddVillage != null and NativeAddVillage != ''">and NativeAddVillage = #{NativeAddVillage} |
| | | </if> |
| | | <if test="NativeAddHouseNo != null and NativeAddHouseNo != ''">and NativeAddHouseNo = #{NativeAddHouseNo} |
| | | </if> |
| | | <if test="PostalCode != null and PostalCode != ''">and PostalCode = #{PostalCode}</if> |
| | | <if test="HouseCode != null and HouseCode != ''">and HouseCode = #{HouseCode}</if> |
| | | <if test="WorkCode != null and WorkCode != ''">and WorkCode = #{WorkCode}</if> |
| | | <if test="MaritalStatus != null and MaritalStatus != ''">and MaritalStatus = #{MaritalStatus}</if> |
| | | <if test="Country != null and Country != ''">and Country = #{Country}</if> |
| | | <if test="Nation != null and Nation != ''">and Nation = #{Nation}</if> |
| | | <if test="NationCode != null and NationCode != ''">and NationCode = #{NationCode}</if> |
| | | <if test="OccupType != null and OccupType != ''">and OccupType = #{OccupType}</if> |
| | | <if test="OccupTypeCode != null and OccupTypeCode != ''">and OccupTypeCode = #{OccupTypeCode}</if> |
| | | <if test="WorkUnit != null and WorkUnit != ''">and WorkUnit = #{WorkUnit}</if> |
| | | <if test="WorkPhone != null and WorkPhone != ''">and WorkPhone = #{WorkPhone}</if> |
| | | <if test="HCardNo != null and HCardNo != ''">and HCardNo = #{HCardNo}</if> |
| | | <if test="HCIssuersCode != null and HCIssuersCode != ''">and HCIssuersCode = #{HCIssuersCode}</if> |
| | | <if test="HUrbanCode != null and HUrbanCode != ''">and HUrbanCode = #{HUrbanCode}</if> |
| | | <if test="MedOrgCode != null and MedOrgCode != ''">and MedOrgCode = #{MedOrgCode}</if> |
| | | <if test="paycode != null and paycode != ''">and paycode = #{paycode}</if> |
| | | <if test="payname != null and payname != ''">and payname like concat('%', #{payname}, '%')</if> |
| | | <if test="ConRelShip != null and ConRelShip != ''">and ConRelShip = #{ConRelShip}</if> |
| | | <if test="ConPerPhone != null and ConPerPhone != ''">and ConPerPhone = #{ConPerPhone}</if> |
| | | <if test="ConPerName != null and ConPerName != ''">and ConPerName like concat('%', #{ConPerName}, '%')</if> |
| | | <if test="RegOrgCode != null and RegOrgCode != ''">and RegOrgCode = #{RegOrgCode}</if> |
| | | <if test="RegOrgDesc != null and RegOrgDesc != ''">and RegOrgDesc = #{RegOrgDesc}</if> |
| | | <if test="InsureOrgName != null and InsureOrgName != ''">and InsureOrgName like concat('%', |
| | | #{InsureOrgName}, '%') |
| | | </if> |
| | | <if test="InsureOrgCode != null and InsureOrgCode != ''">and InsureOrgCode = #{InsureOrgCode}</if> |
| | | <if test="RegEmpCode != null and RegEmpCode != ''">and RegEmpCode = #{RegEmpCode}</if> |
| | | <if test="RegEmpName != null and RegEmpName != ''">and RegEmpName like concat('%', #{RegEmpName}, '%')</if> |
| | | <if test="INEnroomno != null and INEnroomno != ''">and INEnroomno = #{INEnroomno}</if> |
| | | <if test="OUTEnroomno != null and OUTEnroomno != ''">and OUTEnroomno = #{OUTEnroomno}</if> |
| | | <if test="EncAdmSource != null and EncAdmSource != ''">and EncAdmSource = #{EncAdmSource}</if> |
| | | <if test="Directordoc != null and Directordoc != ''">and Directordoc = #{Directordoc}</if> |
| | | <if test="Attenddoc != null and Attenddoc != ''">and Attenddoc = #{Attenddoc}</if> |
| | | <if test="Beddoc != null and Beddoc != ''">and Beddoc = #{Beddoc}</if> |
| | | <if test="Bednur != null and Bednur != ''">and Bednur = #{Bednur}</if> |
| | | <if test="Regdoc != null and Regdoc != ''">and Regdoc = #{Regdoc}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectHospitalUserinfoByID" parameterType="Long" resultMap="HospitalUserinfoResult"> |
| | | <include refid="selectHospitalUserinfoVo"/> |
| | | where ID = #{ID} |
| | | </select> |
| | | |
| | | <insert id="insertHospitalUserinfo" parameterType="com.smartor.domain.HospitalUserinfo" useGeneratedKeys="true" keyProperty="ID"> |
| | | insert into hospital_userinfo |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="SourceSystem != null">SourceSystem,</if> |
| | | <if test="MessageID != null">MessageID,</if> |
| | | <if test="CreateTime != null and CreateTime != ''">CreateTime,</if> |
| | | <if test="MethodName != null">MethodName,</if> |
| | | <if test="ReqIimRules != null">ReqIimRules,</if> |
| | | <if test="PatientID != null">PatientID,</if> |
| | | <if test="VisitNum != null">VisitNum,</if> |
| | | <if test="RegDate != null">RegDate,</if> |
| | | <if test="IdentityID != null">IdentityID,</if> |
| | | <if test="PatName != null">PatName,</if> |
| | | <if test="Phone != null">Phone,</if> |
| | | <if test="PatSex != null">PatSex,</if> |
| | | <if test="BirthDate != null">BirthDate,</if> |
| | | <if test="Address != null">Address,</if> |
| | | <if test="AddProvince != null">AddProvince,</if> |
| | | <if test="AddCity != null">AddCity,</if> |
| | | <if test="AddCounty != null">AddCounty,</if> |
| | | <if test="AddTown != null">AddTown,</if> |
| | | <if test="AddVillage != null">AddVillage,</if> |
| | | <if test="AddHouseNo != null">AddHouseNo,</if> |
| | | <if test="HouseAddress != null">HouseAddress,</if> |
| | | <if test="HouseAddProvince != null">HouseAddProvince,</if> |
| | | <if test="HouseAddCity != null">HouseAddCity,</if> |
| | | <if test="HouseAddCounty != null">HouseAddCounty,</if> |
| | | <if test="HouseAddTown != null">HouseAddTown,</if> |
| | | <if test="HouseAddVillage != null">HouseAddVillage,</if> |
| | | <if test="HouseAddHouseNo != null">HouseAddHouseNo,</if> |
| | | <if test="BirthAddress != null">BirthAddress,</if> |
| | | <if test="BirthAddProvince != null">BirthAddProvince,</if> |
| | | <if test="BirthAddCity != null">BirthAddCity,</if> |
| | | <if test="BirthAddCounty != null">BirthAddCounty,</if> |
| | | <if test="BirthAddTown != null">BirthAddTown,</if> |
| | | <if test="BirthAddVillage != null">BirthAddVillage,</if> |
| | | <if test="BirthAddHouseNo != null">BirthAddHouseNo,</if> |
| | | <if test="ContactsAddress != null">ContactsAddress,</if> |
| | | <if test="ContactsAddProvince != null">ContactsAddProvince,</if> |
| | | <if test="ContactsAddCity != null">ContactsAddCity,</if> |
| | | <if test="ContactsAddCounty != null">ContactsAddCounty,</if> |
| | | <if test="ContactsAddTown != null">ContactsAddTown,</if> |
| | | <if test="ContactsAddVillage != null">ContactsAddVillage,</if> |
| | | <if test="ContactsAddHouseNo != null">ContactsAddHouseNo,</if> |
| | | <if test="NativeAddress != null">NativeAddress,</if> |
| | | <if test="NativeAddProvince != null">NativeAddProvince,</if> |
| | | <if test="NativeAddCity != null">NativeAddCity,</if> |
| | | <if test="NativeAddCounty != null">NativeAddCounty,</if> |
| | | <if test="NativeAddTown != null">NativeAddTown,</if> |
| | | <if test="NativeAddVillage != null">NativeAddVillage,</if> |
| | | <if test="NativeAddHouseNo != null">NativeAddHouseNo,</if> |
| | | <if test="PostalCode != null">PostalCode,</if> |
| | | <if test="HouseCode != null">HouseCode,</if> |
| | | <if test="WorkCode != null">WorkCode,</if> |
| | | <if test="MaritalStatus != null">MaritalStatus,</if> |
| | | <if test="Country != null">Country,</if> |
| | | <if test="Nation != null">Nation,</if> |
| | | <if test="NationCode != null">NationCode,</if> |
| | | <if test="OccupType != null">OccupType,</if> |
| | | <if test="OccupTypeCode != null">OccupTypeCode,</if> |
| | | <if test="WorkUnit != null">WorkUnit,</if> |
| | | <if test="WorkPhone != null">WorkPhone,</if> |
| | | <if test="HCardNo != null">HCardNo,</if> |
| | | <if test="HCIssuersCode != null">HCIssuersCode,</if> |
| | | <if test="HUrbanCode != null">HUrbanCode,</if> |
| | | <if test="MedOrgCode != null">MedOrgCode,</if> |
| | | <if test="paycode != null">paycode,</if> |
| | | <if test="payname != null">payname,</if> |
| | | <if test="ConRelShip != null">ConRelShip,</if> |
| | | <if test="ConPerPhone != null">ConPerPhone,</if> |
| | | <if test="ConPerName != null">ConPerName,</if> |
| | | <if test="RegOrgCode != null">RegOrgCode,</if> |
| | | <if test="RegOrgDesc != null">RegOrgDesc,</if> |
| | | <if test="InsureOrgName != null">InsureOrgName,</if> |
| | | <if test="InsureOrgCode != null">InsureOrgCode,</if> |
| | | <if test="RegEmpCode != null">RegEmpCode,</if> |
| | | <if test="RegEmpName != null">RegEmpName,</if> |
| | | <if test="INEnroomno != null">INEnroomno,</if> |
| | | <if test="OUTEnroomno != null">OUTEnroomno,</if> |
| | | <if test="EncAdmSource != null">EncAdmSource,</if> |
| | | <if test="Directordoc != null">Directordoc,</if> |
| | | <if test="Attenddoc != null">Attenddoc,</if> |
| | | <if test="Beddoc != null">Beddoc,</if> |
| | | <if test="Bednur != null">Bednur,</if> |
| | | <if test="Regdoc != null">Regdoc,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="SourceSystem != null">#{SourceSystem},</if> |
| | | <if test="MessageID != null">#{MessageID},</if> |
| | | <if test="CreateTime != null and CreateTime != ''">#{CreateTime},</if> |
| | | <if test="MethodName != null">#{MethodName},</if> |
| | | <if test="ReqIimRules != null">#{ReqIimRules},</if> |
| | | <if test="PatientID != null">#{PatientID},</if> |
| | | <if test="VisitNum != null">#{VisitNum},</if> |
| | | <if test="RegDate != null">#{RegDate},</if> |
| | | <if test="IdentityID != null">#{IdentityID},</if> |
| | | <if test="PatName != null">#{PatName},</if> |
| | | <if test="Phone != null">#{Phone},</if> |
| | | <if test="PatSex != null">#{PatSex},</if> |
| | | <if test="BirthDate != null">#{BirthDate},</if> |
| | | <if test="Address != null">#{Address},</if> |
| | | <if test="AddProvince != null">#{AddProvince},</if> |
| | | <if test="AddCity != null">#{AddCity},</if> |
| | | <if test="AddCounty != null">#{AddCounty},</if> |
| | | <if test="AddTown != null">#{AddTown},</if> |
| | | <if test="AddVillage != null">#{AddVillage},</if> |
| | | <if test="AddHouseNo != null">#{AddHouseNo},</if> |
| | | <if test="HouseAddress != null">#{HouseAddress},</if> |
| | | <if test="HouseAddProvince != null">#{HouseAddProvince},</if> |
| | | <if test="HouseAddCity != null">#{HouseAddCity},</if> |
| | | <if test="HouseAddCounty != null">#{HouseAddCounty},</if> |
| | | <if test="HouseAddTown != null">#{HouseAddTown},</if> |
| | | <if test="HouseAddVillage != null">#{HouseAddVillage},</if> |
| | | <if test="HouseAddHouseNo != null">#{HouseAddHouseNo},</if> |
| | | <if test="BirthAddress != null">#{BirthAddress},</if> |
| | | <if test="BirthAddProvince != null">#{BirthAddProvince},</if> |
| | | <if test="BirthAddCity != null">#{BirthAddCity},</if> |
| | | <if test="BirthAddCounty != null">#{BirthAddCounty},</if> |
| | | <if test="BirthAddTown != null">#{BirthAddTown},</if> |
| | | <if test="BirthAddVillage != null">#{BirthAddVillage},</if> |
| | | <if test="BirthAddHouseNo != null">#{BirthAddHouseNo},</if> |
| | | <if test="ContactsAddress != null">#{ContactsAddress},</if> |
| | | <if test="ContactsAddProvince != null">#{ContactsAddProvince},</if> |
| | | <if test="ContactsAddCity != null">#{ContactsAddCity},</if> |
| | | <if test="ContactsAddCounty != null">#{ContactsAddCounty},</if> |
| | | <if test="ContactsAddTown != null">#{ContactsAddTown},</if> |
| | | <if test="ContactsAddVillage != null">#{ContactsAddVillage},</if> |
| | | <if test="ContactsAddHouseNo != null">#{ContactsAddHouseNo},</if> |
| | | <if test="NativeAddress != null">#{NativeAddress},</if> |
| | | <if test="NativeAddProvince != null">#{NativeAddProvince},</if> |
| | | <if test="NativeAddCity != null">#{NativeAddCity},</if> |
| | | <if test="NativeAddCounty != null">#{NativeAddCounty},</if> |
| | | <if test="NativeAddTown != null">#{NativeAddTown},</if> |
| | | <if test="NativeAddVillage != null">#{NativeAddVillage},</if> |
| | | <if test="NativeAddHouseNo != null">#{NativeAddHouseNo},</if> |
| | | <if test="PostalCode != null">#{PostalCode},</if> |
| | | <if test="HouseCode != null">#{HouseCode},</if> |
| | | <if test="WorkCode != null">#{WorkCode},</if> |
| | | <if test="MaritalStatus != null">#{MaritalStatus},</if> |
| | | <if test="Country != null">#{Country},</if> |
| | | <if test="Nation != null">#{Nation},</if> |
| | | <if test="NationCode != null">#{NationCode},</if> |
| | | <if test="OccupType != null">#{OccupType},</if> |
| | | <if test="OccupTypeCode != null">#{OccupTypeCode},</if> |
| | | <if test="WorkUnit != null">#{WorkUnit},</if> |
| | | <if test="WorkPhone != null">#{WorkPhone},</if> |
| | | <if test="HCardNo != null">#{HCardNo},</if> |
| | | <if test="HCIssuersCode != null">#{HCIssuersCode},</if> |
| | | <if test="HUrbanCode != null">#{HUrbanCode},</if> |
| | | <if test="MedOrgCode != null">#{MedOrgCode},</if> |
| | | <if test="paycode != null">#{paycode},</if> |
| | | <if test="payname != null">#{payname},</if> |
| | | <if test="ConRelShip != null">#{ConRelShip},</if> |
| | | <if test="ConPerPhone != null">#{ConPerPhone},</if> |
| | | <if test="ConPerName != null">#{ConPerName},</if> |
| | | <if test="RegOrgCode != null">#{RegOrgCode},</if> |
| | | <if test="RegOrgDesc != null">#{RegOrgDesc},</if> |
| | | <if test="InsureOrgName != null">#{InsureOrgName},</if> |
| | | <if test="InsureOrgCode != null">#{InsureOrgCode},</if> |
| | | <if test="RegEmpCode != null">#{RegEmpCode},</if> |
| | | <if test="RegEmpName != null">#{RegEmpName},</if> |
| | | <if test="INEnroomno != null">#{INEnroomno},</if> |
| | | <if test="OUTEnroomno != null">#{OUTEnroomno},</if> |
| | | <if test="EncAdmSource != null">#{EncAdmSource},</if> |
| | | <if test="Directordoc != null">#{Directordoc},</if> |
| | | <if test="Attenddoc != null">#{Attenddoc},</if> |
| | | <if test="Beddoc != null">#{Beddoc},</if> |
| | | <if test="Bednur != null">#{Bednur},</if> |
| | | <if test="Regdoc != null">#{Regdoc},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateHospitalUserinfo" parameterType="HospitalUserinfo"> |
| | | update hospital_userinfo |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="SourceSystem != null">SourceSystem = #{SourceSystem},</if> |
| | | <if test="MessageID != null">MessageID = #{MessageID},</if> |
| | | <if test="CreateTime != null">CreateTime = #{CreateTime},</if> |
| | | <if test="MethodName != null">MethodName = #{MethodName},</if> |
| | | <if test="ReqIimRules != null">ReqIimRules = #{ReqIimRules},</if> |
| | | <if test="PatientID != null">PatientID = #{PatientID},</if> |
| | | <if test="VisitNum != null">VisitNum = #{VisitNum},</if> |
| | | <if test="RegDate != null">RegDate = #{RegDate},</if> |
| | | <if test="IdentityID != null">IdentityID = #{IdentityID},</if> |
| | | <if test="PatName != null">PatName = #{PatName},</if> |
| | | <if test="Phone != null">Phone = #{Phone},</if> |
| | | <if test="PatSex != null">PatSex = #{PatSex},</if> |
| | | <if test="BirthDate != null">BirthDate = #{BirthDate},</if> |
| | | <if test="Address != null">Address = #{Address},</if> |
| | | <if test="AddProvince != null">AddProvince = #{AddProvince},</if> |
| | | <if test="AddCity != null">AddCity = #{AddCity},</if> |
| | | <if test="AddCounty != null">AddCounty = #{AddCounty},</if> |
| | | <if test="AddTown != null">AddTown = #{AddTown},</if> |
| | | <if test="AddVillage != null">AddVillage = #{AddVillage},</if> |
| | | <if test="AddHouseNo != null">AddHouseNo = #{AddHouseNo},</if> |
| | | <if test="HouseAddress != null">HouseAddress = #{HouseAddress},</if> |
| | | <if test="HouseAddProvince != null">HouseAddProvince = #{HouseAddProvince},</if> |
| | | <if test="HouseAddCity != null">HouseAddCity = #{HouseAddCity},</if> |
| | | <if test="HouseAddCounty != null">HouseAddCounty = #{HouseAddCounty},</if> |
| | | <if test="HouseAddTown != null">HouseAddTown = #{HouseAddTown},</if> |
| | | <if test="HouseAddVillage != null">HouseAddVillage = #{HouseAddVillage},</if> |
| | | <if test="HouseAddHouseNo != null">HouseAddHouseNo = #{HouseAddHouseNo},</if> |
| | | <if test="BirthAddress != null">BirthAddress = #{BirthAddress},</if> |
| | | <if test="BirthAddProvince != null">BirthAddProvince = #{BirthAddProvince},</if> |
| | | <if test="BirthAddCity != null">BirthAddCity = #{BirthAddCity},</if> |
| | | <if test="BirthAddCounty != null">BirthAddCounty = #{BirthAddCounty},</if> |
| | | <if test="BirthAddTown != null">BirthAddTown = #{BirthAddTown},</if> |
| | | <if test="BirthAddVillage != null">BirthAddVillage = #{BirthAddVillage},</if> |
| | | <if test="BirthAddHouseNo != null">BirthAddHouseNo = #{BirthAddHouseNo},</if> |
| | | <if test="ContactsAddress != null">ContactsAddress = #{ContactsAddress},</if> |
| | | <if test="ContactsAddProvince != null">ContactsAddProvince = #{ContactsAddProvince},</if> |
| | | <if test="ContactsAddCity != null">ContactsAddCity = #{ContactsAddCity},</if> |
| | | <if test="ContactsAddCounty != null">ContactsAddCounty = #{ContactsAddCounty},</if> |
| | | <if test="ContactsAddTown != null">ContactsAddTown = #{ContactsAddTown},</if> |
| | | <if test="ContactsAddVillage != null">ContactsAddVillage = #{ContactsAddVillage},</if> |
| | | <if test="ContactsAddHouseNo != null">ContactsAddHouseNo = #{ContactsAddHouseNo},</if> |
| | | <if test="NativeAddress != null">NativeAddress = #{NativeAddress},</if> |
| | | <if test="NativeAddProvince != null">NativeAddProvince = #{NativeAddProvince},</if> |
| | | <if test="NativeAddCity != null">NativeAddCity = #{NativeAddCity},</if> |
| | | <if test="NativeAddCounty != null">NativeAddCounty = #{NativeAddCounty},</if> |
| | | <if test="NativeAddTown != null">NativeAddTown = #{NativeAddTown},</if> |
| | | <if test="NativeAddVillage != null">NativeAddVillage = #{NativeAddVillage},</if> |
| | | <if test="NativeAddHouseNo != null">NativeAddHouseNo = #{NativeAddHouseNo},</if> |
| | | <if test="PostalCode != null">PostalCode = #{PostalCode},</if> |
| | | <if test="HouseCode != null">HouseCode = #{HouseCode},</if> |
| | | <if test="WorkCode != null">WorkCode = #{WorkCode},</if> |
| | | <if test="MaritalStatus != null">MaritalStatus = #{MaritalStatus},</if> |
| | | <if test="Country != null">Country = #{Country},</if> |
| | | <if test="Nation != null">Nation = #{Nation},</if> |
| | | <if test="NationCode != null">NationCode = #{NationCode},</if> |
| | | <if test="OccupType != null">OccupType = #{OccupType},</if> |
| | | <if test="OccupTypeCode != null">OccupTypeCode = #{OccupTypeCode},</if> |
| | | <if test="WorkUnit != null">WorkUnit = #{WorkUnit},</if> |
| | | <if test="WorkPhone != null">WorkPhone = #{WorkPhone},</if> |
| | | <if test="HCardNo != null">HCardNo = #{HCardNo},</if> |
| | | <if test="HCIssuersCode != null">HCIssuersCode = #{HCIssuersCode},</if> |
| | | <if test="HUrbanCode != null">HUrbanCode = #{HUrbanCode},</if> |
| | | <if test="MedOrgCode != null">MedOrgCode = #{MedOrgCode},</if> |
| | | <if test="paycode != null">paycode = #{paycode},</if> |
| | | <if test="payname != null">payname = #{payname},</if> |
| | | <if test="ConRelShip != null">ConRelShip = #{ConRelShip},</if> |
| | | <if test="ConPerPhone != null">ConPerPhone = #{ConPerPhone},</if> |
| | | <if test="ConPerName != null">ConPerName = #{ConPerName},</if> |
| | | <if test="RegOrgCode != null">RegOrgCode = #{RegOrgCode},</if> |
| | | <if test="RegOrgDesc != null">RegOrgDesc = #{RegOrgDesc},</if> |
| | | <if test="InsureOrgName != null">InsureOrgName = #{InsureOrgName},</if> |
| | | <if test="InsureOrgCode != null">InsureOrgCode = #{InsureOrgCode},</if> |
| | | <if test="RegEmpCode != null">RegEmpCode = #{RegEmpCode},</if> |
| | | <if test="RegEmpName != null">RegEmpName = #{RegEmpName},</if> |
| | | <if test="INEnroomno != null">INEnroomno = #{INEnroomno},</if> |
| | | <if test="OUTEnroomno != null">OUTEnroomno = #{OUTEnroomno},</if> |
| | | <if test="EncAdmSource != null">EncAdmSource = #{EncAdmSource},</if> |
| | | <if test="Directordoc != null">Directordoc = #{Directordoc},</if> |
| | | <if test="Attenddoc != null">Attenddoc = #{Attenddoc},</if> |
| | | <if test="Beddoc != null">Beddoc = #{Beddoc},</if> |
| | | <if test="Bednur != null">Bednur = #{Bednur},</if> |
| | | <if test="Regdoc != null">Regdoc = #{Regdoc},</if> |
| | | </trim> |
| | | where ID = #{ID} |
| | | </update> |
| | | |
| | | <delete id="deleteHospitalUserinfoByID" parameterType="Long"> |
| | | delete |
| | | from hospital_userinfo |
| | | where ID = #{ID} |
| | | </delete> |
| | | |
| | | <delete id="deleteHospitalUserinfoByIDs" parameterType="String"> |
| | | delete from hospital_userinfo where ID in |
| | | <foreach item="ID" collection="array" open="(" separator="," close=")"> |
| | | #{ID} |
| | | </foreach> |
| | | </delete> |
| | | </mapper> |
| | |
| | | resultMap="IvrLibaTemplateScriptResult"> |
| | | <include refid="selectIvrLibaTemplateScriptVo"/> |
| | | <where> |
| | | del_flag=0 |
| | | <if test="templateQuestionNum != null ">and templateQuestionNum = #{templateQuestionNum}</if> |
| | | <if test="templateID != null ">and templateID = #{templateID}</if> |
| | | <if test="questionPoint != null and questionPoint != ''">and questionPoint = #{questionPoint}</if> |
| | |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="templateQuestionNum != null">templateQuestionNum,</if> |
| | | <if test="templateID != null">templateID,</if> |
| | | <if test="scriptID != null">scriptID,</if> |
| | | <if test="scriptid != null">scriptID,</if> |
| | | <if test="questionPoint != null and questionPoint != ''">questionPoint,</if> |
| | | <if test="questionText != null">questionText,</if> |
| | | <if test="questionVoice != null">questionVoice,</if> |
| | |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="templateQuestionNum != null">#{templateQuestionNum},</if> |
| | | <if test="templateID != null">#{templateID},</if> |
| | | <if test="scriptID != null">#{scriptID},</if> |
| | | <if test="scriptid != null">#{scriptid},</if> |
| | | <if test="questionPoint != null and questionPoint != ''">#{questionPoint},</if> |
| | | <if test="questionText != null">#{questionText},</if> |
| | | <if test="questionVoice != null">#{questionVoice},</if> |
| | |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="templateQuestionNum != null">templateQuestionNum = #{templateQuestionNum},</if> |
| | | <if test="templateID != null">templateID = #{templateID},</if> |
| | | <if test="scriptID != null">scriptID = #{scriptID},</if> |
| | | <if test="scriptid != null">scriptID = #{scriptid},</if> |
| | | <if test="questionPoint != null and questionPoint != ''">questionPoint = #{questionPoint},</if> |
| | | <if test="questionText != null">questionText = #{questionText},</if> |
| | | <if test="questionVoice != null">questionVoice = #{questionVoice},</if> |
| | |
| | | <result property="targetid" column="targetid"/> |
| | | <result property="pid" column="pid"/> |
| | | <result property="guid" column="guid"/> |
| | | <result property="guid" column="guid"/> |
| | | <result property="tagname" column="tag_name"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectIvrLibaTemplateTagVo"> |
| | |
| | | upload_time, |
| | | targetid, |
| | | pid, |
| | | guid |
| | | guid, |
| | | tag_name |
| | | from ivr_liba_template_tag |
| | | </sql> |
| | | |
| | |
| | | resultMap="IvrLibaTemplateTagResult"> |
| | | <include refid="selectIvrLibaTemplateTagVo"/> |
| | | <where> |
| | | del_flag=0 |
| | | <if test="tagcategoryid != null ">and tagcategoryid = #{tagcategoryid}</if> |
| | | <if test="templateid != null ">and templateid = #{templateid}</if> |
| | | <if test="tagid != null ">and tagid = #{tagid}</if> |
| | |
| | | <if test="targetid != null">targetid,</if> |
| | | <if test="pid != null">pid,</if> |
| | | <if test="guid != null">guid,</if> |
| | | <if test="tagname != null">tag_name,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="tagcategoryid != null">#{tagcategoryid},</if> |
| | |
| | | <if test="targetid != null">#{targetid},</if> |
| | | <if test="pid != null">#{pid},</if> |
| | | <if test="guid != null">#{guid},</if> |
| | | <if test="tagname != null">#{tagname},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="targetid != null">targetid = #{targetid},</if> |
| | | <if test="pid != null">pid = #{pid},</if> |
| | | <if test="guid != null">guid = #{guid},</if> |
| | | <if test="tagname != null">tag_name = #{tagname},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | |
| | | resultMap="IvrLibaTemplateTargetoptionResult"> |
| | | <include refid="selectIvrLibaTemplateTargetoptionVo"/> |
| | | <where> |
| | | del_flag=0 |
| | | <if test="targetid != null ">and targetid = #{targetid}</if> |
| | | <if test="targetname != null ">and targetname = #{targetname}</if> |
| | | <if test="templateID != null ">and templateID = #{templateID}</if> |
| | |
| | | <result property="uploadTime" column="upload_time"/> |
| | | <result property="tag" column="tag"/> |
| | | <result property="pattype" column="pattype"/> |
| | | <result property="bedNo" column="bedno"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectPatArchiveVo"> |
| | |
| | | a.create_time, |
| | | a.isupload, |
| | | a.upload_time, |
| | | a.pattype |
| | | a.pattype, |
| | | d.bedno |
| | | from pat_archive a,pat_archivetag b ,base_tag c,pat_med_inhosp d |
| | | <where> |
| | | a.patid = b.patid and b.tagid = c.tagid and a.patid = d.patid |
| | |
| | | select |
| | | c.tagname as tag, |
| | | b.tagid as tagid, |
| | | a.patid, |
| | | a.patid as id, |
| | | a.name, |
| | | a.sex, |
| | | d.deptname, |
| | |
| | | |
| | | <resultMap type="com.smartor.domain.PatHetaskRelevance" id="PatHetaskRelevanceResult"> |
| | | <result property="id" column="id"/> |
| | | <result property="patId" column="pat_id"/> |
| | | <result property="patid" column="pat_id"/> |
| | | <result property="heTaskId" column="he_task_id"/> |
| | | <result property="delFlag" column="del_flag"/> |
| | | <result property="createTime" column="create_time"/> |
| | |
| | | <result property="name" column="name"/> |
| | | <result property="age" column="age"/> |
| | | <result property="sex" column="sex"/> |
| | | <result property="badNo" column="bad_no"/> |
| | | <result property="bedno" column="bed_no"/> |
| | | <result property="dept" column="dept"/> |
| | | <result property="icdName" column="icd_name"/> |
| | | <result property="phone" column="phone"/> |
| | | <result property="medicalRecordNo" column="medical_record_no"/> |
| | | <result property="sendStatus" column="send_status"/> |
| | | <result property="sendTime" column="send_time"/> |
| | | <result property="operatePerson" column="operate_person"/> |
| | | <result property="receiveTime" column="receive_time"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectPatHetaskRelevanceVo"> |
| | |
| | | name, |
| | | age, |
| | | sex, |
| | | bad_no, |
| | | bed_no, |
| | | dept, |
| | | icd_name, |
| | | phone, |
| | | medical_record_no |
| | | medical_record_no, |
| | | send_status, |
| | | send_time, |
| | | operate_person, |
| | | receive_time |
| | | from pat_hetask_relevance |
| | | </sql> |
| | | |
| | |
| | | <include refid="selectPatHetaskRelevanceVo"/> |
| | | <where> |
| | | del_flag=0 |
| | | <if test="patId != null ">and pat_id = #{patId}</if> |
| | | <if test="patid != null ">and pat_id = #{patid}</if> |
| | | <if test="heTaskId != null ">and he_task_id = #{heTaskId}</if> |
| | | <if test="name != null and name != ''">and name like concat('%', #{name}, '%')</if> |
| | | <if test="age != null ">and age = #{age}</if> |
| | | <if test="sex != null ">and sex = #{sex}</if> |
| | | <if test="badNo != null ">and bad_no = #{badNo}</if> |
| | | <if test="bedno != null ">and bed_no = #{bedno}</if> |
| | | <if test="dept != null and dept != ''">and dept = #{dept}</if> |
| | | <if test="phone != null and phone != ''">and phone = #{phone}</if> |
| | | <if test="medicalRecordNo != null and medicalRecordNo != ''">and medical_record_no = #{medicalRecordNo} |
| | | </if> |
| | | <if test="icdName != null and icdName != ''">and icd_name like concat('%', #{icdName}, '%')</if> |
| | | <if test="sendStatus != null ">and send_status = #{sendStatus}</if> |
| | | <if test="sendTime != null ">and send_time = #{sendTime}</if> |
| | | <if test="receiveTime != null ">and receive_time = #{receiveTime}</if> |
| | | <if test="operatePerson != null and operatePerson != ''">and operate_person = #{operatePerson}</if> |
| | | </where> |
| | | </select> |
| | | |
| | |
| | | <insert id="insertPatHetaskRelevance" parameterType="com.smartor.domain.PatHetaskRelevance"> |
| | | insert into pat_hetask_relevance |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="patId != null">pat_id,</if> |
| | | <if test="patid != null">pat_id,</if> |
| | | <if test="heTaskId != null">he_task_id,</if> |
| | | <if test="delFlag != null">del_flag,</if> |
| | | <if test="createTime != null">create_time,</if> |
| | |
| | | <if test="name != null">name,</if> |
| | | <if test="age != null">age,</if> |
| | | <if test="sex != null">sex,</if> |
| | | <if test="badNo != null">bad_no,</if> |
| | | <if test="bedno != null">bed_no,</if> |
| | | <if test="dept != null">dept,</if> |
| | | <if test="icdName != null">icd_name,</if> |
| | | <if test="phone != null">phone,</if> |
| | | <if test="medicalRecordNo != null">medical_record_no,</if> |
| | | <if test="sendStatus != null">send_status,</if> |
| | | <if test="sendTime != null">send_time,</if> |
| | | <if test="receiveTime != null">receive_time,</if> |
| | | <if test="operatePerson != null and operatePerson != ''">operate_person,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="patId != null">#{patId},</if> |
| | | <if test="patid != null">#{patid},</if> |
| | | <if test="heTaskId != null">#{heTaskId},</if> |
| | | <if test="delFlag != null">#{delFlag},</if> |
| | | <if test="createTime != null">#{createTime},</if> |
| | |
| | | <if test="name != null">#{name},</if> |
| | | <if test="age != null">#{age},</if> |
| | | <if test="sex != null">#{sex},</if> |
| | | <if test="badNo != null">#{badNo},</if> |
| | | <if test="bedno != null">#{bedno},</if> |
| | | <if test="dept != null">#{dept},</if> |
| | | <if test="icdName != null">#{icdName},</if> |
| | | <if test="phone != null">#{phone},</if> |
| | | <if test="medicalRecordNo != null">#{medicalRecordNo},</if> |
| | | <if test="sendStatus != null">#{sendStatus},</if> |
| | | <if test="sendTime != null">#{sendTime},</if> |
| | | <if test="receiveTime != null">#{receiveTime},</if> |
| | | <if test="operatePerson != null and operatePerson != ''">#{operatePerson},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updatePatHetaskRelevance" parameterType="com.smartor.domain.PatHetaskRelevance"> |
| | | update pat_hetask_relevance |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="patId != null">pat_id = #{patId},</if> |
| | | <if test="patid != null">pat_id = #{patid},</if> |
| | | <if test="heTaskId != null">he_task_id = #{heTaskId},</if> |
| | | <if test="delFlag != null">del_flag = #{delFlag},</if> |
| | | <if test="createTime != null">create_time = #{createTime},</if> |
| | |
| | | <if test="name != null">name = #{name},</if> |
| | | <if test="age != null">age = #{age},</if> |
| | | <if test="sex != null">sex = #{sex},</if> |
| | | <if test="badNo != null">bad_no = #{badNo},</if> |
| | | <if test="bedno != null">bed_no = #{bedno},</if> |
| | | <if test="dept != null">dept = #{dept},</if> |
| | | <if test="icdName != null">icd_name = #{icdName},</if> |
| | | <if test="phone != null">phone = #{phone},</if> |
| | | <if test="medicalRecordNo != null">medical_record_no = #{medicalRecordNo},</if> |
| | | <if test="sendStatus != null">send_status=#{sendStatus},</if> |
| | | <if test="sendTime != null">send_time=#{sendTime},</if> |
| | | <if test="receiveTime != null">receive_time=#{receiveTime},</if> |
| | | <if test="operatePerson != null and operatePerson != ''">operate_person=#{operatePerson},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | |
| | | <if test="dataInfo != null and dataInfo != ''">and data_info = #{dataInfo}</if> |
| | | <if test="factory != null and factory != ''">and factory = #{factory}</if> |
| | | <if test="isDeal != null">and is_deal = #{isDeal}</if> |
| | | <if test="createTime != null ">and create_time <= #{createTime}</if> |
| | | </where> |
| | | </select> |
| | | |
| | |
| | | </trim> |
| | | </insert> |
| | | |
| | | <insert id="insertThirdDataZxyzjh" parameterType="com.smartor.domain.ServiceThirdData"> |
| | | insert into service_third_data_zxyzjh |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="dataType != null">data_type,</if> |
| | | <if test="dataTypeExplain != null">data_type_explain,</if> |
| | | <if test="dataInfo != null">data_info,</if> |
| | | <if test="factory != null">factory,</if> |
| | | <if test="createTime != null">create_time,</if> |
| | | <if test="isDeal != null">is_deal,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="dataType != null">#{dataType},</if> |
| | | <if test="dataTypeExplain != null">#{dataTypeExplain},</if> |
| | | <if test="dataInfo != null">#{dataInfo},</if> |
| | | <if test="factory != null">#{factory},</if> |
| | | <if test="createTime != null">#{createTime},</if> |
| | | <if test="isDeal != null">#{isDeal}</if> |
| | | </trim> |
| | | </insert> |
| | | <insert id="insertThirdDataCfxzsq" parameterType="com.smartor.domain.ServiceThirdData"> |
| | | insert into service_third_data_cfxzsq |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="dataType != null">data_type,</if> |
| | | <if test="dataTypeExplain != null">data_type_explain,</if> |
| | | <if test="dataInfo != null">data_info,</if> |
| | | <if test="factory != null">factory,</if> |
| | | <if test="createTime != null">create_time,</if> |
| | | <if test="isDeal != null">is_deal,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="dataType != null">#{dataType},</if> |
| | | <if test="dataTypeExplain != null">#{dataTypeExplain},</if> |
| | | <if test="dataInfo != null">#{dataInfo},</if> |
| | | <if test="factory != null">#{factory},</if> |
| | | <if test="createTime != null">#{createTime},</if> |
| | | <if test="isDeal != null">#{isDeal}</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | |
| | | <update id="updateIsDeal" parameterType="long"> |
| | | update service_third_data |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | is_deal=1 |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | </mapper> |
| | |
| | | <if test="tag != null">tag,</if> |
| | | <if test="svyTopicId != null">svy_topicid,</if> |
| | | <if test="categoryid != null">categoryid,</if> |
| | | <if test="topicContent != null">topic_content,</if> |
| | | <if test="suitway != null">suitway,</if> |
| | | <if test="isavailable != null">isavailable,</if> |
| | | <if test="topicContent != null and topicContent != ''">topic_content,</if> |
| | | <if test="suitway != null and suitway != ''">suitway,</if> |
| | | <if test="isavailable != null and isavailable != ''">isavailable,</if> |
| | | <if test="language != null and language!=''">language,</if> |
| | | <if test="otherdata != null and otherdata!=''">otherdata,</if> |
| | | </trim> |
| | |
| | | <if test="tag != null">#{tag},</if> |
| | | <if test="svyTopicId != null">#{svyTopicId},</if> |
| | | <if test="categoryid != null">#{categoryid},</if> |
| | | <if test="topicContent != null">#{topicContent},</if> |
| | | <if test="suitway != null">#{suitway},</if> |
| | | <if test="isavailable != null">#{isavailable},</if> |
| | | <if test="language != null">#{language},</if> |
| | | <if test="otherdata != null">#{otherdata},</if> |
| | | <if test="topicContent != null and topicContent != ''">#{topicContent},</if> |
| | | <if test="suitway != null and suitway != ''">#{suitway},</if> |
| | | <if test="isavailable != null and isavailable != ''">#{isavailable},</if> |
| | | <if test="language != null and language!=''">#{language},</if> |
| | | <if test="otherdata != null and otherdata!=''">#{otherdata},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <select id="selectTempDetpRelevanceList" parameterType="com.smartor.domain.TempDetpRelevance" resultMap="TempDetpRelevanceResult"> |
| | | <include refid="selectTempDetpRelevanceVo"/> |
| | | <where> |
| | | del_flag=0 |
| | | <if test="tempid != null "> and tempid = #{tempid}</if> |
| | | <if test="deptId != null "> and dept_id = #{deptId}</if> |
| | | <if test="type != null "> and type = #{type}</if> |