101captain
2022-07-11 54465e6645552b768fff7645a4bc38c3d02c9d9a
springcloud_k8s_panzhihuazhihuishequ/service_user/src/main/java/com/panzhihua/service_user/dao/UserDao.java
@@ -5,9 +5,9 @@
import java.util.Map;
import com.panzhihua.common.model.vos.community.*;
import com.panzhihua.common.model.vos.community.acid.ComActAcidMemberVO;
import com.panzhihua.common.model.vos.user.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.*;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;
@@ -28,10 +28,6 @@
import com.panzhihua.common.model.vos.community.screen.event.EventGridMemberVO;
import com.panzhihua.common.model.vos.grid.GridMemberVO;
import com.panzhihua.common.model.vos.partybuilding.ComPbServiceTeamWishVO;
import com.panzhihua.common.model.vos.user.AdministratorsUserVO;
import com.panzhihua.common.model.vos.user.SysUserNoticeVO;
import com.panzhihua.common.model.vos.user.SysUserVO;
import com.panzhihua.common.model.vos.user.UpdateUserArchivesVO;
import com.panzhihua.service_user.model.dos.SysUserDO;
import com.panzhihua.service_user.model.dtos.DataKanbanDTO;
@@ -68,9 +64,9 @@
    IndexDataKanbanVO selectIndexDataKanban(@Param("areaCode") String areaCode);
    List<DataKanbanDTO> selectCommunityUserOrder(@Param("areaCode")String areaCode);
    IPage<DataKanbanDTO> selectCommunityUserOrder(Page page, @Param("areaCode") String areaCode);
    List<DataKanbanDTO> selectCommunityUserOrderMonth(@Param("areaCode")String areaCode);
    IPage<DataKanbanDTO> selectCommunityUserOrderMonth(Page page, @Param("areaCode") String areaCode);
    DataKanbanDTO selectCommunityActiveUserOrder(Date date1);
@@ -242,4 +238,74 @@
     * @return
     */
    int countFmsMember(@Param("phone") String phone, @Param("communityId") Long userCommunityId);
    /**
     * 查看是否网格员
     * @param phone
     * @param userCommunityId
     * @return
     */
    int countEasyPhotoMember(@Param("phone") String phone,@Param("communityId") Long userCommunityId);
    /**
     * 查询防疫工作人员信息
     * @param phone
     * @return
     */
    ComActAcidMemberVO selectAcidMemberByPhone(@Param("phone") String phone);
    /**
     * 查询单位管理员
     * @param phone
     * @return
     */
    Integer selectOrgAdmin(@Param("phone") String phone);
    /**
     * 查询报道单位id
     * @param phone
     * @return
     */
    Long selectCheckUnitId(@Param("phone") String phone);
    /**
     * 根据社区名称查询区县社区联动关系
     * @param relationName
     * @return
     */
    List<ComAreaTownCommunityVO> selectAreaTownCommunity(@Param("relationName") String relationName);
    /**
     * 根据街道id查询区域名称
     * @param streetId
     * @return
     */
    String selectAreaCodeByStreetId(Long streetId);
    /**
     * 看板用户统计:用户占比统计
     * */
    List<UserProportion> userAnalysis(@Param("type") Integer type,@Param("range") String range,@Param("streetId") Long streetId);
    /**
     * 统计区域实名用户数
     * */
    List<RealUser> realUserCount(@Param("type") Integer type,@Param("range") String range,@Param("streetId") Long streetId);
    /**
     * 统计该街道内的所有用户数
     * */
    Integer streetUserCount(@Param("id") Long id);
    /**
     * 街道用户统计
     * */
    IndexDataKanbanVO dataKanBanStreet(Long streetId);
    /**
     * 获取当天的新增和日活
     * */
    Map<String,Long> getDailyAddAndActive(@Param("date") Date date,@Param("id") Long streetId);
}