lidongdong
2023-07-05 c20f18b987d597b04e110665c57c0cc6eb796525
springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/dao/UserDao.java
@@ -1,5 +1,20 @@
package com.panzhihua.service_user.dao;
import java.util.Date;
import java.util.List;
import java.util.Map;
import com.panzhihua.common.model.vos.community.*;
import com.panzhihua.common.model.vos.community.acid.ComActAcidCheckRecordVO;
import com.panzhihua.common.model.vos.community.acid.ComActAcidMemberVO;
import com.panzhihua.common.model.vos.community.acid.ComActAcidRecordVO;
import com.panzhihua.common.model.vos.sanshuo.ComSanshuoExpertVO;
import com.panzhihua.common.model.vos.shop.ComShopUserAddressVO;
import com.panzhihua.common.model.vos.user.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
@@ -24,6 +39,7 @@
import com.panzhihua.common.model.vos.user.*;
import com.panzhihua.service_user.model.dos.SysUserDO;
import com.panzhihua.service_user.model.dtos.DataKanbanDTO;
import com.panzhihua.service_user.model.dtos.UsersStatisticsDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;
@@ -74,6 +90,9 @@
    DataKanbanDTO selectCommunityAddUserOrder(@Param("areaCode") String areaCode, @Param("date1") Date date1);
    List<UsersStatisticsDTO> selectDailyAdd(@Param("createAt") String createAt, @Param("appId") String appId);
    List<UsersStatisticsDTO> selectActive(@Param("lastLoginTime") String lastLoginTime, @Param("appId") String appId);
    IndexDataVO indexDataCommunityBackstage(Long communityId);
@@ -357,12 +376,14 @@
     */
    Map<String, Long> getDailyAddAndActive(@Param("date") Date date, @Param("id") Long streetId, @Param("areaCode") Long areaCode, @Param("appId") String appId);
    Map<String, Long> getDailyAdd(@Param("createAt") String createAt, @Param("id") Long streetId, @Param("areaCode") Long areaCode, @Param("appId") String appId);
    List<UsersStatisticsDTO> getDailyAdd(@Param("createAt") String createAt, @Param("id") Long streetId, @Param("areaCode") Long areaCode, @Param("appId") String appId);
    Map<String, Long> getActive(@Param("lastLoginTime") String lastLoginTime, @Param("id") Long streetId, @Param("areaCode") Long areaCode, @Param("appId") String appId);
    List<UsersStatisticsDTO> getActive(@Param("lastLoginTime") String lastLoginTime, @Param("id") Long streetId, @Param("areaCode") Long areaCode, @Param("appId") String appId);
    List<StreetVOS> selectStreetByAreaCode(Integer code);
    List<StreetVOStr> selectStreetByAreaCodeStr(Integer code);
    List<StreetVO> selectStreetsByAreaCode(Integer code);
@@ -390,4 +411,52 @@
    List<CommunityVO> selectCommunityByStreetName(String name);
    StreetVOS selectStreetByName(String name);
    /**
     * 是否为专家
     */
    ComSanshuoExpertVO isExpert(String phone);
    /**
     * 当前账号是否为专家后台账号
     */
    int isIndustryCenterAccount(String account);
    /**
     * 当前账号是否为专家后台账号
     */
    int isExpertAccount(String account);
    /**
     * 查询两个appid的用户做更新
     *
     * @param userId
     * @return
     */
    List<SysUserDO> selectByUserId(@Param("userId") Long userId);
    /**
     * 是否为党员
     */
    int isDpcMember(@Param("phone") String phone, @Param("name") String name);
    /**
     * 是否为物业公司后台账号
     */
    Long isPropertyAccount(String phone);
    String getCommunityAppId(Long communityId);
    /**
     * 判读是否为自提点账号
     *
     * @param phone
     * @return
     */
    int checkPoint(String phone);
    ComShopUserAddressVO selectDefaultAddressVO(@Param("userId") String userId);
    Long selectStoreIdIdByUserId(@Param("userId")  Long userId);
}