赵文轩
2024-06-17 8dfd35fb7c70018976bb6e414c06c9708cae3d4f
ltkj-admin/src/main/java/com/ltkj/web/controller/system/TjCustomerController.java
@@ -211,11 +211,11 @@
//                controller.Outpincreateapply(tjCustomer);
                Date dates = new Date();
/*                Date dates = new Date();
                final String date = DateUtil.format(dates, "yyyy-MM-dd HH:mm:ss");
                OutpinregapplyDto outpinregapplyDto = new OutpinregapplyDto();
                outpinregapplyDto.setPationid(tjCustomerServiceOne.getPationId());
                outpinregapplyDto.setSqysbm(SecurityUtils.getUsername());
                outpinregapplyDto.setSqysbm("00029");
                outpinregapplyDto.setMzksbm("0101");
                outpinregapplyDto.setCzybm("00029");
                outpinregapplyDto.setSfjz("0");
@@ -235,10 +235,12 @@
                        String hisRegistrationId = resultDatasss.get("his_registration_id").toString();
                        //门诊医生接诊
                        controller.Outpinconapply(hisRegistrationId, date, SecurityUtils.getUsername());
                        tjCustomerServiceOne.setCardId(hisRegistrationId);
                        tjCustomerService.updateById(tjCustomerServiceOne);
//                        tjCustomerServiceOne.setCardId(hisRegistrationId);
//                        tjCustomerServiceOne.setCusBrithday(DateUtil.parse(MatchUtils.getBirthDayByIdCard(tjCustomerServiceOne.getCusIdcard()),"yyyy-MM-dd"));
//                        tjCustomerService.updateById(tjCustomerServiceOne);
                        tjCustomerService.updateCardId(tjCustomerServiceOne.getCusId(),hisRegistrationId);
                    }
                }
                }*/
            }
            //end====2023.12.12
@@ -347,6 +349,10 @@
                tjCustomer.setGroupingId(tjReservation.getGroupingId());
                return success(tjCustomer);
            } else {
                LambdaQueryWrapper<TjCustomer> customerLambdaQueryWrapper1 = new LambdaQueryWrapper<>();
                customerLambdaQueryWrapper1.eq(TjCustomer::getCusIdcard, cusIdcard);
                TjCustomer one = tjCustomerService.getOne(customerLambdaQueryWrapper1);
                System.out.println("------------------"+one.getCusBrithday());
                return AjaxResult.success("暂无预约信息", tjCustomerServiceOne);
            }
        }
@@ -475,7 +481,7 @@
        substring = DigestUtils.md5DigestAsHex(substring.getBytes());
        tjCustomer.setCusPassword(substring);
//        if (tjCustomer.getIdType().equals("1")) {
//            tjCustomer.setCusBrithday(DateUtil.parse(MatchUtils.getBirthDayByIdCard(tjCustomer.getCusIdcard()), "yyyy-MM-dd"));
            tjCustomer.setCusBrithday(DateUtil.parse(MatchUtils.getBirthDayByIdCard(tjCustomer.getCusIdcard()), "yyyy-MM-dd"));
//        }
        tjCustomer.setCusNumber(0L);
        String config = sysConfigService.selectConfigByKey("sfkqdyhis");
@@ -501,13 +507,11 @@
            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();
                    tjCustomerService.updateById(tjCustomer);
/*                        OutpinregapplyDto outpinregapplyDto = new OutpinregapplyDto();
                        outpinregapplyDto.setPationid(pationid);
                        outpinregapplyDto.setSqysbm(SecurityUtils.getUsername());
                        outpinregapplyDto.setSqysbm("00029");
                        outpinregapplyDto.setMzksbm("0101");
                        outpinregapplyDto.setCzybm("00029");
                        outpinregapplyDto.setSfjz("0");