From 4701e6cd5f7779a2da8215503570bcb0aa0b61ec Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: 星期日, 21 一月 2024 18:35:47 +0800
Subject: [PATCH] 开发完成小区信息同步
---
service-user/src/main/java/com/java110/user/smo/impl/RoleCommunityV1InnerServiceSMOImpl.java | 24 ++++++++++++++++++++----
1 files changed, 20 insertions(+), 4 deletions(-)
diff --git a/service-user/src/main/java/com/java110/user/smo/impl/RoleCommunityV1InnerServiceSMOImpl.java b/service-user/src/main/java/com/java110/user/smo/impl/RoleCommunityV1InnerServiceSMOImpl.java
index e0d95bc..0e22ccb 100644
--- a/service-user/src/main/java/com/java110/user/smo/impl/RoleCommunityV1InnerServiceSMOImpl.java
+++ b/service-user/src/main/java/com/java110/user/smo/impl/RoleCommunityV1InnerServiceSMOImpl.java
@@ -18,17 +18,15 @@
import com.java110.user.dao.IRoleCommunityV1ServiceDao;
import com.java110.intf.user.IRoleCommunityV1InnerServiceSMO;
-import com.java110.dto.roleCommunity.RoleCommunityDto;
-import com.java110.po.roleCommunity.RoleCommunityPo;
+import com.java110.dto.privilege.RoleCommunityDto;
+import com.java110.po.privilege.RoleCommunityPo;
import com.java110.utils.util.BeanConvertUtil;
import com.java110.core.base.smo.BaseServiceSMO;
-import com.java110.dto.user.UserDto;
import com.java110.dto.PageDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
-import java.util.ArrayList;
import java.util.List;
/**
@@ -86,4 +84,22 @@
public int queryRoleCommunitysCount(@RequestBody RoleCommunityDto roleCommunityDto) {
return roleCommunityV1ServiceDaoImpl.queryRoleCommunitysCount(BeanConvertUtil.beanCovertMap(roleCommunityDto)); }
+ @Override
+ public int queryRoleCommunitysNameCount(@RequestBody RoleCommunityDto roleCommunityDto) {
+ return roleCommunityV1ServiceDaoImpl.queryRoleCommunitysNameCount(BeanConvertUtil.beanCovertMap(roleCommunityDto)); }
+
+
+ @Override
+ public List<RoleCommunityDto> queryRoleCommunitysName(@RequestBody RoleCommunityDto roleCommunityDto) {
+ int page = roleCommunityDto.getPage();
+
+ if (page != PageDto.DEFAULT_PAGE) {
+ roleCommunityDto.setPage((page - 1) * roleCommunityDto.getRow());
+ }
+
+ List<RoleCommunityDto> roleCommunitys = BeanConvertUtil.covertBeanList(roleCommunityV1ServiceDaoImpl.queryRoleCommunitysName(BeanConvertUtil.beanCovertMap(roleCommunityDto)), RoleCommunityDto.class);
+
+ return roleCommunitys;
+ }
+
}
--
Gitblit v1.8.0