From d71460e89b4e556aa9f396100004fcdabe98a0ff Mon Sep 17 00:00:00 2001 From: zjh <zjh@888> Date: 星期五, 14 六月 2024 21:30:39 +0800 Subject: [PATCH] zjh 本地 2024/06/14 --2 --- ltkj-admin/src/main/java/com/ltkj/web/controller/system/TjCustomerController.java | 19 +++++++++++-------- 1 files changed, 11 insertions(+), 8 deletions(-) diff --git a/ltkj-admin/src/main/java/com/ltkj/web/controller/system/TjCustomerController.java b/ltkj-admin/src/main/java/com/ltkj/web/controller/system/TjCustomerController.java index 1a1cc31..b5132d1 100644 --- a/ltkj-admin/src/main/java/com/ltkj/web/controller/system/TjCustomerController.java +++ b/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)) { -- Gitblit v1.8.0