java110
2023-07-14 803afe68037faac34b7b120505ffeed434580318
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;
    }
}