| | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | |
| | | import cn.hutool.core.bean.BeanUtil; |
| | | import cn.hutool.core.date.DateUnit; |
| | | import cn.hutool.core.date.DateUtil; |
| | | import cn.hutool.extra.pinyin.PinyinUtil; |
| | | import cn.hutool.json.JSONArray; |
| | |
| | | // return AjaxResult.error("身份证号码错误"); |
| | | // } |
| | | // } |
| | | Date dates = new Date(); |
| | | final String date = DateUtil.format(dates, "yyyy-MM-dd HH:mm:ss"); |
| | | // Date dates = new Date(); |
| | | // final String date = DateUtil.format(dates, "yyyy-MM-dd HH:mm:ss"); |
| | | |
| | | final String getInfoFromSqlData = sysConfigService.selectConfigByKey("getInfoFromSqlData"); |
| | | if ("Y".equals(getInfoFromSqlData)) { |
| | |
| | | // if (DateUtil.endOfDay(new Date()).before(tjReservation.getReservationTime())) { |
| | | // return AjaxResult.error("未到预约时间"); |
| | | // } |
| | | if (null != tjReservation.getReservationTime() && DateUtil.endOfDay(tjReservation.getReservationTime()).before(new Date())) { |
| | | if (null != tjReservation.getReservationTime() && DateUtil.endOfDay(DateUtil.offsetDay(tjReservation.getReservationTime(), |
| | | tjReservation.getYxts())).before(new Date())) { |
| | | tjReservation.setIsExpire(1); |
| | | tjReservationService.updateById(tjReservation); |
| | | return AjaxResult.error("对不起您的预约已超时请重新预约"); |
| | |
| | | tjCustomer1.setAgeUnit(tjReservation.getAgeUnit()); |
| | | tjCustomer1.setCareer(tjReservation.getCareer()); |
| | | tjCustomer1.setPym(PinyinUtil.getFirstLetter(tjReservation.getName(),"")); |
| | | if (null != key && key.equals("Y")) |
| | | /* if (null != key && key.equals("Y")) |
| | | { |
| | | AjaxResult result = controller.Outpincreateapply(tjCustomer1); |
| | | String result1 = getAjaxResult(result); |
| | |
| | | if (null != resultData && resultData.size() > 0) { |
| | | String pationid = resultData.get("PationId").toString(); |
| | | if (null != pationid) { |
| | | tjCustomer1.setPationId(pationid); |
| | | // tjCustomer1.setPationId(pationid); |
| | | tjCustomerService.updateById(tjCustomer1); |
| | | //保存注册入参出参 |
| | | resultData.put("cardId",pationid); |
| | |
| | | } |
| | | }else { |
| | | tjCustomerService.updateById(tjCustomer1); |
| | | } |
| | | }*/ |
| | | tjCustomer1.setTeamNo(tjReservation.getTeamNo()); |
| | | tjCustomer1.setCompId(tjReservation.getCompanyId()); |
| | | tjCustomer1.setReservationId(tjReservation.getId()); |
| | |
| | | } |
| | | |
| | | } |
| | | |
| | | if(!tjCustomerServiceOne.getAge().equals(String.valueOf(DateUtil.ageOfNow(tjCustomerServiceOne.getCusBrithday())))){ |
| | | tjCustomerServiceOne.setAge(String.valueOf(DateUtil.ageOfNow(tjCustomerServiceOne.getCusBrithday()))); |
| | | tjCustomerService.updateById(tjCustomerServiceOne); |
| | | } |
| | | return AjaxResult.success(tjCustomerServiceOne); |
| | | |
| | | } |
| | |
| | | String pationid = resultData.get("PationId").toString(); |
| | | if (null != pationid) { |
| | | tjCustomer.setPationId(pationid); |
| | | tjCustomerService.updateById(tjCustomer); |
| | | // tjCustomerService.updateById(tjCustomer); |
| | | //保存注册入参出参 |
| | | resultData.put("cardId",pationid); |
| | | JSONObject object4 = JSONUtil.parseObj(resultData); |
| | |
| | | if (tjCustomerService.updateById(tjCustomer)) { |
| | | String config = sysConfigService.selectConfigByKey("sfkqdyhis"); |
| | | if (null != config && config.equals("Y")) { |
| | | tjCustomer.setPationId(customer.getPationId()); |
| | | AjaxResult result = controller.Outpincreateapply(tjCustomer); |
| | | String result1 = getAjaxResult(result); |
| | | JSONObject object = getJSONObject(result1); |