| | |
| | | * @author jyy |
| | | */ |
| | | @RequestMapping(value = "/toBj") |
| | | public String toBj(Long id, HttpServletRequest request) { |
| | | public String toBj(Long id) { |
| | | // 根据id查到对应的订单信息 |
| | | SysOrder order = orderService.findById(id); |
| | | WebUtil.getRequest().setAttribute("order", order); |
| | | |
| | | SysOrderItem item = new SysOrderItem(); |
| | | item.setOrderId(order.getId()); |
| | | item.setStatus(Dictionary.ORDER_STATU_QK); |
| | | order.setItems(orderItemService.findByModel(item)); |
| | | |
| | | |
| | | MoneyCardUse moneyCardUse = new MoneyCardUse(); |
| | | moneyCardUse.setVipId(order.getVipId()); |
| | | moneyCardUse.setStatus(Dictionary.MONEYCARD_STATUS_YX); |
| | | List<MoneyCardUse> cards = cardUseService.findByModel(moneyCardUse); |
| | | |
| | | WebUtil.getRequest().setAttribute("cards", cards); |
| | | |
| | | return "admin/hive/beautySalon/bj-form"; |
| | | } |
| | |
| | | if (newDate != null && newDate.before(today)) { |
| | | return new AjaxResult(AjaxResult.STATUS_FAIL, "有效期要大于当前日期"); |
| | | } |
| | | if (newDate == null && failTime.before(today)) { |
| | | if (newDate == null && (failTime == null || failTime.before(today))) { |
| | | //如果是已过期界面会提醒重新设置有效期 |
| | | return new AjaxResult(AjaxResult.STATUS_SUCCESS, "已过期"); |
| | | } |