mitao
2025-02-21 31573d6180d15ef65ed0df9c2732495f40b12663
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
package com.panzhihua.service_community.dao;
 
import java.util.List;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.panzhihua.common.model.dtos.community.social.PageSocialOrgHatchDTO;
import com.panzhihua.common.model.vos.community.StatisticsCommVO;
import com.panzhihua.common.model.vos.community.bigscreen.BigScreenFiveAssociationsStatisticsInfo;
import com.panzhihua.common.model.vos.community.bigscreen.BigScreenHatchStatisticsInfo;
import com.panzhihua.common.model.vos.community.social.SocialOrgHatchVO;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Mapper;
import com.panzhihua.service_community.entity.ComActSocialOrgHatch;
 
/**
 * 社会组织孵化表(ComActSocialOrgHatch)表数据库访问层
 *
 * @author makejava
 * @since 2022-04-18 14:09:53
 */
@Mapper
public interface ComActSocialOrgHatchDAO extends BaseMapper<ComActSocialOrgHatch> {
 
    /**
     * 批量新增数据(MyBatis原生foreach方法)
     *
     * @param entities
     *            List<ComActSocialOrgHatch> 实例对象列表
     * @return 影响行数
     */
    int insertBatch(@Param("entities") List<ComActSocialOrgHatch> entities);
 
    /**
     * 批量新增或按主键更新数据(MyBatis原生foreach方法)
     *
     * @param entities
     *            List<ComActSocialOrgHatch> 实例对象列表
     * @return 影响行数
     * @throws org.springframework.jdbc.BadSqlGrammarException
     *             入参是空List的时候会抛SQL语句错误的异常,请自行校验入参
     */
    int insertOrUpdateBatch(@Param("entities") List<ComActSocialOrgHatch> entities);
 
    /**
     * 分页查询孵化数据
     * @param page
     * @param pageHatchDTO
     * @return
     */
    IPage<SocialOrgHatchVO> pageOrgHatch(@Param("page") Page page, @Param("pageHatchDTO") PageSocialOrgHatchDTO pageHatchDTO);
 
    /**
     * 查看孵化数据详情
     * @param id
     * @return
     */
    SocialOrgHatchVO detailOrgHatch(@Param("id") Long id);
 
    /**
     * 获取孵化中心基础统计数据
     * @param communityId
     * @param streetId
     * @return
     */
    BigScreenHatchStatisticsInfo getHatchBaseData(@Param("communityId") Long communityId, @Param("streetId") Long streetId);
 
    /**
     * 孵化进程占比圆形图数据
     * @param streetId
     * @return
     */
    List<StatisticsCommVO> getHatchScheduleCircleData(@Param("streetId") Long streetId);
 
    /**
     * 孵化状态占比柱形数据
     * @param streetId
     * @return
     */
    List<StatisticsCommVO> getHatchStatusColumnData(@Param("streetId") Long streetId);
 
    /**
     * 街道组织占比柱形数据
     * @param streetId
     * @return
     */
    List<StatisticsCommVO> getStreetOrgColumnData(@Param("streetId") Long streetId);
 
    /**
     * 根据街道名称获取街道组织分类统计
     * @param streetName
     * @return
     */
    List<StatisticsCommVO> getStreetOrgChildData(@Param("streetName") String streetName);
}