| | |
| | | import com.github.pagehelper.PageHelper; |
| | | import com.github.pagehelper.PageInfo; |
| | | import com.xzx.gc.entity.*; |
| | | import com.xzx.gc.shop.dto.AddGoodsOrderDto; |
| | | import com.xzx.gc.shop.dto.DeliverGoodsDto; |
| | | import com.xzx.gc.shop.dto.InsureOrderDto; |
| | | import com.xzx.gc.shop.dto.QueryOrderListDto; |
| | | import com.xzx.gc.shop.dto.*; |
| | | import com.xzx.gc.shop.mapper.*; |
| | | import com.xzx.gc.shop.vo.ExpressInfoVo; |
| | | import com.xzx.gc.shop.vo.QueryOrderListVo; |
| | |
| | | AddressInfo addressInfo = addressInfoMapper.selectByPrimaryKey(addGoodsOrderDto.getAddressId()); |
| | | AccountInfo accountInfo = accountInfoMapper.selectAccountInfoByUserId(addGoodsOrderDto.getUserId()); |
| | | } |
| | | |
| | | public Long cancelOrder(CancelOrderDto model) { |
| | | /** |
| | | * todo 只更新了订单状态,后续操作待增加 |
| | | */ |
| | | ScoreOrder scoreOrder = new ScoreOrder(); |
| | | scoreOrder.setId(model.getId()); |
| | | scoreOrder.setStatus(ScoreOrder.STATUS_CANCEL); |
| | | scoreOrderMapper.updateByPrimaryKeySelective(scoreOrder); |
| | | return scoreOrder.getId(); |
| | | } |
| | | } |