zjh
2024-06-14 d71460e89b4e556aa9f396100004fcdabe98a0ff
ltkj-admin/src/main/java/com/ltkj/web/controller/system/TjCustomerController.java
@@ -147,7 +147,7 @@
            LambdaQueryWrapper<TjCustomer> customerLambdaQueryWrapper = new LambdaQueryWrapper<>();
            customerLambdaQueryWrapper.eq(TjCustomer::getCusIdcard, cusIdcard);
            TjCustomer tjCustomerServiceOne = tjCustomerService.getOne(customerLambdaQueryWrapper);
            if(null ==tjCustomerServiceOne){
            if (null == tjCustomerServiceOne) {
                return AjaxResult.error("该人员信息不存在请先进行登记!!!");
            }
            final String getInfoFromSqlData = sysConfigService.selectConfigByKey("getInfoFromSqlData");
@@ -346,7 +346,7 @@
                tjCustomer.setDiscount(tjReservation.getDiscount());
                tjCustomer.setGroupingId(tjReservation.getGroupingId());
                return success(tjCustomer);
            }else {
            } else {
                return AjaxResult.success("暂无预约信息", tjCustomerServiceOne);
            }
        }
@@ -479,16 +479,16 @@
//        }
        tjCustomer.setCusNumber(0L);
        String config = sysConfigService.selectConfigByKey("sfkqdyhis");
        if(null !=config && config.equals("Y")){
        if (null != config && config.equals("Y")) {
            AjaxResult tjCustomer1 = suijieHisXinXi(tjCustomer, date);
            if (tjCustomer1 != null) return tjCustomer1;
        }else {
        } else {
            if (tjCustomerService.save(tjCustomer)) {
                return AjaxResult.success(tjCustomer);
            }
        }
        return AjaxResult.error();
}
    }
    private AjaxResult suijieHisXinXi(TjCustomer tjCustomer, String date) {
        AjaxResult result = controller.Outpincreateapply(tjCustomer);
@@ -501,9 +501,12 @@
            if (null != resultData && resultData.size() > 0) {
                String pationid = resultData.get("PationId").toString();
                if (null != pationid) {
                    tjCustomer.setPationId(pationid);
//                    tjCustomerService.updateById(tjCustomer);
      /*
                        OutpinregapplyDto outpinregapplyDto = new OutpinregapplyDto();
                        outpinregapplyDto.setPationid(pationid);
//                    outpinregapplyDto.setHisRegistrationId(pationid);
                        outpinregapplyDto.setSqysbm(SecurityUtils.getUsername());
                        outpinregapplyDto.setMzksbm("0101");
                        outpinregapplyDto.setCzybm("00029");
@@ -537,8 +540,8 @@
                                    }
                                }
                            }
                        }
                    }
                        }*/
                }
            }
            if (tjCustomerService.save(tjCustomer)) {