| | |
| | | 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"); |
| | |
| | | tjCustomer.setDiscount(tjReservation.getDiscount()); |
| | | tjCustomer.setGroupingId(tjReservation.getGroupingId()); |
| | | return success(tjCustomer); |
| | | }else { |
| | | } else { |
| | | return AjaxResult.success("暂无预约信息", tjCustomerServiceOne); |
| | | } |
| | | } |
| | |
| | | // } |
| | | 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); |
| | |
| | | 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"); |
| | |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | }*/ |
| | | } |
| | | |
| | | } |
| | | if (tjCustomerService.save(tjCustomer)) { |