| | |
| | | import com.xcong.excoin.common.LoginUserUtils; |
| | | import com.xcong.excoin.common.response.Result; |
| | | import com.xcong.excoin.modules.member.entity.MemberEntity; |
| | | import com.xcong.excoin.modules.otc.dao.OtcSettingDao; |
| | | import com.xcong.excoin.modules.otc.dto.EntrustOrderAddDto; |
| | | import com.xcong.excoin.modules.otc.dto.EntrustOrderListDto; |
| | | import com.xcong.excoin.modules.otc.entity.OtcEntrustOrder; |
| | | import com.xcong.excoin.modules.otc.entity.OtcSetting; |
| | | import com.xcong.excoin.modules.otc.service.OtcEntrustOrderService; |
| | | import com.xcong.excoin.modules.otc.vo.EntrustListInfoVo; |
| | | import com.xcong.excoin.modules.otc.vo.EntrustListVo; |
| | |
| | | public class OtcEntrustOrderController { |
| | | |
| | | private final OtcEntrustOrderService otcEntrustOrderService; |
| | | private final OtcSettingDao otcSettingDao; |
| | | |
| | | @ApiOperation(value = "添加otc委托单", notes = "添加otc委托单") |
| | | @PostMapping(value = "/addEntrustOrder") |
| | | public Result addEntrustOrder(@RequestBody EntrustOrderAddDto addDto) { |
| | | otcEntrustOrderService.add(addDto); |
| | | return Result.ok("添加成功"); |
| | | } |
| | | |
| | | @ApiOperation(value = "获取市商条件") |
| | | @ApiResponses({ |
| | | @ApiResponse(code = 200, message = "success", response = OtcSetting.class) |
| | | }) |
| | | @GetMapping(value = "/findCondition") |
| | | public Result findCondition() { |
| | | OtcSetting setting = otcSettingDao.selectById(1L); |
| | | return Result.ok(setting); |
| | | } |
| | | |
| | | @ApiOperation(value = "编辑otc委托单", notes = "编辑otc委托单") |
| | |
| | | @ApiResponses({ |
| | | @ApiResponse(code = 200, message = "success", response = EntrustListInfoVo.class) |
| | | }) |
| | | @GetMapping(value = "/findOwnEntrustOrderList") |
| | | public Result findOwnEntrustOrderList() { |
| | | return Result.ok(otcEntrustOrderService.findOwnEntrustOrder()); |
| | | @PostMapping(value = "/findOwnEntrustOrderList") |
| | | public Result findOwnEntrustOrderList(@RequestBody EntrustOrderListDto orderListDto) { |
| | | return Result.ok(otcEntrustOrderService.findOwnEntrustOrder(orderListDto)); |
| | | } |
| | | |
| | | @ApiOperation(value = "获取我的委托单详情") |