fix (farm): 首页
- 首页加载内容拆分 - 新增获取地块信息接口
This commit is contained in:
@@ -163,7 +163,11 @@ public class PlotInfoServiceImpl implements PlotInfoService {
|
||||
|
||||
@Override
|
||||
public PlotInfoDO getPlotInfo(String id) {
|
||||
PlotInfoDO plotInfoDO = plotInfoMapper.selectById(id);
|
||||
LambdaQueryWrapperX<PlotInfoDO> wrapper = new LambdaQueryWrapperX<>();
|
||||
wrapper.eq(PlotInfoDO::getId, id)
|
||||
.or()
|
||||
.eq(PlotInfoDO::getPlotId, id);
|
||||
PlotInfoDO plotInfoDO = plotInfoMapper.selectOne(wrapper);
|
||||
BaseInfoDO baseInfoDO = baseInfoMapper.selectById(plotInfoDO.getBaseId());
|
||||
plotInfoDO.setBaseName(baseInfoDO.getName());
|
||||
return plotInfoDO;
|
||||
|
||||
Reference in New Issue
Block a user