Commit d5d00529 by 吕明尚

订单详情添加房间图片

parent b094b99a
......@@ -154,6 +154,12 @@ public class SOrder extends BaseEntity
@TableField(exist = false)
private String roomName;
//房间图片
@TableField(exist = false)
private String roomImages;
//是否可以申请退款
@TableField(exist = false)
private Boolean isRefund;
......
......@@ -158,6 +158,10 @@ public class SOrderVo
@ApiModelProperty(value = "房间名称")
private String roomName;
//房间图片
@ApiModelProperty(value = "房间图片")
private String roomImages;
/** 门店地址 */
@ApiModelProperty(value = "门店地址")
private String address;
......
......@@ -543,6 +543,7 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
}
if (ObjectUtil.isNotEmpty(one.getRoomId())) {
SRoom sRoom = roomService.getById(one.getRoomId());
one.setRoomImages(sRoom.getImages());
one.setRoomName(sRoom.getName());
}
return one;
......@@ -557,6 +558,7 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
SRoom room = roomService.getById(vo.getRoomId());
vo.setStoreName(store.getName());
vo.setAddress(store.getAddress());
vo.setRoomImages(room.getImages());
vo.setRoomName(room.getName());
vo.setLongitude(store.getLongitude());
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