From 66a1d779057d1c9fc75abd30218546a419b7b442 Mon Sep 17 00:00:00 2001 From: zjh <zjh@888> Date: 星期三, 05 六月 2024 14:31:44 +0800 Subject: [PATCH] zjh 本地 2024/06/05 --1 --- ltkj-admin/src/main/java/com/ltkj/web/controller/his/HisApiMethodService.java | 21 ++++++++++++--------- 1 files changed, 12 insertions(+), 9 deletions(-) diff --git a/ltkj-admin/src/main/java/com/ltkj/web/controller/his/HisApiMethodService.java b/ltkj-admin/src/main/java/com/ltkj/web/controller/his/HisApiMethodService.java index e1796e6..05fb941 100644 --- a/ltkj-admin/src/main/java/com/ltkj/web/controller/his/HisApiMethodService.java +++ b/ltkj-admin/src/main/java/com/ltkj/web/controller/his/HisApiMethodService.java @@ -1,6 +1,7 @@ package com.ltkj.web.controller.his; +import cn.hutool.core.date.DateUtil; import com.ltkj.common.core.domain.AjaxResult; import com.ltkj.hosp.domain.TjCustomer; import com.ltkj.hosp.hisDto.*; @@ -51,14 +52,14 @@ // @ApiOperation(value = "鏂板/淇敼闂ㄨ瘖娉ㄥ唽淇℃伅") public AjaxResult Outpincreateapply (TjCustomer customer) { Map<String, Object> map = new HashMap<> (); - if (null != customer.getCusId ()) { - map.put ("pationid", customer.getCusId ()); + if (null != customer.getPationId () && !customer.getPationId().equals("0")) { + map.put ("pationid", customer.getPationId ()); } else { map.put ("pationid", null); } map.put ("brxm", customer.getCusName ()); map.put ("brxb", customer.getCusSex ()); - map.put ("csrq", customer.getCusBrithday ()); + map.put ("csrq", DateUtil.format(customer.getCusBrithday(),"yyyy-MM-dd")); map.put ("brnl", customer.getAge ()); map.put ("brnldw", customer.getAgeUnit ()); map.put ("addr", customer.getAddr ()); @@ -70,12 +71,14 @@ map.put ("sfzh", customer.getCusIdcard ()); map.put ("jhrxm", null); map.put ("jhrsfzh", null); - map.put ("mz", customer.getCusNational ()); - map.put ("zy", customer.getCareer ()); + map.put ("mz", null); + map.put ("zy","鑱屽憳"); map.put ("fbbm", null); - map.put ("czy", customer.getCreateBy ()); - map.put ("jkkkh", customer.getIndexCard ()); - map.put ("mindex_id", customer.getIndexCard ()); + map.put ("czy", "00029"); + map.put ("jkkkh",null); + map.put ("mindex_id",null); +// map.put ("zybm","鑱屽憳"); + //鑱屼笟缂栫爜 String post = HttpClientUtils.sendPost (HIS_URL+"Outpincreateapply", map); return AjaxResult.success ().put ("data", post); } @@ -86,7 +89,7 @@ //jzrq = "鎺ヨ瘖鏃ユ湡" //jzysbm = "鎺ヨ瘖鍖诲笀" public AjaxResult Outpinconapply (String jzh, - Date jzrq, + String jzrq, String jzysbm) { Map<String, Object> map = new HashMap<> (); map.put ("his_registration_id", jzh); -- Gitblit v1.8.0