| | |
| | | @ApiOperation(value = "已付款,请放币") |
| | | @PostMapping(value = "/hasPay/{id}") |
| | | public Result hasPay(@PathVariable("id") Long id) { |
| | | return null; |
| | | otcOrderService.hasPay(id); |
| | | return Result.ok("操作成功"); |
| | | } |
| | | |
| | | @ApiOperation(value = "确认收款") |
| | |
| | | List<OtcOrder> selectOrderListUnFinish(@Param("memberId") Long memberId, @Param("entrustOrderId") Long entrustOrderId); |
| | | |
| | | IPage<OrderListVo> selectOrdderListInPage(@Param("record") OtcOrder order, Page<OrderListVo> page); |
| | | |
| | | int updateOrderStatusByOrderNo(@Param("status") Integer status, @Param("orderNo") String orderNo); |
| | | } |
| | |
| | | void saleOrder(OrderAddDto orderAddDto); |
| | | |
| | | IPage<OrderListVo> findOrderListInPage(OrderListDto orderListDto); |
| | | |
| | | void hasPay(Long id); |
| | | } |
| | |
| | | order.setMemberId(member.getId()); |
| | | return this.baseMapper.selectOrdderListInPage(order, page); |
| | | } |
| | | |
| | | @Override |
| | | public void hasPay(Long id) { |
| | | OtcOrder otcOrder = this.baseMapper.selectById(id); |
| | | |
| | | this.baseMapper.updateOrderStatusByOrderNo(OtcOrder.STATUS_PAY, otcOrder.getOrderNo()); |
| | | } |
| | | } |
| | |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | <update id="updateOrderStatusByOrderNo"> |
| | | update otc_order |
| | | set status=#{status} |
| | | where order_no=#{orderNo} |
| | | </update> |
| | | </mapper> |