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());
|
}
|
}
|