| | |
| | | package com.xcong.excoin.modules.otc.controller; |
| | | |
| | | import com.xcong.excoin.common.entity.FebsConstant; |
| | | import com.xcong.excoin.common.utils.FebsUtil; |
| | | import com.xcong.excoin.modules.member.vo.MemberAuthenticationVo; |
| | | import com.xcong.excoin.modules.otc.entity.OtcEntrustOrderEntity; |
| | | import com.xcong.excoin.modules.otc.entity.OtcMarketBussinessEntity; |
| | | import com.xcong.excoin.modules.otc.entity.OtcOrderEntity; |
| | | import com.xcong.excoin.modules.otc.entity.OtcSettingEntity; |
| | | import com.xcong.excoin.modules.otc.service.OtcService; |
| | | import com.xcong.excoin.modules.otc.vo.OtcAppealInfoVo; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.apache.shiro.authz.annotation.RequiresPermissions; |
| | | import org.springframework.stereotype.Controller; |
| | | import org.springframework.ui.Model; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | |
| | | @Controller("otcView") |
| | | @RequestMapping(FebsConstant.VIEW_PREFIX + "modules/otc") |
| | | @RequiredArgsConstructor |
| | | public class ViewController { |
| | | |
| | | private final OtcService otcService; |
| | | |
| | | /** |
| | | * 获取商户审核列表 |
| | | */ |
| | | @GetMapping("otcShopList") |
| | | @RequiresPermissions("otcShopList:view") |
| | | public String otcShopList() { |
| | | return FebsUtil.view("modules/otc/otcShopList"); |
| | | } |
| | | |
| | | /** |
| | | * 获取委托单列表 |
| | | */ |
| | | @GetMapping("otcEntrustList") |
| | | @RequiresPermissions("otcEntrustList:view") |
| | | public String otcEntrustList() { |
| | | return FebsUtil.view("modules/otc/otcEntrustList"); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * 获取委托单列表--详情 |
| | | */ |
| | | @GetMapping("otcEntrustListUpdate/{id}") |
| | | @RequiresPermissions("otcEntrustListUpdate:update") |
| | | public String otcEntrustListUpdate(@PathVariable long id, Model model) { |
| | | OtcEntrustOrderEntity data = otcService.otcEntrustListUpdate(id); |
| | | model.addAttribute("member", data); |
| | | return FebsUtil.view("modules/otc/otcEntrustListUpdate"); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 获取订单列表 |
| | | */ |
| | | @GetMapping("otcOrderList") |
| | | @RequiresPermissions("otcOrderList:view") |
| | | public String otcOrderList() { |
| | | return FebsUtil.view("modules/otc/otcOrderList"); |
| | | } |
| | | |
| | | /** |
| | | * 获取订单列表--详情 |
| | | */ |
| | | @GetMapping("otcOrderInfo/{id}") |
| | | @RequiresPermissions("otcOrderInfo:update") |
| | | public String otcOrderInfo(@PathVariable long id, Model model) { |
| | | OtcOrderEntity data = otcService.otcOrderInfo(id); |
| | | model.addAttribute("member", data); |
| | | return FebsUtil.view("modules/otc/otcOrderInfo"); |
| | | } |
| | | |
| | | /** |
| | | * 获取申诉列表 |
| | | */ |
| | | @GetMapping("otcAppealList") |
| | | @RequiresPermissions("otcAppealList:view") |
| | | public String otcAppealList() { |
| | | return FebsUtil.view("modules/otc/otcAppealList"); |
| | | } |
| | | |
| | | /** |
| | | * 获取申诉列表--详情 |
| | | */ |
| | | @GetMapping("otcAppealInfo/{id}") |
| | | @RequiresPermissions("otcAppealInfo:update") |
| | | public String otcAppealInfo(@PathVariable long id, Model model) { |
| | | OtcAppealInfoVo data = otcService.otcAppealInfo(id); |
| | | model.addAttribute("member", data); |
| | | return FebsUtil.view("modules/otc/otcAppealInfo"); |
| | | } |
| | | |
| | | /** |
| | | * 商户回款 |
| | | */ |
| | | @GetMapping("otcHuiKuan/{id}") |
| | | @RequiresPermissions("otcHuiKuan:update") |
| | | public String otcHuiKuan(@PathVariable long id, Model model) { |
| | | OtcMarketBussinessEntity data = otcService.otcHuiKuan(id); |
| | | model.addAttribute("member", data); |
| | | return FebsUtil.view("modules/otc/otcHuiKuan"); |
| | | } |
| | | |
| | | /** |
| | | * 获取OTC设置 |
| | | */ |
| | | @GetMapping("otcSettingList") |
| | | @RequiresPermissions("otcSettingList:view") |
| | | public String otcSettingList() { |
| | | return FebsUtil.view("modules/otc/otcSettingList"); |
| | | } |
| | | |
| | | /** |
| | | * OTC设置--详情 |
| | | */ |
| | | @GetMapping("otcSettingUpdate/{id}") |
| | | @RequiresPermissions("otcSettingUpdate:update") |
| | | public String otcSettingUpdate(@PathVariable long id, Model model) { |
| | | OtcSettingEntity data = otcService.otcSettingUpdate(id); |
| | | model.addAttribute("member", data); |
| | | return FebsUtil.view("modules/otc/otcSettingUpdate"); |
| | | } |
| | | |
| | | |
| | | |
| | | } |