增加电梯表
This commit is contained in:
@@ -26,7 +26,7 @@ import java.util.Date;
|
||||
public class TbFloorVo implements Serializable {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
private static final long serialVersionUID = -1L;
|
||||
|
||||
/**
|
||||
*
|
||||
|
@@ -0,0 +1,39 @@
|
||||
package org.dromara.property.dubbo;
|
||||
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.apache.dubbo.config.annotation.DubboService;
|
||||
import org.dromara.common.core.utils.MapstructUtils;
|
||||
import org.dromara.property.api.RemoteUnitService;
|
||||
import org.dromara.property.api.domain.vo.RemoteUnitVo;
|
||||
import org.dromara.property.domain.vo.TbUnitVo;
|
||||
import org.dromara.property.service.ITbUnitService;
|
||||
|
||||
/**
|
||||
* 对外提供的远程服务调用
|
||||
*
|
||||
* @author lxj
|
||||
*/
|
||||
@DubboService
|
||||
@RequiredArgsConstructor
|
||||
public class RemoteUnitServiceImpl implements RemoteUnitService {
|
||||
|
||||
private final ITbUnitService tbUnitService;
|
||||
|
||||
|
||||
@Override
|
||||
public RemoteUnitVo queryUnitById(Long id) {
|
||||
TbUnitVo tbUnitVo = tbUnitService.queryById(id);
|
||||
if(tbUnitVo == null) {
|
||||
return null;
|
||||
}
|
||||
RemoteUnitVo remoteUnitVo = new RemoteUnitVo();
|
||||
remoteUnitVo.setId(tbUnitVo.getId());
|
||||
remoteUnitVo.setCommunityId(tbUnitVo.getCommunityId());
|
||||
remoteUnitVo.setBuildingId(tbUnitVo.getBuildingId());
|
||||
remoteUnitVo.setUnitName(tbUnitVo.getUnitName());
|
||||
remoteUnitVo.setFloorCount(tbUnitVo.getFloorCount());
|
||||
remoteUnitVo.setHouseholdCount(tbUnitVo.getHouseholdCount());
|
||||
remoteUnitVo.setStairCount(tbUnitVo.getStairCount());
|
||||
return remoteUnitVo;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user