| | |
| | | package com.yeshi.fanli.controller.devops;
|
| | |
|
| | | import org.springframework.stereotype.Controller;
|
| | | import org.springframework.web.bind.annotation.RequestMapping;
|
| | |
|
| | | /**
|
| | | * 运维订单接口
|
| | | * |
| | | * @author Administrator
|
| | | *
|
| | | */
|
| | | @Controller
|
| | | @RequestMapping("devops/order")
|
| | | public class OrderDevOpsController {
|
| | |
|
| | | |
| | | |
| | | |
| | | |
| | | }
|
| | | package com.yeshi.fanli.controller.devops; |
| | | |
| | | import java.io.PrintWriter; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | import org.springframework.stereotype.Controller; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | |
| | | import com.yeshi.fanli.entity.bus.user.HongBaoV2; |
| | | import com.yeshi.fanli.exception.order.TaoBaoWeiQuanException; |
| | | import com.yeshi.fanli.service.inter.order.OrderProcessService; |
| | | |
| | | /** |
| | | * 运维订单接口 |
| | | * |
| | | * @author Administrator |
| | | * |
| | | */ |
| | | @Controller |
| | | @RequestMapping("devops/order") |
| | | public class OrderDevOpsController { |
| | | |
| | | @Resource |
| | | private OrderProcessService orderProcessService; |
| | | |
| | | /** |
| | | * 返利 |
| | | * @param hongBaoId |
| | | * @param out |
| | | */ |
| | | @RequestMapping("fanliByHongBaoId") |
| | | public void fanli(Long hongBaoId, PrintWriter out) { |
| | | try { |
| | | orderProcessService.fanli(new HongBaoV2(hongBaoId)); |
| | | out.print("success"); |
| | | } catch (TaoBaoWeiQuanException e) { |
| | | e.printStackTrace(); |
| | | out.print(e.getMessage()); |
| | | } catch (Exception e) { |
| | | out.print(e.getMessage()); |
| | | } |
| | | } |
| | | |
| | | } |