Commit b22e5bdd13ef858db2a0e2997eb9e50da69285e7
1 parent
a6a2d86a13
Exists in
master
and in
6 other branches
修改体重营养报告
Showing 1 changed file with 60 additions and 61 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/controller/TestController.java
View file @
b22e5bd
| ... | ... | @@ -53,10 +53,7 @@ |
| 53 | 53 | import org.springframework.data.mongodb.core.query.Query; |
| 54 | 54 | import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor; |
| 55 | 55 | import org.springframework.stereotype.Controller; |
| 56 | -import org.springframework.web.bind.annotation.RequestMapping; | |
| 57 | -import org.springframework.web.bind.annotation.RequestMethod; | |
| 58 | -import org.springframework.web.bind.annotation.RequestParam; | |
| 59 | -import org.springframework.web.bind.annotation.ResponseBody; | |
| 56 | +import org.springframework.web.bind.annotation.*; | |
| 60 | 57 | |
| 61 | 58 | import javax.servlet.http.HttpServletRequest; |
| 62 | 59 | import javax.validation.Valid; |
| 63 | 60 | |
| 64 | 61 | |
| ... | ... | @@ -1905,12 +1902,13 @@ |
| 1905 | 1902 | |
| 1906 | 1903 | /** |
| 1907 | 1904 | * 育龄服务生孩统计 数据处理 |
| 1905 | + * | |
| 1908 | 1906 | * @param id |
| 1909 | 1907 | * @return |
| 1910 | 1908 | */ |
| 1911 | - @RequestMapping(value="/handleChildbearAgeData") | |
| 1909 | + @RequestMapping(value = "/handleChildbearAgeData") | |
| 1912 | 1910 | @ResponseBody |
| 1913 | - public String handleChildbearAgeData(@RequestParam(required = false)final String id) { | |
| 1911 | + public String handleChildbearAgeData(@RequestParam(required = false) final String id) { | |
| 1914 | 1912 | |
| 1915 | 1913 | matDeliverFacade.handleMatDeliver(id); |
| 1916 | 1914 | |
| 1917 | 1915 | |
| ... | ... | @@ -1948,12 +1946,13 @@ |
| 1948 | 1946 | |
| 1949 | 1947 | /** |
| 1950 | 1948 | * 诸城孕妇基本信息测试 |
| 1949 | + * | |
| 1951 | 1950 | * @param id |
| 1952 | 1951 | * @return |
| 1953 | 1952 | */ |
| 1954 | 1953 | @RequestMapping(value = "/zc/patient") |
| 1955 | 1954 | @ResponseBody |
| 1956 | - public BaseObjectResponse getzcPatient(@RequestParam("id") String id){ | |
| 1955 | + public BaseObjectResponse getzcPatient(@RequestParam("id") String id) { | |
| 1957 | 1956 | Patients patients = patientsService.findOnePatientById(id); |
| 1958 | 1957 | return zcPrenatalService.savePatient(patients); |
| 1959 | 1958 | } |
| ... | ... | @@ -2011,8 +2010,6 @@ |
| 2011 | 2010 | } |
| 2012 | 2011 | |
| 2013 | 2012 | |
| 2014 | - | |
| 2015 | - | |
| 2016 | 2013 | /** |
| 2017 | 2014 | * 承德智业基本信息测试 |
| 2018 | 2015 | * |
| 2019 | 2016 | |
| ... | ... | @@ -2157,13 +2154,11 @@ |
| 2157 | 2154 | } |
| 2158 | 2155 | |
| 2159 | 2156 | @RequestMapping(value = "/cd/dingshirenwu") |
| 2160 | - public void ceshi(){ | |
| 2157 | + public void ceshi() { | |
| 2161 | 2158 | cdGwInterface.handleWork(); |
| 2162 | 2159 | } |
| 2163 | 2160 | |
| 2164 | 2161 | |
| 2165 | - | |
| 2166 | - | |
| 2167 | 2162 | @RequestMapping(value = "/update/servicestatus") |
| 2168 | 2163 | @ResponseBody |
| 2169 | 2164 | public BaseObjectResponse updatePatientServiceStatus(@RequestParam(value = "t", defaultValue = "1") String type) { |
| 2170 | 2165 | |
| ... | ... | @@ -2202,12 +2197,12 @@ |
| 2202 | 2197 | @Override |
| 2203 | 2198 | public void run() { |
| 2204 | 2199 | try { |
| 2205 | - System.out.println("do worker by id :" + id +" parentId:" + parentId); | |
| 2200 | + System.out.println("do worker by id :" + id + " parentId:" + parentId); | |
| 2206 | 2201 | if (type == 1) { |
| 2207 | 2202 | Patients patients = patientsService.findOnePatientById(parentId); |
| 2208 | 2203 | if (null != patients) { |
| 2209 | 2204 | //改成不开通 |
| 2210 | - Patients p1= new Patients(); | |
| 2205 | + Patients p1 = new Patients(); | |
| 2211 | 2206 | p1.setServiceStatus(1); |
| 2212 | 2207 | p1.setId(patients.getId()); |
| 2213 | 2208 | p1.setModified(new Date()); |
| 2214 | 2209 | |
| ... | ... | @@ -2218,13 +2213,13 @@ |
| 2218 | 2213 | babyModelQuery.setYn(YnEnums.YES.getId()); |
| 2219 | 2214 | babyModelQuery.setId(parentId); |
| 2220 | 2215 | List<BabyModel> babyModel = babyBookbuildingService.queryBabyBuildByCond(babyModelQuery); |
| 2221 | - if(CollectionUtils.isNotEmpty(babyModel)){ | |
| 2222 | - BabyModel baby = babyModel.get(0); | |
| 2223 | - BabyModel baby1=new BabyModel(); | |
| 2216 | + if (CollectionUtils.isNotEmpty(babyModel)) { | |
| 2217 | + BabyModel baby = babyModel.get(0); | |
| 2218 | + BabyModel baby1 = new BabyModel(); | |
| 2224 | 2219 | baby1.setServiceStatus(1); |
| 2225 | 2220 | baby1.setModified(new Date()); |
| 2226 | 2221 | baby1.setId(baby.getId()); |
| 2227 | - babyBookbuildingService.updateBabyBuild(baby1,baby.getId()); | |
| 2222 | + babyBookbuildingService.updateBabyBuild(baby1, baby.getId()); | |
| 2228 | 2223 | } |
| 2229 | 2224 | } |
| 2230 | 2225 | |
| 2231 | 2226 | |
| 2232 | 2227 | |
| 2233 | 2228 | |
| 2234 | 2229 | |
| 2235 | 2230 | |
| 2236 | 2231 | |
| 2237 | 2232 | |
| 2238 | 2233 | |
| ... | ... | @@ -2240,67 +2235,71 @@ |
| 2240 | 2235 | } |
| 2241 | 2236 | } |
| 2242 | 2237 | |
| 2243 | - @RequestMapping(value="/lis/lpcs") | |
| 2238 | + @RequestMapping(value = "/lis/lpcs") | |
| 2244 | 2239 | @ResponseBody |
| 2245 | - public Map<String,String> getLpLis(@RequestParam("vcCardNo")String vcCardNo){ | |
| 2246 | - Map<String,String> map = new HashMap<String,String>(); | |
| 2247 | - map.put("xhdb","1");//血红蛋白 | |
| 2248 | - map.put("bxbjs","2");//白细胞计数 | |
| 2249 | - map.put("xxbjs","3");//血小板计数 | |
| 2250 | - map.put("ndb","4");//尿蛋白 | |
| 2251 | - map.put("nt","5");//尿糖 | |
| 2252 | - map.put("ntt","6");//尿酮体 | |
| 2253 | - map.put("nqx","7");//尿潜血 | |
| 2254 | - map.put("xx","8");//血型 | |
| 2255 | - map.put("rhxx","yin");//RH血型 | |
| 2256 | - map.put("xt","1");//血糖 | |
| 2257 | - map.put("xqgbzam","1");//血清谷丙转氨酶 | |
| 2258 | - map.put("xqgczam","1");//血清谷草转氨酶 | |
| 2259 | - map.put("bdb","1");//白蛋白 | |
| 2260 | - map.put("zdhs","1");//总胆红素 | |
| 2261 | - map.put("bg","yin");//丙肝 | |
| 2262 | - map.put("ygbmky","yin");//乙肝表面抗原 | |
| 2263 | - map.put("ygbmkt","yin");//乙肝表面抗体 | |
| 2264 | - map.put("ygeky","yin");//乙肝E抗原 | |
| 2265 | - map.put("ygekt","yang");//乙肝E抗体 | |
| 2266 | - map.put("yghxkt","yang");//乙肝核心抗体 | |
| 2267 | - map.put("xqjg","1");//血清肌酐 | |
| 2268 | - map.put("xnsd","1");//血尿素氮 | |
| 2269 | - map.put("md","yin");//梅毒 | |
| 2270 | - map.put("hivkt","yin");//HIV抗体 | |
| 2271 | - map.put("ydqjd","5769ef930cf2d37f03479387");//阴道清洁度 | |
| 2272 | - map.put("xt1","1");//血糖1 | |
| 2273 | - map.put("xt2","2");//血糖2 | |
| 2274 | - map.put("xt3","3");//血糖3 | |
| 2240 | + public Map<String, String> getLpLis(@RequestParam("vcCardNo") String vcCardNo) { | |
| 2241 | + Map<String, String> map = new HashMap<String, String>(); | |
| 2242 | + map.put("xhdb", "1");//血红蛋白 | |
| 2243 | + map.put("bxbjs", "2");//白细胞计数 | |
| 2244 | + map.put("xxbjs", "3");//血小板计数 | |
| 2245 | + map.put("ndb", "4");//尿蛋白 | |
| 2246 | + map.put("nt", "5");//尿糖 | |
| 2247 | + map.put("ntt", "6");//尿酮体 | |
| 2248 | + map.put("nqx", "7");//尿潜血 | |
| 2249 | + map.put("xx", "8");//血型 | |
| 2250 | + map.put("rhxx", "yin");//RH血型 | |
| 2251 | + map.put("xt", "1");//血糖 | |
| 2252 | + map.put("xqgbzam", "1");//血清谷丙转氨酶 | |
| 2253 | + map.put("xqgczam", "1");//血清谷草转氨酶 | |
| 2254 | + map.put("bdb", "1");//白蛋白 | |
| 2255 | + map.put("zdhs", "1");//总胆红素 | |
| 2256 | + map.put("bg", "yin");//丙肝 | |
| 2257 | + map.put("ygbmky", "yin");//乙肝表面抗原 | |
| 2258 | + map.put("ygbmkt", "yin");//乙肝表面抗体 | |
| 2259 | + map.put("ygeky", "yin");//乙肝E抗原 | |
| 2260 | + map.put("ygekt", "yang");//乙肝E抗体 | |
| 2261 | + map.put("yghxkt", "yang");//乙肝核心抗体 | |
| 2262 | + map.put("xqjg", "1");//血清肌酐 | |
| 2263 | + map.put("xnsd", "1");//血尿素氮 | |
| 2264 | + map.put("md", "yin");//梅毒 | |
| 2265 | + map.put("hivkt", "yin");//HIV抗体 | |
| 2266 | + map.put("ydqjd", "5769ef930cf2d37f03479387");//阴道清洁度 | |
| 2267 | + map.put("xt1", "1");//血糖1 | |
| 2268 | + map.put("xt2", "2");//血糖2 | |
| 2269 | + map.put("xt3", "3");//血糖3 | |
| 2275 | 2270 | return map; |
| 2276 | 2271 | } |
| 2277 | 2272 | |
| 2278 | 2273 | |
| 2279 | 2274 | /** |
| 2280 | 2275 | * 查询冠新ID |
| 2276 | + * | |
| 2281 | 2277 | * @param name |
| 2282 | 2278 | * @param idCard |
| 2283 | 2279 | * @return |
| 2284 | 2280 | */ |
| 2285 | - @RequestMapping(value="/cd/id") | |
| 2281 | + @RequestMapping(value = "/cd/id") | |
| 2286 | 2282 | @ResponseBody |
| 2287 | - public String getId(@RequestParam("name")String name,@RequestParam("idCard")String idCard){ | |
| 2288 | - try{ | |
| 2289 | - String skiName = new String(name.getBytes("ISO-8859-1"),"UTF-8"); | |
| 2290 | - String str = "{\"name\":\""+skiName+"\",\"idNo\":\""+idCard+"\",\"parentIdNo\":\"\"}"; | |
| 2283 | + public String getId(@RequestParam("name") String name, @RequestParam("idCard") String idCard) { | |
| 2284 | + try { | |
| 2285 | + String skiName = new String(name.getBytes("ISO-8859-1"), "UTF-8"); | |
| 2286 | + String str = "{\"name\":\"" + skiName + "\",\"idNo\":\"" + idCard + "\",\"parentIdNo\":\"\"}"; | |
| 2291 | 2287 | return cdGwInterface.findPersonInfoId(str); |
| 2292 | - }catch (Exception e){ | |
| 2288 | + } catch (Exception e) { | |
| 2293 | 2289 | e.printStackTrace(); |
| 2294 | 2290 | } |
| 2295 | 2291 | |
| 2296 | - return null; | |
| 2292 | + return null; | |
| 2297 | 2293 | } |
| 2298 | 2294 | |
| 2299 | - @RequestMapping(value="/bp/report") | |
| 2295 | + @RequestMapping(value = "/bp/report") | |
| 2300 | 2296 | @ResponseBody |
| 2301 | - public String bpReportTrigger(){ | |
| 2302 | - bloodPressureService.generateBpReport(); | |
| 2303 | - return "ss"; | |
| 2297 | + public String bpReportTrigger(@RequestHeader("Authorization") String header) { | |
| 2298 | + if ("lyms".equals(header)) { | |
| 2299 | + bloodPressureService.generateBpReport(); | |
| 2300 | + return "ss"; | |
| 2301 | + } | |
| 2302 | + return "error"; | |
| 2304 | 2303 | } |
| 2305 | 2304 | |
| 2306 | 2305 | @Autowired |