Commit d5d00529 by 吕明尚

订单详情添加房间图片

parent b094b99a
...@@ -154,6 +154,12 @@ public class SOrder extends BaseEntity ...@@ -154,6 +154,12 @@ public class SOrder extends BaseEntity
@TableField(exist = false) @TableField(exist = false)
private String roomName; private String roomName;
//房间图片
@TableField(exist = false)
private String roomImages;
//是否可以申请退款 //是否可以申请退款
@TableField(exist = false) @TableField(exist = false)
private Boolean isRefund; private Boolean isRefund;
......
...@@ -158,6 +158,10 @@ public class SOrderVo ...@@ -158,6 +158,10 @@ public class SOrderVo
@ApiModelProperty(value = "房间名称") @ApiModelProperty(value = "房间名称")
private String roomName; private String roomName;
//房间图片
@ApiModelProperty(value = "房间图片")
private String roomImages;
/** 门店地址 */ /** 门店地址 */
@ApiModelProperty(value = "门店地址") @ApiModelProperty(value = "门店地址")
private String address; private String address;
......
...@@ -543,6 +543,7 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme ...@@ -543,6 +543,7 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
} }
if (ObjectUtil.isNotEmpty(one.getRoomId())) { if (ObjectUtil.isNotEmpty(one.getRoomId())) {
SRoom sRoom = roomService.getById(one.getRoomId()); SRoom sRoom = roomService.getById(one.getRoomId());
one.setRoomImages(sRoom.getImages());
one.setRoomName(sRoom.getName()); one.setRoomName(sRoom.getName());
} }
return one; return one;
...@@ -557,6 +558,7 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme ...@@ -557,6 +558,7 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
SRoom room = roomService.getById(vo.getRoomId()); SRoom room = roomService.getById(vo.getRoomId());
vo.setStoreName(store.getName()); vo.setStoreName(store.getName());
vo.setAddress(store.getAddress()); vo.setAddress(store.getAddress());
vo.setRoomImages(room.getImages());
vo.setRoomName(room.getName()); vo.setRoomName(room.getName());
vo.setLongitude(store.getLongitude()); vo.setLongitude(store.getLongitude());
vo.setLatitude(store.getLatitude()); vo.setLatitude(store.getLatitude());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment