linwe
2024-08-09 8b7258c9427882bb1798f1502eaa35184c6e374e
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
package org.springblade.modules.ureport;
 
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springblade.core.mp.support.Condition;
import org.springblade.core.mp.support.Query;
import org.springblade.core.tool.api.R;
import org.springblade.modules.house.entity.HouseholdEntity;
import org.springblade.modules.house.service.IUserHouseLabelService;
import org.springblade.modules.house.vo.HouseholdLabelVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
 
import java.util.Map;
 
/**
 * 住户bean
 */
@Component
public class HouseholdBean {
 
    @Autowired
    private IUserHouseLabelService householdLabelService;
 
    /**
     * 统计标签
     * @param dsName
     * @param datasetName
     * @param parameters
     * @return
     */
    public R statisticalLabels(String dsName, String datasetName, Map<String, Object> parameters) {
        HouseholdLabelVO householdLabel = new HouseholdLabelVO();
        Query query= new Query();
        query.setCurrent(1);
        query.setSize(100);
        IPage<HouseholdLabelVO> pages = householdLabelService.statisticalLabels(Condition.getPage(query), householdLabel);
        return R.data(pages.getRecords());
    }
}