| | |
| | | } |
| | | } |
| | | } else if(null != s && s.equalsIgnoreCase("Y")) { |
| | | TjCustomer requestCommonHisApi = isRequestCommonHisApi(tjCustomer); |
| | | if (null !=requestCommonHisApi){ |
| | | tjCustomerService.save(requestCommonHisApi); |
| | | tjCustomer = isRequestCommonHisApi(tjCustomer); |
| | | } |
| | | }else { |
| | | if(null != tjCustomer){ |
| | | tjCustomerService.save(tjCustomer); |
| | | } |
| | | tjCustomer.setTeamNo(tjReservation.getTeamNo()); |
| | | tjCustomer.setCompId(tjReservation.getCompanyId()); |
| | | tjCustomer.setReservationId(tjReservation.getId()); |
| | | tjCustomer.setDiscount(tjReservation.getDiscount()); |
| | | tjCustomer.setGroupingId(tjReservation.getGroupingId()); |
| | | } |
| | | return success(tjCustomer); |
| | | } |
| | | |
| | |
| | | if (null == tjCustomerServiceOne) { |
| | | return AjaxResult.error("该人员信息不存在请先进行登记!!!"); |
| | | } |
| | | // if (null != key && key.equals("Y")) { |
| | | String cardId = tjCustomerServiceOne.getCardId(); |
| | | if (null != cardId && !cardId.equals("0")) { |
| | | // int i = tjOrderService.selectTjOrderByCardId(cardId); |
| | | // if (i > 0) { |
| | | // return AjaxResult.error("不可重复签到"); |
| | | // } |
| | | } |
| | | |
| | | // } |
| | | if(!tjCustomerServiceOne.getAge().equals(String.valueOf(DateUtil.ageOfNow(tjCustomerServiceOne.getCusBrithday())))){ |
| | | tjCustomerServiceOne.setAge(String.valueOf(DateUtil.ageOfNow(tjCustomerServiceOne.getCusBrithday()))); |
| | | tjCustomerService.updateById(tjCustomerServiceOne); |