zjh
2024-06-05 66a1d779057d1c9fc75abd30218546a419b7b442
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);