Commit 0d83cc41afeba76d37a7d21fd047d886a1fef8cf
1 parent
62c540ab47
Exists in
master
and in
1 other branch
update assconfig table name
Showing 17 changed files with 1107 additions and 54 deletions
- platform-biz-patient-service/src/main/java/com/lyms/platform/biz/BasicConfigServiceTest.java
- platform-biz-patient-service/src/main/java/com/lyms/platform/biz/service/MongoSyncService.java
- platform-common/src/main/java/com/lyms/platform/common/utils/MongoSyncUtil.java
- platform-dal/src/main/java/com/lyms/platform/pojo/AssayConfig.java
- platform-dal/src/main/java/com/lyms/platform/pojo/LisCrisisItem.java
- platform-dal/src/main/java/com/lyms/platform/pojo/LisReport.java
- platform-dal/src/main/java/com/lyms/platform/pojo/LisReportItem.java
- platform-dal/src/main/java/com/lyms/platform/query/LisCrisisItemQuery.java
- platform-dal/src/main/java/com/lyms/platform/query/LisReportQuery.java
- platform-operate-api/src/main/java/com/lyms/hospitalapi/qhdfy/ConnTools.java
- platform-operate-api/src/main/java/com/lyms/hospitalapi/qhdfy/QhdfyHisService.java
- platform-operate-api/src/main/java/com/lyms/hospitalapi/qhdfy/QhdfyLisReport.java
- platform-operate-api/src/main/java/com/lyms/hospitalapi/qhdfy/QhdfyLisReportItem.java
- platform-operate-api/src/main/java/com/lyms/hospitalapi/qhdfy/README.TXT
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/Test.java
- platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/TestController.java
- platform-operate-api/src/main/resources/config.properties
platform-biz-patient-service/src/main/java/com/lyms/platform/biz/BasicConfigServiceTest.java
View file @
0d83cc4
| ... | ... | @@ -6,20 +6,22 @@ |
| 6 | 6 | import java.util.*; |
| 7 | 7 | |
| 8 | 8 | import com.lyms.platform.biz.dal.impl.YunBookbuildingDaoImpl; |
| 9 | -import com.lyms.platform.biz.service.GuidelinesService; | |
| 9 | +import com.lyms.platform.biz.param.AssayConfigQuery; | |
| 10 | +import com.lyms.platform.biz.service.*; | |
| 11 | +import com.lyms.platform.common.dao.operator.MongoCondition; | |
| 12 | +import com.lyms.platform.common.dao.operator.MongoOper; | |
| 10 | 13 | import com.lyms.platform.common.enums.YnEnums; |
| 11 | 14 | import com.lyms.platform.common.utils.JsonUtil; |
| 12 | 15 | import com.lyms.platform.common.utils.PingYinUtil; |
| 13 | 16 | import com.lyms.platform.common.utils.SystemConfig; |
| 14 | 17 | import com.lyms.platform.pojo.*; |
| 18 | +import com.lyms.platform.query.BasicConfigQuery; | |
| 15 | 19 | import org.apache.commons.io.FileUtils; |
| 20 | +import org.apache.commons.lang.StringUtils; | |
| 16 | 21 | import org.apache.struts.config.BaseConfig; |
| 17 | 22 | import org.springframework.context.ApplicationContext; |
| 18 | 23 | import org.springframework.context.support.ClassPathXmlApplicationContext; |
| 19 | 24 | |
| 20 | -import com.lyms.platform.biz.service.BabyService; | |
| 21 | -import com.lyms.platform.biz.service.PuerperaService; | |
| 22 | -import com.lyms.platform.biz.service.VisitService; | |
| 23 | 25 | import com.lyms.platform.query.PuerperaModelQuery; |
| 24 | 26 | import org.springframework.data.mongodb.core.MongoTemplate; |
| 25 | 27 | |
| ... | ... | @@ -86,6 +88,87 @@ |
| 86 | 88 | // addZhenduan(applicationContext); |
| 87 | 89 | |
| 88 | 90 | // addHealthConfig(applicationContext); |
| 91 | +// addCheckItem(applicationContext); | |
| 92 | + queryRisk(applicationContext); | |
| 93 | + } | |
| 94 | + | |
| 95 | + // fb43fd5a-b153-4cb9-9180-c46f5612ba43 | |
| 96 | + public static void queryRisk(ApplicationContext applicationContext) { | |
| 97 | + MongoTemplate mongoTemplate | |
| 98 | + =(MongoTemplate)applicationContext.getBean("mongoTemplate"); | |
| 99 | + mongoTemplate.getDb().authenticate("platform", "platform123".toCharArray()); | |
| 100 | + try { | |
| 101 | + BasicConfigQuery query = new BasicConfigQuery(); | |
| 102 | + query.setParentId("fb43fd5a-b153-4cb9-9180-c46f5612ba43"); | |
| 103 | + query.setYn(1); | |
| 104 | + query.setEnable(1); | |
| 105 | + List<BasicConfig> list = mongoTemplate.find(query.convertToQuery().convertToMongoQuery(), BasicConfig.class); | |
| 106 | + for (BasicConfig config:list) { | |
| 107 | + System.out.println(config.getName()); | |
| 108 | + query.setParentId(config.getId()); | |
| 109 | + List<BasicConfig> sublist = mongoTemplate.find(query.convertToQuery().convertToMongoQuery(), BasicConfig.class); | |
| 110 | + for (BasicConfig sub:sublist) { | |
| 111 | + System.out.println(sub.getName()); | |
| 112 | + } | |
| 113 | + } | |
| 114 | + | |
| 115 | + System.out.println(); | |
| 116 | + System.out.println(); | |
| 117 | + | |
| 118 | + String classes[] = {"","生化","外送","发光免疫","血常规","体液常规","血凝","艾滋","免疫","","微生物","其他","脑脊液生化","微量元素","分泌物检测(BV)"}; | |
| 119 | + for (String s:classes) { | |
| 120 | + if (StringUtils.isNotBlank(s)) { | |
| 121 | + MongoCondition condition = MongoCondition.newInstance("classify", s.trim(), MongoOper.IS); | |
| 122 | + List<AssayConfig> assayConfigList = mongoTemplate.find(condition.toMongoQuery().convertToMongoQuery(), AssayConfig.class); | |
| 123 | + System.out.println(s); | |
| 124 | + for (AssayConfig config:assayConfigList) { | |
| 125 | + System.out.print(config.getProjectName()); | |
| 126 | + System.out.print(" , "); | |
| 127 | + } | |
| 128 | + | |
| 129 | + System.out.println(); | |
| 130 | + } | |
| 131 | + } | |
| 132 | + | |
| 133 | + } catch (Exception e) { | |
| 134 | + e.printStackTrace(); | |
| 135 | + } | |
| 136 | + } | |
| 137 | + | |
| 138 | + public static void addCheckItem(ApplicationContext applicationContext) { | |
| 139 | + MongoTemplate mongoTemplate | |
| 140 | + =(MongoTemplate)applicationContext.getBean("mongoTemplate"); | |
| 141 | + mongoTemplate.getDb().authenticate("platform", "platform123".toCharArray()); | |
| 142 | + try { | |
| 143 | + String classes[] = {"","生化","外送","发光免疫","血常规","体液常规","血凝","艾滋","免疫","","微生物","其他","脑脊液生化","微量元素","分泌物检测(BV)"}; | |
| 144 | + List<String> list = FileUtils.readLines(new File("E:\\temp\\item.csv")); | |
| 145 | + int i=0; | |
| 146 | + for (String line:list) { | |
| 147 | + i++; | |
| 148 | + String[] array = line.trim().split("\t"); | |
| 149 | + if (array.length >= 22) { | |
| 150 | + AssayConfig config = new AssayConfig(); | |
| 151 | + config.setYn("1"); | |
| 152 | + config.setPrint("1"); | |
| 153 | + config.setHospitalId("216"); | |
| 154 | + config.setProjectCode(array[0].trim()); | |
| 155 | + config.setStandardCode(array[1].trim()); | |
| 156 | + config.setClassify(classes[Integer.valueOf(array[3].trim())]); | |
| 157 | + config.setProjectName(array[2].trim()); | |
| 158 | + config.setDefaultValue(array[6].trim()); | |
| 159 | + config.setResultType(array[4].trim()); | |
| 160 | + config.setId(""+i); | |
| 161 | + if (array.length == 25) { | |
| 162 | + config.setDesc(array[24].trim()); | |
| 163 | + } | |
| 164 | + | |
| 165 | + System.out.println(JsonUtil.obj2JsonString(config)); | |
| 166 | + mongoTemplate.insert(config); | |
| 167 | + } | |
| 168 | + } | |
| 169 | + } catch (IOException e) { | |
| 170 | + e.printStackTrace(); | |
| 171 | + } | |
| 89 | 172 | } |
| 90 | 173 | |
| 91 | 174 | public static void addZhenduan(ApplicationContext applicationContext) { |
platform-biz-patient-service/src/main/java/com/lyms/platform/biz/service/MongoSyncService.java
View file @
0d83cc4
| ... | ... | @@ -30,6 +30,7 @@ |
| 30 | 30 | @Autowired |
| 31 | 31 | protected MongoTemplate mongoTemplate; |
| 32 | 32 | |
| 33 | + | |
| 33 | 34 | public static String mongo_crypto_key = Config.getItem("mongo_crypto_key", "0"); |
| 34 | 35 | |
| 35 | 36 | public boolean syncData(String action, String id, String className, String json) { |
| ... | ... | @@ -52,6 +53,36 @@ |
| 52 | 53 | mongoTemplate.updateMulti(new MongoQuery(new MongoCondition("id", LymsEncodeUtil.aesDecrypt(id, mongo_crypto_key), MongoOper.IS)).convertToMongoQuery(), update, cla); |
| 53 | 54 | return true; |
| 54 | 55 | } else if ("DELETE".equals(action)) { |
| 56 | + Class cla = Class.forName(LymsEncodeUtil.aesDecrypt(className, mongo_crypto_key)); | |
| 57 | + mongoTemplate.findAllAndRemove(new MongoQuery(new MongoCondition("id", LymsEncodeUtil.aesDecrypt(id, mongo_crypto_key), MongoOper.IS)).convertToMongoQuery(), cla); | |
| 58 | + return true; | |
| 59 | + } else if (action.startsWith("Mysql")) { | |
| 60 | + return syncMysqlData(action,id,className,json); | |
| 61 | + } | |
| 62 | + return false; | |
| 63 | + } catch (Exception e) { | |
| 64 | + e.printStackTrace(); | |
| 65 | + return false; | |
| 66 | + } | |
| 67 | + } | |
| 68 | + | |
| 69 | + private boolean syncMysqlData(String action, String id, String className, String json) { | |
| 70 | + try { | |
| 71 | + String cname = LymsEncodeUtil.aesDecrypt(className, mongo_crypto_key); | |
| 72 | + if ("MysqlAdd".equals(action)) { | |
| 73 | + Object entity = JsonUtil.jkstr2Obj(LymsEncodeUtil.aesDecrypt(json, mongo_crypto_key), Class.forName(cname)); | |
| 74 | + if (cname.endsWith("Users")) { | |
| 75 | + | |
| 76 | + } | |
| 77 | + return true; | |
| 78 | + } else if ("MysqlUpdate".equals(action)) { | |
| 79 | + Class cla = Class.forName(LymsEncodeUtil.aesDecrypt(className, mongo_crypto_key)); | |
| 80 | + Object obj = JsonUtil.jkstr2Obj(LymsEncodeUtil.aesDecrypt(json, mongo_crypto_key), cla); | |
| 81 | + Update update = MongoConvertHelper.convertToNativeUpdate(ReflectionUtils.getUpdateField(obj)); | |
| 82 | + Assert.notNull(update, "execute update method must not null."); | |
| 83 | + mongoTemplate.updateMulti(new MongoQuery(new MongoCondition("id", LymsEncodeUtil.aesDecrypt(id, mongo_crypto_key), MongoOper.IS)).convertToMongoQuery(), update, cla); | |
| 84 | + return true; | |
| 85 | + } else if ("MysqlDel".equals(action)) { | |
| 55 | 86 | Class cla = Class.forName(LymsEncodeUtil.aesDecrypt(className, mongo_crypto_key)); |
| 56 | 87 | mongoTemplate.findAllAndRemove(new MongoQuery(new MongoCondition("id", LymsEncodeUtil.aesDecrypt(id, mongo_crypto_key), MongoOper.IS)).convertToMongoQuery(), cla); |
| 57 | 88 | return true; |
platform-common/src/main/java/com/lyms/platform/common/utils/MongoSyncUtil.java
View file @
0d83cc4
| ... | ... | @@ -88,49 +88,9 @@ |
| 88 | 88 | info.setLimit(456); |
| 89 | 89 | Object aaa = JsonUtil.str2Obj(JsonUtil.obj2JsonString(info), Class.forName(info.getClass().getName())); |
| 90 | 90 | System.out.println(MD5Utils.md5(aaa.getClass().getName())); |
| 91 | - System.out.println(LymsEncodeUtil.aesEncrypt("com.lyms.platform.common.utils.MongoSyncUtil", "Lymsh@2016")); | |
| 92 | - System.out.println(LymsEncodeUtil.aesDecrypt("tjRvEtdaZCzlpZQYqbJjrxslbB5yuZk8m4OzVRMv4Gs=", "Lymsh@2016")); | |
| 93 | - System.out.println(LymsEncodeUtil.aesDecrypt("JusDAcSiQQ6QmFo+VYVuS4ZzDNRVQv1RKdjtxe1MaQ0=","Lymsh@2016")); | |
| 94 | - System.out.println(LymsEncodeUtil.aesDecrypt("rtBXweb/r9BTCfDbvdlmZ45M17ERPL2ShRjRb2LcyOFvNWqzdBvVijq9yM9soQVRjejvGkhYCx9y\n" + | |
| 95 | - "c74XICN3kOX4rUNes0whNUeNaEZTdFIpKnsRRCBMNMoPDUK5dPPlA4/tATTnjG8LGCbQyPUP6Aja\n" + | |
| 96 | - "7wUJNDasGc6iblP0KB7A6MPyFOZHHt+dhmLUt3QHO0NJ4MxVk0mqMUIeK+xpP5S7TqHt73dYbkPP\n" + | |
| 97 | - "eS5yRUC9xi2ywGRs6rGO0lRBcdel8b426vR9RtyoFdkIi4f3Xn7UEQtI2sbXpRUEpl4sLsIYGCTy\n" + | |
| 98 | - "Bu4A3zJSHTwWDDm8CznX7EPryb9W+1z31J2UsyrCcsbc/2Pra3+6Y9UlrIuXKeD20ORtTVcznDwz\n" + | |
| 99 | - "azD33d9mkPpFm6ex5lN8ExwPuzXrr+dkAMIIjfOvYAfCOcgvXlEfluR8AIFTEXcICcwS1CCate/e\n" + | |
| 100 | - "uOE7SYiMqbo2cgwxNtY0xJgRQsY1zbOp/vYsRpfUUfIfi0dZaai/I2+oCSlJx6aeY+Ks7Ffpd7S5\n" + | |
| 101 | - "qFTLUBkHGVafx/7kSNy93MyL/0eJ2w8hUHkpd0gdyOvqRRa/309l9WHhiw2ZedGRuUgNOZ7YYrlE\n" + | |
| 102 | - "8MWxyD1jCq0vjhRWNuOI9bW2OHXANap+f7vAQ1jgJxyBTvM63+T1wlVKyuttJVSHMdAAHO2tR6pl\n" + | |
| 103 | - "F+nPB0E2lXJxb+JoWRcGrS915f6C8sK5g6L98Fk13A6V5xB2kX16eWUvK1IZbaQmku86NQFXV1gs\n" + | |
| 104 | - "bV8Ub78HxnDjNWecX5zrciSXOoB4YwyZCeQoG6u0EV5kLet1m2bjOGKNPv+I6PSv2RGNBCGTo0hM\n" + | |
| 105 | - "TBoTtuzWUPnKdCM/Pe5Njns+zvUIXqlMeIh10hWH9sMewPjDnSW+/rpu0cSGGV2Vfn/BSXDiIZfG\n" + | |
| 106 | - "yA9IBC0TnoQs/Vz63uWIOkhEFT2DgUGkgDoo1wdETi303n5EVzUpsgH0aVwLKpTYatyOA0x1hOr4\n" + | |
| 107 | - "3LYn8b9ZEo0IINRG9KARJHpJsVP49eRhDJzO7IcH405Qz+uhz5Cs9GHyAvAAlAYJEWn0p77gDclY\n" + | |
| 108 | - "Rls5fu5RqnAFjFzGjIXuvqyhuKoddBWT0Wd3rvy//9IK38upDnb/j3VgUNaK3sA4kKYxmaZsR8hg\n" + | |
| 109 | - "dBWUj6ixGVzN7MkjScAb9cejo/FzGXH6E1JxFy/i0dUsByXA+25ol7ccGVqR4ObRN+XPD1gmh42e\n" + | |
| 110 | - "gOFJ8+kswVt/RGBbXqmrw+pdsZNiUfLld6yodBIsi6Ggjzv38yQ+rwnuV7Mqlo4BylMnKM8RRUx+\n" + | |
| 111 | - "yYh1KwV4lNvk5iBX7E0/96akAagVHIWQIlflR4DhKCzqbRQmbMPitt5K0oRhF1oF9gGT+D/qIIaQ\n" + | |
| 112 | - "qondzBge0OuJ6M++uR8o+sk1W+daQHTAG08ycJaeHK2oMhrBsexaV7xmqoyGdu6TIG8OJoIlsFbn\n" + | |
| 113 | - "WUMp6Zv9IRpaScXBWkBER+Cj3ay1abvyrLnnRh9L93uxeqvH7+eFx5u1JKGUrh7O5Xvve9ZEfcgd\n" + | |
| 114 | - "drX8p5i/kU4UjjEIhddLfZADCYeQ3KbBzYA449/i0VlMT9MGltC9ET0uBYs/Lrq0pJK5gjlWdlYT\n" + | |
| 115 | - "9lD+0mgVt3Gbao34KBYKnYBwRRWXzJBz9b9Y1PsSMp89HZ1SMV/KOSZCA+R9IYVWE+Dq/fRYG7Xi\n" + | |
| 116 | - "h7Q3aVkvs8UHzDFPC5VWkabxPVPd++JNK8qBgISkyALHV6X5EOXMIh3jodbirG+Zeki+AIbz69JJ\n" + | |
| 117 | - "7yhVwUC7/6Y7yH3+TPJbSnIX//unj7lqhcr+cxXHPSfFmMem3ndCHqUgsJ6XhbstWYu1OW5eelty\n" + | |
| 118 | - "PjOn1Tk2gb0tC/bDNYTZqo56f1p9RmCfS8iYBCnHPuRxw5qxQTrLcHwszRECuz/wra+81DYXQ/76\n" + | |
| 119 | - "n3+skfeop/5SegruolxZgZEAYBH2hY4oc18RRiOToL3q1Dbhx3lH+4tD7xOuXMIuOF9EAW0L6rqU\n" + | |
| 120 | - "C+SMPbKQfGbWNEBEKA3pYkDT83QwpmBJF/Rra23MF4XP4t9JBcdn7dbpki0LMvN2O/4RDREApZ60\n" + | |
| 121 | - "Mh/zueXXquWy1fkxWz9YM1HhwvckROgRDZrghVszrClwUP8BrQL5RQlP3Kd/a4/8W5RiIcRiW/8V\n" + | |
| 122 | - "a5R5wS2vUXTGfJVALLjsoAhvTRBId4wxoS4HtG+LGxZUzpNQhAGPPjJnhjtk5wHPU8paITqjaY+0\n" + | |
| 123 | - "GSrEJ9PDimhrBJHw+b4Jb8XNEyWjVb/7bVPd8ztSbASJEgq1yDguMZTqkbrZp5IK7VDHQpDKlEkL\n" + | |
| 124 | - "HxwG1/F0iVYf/fYUjuBtXUZdwL4k0o+D3MkoiTGHijeFcBnAZ74HGczFsVzbv0yZ1JPagLzDwTZr\n" + | |
| 125 | - "HDr2Qw5NDnLIe6HwmL8bXFz8H+hla7eABo40gqOCFVja2npPLNuvFDFA1Y6gKCEbwaoFOXWJZT2p\n" + | |
| 126 | - "VHiytSPn7KoZN2dlOz8rct3vLMtRBhZcGGs0UHSuHe+OhIBQ1WlSziI9wKHn9T1y6slifwc7D3vb\n" + | |
| 127 | - "2DETuGKur2NubxJm2wL4Lz9OI3DZ9xeeXChwQH1uC+6paxzfXNO34OlXOLpVduy7L5caWTUecBnW\n" + | |
| 128 | - "41OxspfCar67RBok033NEyHyrtuoSMrNLdr49jU3dUbSXi3/r5tDPMGhZ+OVQvkI932pbLLzx38L\n" + | |
| 129 | - "XYOiEGvonk9n1wjX77iSImDa7v48bKkX7oCyvFw9A/b3I1DlWvGfhrrya/BX0+w+8o08o66rMlLZ\n" + | |
| 130 | - "wgJq522XXrUO8AMyAJBJ+cARa2XC4UoX5+XkDoqLEIRzXxCtyC9BZ2GevedH3I5DpsV7FJCDxKrm\n" + | |
| 131 | - "txXBACB6W9PEHaGhwsx0RBPtiue6y2WBKAQuMJVNLyhCozWBjuaq5+L3YMIat730PGuOQcKPDnA5\n" + | |
| 132 | - "Lm7naPdSfCVnUrK5UiTtHrX85b6rqmAFbCU+OzlJ2C9bhGf214X5wOuJMLJJ68vV1fMEZvQkCijF\n" + | |
| 133 | - "OZX45OPiwh57hiFZVuLqrL36n5FdrHjfkhpSYymFgAIiSTQgnWSkthpYkbmZv3x+NQ==","Lymsh@2016")); | |
| 91 | + System.out.println(LymsEncodeUtil.aesEncrypt("5805868f28b6213d2b7755eb", "Lymsh@2016")); | |
| 92 | + System.out.println(LymsEncodeUtil.aesDecrypt("8092817F8193D33BE10DE56935C157288FCAC8B7692BECA293504A9D487C207288C0A44ECA93600DC916D943AB6123AE24C1291D79503683D613C576B3704ABE82FA9B1285B343DD091E04C8FFB1BB8C6B0FCD48E397BAB86F484CC534AB6F1F0FAF4BB2B8CCE48F4FD740C102F72D564E92B74D4F463543A39A14D33D6E86E53DD7F5E6827006C1D2C9148C70AA6B397B90CE84E774FCFB5D034E79306BAB24481AC7617B763C4F2B94E71E9C68E2EE0222EB4AD90C2860303BFFDAD3F8F5FCE5C8D26B4D4B14DEBEC8C176A5E19EDA25CF68C1394D435267882C4C8D3D736F84004985A18CA0FF5C100AC40A074981485C7410DB4C4DD101E424E283D7FC3A69914727D5554C2C810862656190567AA211CAEE091BD384271C31DD7276E10FB8CECE0790D59EE18A06ABC1CBC406800057030323C8F3C2C16D9E85E31BE2D63CA31D99FCC5C7E2E1D552779ED5E57AF484BE7F34FBAF0BA5AB6CEB43FA45E231BE428D83ADE2C08CFF0A40E28F8441A16D4A3582B74273F081F4C7E7C672412FAB2E061F0C89DFED5BF6675CC648AE0EABFCC3B87A0316C65590C4F2C7ECB93C4952AC4257BC562D99D9A71E70B3077FA37536B654EF0879BF4B474FCE978059C6FBFDBF35E69D678F9B70E231FA2077B1D2F46B4E7ACAC5592BE63F472F4499DC4A529AA5E95ED41FADDE96378B571AE02F614F124D4DD4AD65A65E7051AC5C4AC46B99B40D4E02E12B25B47A695802B27A888070A3B7B1BC22DE5A9451BB7C09DDB298B5DDB73754339039288DECB1FFD31A0045F8543AA081E29A08DF99F4F48320FC6C6321D6C8932806332B8FDDE30E6CC26A271D429AD79B25DE1D2B9CA51E04BCDCE9BD290932583774FF2790E22C9E0D66FF266C8B3CBB92959CA1C50BB2E92E007FE74F7EE562C6833E69864B1F0D1621F213B05A2BE63B75418A0948D613E0BE8B894D01A7F120850AF98A938FD4DB6AB75E949F5FF0E75AF9A4667C0D4466778CB198B33F526285D90D5809FE7FC862E60A744664B9BFB91A2E43AA3434402EFE9217A7ADF8C519A5B6A48EF852E45E027C8BE9424D79A8096F4C98DE16B0DE2E5740F75C0DDF0AC8192818C6D864F41DBC6C4898EFB692103A97270F4AE03E9300215D65EEDD52473AAD0F83290CA85F9E190B154E34D56E18370F12F33DBD7F35DA476ECF7211000C0508805E2429422A94DBD3296C26D8A859C6FBFDBF35E69D678F9B70E231FA20C0A36E8D6883CAE2D7B9978221B55E60E9BAF730BFDE116772B4DF6EAD107B250E2B987756AB90DC6166A136FEA7010B1FCE2788ADA2367F164094325BD7A323B6C67115C6964F7FE56F4914D0DE29D08787DCB10387B961DAC2F78A57981019761845FD51D9E9660451E80D7571F139589896E7DAE2BE922E4F5D602FD236EC21F2D6AF5065D713651E7DFB03B2E5B9FE92BE862EE68DE6A87F54F32A4F77B3712A1A4EEF4C51F6EDB8CCA328CDF80E0BC4EFA0EF67722046233C573B2E7F4E3A565A023EB0BD21B8D9CB96F8D27C801603E9E8A0A37EF7560C60C9E0AD61F1A1D56232735737611C568891F9143E909E0106D24953F43ECDF140B4A4E135FFF4CCA890FF6665BDB98EA1D1E26F864873ED16E397A618A33A253CB146C56B720E5A8D87880883F1B998EFAC7EBF71E9071DA71742CA50E2BE993C01CABBD44A4D4E4E93D6C6F4A20823BD35BECD845E25C2DDD5348DA67E59F44C02802CADF275E3837194ADB682DB01ECCB3AE1B5A264BB921635F841985DBA35FF9503E27137DF2C8D0AE82BBD9C5FA01F2BC7292E8A04CF440C211CCEE96E7D38AE533205616D7E688F44DFD6F461006CF37F264A86622D89E0DEED5D91E44F3F017BC4AE43C6DA36B97C6B5043DFF6C1915402B5DB3D1115558F79E60C9CE05C91EDB676EEB7FF2ACF55CFEC73529C13EEF7D54ADD37CDCD26A2BCBD7D3B0490C71D8017FCBA98B43A2F596FC41DE2C62DEF3806C46D1B958C0D5614640EDB2DB5AB84D29A2F7C3E25DF156B420F9018D14ECCD8F3D60CE1E6D0913031E0C9F704235AF3BEB5CF751DBF40A1CA39723F715DEA598484957B2DC2AF8158CC06F48DFB90F1BF301F863C64F40159552FE92BFCFC4BE9863DDB4DD9427AF480798BAACBEFAEC10D8BCCDF41AB752E35CDA944A83DE43943EC82858A7E63968D9C151440433908E713529DCBF1F150B9C21CF655BF1A67EB5D81F48BB3DF540BB331F366A566B4CDC48029CFF5444DBB28AD5B77B138B09D6D553E9F753B48337ADA24059F8E1AEBC688333680DAD1E2A7866846B320C80FF26E0EF2FE50D3F92506262CFFB5793EA029F277E23C9B21DF19DE25DBBB5F52956EF90A2ECCB1E1190EF8638CBC1F659FD448576193F6692360505EB47B5878957F8286EFD1510E74687541E24DF44B751C30CCD886773459F0C9EE0470","Lymsh@2016")); | |
| 93 | + | |
| 134 | 94 | } |
| 135 | 95 | |
| 136 | 96 | } |
platform-dal/src/main/java/com/lyms/platform/pojo/AssayConfig.java
View file @
0d83cc4
| 1 | 1 | package com.lyms.platform.pojo; |
| 2 | 2 | |
| 3 | 3 | import com.lyms.platform.common.result.BaseModel; |
| 4 | +import org.springframework.data.mongodb.core.mapping.Document; | |
| 4 | 5 | |
| 5 | 6 | /** |
| 6 | 7 | * 化验项 |
| 7 | 8 | */ |
| 9 | +@Document(collection = "lyms_assayconfig") | |
| 8 | 10 | public class AssayConfig extends BaseModel { |
| 9 | 11 | /** |
| 10 | 12 | * 添加字段注释 |
| 11 | 13 | |
| ... | ... | @@ -23,11 +25,29 @@ |
| 23 | 25 | private String projectName; |
| 24 | 26 | private String classify; //检验分类 |
| 25 | 27 | private String resultType; //结果类型 |
| 28 | + private String defaultValue; | |
| 29 | + private String desc; | |
| 26 | 30 | |
| 27 | 31 | private String publishName; |
| 28 | 32 | private String publishId; |
| 29 | 33 | private Long createDate; |
| 30 | 34 | private Long modifiedDate; |
| 35 | + | |
| 36 | + public String getDesc() { | |
| 37 | + return desc; | |
| 38 | + } | |
| 39 | + | |
| 40 | + public void setDesc(String desc) { | |
| 41 | + this.desc = desc; | |
| 42 | + } | |
| 43 | + | |
| 44 | + public String getDefaultValue() { | |
| 45 | + return defaultValue; | |
| 46 | + } | |
| 47 | + | |
| 48 | + public void setDefaultValue(String defaultValue) { | |
| 49 | + this.defaultValue = defaultValue; | |
| 50 | + } | |
| 31 | 51 | |
| 32 | 52 | public String getPublishName() { |
| 33 | 53 | return publishName; |
platform-dal/src/main/java/com/lyms/platform/pojo/LisCrisisItem.java
View file @
0d83cc4
| 1 | +package com.lyms.platform.pojo; | |
| 2 | + | |
| 3 | +import org.springframework.data.mongodb.core.mapping.Document; | |
| 4 | + | |
| 5 | +import java.util.Date; | |
| 6 | + | |
| 7 | +/** | |
| 8 | + * Created by Administrator on 2016/10/19 0019. | |
| 9 | + */ | |
| 10 | +@Document(collection = "lyms_lis_crisis_item") | |
| 11 | +public class LisCrisisItem { | |
| 12 | + | |
| 13 | + private String id; | |
| 14 | + private String name; | |
| 15 | + private Integer age; | |
| 16 | + private String weeks; | |
| 17 | + private String itemCode; | |
| 18 | + private String itemName; | |
| 19 | + private String classify; | |
| 20 | + private String classifyName; | |
| 21 | + private String flag; | |
| 22 | + private String ref; | |
| 23 | + private String result; | |
| 24 | + private String unit; | |
| 25 | + private String applyDoctorCode; | |
| 26 | + private String applyDoctorName; | |
| 27 | + private Date publishTime; | |
| 28 | + private Integer status; | |
| 29 | + private String statusName; | |
| 30 | + | |
| 31 | + public String getId() { | |
| 32 | + return id; | |
| 33 | + } | |
| 34 | + | |
| 35 | + public void setId(String id) { | |
| 36 | + this.id = id; | |
| 37 | + } | |
| 38 | + | |
| 39 | + public String getName() { | |
| 40 | + return name; | |
| 41 | + } | |
| 42 | + | |
| 43 | + public void setName(String name) { | |
| 44 | + this.name = name; | |
| 45 | + } | |
| 46 | + | |
| 47 | + public Integer getAge() { | |
| 48 | + return age; | |
| 49 | + } | |
| 50 | + | |
| 51 | + public void setAge(Integer age) { | |
| 52 | + this.age = age; | |
| 53 | + } | |
| 54 | + | |
| 55 | + public String getWeeks() { | |
| 56 | + return weeks; | |
| 57 | + } | |
| 58 | + | |
| 59 | + public void setWeeks(String weeks) { | |
| 60 | + this.weeks = weeks; | |
| 61 | + } | |
| 62 | + | |
| 63 | + public String getItemCode() { | |
| 64 | + return itemCode; | |
| 65 | + } | |
| 66 | + | |
| 67 | + public void setItemCode(String itemCode) { | |
| 68 | + this.itemCode = itemCode; | |
| 69 | + } | |
| 70 | + | |
| 71 | + public String getItemName() { | |
| 72 | + return itemName; | |
| 73 | + } | |
| 74 | + | |
| 75 | + public void setItemName(String itemName) { | |
| 76 | + this.itemName = itemName; | |
| 77 | + } | |
| 78 | + | |
| 79 | + public String getClassify() { | |
| 80 | + return classify; | |
| 81 | + } | |
| 82 | + | |
| 83 | + public void setClassify(String classify) { | |
| 84 | + this.classify = classify; | |
| 85 | + } | |
| 86 | + | |
| 87 | + public String getClassifyName() { | |
| 88 | + return classifyName; | |
| 89 | + } | |
| 90 | + | |
| 91 | + public void setClassifyName(String classifyName) { | |
| 92 | + this.classifyName = classifyName; | |
| 93 | + } | |
| 94 | + | |
| 95 | + public String getFlag() { | |
| 96 | + return flag; | |
| 97 | + } | |
| 98 | + | |
| 99 | + public void setFlag(String flag) { | |
| 100 | + this.flag = flag; | |
| 101 | + } | |
| 102 | + | |
| 103 | + public String getRef() { | |
| 104 | + return ref; | |
| 105 | + } | |
| 106 | + | |
| 107 | + public void setRef(String ref) { | |
| 108 | + this.ref = ref; | |
| 109 | + } | |
| 110 | + | |
| 111 | + public String getResult() { | |
| 112 | + return result; | |
| 113 | + } | |
| 114 | + | |
| 115 | + public void setResult(String result) { | |
| 116 | + this.result = result; | |
| 117 | + } | |
| 118 | + | |
| 119 | + public String getUnit() { | |
| 120 | + return unit; | |
| 121 | + } | |
| 122 | + | |
| 123 | + public void setUnit(String unit) { | |
| 124 | + this.unit = unit; | |
| 125 | + } | |
| 126 | + | |
| 127 | + public String getApplyDoctorCode() { | |
| 128 | + return applyDoctorCode; | |
| 129 | + } | |
| 130 | + | |
| 131 | + public void setApplyDoctorCode(String applyDoctorCode) { | |
| 132 | + this.applyDoctorCode = applyDoctorCode; | |
| 133 | + } | |
| 134 | + | |
| 135 | + public String getApplyDoctorName() { | |
| 136 | + return applyDoctorName; | |
| 137 | + } | |
| 138 | + | |
| 139 | + public void setApplyDoctorName(String applyDoctorName) { | |
| 140 | + this.applyDoctorName = applyDoctorName; | |
| 141 | + } | |
| 142 | + | |
| 143 | + public Date getPublishTime() { | |
| 144 | + return publishTime; | |
| 145 | + } | |
| 146 | + | |
| 147 | + public void setPublishTime(Date publishTime) { | |
| 148 | + this.publishTime = publishTime; | |
| 149 | + } | |
| 150 | + | |
| 151 | + public Integer getStatus() { | |
| 152 | + return status; | |
| 153 | + } | |
| 154 | + | |
| 155 | + public void setStatus(Integer status) { | |
| 156 | + this.status = status; | |
| 157 | + } | |
| 158 | + | |
| 159 | + public String getStatusName() { | |
| 160 | + return statusName; | |
| 161 | + } | |
| 162 | + | |
| 163 | + public void setStatusName(String statusName) { | |
| 164 | + this.statusName = statusName; | |
| 165 | + } | |
| 166 | +} |
platform-dal/src/main/java/com/lyms/platform/pojo/LisReport.java
View file @
0d83cc4
| 1 | +package com.lyms.platform.pojo; | |
| 2 | + | |
| 3 | +import org.springframework.data.mongodb.core.mapping.Document; | |
| 4 | + | |
| 5 | +import java.util.Date; | |
| 6 | +import java.util.List; | |
| 7 | + | |
| 8 | +/** | |
| 9 | + * Created by Administrator on 2016/10/19 0019. | |
| 10 | + */ | |
| 11 | +@Document(collection = "lyms_lis_report") | |
| 12 | +public class LisReport { | |
| 13 | + | |
| 14 | + private String id; | |
| 15 | + private String patientFid; | |
| 16 | + private String patientHid; | |
| 17 | + private String vcCardNo; | |
| 18 | + private String name; | |
| 19 | + private String sex; | |
| 20 | + private Integer age; | |
| 21 | + private String deptCode; | |
| 22 | + private String deptName; | |
| 23 | + private String applyDoctorCode; | |
| 24 | + private String applyDoctorName; | |
| 25 | + private String checkDoctorCode; | |
| 26 | + private String checkDoctorName; | |
| 27 | + private Date publishTime; | |
| 28 | + | |
| 29 | + private List<LisReportItem> itemList; | |
| 30 | + | |
| 31 | + public List<LisReportItem> getItemList() { | |
| 32 | + return itemList; | |
| 33 | + } | |
| 34 | + | |
| 35 | + public void setItemList(List<LisReportItem> itemList) { | |
| 36 | + this.itemList = itemList; | |
| 37 | + } | |
| 38 | + | |
| 39 | + public String getId() { | |
| 40 | + return id; | |
| 41 | + } | |
| 42 | + | |
| 43 | + public void setId(String id) { | |
| 44 | + this.id = id; | |
| 45 | + } | |
| 46 | + | |
| 47 | + public String getPatientFid() { | |
| 48 | + return patientFid; | |
| 49 | + } | |
| 50 | + | |
| 51 | + public void setPatientFid(String patientFid) { | |
| 52 | + this.patientFid = patientFid; | |
| 53 | + } | |
| 54 | + | |
| 55 | + public String getPatientHid() { | |
| 56 | + return patientHid; | |
| 57 | + } | |
| 58 | + | |
| 59 | + public void setPatientHid(String patientHid) { | |
| 60 | + this.patientHid = patientHid; | |
| 61 | + } | |
| 62 | + | |
| 63 | + public String getVcCardNo() { | |
| 64 | + return vcCardNo; | |
| 65 | + } | |
| 66 | + | |
| 67 | + public void setVcCardNo(String vcCardNo) { | |
| 68 | + this.vcCardNo = vcCardNo; | |
| 69 | + } | |
| 70 | + | |
| 71 | + public String getName() { | |
| 72 | + return name; | |
| 73 | + } | |
| 74 | + | |
| 75 | + public void setName(String name) { | |
| 76 | + this.name = name; | |
| 77 | + } | |
| 78 | + | |
| 79 | + public String getSex() { | |
| 80 | + return sex; | |
| 81 | + } | |
| 82 | + | |
| 83 | + public void setSex(String sex) { | |
| 84 | + this.sex = sex; | |
| 85 | + } | |
| 86 | + | |
| 87 | + public Integer getAge() { | |
| 88 | + return age; | |
| 89 | + } | |
| 90 | + | |
| 91 | + public void setAge(Integer age) { | |
| 92 | + this.age = age; | |
| 93 | + } | |
| 94 | + | |
| 95 | + public String getDeptCode() { | |
| 96 | + return deptCode; | |
| 97 | + } | |
| 98 | + | |
| 99 | + public void setDeptCode(String deptCode) { | |
| 100 | + this.deptCode = deptCode; | |
| 101 | + } | |
| 102 | + | |
| 103 | + public String getDeptName() { | |
| 104 | + return deptName; | |
| 105 | + } | |
| 106 | + | |
| 107 | + public void setDeptName(String deptName) { | |
| 108 | + this.deptName = deptName; | |
| 109 | + } | |
| 110 | + | |
| 111 | + public String getApplyDoctorCode() { | |
| 112 | + return applyDoctorCode; | |
| 113 | + } | |
| 114 | + | |
| 115 | + public void setApplyDoctorCode(String applyDoctorCode) { | |
| 116 | + this.applyDoctorCode = applyDoctorCode; | |
| 117 | + } | |
| 118 | + | |
| 119 | + public String getApplyDoctorName() { | |
| 120 | + return applyDoctorName; | |
| 121 | + } | |
| 122 | + | |
| 123 | + public void setApplyDoctorName(String applyDoctorName) { | |
| 124 | + this.applyDoctorName = applyDoctorName; | |
| 125 | + } | |
| 126 | + | |
| 127 | + public String getCheckDoctorCode() { | |
| 128 | + return checkDoctorCode; | |
| 129 | + } | |
| 130 | + | |
| 131 | + public void setCheckDoctorCode(String checkDoctorCode) { | |
| 132 | + this.checkDoctorCode = checkDoctorCode; | |
| 133 | + } | |
| 134 | + | |
| 135 | + public String getCheckDoctorName() { | |
| 136 | + return checkDoctorName; | |
| 137 | + } | |
| 138 | + | |
| 139 | + public void setCheckDoctorName(String checkDoctorName) { | |
| 140 | + this.checkDoctorName = checkDoctorName; | |
| 141 | + } | |
| 142 | + | |
| 143 | + public Date getPublishTime() { | |
| 144 | + return publishTime; | |
| 145 | + } | |
| 146 | + | |
| 147 | + public void setPublishTime(Date publishTime) { | |
| 148 | + this.publishTime = publishTime; | |
| 149 | + } | |
| 150 | +} |
platform-dal/src/main/java/com/lyms/platform/pojo/LisReportItem.java
View file @
0d83cc4
| 1 | +package com.lyms.platform.pojo; | |
| 2 | + | |
| 3 | +/** | |
| 4 | + * Created by Administrator on 2016/10/19 0019. | |
| 5 | + */ | |
| 6 | +public class LisReportItem { | |
| 7 | + | |
| 8 | + private String id; | |
| 9 | + private String code; | |
| 10 | + private String name; | |
| 11 | + private String result; | |
| 12 | + private String charResult; | |
| 13 | + private String numberResult; | |
| 14 | + private String flag; | |
| 15 | + private String ref; | |
| 16 | + private String unit; | |
| 17 | + private String resultType; | |
| 18 | + | |
| 19 | + public String getId() { | |
| 20 | + return id; | |
| 21 | + } | |
| 22 | + | |
| 23 | + public void setId(String id) { | |
| 24 | + this.id = id; | |
| 25 | + } | |
| 26 | + | |
| 27 | + public String getCode() { | |
| 28 | + return code; | |
| 29 | + } | |
| 30 | + | |
| 31 | + public void setCode(String code) { | |
| 32 | + this.code = code; | |
| 33 | + } | |
| 34 | + | |
| 35 | + public String getName() { | |
| 36 | + return name; | |
| 37 | + } | |
| 38 | + | |
| 39 | + public void setName(String name) { | |
| 40 | + this.name = name; | |
| 41 | + } | |
| 42 | + | |
| 43 | + public String getResult() { | |
| 44 | + return result; | |
| 45 | + } | |
| 46 | + | |
| 47 | + public void setResult(String result) { | |
| 48 | + this.result = result; | |
| 49 | + } | |
| 50 | + | |
| 51 | + public String getCharResult() { | |
| 52 | + return charResult; | |
| 53 | + } | |
| 54 | + | |
| 55 | + public void setCharResult(String charResult) { | |
| 56 | + this.charResult = charResult; | |
| 57 | + } | |
| 58 | + | |
| 59 | + public String getNumberResult() { | |
| 60 | + return numberResult; | |
| 61 | + } | |
| 62 | + | |
| 63 | + public void setNumberResult(String numberResult) { | |
| 64 | + this.numberResult = numberResult; | |
| 65 | + } | |
| 66 | + | |
| 67 | + public String getFlag() { | |
| 68 | + return flag; | |
| 69 | + } | |
| 70 | + | |
| 71 | + public void setFlag(String flag) { | |
| 72 | + this.flag = flag; | |
| 73 | + } | |
| 74 | + | |
| 75 | + public String getRef() { | |
| 76 | + return ref; | |
| 77 | + } | |
| 78 | + | |
| 79 | + public void setRef(String ref) { | |
| 80 | + this.ref = ref; | |
| 81 | + } | |
| 82 | + | |
| 83 | + public String getUnit() { | |
| 84 | + return unit; | |
| 85 | + } | |
| 86 | + | |
| 87 | + public void setUnit(String unit) { | |
| 88 | + this.unit = unit; | |
| 89 | + } | |
| 90 | + | |
| 91 | + public String getResultType() { | |
| 92 | + return resultType; | |
| 93 | + } | |
| 94 | + | |
| 95 | + public void setResultType(String resultType) { | |
| 96 | + this.resultType = resultType; | |
| 97 | + } | |
| 98 | +} |
platform-dal/src/main/java/com/lyms/platform/query/LisCrisisItemQuery.java
View file @
0d83cc4
| 1 | +package com.lyms.platform.query; | |
| 2 | + | |
| 3 | +import com.lyms.platform.common.base.IConvertToNativeQuery; | |
| 4 | +import com.lyms.platform.common.dao.BaseQuery; | |
| 5 | +import com.lyms.platform.common.dao.operator.MongoCondition; | |
| 6 | +import com.lyms.platform.common.dao.operator.MongoOper; | |
| 7 | +import com.lyms.platform.common.dao.operator.MongoQuery; | |
| 8 | +import org.bson.types.ObjectId; | |
| 9 | + | |
| 10 | +import java.util.Date; | |
| 11 | + | |
| 12 | +/** | |
| 13 | + * Created by Administrator on 2016/10/19 0019. | |
| 14 | + */ | |
| 15 | +public class LisCrisisItemQuery extends BaseQuery implements IConvertToNativeQuery { | |
| 16 | + | |
| 17 | + private String id; | |
| 18 | + private String name; | |
| 19 | + private String hospitalId; | |
| 20 | + private String itemCode; | |
| 21 | + private String itemName; | |
| 22 | + private String classify; | |
| 23 | + private String classifyName; | |
| 24 | + private String flag; | |
| 25 | + private String applyDoctorCode; | |
| 26 | + private String applyDoctorName; | |
| 27 | + private Integer status; | |
| 28 | + | |
| 29 | + @Override | |
| 30 | + public MongoQuery convertToQuery() { | |
| 31 | + MongoCondition condition = MongoCondition.newInstance(); | |
| 32 | + if (null != id) { | |
| 33 | + condition = condition.and("id", new ObjectId(id), MongoOper.IS); | |
| 34 | + } | |
| 35 | + | |
| 36 | + if (null != name) { | |
| 37 | + condition = condition.and("name", name, MongoOper.IS); | |
| 38 | + } | |
| 39 | + if(null!=itemCode){ | |
| 40 | + condition=condition.and("itemCode",itemCode,MongoOper.IS); | |
| 41 | + } | |
| 42 | + if(null!=itemName){ | |
| 43 | + condition=condition.and("itemName",itemName,MongoOper.IS); | |
| 44 | + } | |
| 45 | + if(null!=classify){ | |
| 46 | + condition=condition.and("classify",classify,MongoOper.IS); | |
| 47 | + } | |
| 48 | + | |
| 49 | + if(null!=classifyName){ | |
| 50 | + condition=condition.and("classifyName",classifyName,MongoOper.IS); | |
| 51 | + } | |
| 52 | + if (null != flag) { | |
| 53 | + condition = condition.and("flag", flag, MongoOper.IS); | |
| 54 | + } | |
| 55 | + if(null!=applyDoctorCode){ | |
| 56 | + condition=condition.and("applyDoctorCode",applyDoctorCode,MongoOper.IS); | |
| 57 | + } | |
| 58 | + if(null!=applyDoctorName){ | |
| 59 | + condition=condition.and("applyDoctorName",applyDoctorName,MongoOper.IS); | |
| 60 | + } | |
| 61 | + if(null!=status){ | |
| 62 | + condition=condition.and("status",status,MongoOper.IS); | |
| 63 | + } | |
| 64 | + | |
| 65 | + return condition.toMongoQuery(); | |
| 66 | + } | |
| 67 | +} |
platform-dal/src/main/java/com/lyms/platform/query/LisReportQuery.java
View file @
0d83cc4
| 1 | +package com.lyms.platform.query; | |
| 2 | + | |
| 3 | +import com.lyms.platform.common.base.IConvertToNativeQuery; | |
| 4 | +import com.lyms.platform.common.dao.BaseQuery; | |
| 5 | +import com.lyms.platform.common.dao.operator.MongoQuery; | |
| 6 | + | |
| 7 | +/** | |
| 8 | + * Created by Administrator on 2016/10/19 0019. | |
| 9 | + */ | |
| 10 | +public class LisReportQuery extends BaseQuery implements IConvertToNativeQuery { | |
| 11 | + @Override | |
| 12 | + public MongoQuery convertToQuery() { | |
| 13 | + return null; | |
| 14 | + } | |
| 15 | +} |
platform-operate-api/src/main/java/com/lyms/hospitalapi/qhdfy/ConnTools.java
View file @
0d83cc4
| 1 | +package com.lyms.hospitalapi.qhdfy; | |
| 2 | + | |
| 3 | +import java.sql.Connection; | |
| 4 | +import java.sql.DriverManager; | |
| 5 | +import java.sql.SQLException; | |
| 6 | + | |
| 7 | +/** | |
| 8 | + * Created by Administrator on 2016/9/9 0009. | |
| 9 | + <add name="sqlConnString" connectionString="Data Source=168.254.0.7;Initial Catalog=THIS4;User ID=sa;pwd=ccnms05*;" | |
| 10 | + providerName="System.Data.SqlClient"/> | |
| 11 | + <add name="sqlLisConnString" connectionString="Data Source=168.254.0.9\lis;Initial Catalog=DBLIS50;User ID=sa;pwd=ccnms05*;" | |
| 12 | + providerName="System.Data.SqlClient"/> | |
| 13 | + <add name="sqlRisConnString" connectionString="Data Source=168.254.0.9\lis;Initial Catalog=DBRIS501;User ID=sa;pwd=ccnms05*;" | |
| 14 | + providerName="System.Data.SqlClient"/> | |
| 15 | + */ | |
| 16 | +public class ConnTools { | |
| 17 | + private static String hisDirverClassName = "com.microsoft.sqlserver.jdbc.SQLServerDriver"; | |
| 18 | + private static String hisUrl = "jdbc:sqlserver://168.254.0.7:1443; DatabaseName=THIS4"; | |
| 19 | + private static String hisUser = "sa"; | |
| 20 | + private static String hisPassword = "ccnms05*"; | |
| 21 | + | |
| 22 | + private static String pacsDirverClassName = "com.microsoft.sqlserver.jdbc.SQLServerDriver"; | |
| 23 | + private static String pacsUrl = "jdbc:sqlserver://168.254.0.9\\lis; DatabaseName=DBRIS501"; | |
| 24 | + private static String pacsUser = "sa"; | |
| 25 | + private static String pacsPassword = "ccnms05*"; | |
| 26 | + | |
| 27 | + private static String lisDirverClassName = "com.microsoft.sqlserver.jdbc.SQLServerDriver"; | |
| 28 | + private static String lisUrl = "jdbc:sqlserver://168.254.0.9\\lis; DatabaseName=DBLIS50"; | |
| 29 | + private static String lisUser = "sa"; | |
| 30 | + private static String lisPassword = "ccnms05*"; | |
| 31 | + | |
| 32 | + public static Connection makeHisConnection() { | |
| 33 | + Connection conn = null; | |
| 34 | + try { | |
| 35 | + Class.forName(hisDirverClassName); | |
| 36 | + } catch (ClassNotFoundException e) { | |
| 37 | + e.printStackTrace(); | |
| 38 | + } | |
| 39 | + try { | |
| 40 | + conn = DriverManager.getConnection(hisUrl, hisUser, hisPassword); | |
| 41 | + } catch (SQLException e) { | |
| 42 | + e.printStackTrace(); | |
| 43 | + } | |
| 44 | + return conn; | |
| 45 | + } | |
| 46 | + | |
| 47 | + public static Connection makePacsConnection() { | |
| 48 | + Connection conn = null; | |
| 49 | + try { | |
| 50 | + Class.forName(pacsDirverClassName); | |
| 51 | + } catch (ClassNotFoundException e) { | |
| 52 | + e.printStackTrace(); | |
| 53 | + } | |
| 54 | + try { | |
| 55 | + conn = DriverManager.getConnection(pacsUrl, pacsUser, pacsPassword); | |
| 56 | + } catch (SQLException e) { | |
| 57 | + e.printStackTrace(); | |
| 58 | + } | |
| 59 | + return conn; | |
| 60 | + } | |
| 61 | + | |
| 62 | + public static Connection makeLisConnection() { | |
| 63 | + Connection conn = null; | |
| 64 | + try { | |
| 65 | + Class.forName(lisDirverClassName); | |
| 66 | + } catch (ClassNotFoundException e) { | |
| 67 | + e.printStackTrace(); | |
| 68 | + } | |
| 69 | + try { | |
| 70 | + conn = DriverManager.getConnection(lisUrl, lisUser, lisPassword); | |
| 71 | + } catch (SQLException e) { | |
| 72 | + e.printStackTrace(); | |
| 73 | + } | |
| 74 | + return conn; | |
| 75 | + } | |
| 76 | + | |
| 77 | + | |
| 78 | +} |
platform-operate-api/src/main/java/com/lyms/hospitalapi/qhdfy/QhdfyHisService.java
View file @
0d83cc4
| 1 | +package com.lyms.hospitalapi.qhdfy; | |
| 2 | + | |
| 3 | +import com.lyms.hospitalapi.pojo.CheckResponse; | |
| 4 | +import com.lyms.hospitalapi.pojo.RisCheckInfo; | |
| 5 | +import com.lyms.hospitalapi.v1.*; | |
| 6 | +import com.lyms.platform.biz.service.PatientsService; | |
| 7 | +import com.lyms.platform.common.utils.DateUtil; | |
| 8 | +import com.lyms.platform.pojo.LisReport; | |
| 9 | +import com.lyms.platform.pojo.LisReportItem; | |
| 10 | +import com.lyms.platform.query.PatientsQuery; | |
| 11 | +import org.apache.commons.dbutils.DbUtils; | |
| 12 | +import org.apache.commons.dbutils.QueryRunner; | |
| 13 | +import org.apache.commons.dbutils.handlers.BeanListHandler; | |
| 14 | +import org.apache.commons.lang.StringUtils; | |
| 15 | +import org.springframework.beans.factory.annotation.Autowired; | |
| 16 | +import org.springframework.stereotype.Service; | |
| 17 | + | |
| 18 | +import java.sql.Connection; | |
| 19 | +import java.sql.SQLException; | |
| 20 | +import java.util.ArrayList; | |
| 21 | +import java.util.Date; | |
| 22 | +import java.util.List; | |
| 23 | + | |
| 24 | +/** | |
| 25 | + * Created by Administrator on 2016/10/19 0019. | |
| 26 | + */ | |
| 27 | +@Service("qhdfyHisService") | |
| 28 | +public class QhdfyHisService { | |
| 29 | + | |
| 30 | + @Autowired | |
| 31 | + private PatientsService patientsService; | |
| 32 | + | |
| 33 | + public List<QhdfyLisReport> queryLisReport(Date startDate) { | |
| 34 | + List<QhdfyLisReport> result = new ArrayList<>(); | |
| 35 | + if (null != startDate) { | |
| 36 | + Connection conn = ConnTools.makePacsConnection(); | |
| 37 | + QueryRunner queryRunner = new QueryRunner(); | |
| 38 | + try { | |
| 39 | + PatientsQuery patientsQuery = new PatientsQuery(); | |
| 40 | + String sql = "select top 10000 申请号,病人ID,住院号,卡号,患者姓名,性别,年龄,申请科室代码,申请科室名称,申请医生代码,申请医生名称,检查医生代码,检查医生名称,报告发布时间 from valllist_ex where 卡号 is not null and 报告发布时间>=? order by 申请号 desc"; | |
| 41 | + String subSql = "select top 1000 申请单号,项目代码,项目名称,项目结果,字符结果,数字结果,高低标志,参考值,单位,结果类型 from valresult_ex where 申请单号='"; | |
| 42 | + Object[] params = {startDate}; | |
| 43 | + List<QhdfyLisReport> list = queryRunner.query(conn, sql, new BeanListHandler<QhdfyLisReport>(QhdfyLisReport.class), params); | |
| 44 | + if (list.size() > 0) { | |
| 45 | + for (QhdfyLisReport report:list) { | |
| 46 | + patientsQuery.setVcCardNo(report.get卡号()); | |
| 47 | + int count = patientsService.queryPatientCount(patientsQuery); | |
| 48 | + if (count > 0) { | |
| 49 | + List<QhdfyLisReportItem> itemList = queryRunner.query(conn, subSql+report.get申请号()+"'", new BeanListHandler<QhdfyLisReportItem>(QhdfyLisReportItem.class)); | |
| 50 | + List<LisReportItem> lisReportItemList = new ArrayList<>(); | |
| 51 | + for (QhdfyLisReportItem item:itemList) { | |
| 52 | + LisReportItem lisReportItem = new LisReportItem(); | |
| 53 | + lisReportItem.setId(item.get申请单号()); | |
| 54 | + lisReportItem.setCharResult(item.get字符结果()); | |
| 55 | + lisReportItem.setCode(item.get项目代码()); | |
| 56 | + lisReportItem.setFlag(item.get高低标志()); | |
| 57 | + lisReportItem.setName(item.get项目名称()); | |
| 58 | + lisReportItem.setNumberResult(item.get数字结果()); | |
| 59 | + lisReportItem.setRef(item.get参考值()); | |
| 60 | + lisReportItem.setResult(item.get项目结果()); | |
| 61 | + lisReportItem.setResultType(item.get结果类型()); | |
| 62 | + lisReportItem.setUnit(item.get单位()); | |
| 63 | + lisReportItemList.add(lisReportItem); | |
| 64 | + } | |
| 65 | + LisReport lisReport = new LisReport(); | |
| 66 | + lisReport.setName(report.get患者姓名()); | |
| 67 | + lisReport.setAge(report.get年龄()); | |
| 68 | + lisReport.setApplyDoctorCode(report.get申请医生代码()); | |
| 69 | + lisReport.setApplyDoctorName(report.get检查医生名称()); | |
| 70 | + lisReport.setCheckDoctorCode(report.get检查医生代码()); | |
| 71 | + lisReport.setCheckDoctorName(report.get检查医生名称()); | |
| 72 | + lisReport.setDeptCode(report.get申请科室代码()); | |
| 73 | + lisReport.setDeptName(report.get申请科室名称()); | |
| 74 | + lisReport.setPatientFid(report.get病人ID()); | |
| 75 | + lisReport.setPatientHid(report.get住院号()); | |
| 76 | + lisReport.setId(report.get申请号()); | |
| 77 | + lisReport.setPublishTime(report.get报告发布时间()); | |
| 78 | + lisReport.setSex(report.get性别()); | |
| 79 | + lisReport.setVcCardNo(report.get卡号()); | |
| 80 | + lisReport.setItemList(lisReportItemList); | |
| 81 | + } | |
| 82 | + } | |
| 83 | + } | |
| 84 | + DbUtils.closeQuietly(conn); | |
| 85 | + return result; | |
| 86 | + } catch (SQLException e) { | |
| 87 | + DbUtils.closeQuietly(conn); | |
| 88 | + e.printStackTrace(); | |
| 89 | + return result; | |
| 90 | + } | |
| 91 | + } | |
| 92 | + return result; | |
| 93 | + } | |
| 94 | + | |
| 95 | +} |
platform-operate-api/src/main/java/com/lyms/hospitalapi/qhdfy/QhdfyLisReport.java
View file @
0d83cc4
| 1 | +package com.lyms.hospitalapi.qhdfy; | |
| 2 | + | |
| 3 | +import java.util.Date; | |
| 4 | + | |
| 5 | +/** | |
| 6 | + * Created by Administrator on 2016/10/19 0019. | |
| 7 | + */ | |
| 8 | +public class QhdfyLisReport { | |
| 9 | + | |
| 10 | + public static void main(String[] a) { | |
| 11 | + String str = "申请单号,项目代码,项目名称,项目结果,字符结果,数字结果,高低标志,参考值,单位,结果类型"; | |
| 12 | + String[] ss = str.split(","); | |
| 13 | + for (String s:ss) { | |
| 14 | + System.out.println("private String "+s+";"); | |
| 15 | + } | |
| 16 | + } | |
| 17 | + | |
| 18 | + private String 申请号; | |
| 19 | + private String 病人ID; | |
| 20 | + private String 住院号; | |
| 21 | + private String 卡号; | |
| 22 | + private String 患者姓名; | |
| 23 | + private String 性别; | |
| 24 | + private Integer 年龄; | |
| 25 | + private String 申请科室代码; | |
| 26 | + private String 申请科室名称; | |
| 27 | + private String 申请医生代码; | |
| 28 | + private String 申请医生名称; | |
| 29 | + private String 检查医生代码; | |
| 30 | + private String 检查医生名称; | |
| 31 | + private Date 报告发布时间; | |
| 32 | + | |
| 33 | + public String get申请号() { | |
| 34 | + return 申请号; | |
| 35 | + } | |
| 36 | + | |
| 37 | + public void set申请号(String 申请号) { | |
| 38 | + this.申请号 = 申请号; | |
| 39 | + } | |
| 40 | + | |
| 41 | + public String get病人ID() { | |
| 42 | + return 病人ID; | |
| 43 | + } | |
| 44 | + | |
| 45 | + public void set病人ID(String 病人ID) { | |
| 46 | + this.病人ID = 病人ID; | |
| 47 | + } | |
| 48 | + | |
| 49 | + public String get住院号() { | |
| 50 | + return 住院号; | |
| 51 | + } | |
| 52 | + | |
| 53 | + public void set住院号(String 住院号) { | |
| 54 | + this.住院号 = 住院号; | |
| 55 | + } | |
| 56 | + | |
| 57 | + public String get卡号() { | |
| 58 | + return 卡号; | |
| 59 | + } | |
| 60 | + | |
| 61 | + public void set卡号(String 卡号) { | |
| 62 | + this.卡号 = 卡号; | |
| 63 | + } | |
| 64 | + | |
| 65 | + public String get患者姓名() { | |
| 66 | + return 患者姓名; | |
| 67 | + } | |
| 68 | + | |
| 69 | + public void set患者姓名(String 患者姓名) { | |
| 70 | + this.患者姓名 = 患者姓名; | |
| 71 | + } | |
| 72 | + | |
| 73 | + public String get性别() { | |
| 74 | + return 性别; | |
| 75 | + } | |
| 76 | + | |
| 77 | + public void set性别(String 性别) { | |
| 78 | + this.性别 = 性别; | |
| 79 | + } | |
| 80 | + | |
| 81 | + public Integer get年龄() { | |
| 82 | + return 年龄; | |
| 83 | + } | |
| 84 | + | |
| 85 | + public void set年龄(Integer 年龄) { | |
| 86 | + this.年龄 = 年龄; | |
| 87 | + } | |
| 88 | + | |
| 89 | + public String get申请科室代码() { | |
| 90 | + return 申请科室代码; | |
| 91 | + } | |
| 92 | + | |
| 93 | + public void set申请科室代码(String 申请科室代码) { | |
| 94 | + this.申请科室代码 = 申请科室代码; | |
| 95 | + } | |
| 96 | + | |
| 97 | + public String get申请科室名称() { | |
| 98 | + return 申请科室名称; | |
| 99 | + } | |
| 100 | + | |
| 101 | + public void set申请科室名称(String 申请科室名称) { | |
| 102 | + this.申请科室名称 = 申请科室名称; | |
| 103 | + } | |
| 104 | + | |
| 105 | + public String get申请医生代码() { | |
| 106 | + return 申请医生代码; | |
| 107 | + } | |
| 108 | + | |
| 109 | + public void set申请医生代码(String 申请医生代码) { | |
| 110 | + this.申请医生代码 = 申请医生代码; | |
| 111 | + } | |
| 112 | + | |
| 113 | + public String get申请医生名称() { | |
| 114 | + return 申请医生名称; | |
| 115 | + } | |
| 116 | + | |
| 117 | + public void set申请医生名称(String 申请医生名称) { | |
| 118 | + this.申请医生名称 = 申请医生名称; | |
| 119 | + } | |
| 120 | + | |
| 121 | + public String get检查医生代码() { | |
| 122 | + return 检查医生代码; | |
| 123 | + } | |
| 124 | + | |
| 125 | + public void set检查医生代码(String 检查医生代码) { | |
| 126 | + this.检查医生代码 = 检查医生代码; | |
| 127 | + } | |
| 128 | + | |
| 129 | + public String get检查医生名称() { | |
| 130 | + return 检查医生名称; | |
| 131 | + } | |
| 132 | + | |
| 133 | + public void set检查医生名称(String 检查医生名称) { | |
| 134 | + this.检查医生名称 = 检查医生名称; | |
| 135 | + } | |
| 136 | + | |
| 137 | + public Date get报告发布时间() { | |
| 138 | + return 报告发布时间; | |
| 139 | + } | |
| 140 | + | |
| 141 | + public void set报告发布时间(Date 报告发布时间) { | |
| 142 | + this.报告发布时间 = 报告发布时间; | |
| 143 | + } | |
| 144 | +} |
platform-operate-api/src/main/java/com/lyms/hospitalapi/qhdfy/QhdfyLisReportItem.java
View file @
0d83cc4
| 1 | +package com.lyms.hospitalapi.qhdfy; | |
| 2 | + | |
| 3 | +/** | |
| 4 | + * Created by Administrator on 2016/10/19 0019. | |
| 5 | + */ | |
| 6 | +public class QhdfyLisReportItem { | |
| 7 | + | |
| 8 | + private String 申请单号; | |
| 9 | + private String 项目代码; | |
| 10 | + private String 项目名称; | |
| 11 | + private String 项目结果; | |
| 12 | + private String 字符结果; | |
| 13 | + private String 数字结果; | |
| 14 | + private String 高低标志; | |
| 15 | + private String 参考值; | |
| 16 | + private String 单位; | |
| 17 | + private String 结果类型; | |
| 18 | + | |
| 19 | + public String get申请单号() { | |
| 20 | + return 申请单号; | |
| 21 | + } | |
| 22 | + | |
| 23 | + public void set申请单号(String 申请单号) { | |
| 24 | + this.申请单号 = 申请单号; | |
| 25 | + } | |
| 26 | + | |
| 27 | + public String get项目代码() { | |
| 28 | + return 项目代码; | |
| 29 | + } | |
| 30 | + | |
| 31 | + public void set项目代码(String 项目代码) { | |
| 32 | + this.项目代码 = 项目代码; | |
| 33 | + } | |
| 34 | + | |
| 35 | + public String get项目名称() { | |
| 36 | + return 项目名称; | |
| 37 | + } | |
| 38 | + | |
| 39 | + public void set项目名称(String 项目名称) { | |
| 40 | + this.项目名称 = 项目名称; | |
| 41 | + } | |
| 42 | + | |
| 43 | + public String get项目结果() { | |
| 44 | + return 项目结果; | |
| 45 | + } | |
| 46 | + | |
| 47 | + public void set项目结果(String 项目结果) { | |
| 48 | + this.项目结果 = 项目结果; | |
| 49 | + } | |
| 50 | + | |
| 51 | + public String get字符结果() { | |
| 52 | + return 字符结果; | |
| 53 | + } | |
| 54 | + | |
| 55 | + public void set字符结果(String 字符结果) { | |
| 56 | + this.字符结果 = 字符结果; | |
| 57 | + } | |
| 58 | + | |
| 59 | + public String get数字结果() { | |
| 60 | + return 数字结果; | |
| 61 | + } | |
| 62 | + | |
| 63 | + public void set数字结果(String 数字结果) { | |
| 64 | + this.数字结果 = 数字结果; | |
| 65 | + } | |
| 66 | + | |
| 67 | + public String get高低标志() { | |
| 68 | + return 高低标志; | |
| 69 | + } | |
| 70 | + | |
| 71 | + public void set高低标志(String 高低标志) { | |
| 72 | + this.高低标志 = 高低标志; | |
| 73 | + } | |
| 74 | + | |
| 75 | + public String get参考值() { | |
| 76 | + return 参考值; | |
| 77 | + } | |
| 78 | + | |
| 79 | + public void set参考值(String 参考值) { | |
| 80 | + this.参考值 = 参考值; | |
| 81 | + } | |
| 82 | + | |
| 83 | + public String get单位() { | |
| 84 | + return 单位; | |
| 85 | + } | |
| 86 | + | |
| 87 | + public void set单位(String 单位) { | |
| 88 | + this.单位 = 单位; | |
| 89 | + } | |
| 90 | + | |
| 91 | + public String get结果类型() { | |
| 92 | + return 结果类型; | |
| 93 | + } | |
| 94 | + | |
| 95 | + public void set结果类型(String 结果类型) { | |
| 96 | + this.结果类型 = 结果类型; | |
| 97 | + } | |
| 98 | +} |
platform-operate-api/src/main/java/com/lyms/hospitalapi/qhdfy/README.TXT
View file @
0d83cc4
| 1 | +秦皇岛妇幼 |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/Test.java
View file @
0d83cc4
| 1 | 1 | package com.lyms.platform.operate.web; |
| 2 | 2 | |
| 3 | +import com.lyms.platform.common.enums.YnEnums; | |
| 3 | 4 | import com.lyms.platform.common.utils.DateUtil; |
| 4 | 5 | import com.lyms.platform.common.utils.JsonUtil; |
| 6 | +import com.lyms.platform.common.utils.MongoConvertHelper; | |
| 7 | +import com.lyms.platform.common.utils.ReflectionUtils; | |
| 8 | +import com.lyms.platform.operate.web.result.HighScoreResult; | |
| 5 | 9 | import com.lyms.platform.permission.model.Users; |
| 6 | 10 | import com.lyms.platform.permission.service.UsersService; |
| 7 | 11 | import com.lyms.platform.pojo.Patients; |
| 12 | +import com.lyms.platform.query.PatientsQuery; | |
| 8 | 13 | import org.springframework.context.ApplicationContext; |
| 9 | 14 | import org.springframework.context.support.ClassPathXmlApplicationContext; |
| 15 | +import org.springframework.data.mongodb.core.query.Update; | |
| 10 | 16 | |
| 17 | +import java.util.ArrayList; | |
| 11 | 18 | import java.util.Calendar; |
| 12 | 19 | import java.util.Date; |
| 20 | +import java.util.List; | |
| 13 | 21 | |
| 14 | 22 | /** |
| 15 | 23 | * Created by Administrator on 2016/8/22 0022. |
| 16 | 24 | |
| ... | ... | @@ -17,13 +25,24 @@ |
| 17 | 25 | public class Test{ |
| 18 | 26 | |
| 19 | 27 | public static void main(String[] args){ |
| 20 | - Patients patients=new Patients(); | |
| 21 | - patients.setId("1111"); | |
| 22 | - patients.setBirth(DateUtil.parseYMD("2016-4-12")); | |
| 23 | - String s= JsonUtil.obj2Str(patients); | |
| 24 | - System.out.println(s); | |
| 28 | + PatientsQuery patientsQuery1 = new PatientsQuery(); | |
| 29 | + patientsQuery1.setPid("pid"); | |
| 30 | + patientsQuery1.setYn(YnEnums.YES.getId()); | |
| 31 | + patientsQuery1.setType(1); | |
| 32 | + Patients patients1 = new Patients(); | |
| 33 | + patients1.setModified(new Date()); | |
| 25 | 34 | |
| 26 | - System.out.println(DateUtil.getymdhm(JsonUtil.jkstr2Obj(s, Patients.class).getBirth())); | |
| 35 | + List<String> ids = new ArrayList<>(); | |
| 36 | + ids.add("id1"); | |
| 37 | + ids.add("id12"); | |
| 38 | + ids.add("id134"); | |
| 39 | + patients1.setRiskScore(12); | |
| 40 | + patients1.setRiskFactorId(ids); | |
| 41 | + patients1.setRiskLevelId(JsonUtil.array2JsonString(ids)); | |
| 42 | + Update update = MongoConvertHelper | |
| 43 | + .convertToNativeUpdate(ReflectionUtils.getUpdateField(patients1)); | |
| 44 | + System.out.println(JsonUtil.obj2JsonString(patientsQuery1.convertToQuery().convertToMongoQuery())); | |
| 45 | + System.out.println(JsonUtil.obj2JsonString(update)); | |
| 27 | 46 | |
| 28 | 47 | } |
| 29 | 48 | } |
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/TestController.java
View file @
0d83cc4
| 1 | 1 | package com.lyms.platform.operate.web.controller; |
| 2 | 2 | |
| 3 | 3 | import com.lyms.platform.biz.JdbcUtil; |
| 4 | +import com.lyms.platform.biz.service.PatientsService; | |
| 4 | 5 | import org.springframework.beans.factory.annotation.Autowired; |
| 5 | 6 | import org.springframework.data.mongodb.core.MongoTemplate; |
| 6 | 7 | import org.springframework.stereotype.Controller; |
| ... | ... | @@ -24,6 +25,10 @@ |
| 24 | 25 | |
| 25 | 26 | @Autowired |
| 26 | 27 | private MongoTemplate mongoTemplate; |
| 28 | + | |
| 29 | + @Autowired | |
| 30 | + private PatientsService patientsService; | |
| 31 | + | |
| 27 | 32 | /** |
| 28 | 33 | * 获取科室 |
| 29 | 34 | */ |
| ... | ... | @@ -118,5 +123,28 @@ |
| 118 | 123 | // System.out.println("同步结束孕妇1>>>>>>>>>>>>>>>>>>>>>>>>>"); |
| 119 | 124 | return "starting..........."; |
| 120 | 125 | } |
| 126 | + | |
| 127 | + | |
| 128 | + @RequestMapping(value = "/addSieveJob", method = RequestMethod.GET) | |
| 129 | + @ResponseBody | |
| 130 | + public String addSieveJob() { | |
| 131 | + patientsService.addSieveJob();; | |
| 132 | + return "finish"; | |
| 133 | + } | |
| 134 | + | |
| 135 | + @RequestMapping(value = "/autoMatDeliver", method = RequestMethod.GET) | |
| 136 | + @ResponseBody | |
| 137 | + public String autoMatDeliver() { | |
| 138 | + patientsService.autoMatDeliver();; | |
| 139 | + return "finish"; | |
| 140 | + } | |
| 141 | + | |
| 142 | + @RequestMapping(value = "/delSieve", method = RequestMethod.GET) | |
| 143 | + @ResponseBody | |
| 144 | + public String delSieve() { | |
| 145 | + patientsService.delSieve();; | |
| 146 | + return "finish"; | |
| 147 | + } | |
| 148 | + | |
| 121 | 149 | } |