| | |
| | | import org.springblade.core.secure.utils.AuthUtil; |
| | | import org.springblade.core.tool.utils.BeanUtil; |
| | | import org.springblade.modules.house.entity.HouseholdEntity; |
| | | import org.springblade.modules.house.vo.HouseholdOtherVO; |
| | | import org.springblade.modules.house.vo.HouseholdVO; |
| | | import org.springblade.modules.house.mapper.HouseholdMapper; |
| | | import org.springblade.modules.house.service.IHouseholdService; |
| | |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.Objects; |
| | | import java.util.*; |
| | | |
| | | /** |
| | | * 住户 服务实现类 |
| | |
| | | public Integer statistics(Long userId) { |
| | | return baseMapper.statistics(userId); |
| | | } |
| | | |
| | | /** |
| | | * 住户对应物业,网格,公安负责人查询 |
| | | * @param household |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Object getHouseholdOtherInfo(HouseholdVO household) { |
| | | Map<String, Object> map = new HashMap<>(3); |
| | | // 查询物业 |
| | | HouseholdOtherVO propertyOtherVO = baseMapper.getProperty(household); |
| | | map.put("wy",propertyOtherVO); |
| | | // 查询网格 |
| | | HouseholdOtherVO gridOtherVO = baseMapper.getGrid(household); |
| | | map.put("wg",gridOtherVO); |
| | | // 查询公安信息 |
| | | HouseholdOtherVO securityOtherVO = baseMapper.getSecurity(household); |
| | | map.put("ga",securityOtherVO); |
| | | // 返回 |
| | | return map; |
| | | } |
| | | } |