| | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Controller; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.ResponseBody; |
| | | |
| | |
| | | * @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); |
| | | List<SysOrderItem> items = orderItemService.findByModel(item); |
| | | order.setItems(items); |
| | | WebUtil.getRequest().setAttribute("order", order); |
| | | |
| | | return "admin/hive/beautySalon/bj-form"; |
| | | } |
| | |
| | | */ |
| | | @RequestMapping(value = "/bj") |
| | | public @ResponseBody |
| | | AjaxResult bj(SysOrder order) throws GlobleException { |
| | | AjaxResult bj(@RequestBody SysOrder order) throws GlobleException { |
| | | |
| | | orderService.updateAfterMoney(order); |
| | | return new AjaxResult(AjaxResult.STATUS_SUCCESS, "补交成功"); |