订单承租人个出租方数据隔离

This commit is contained in:
liang.chao 2024-12-02 09:02:59 +08:00
parent 7f3b989b56
commit c0e662807e
2 changed files with 3 additions and 3 deletions

View File

@ -97,7 +97,7 @@ public class OrderInfoDto {
private String ids;
@ApiModelProperty(value = "0:出租方 1:承租方")
private String flag;
@ApiModelProperty(value = "true:出租方 false:承租方")
private boolean flag;
}

View File

@ -71,7 +71,7 @@ public class OrderServiceImpl implements OrderService {
@Override
public List<OrderInfoDto> getOrderDetails(OrderInfoDto orderInfoDto) throws Exception {
if (orderInfoDto.getFlag() != null && "0".equals(orderInfoDto.getFlag())){
if (orderInfoDto.isFlag()){
orderInfoDto.setSellerId(SecurityUtils.getLoginUser().getUserid().toString());
}else {
orderInfoDto.setBuyerId(SecurityUtils.getLoginUser().getUserid().toString());