|
@@ -9,6 +9,7 @@ import com.persagy.dmp.report.entity.QReportConfig;
|
|
|
import com.persagy.dmp.report.entity.ReportConfig;
|
|
|
import com.querydsl.core.Tuple;
|
|
|
import com.querydsl.core.types.dsl.BooleanExpression;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
@@ -21,6 +22,9 @@ import java.util.List;
|
|
|
@Service
|
|
|
public class ReportConfigService implements BaseService {
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private CriteriaUtils criteriaUtils;
|
|
|
+
|
|
|
@Override
|
|
|
public List<BooleanExpression> parse(ObjectNode criteria) {
|
|
|
List<BooleanExpression> exps = new LinkedList<>();
|
|
@@ -32,6 +36,10 @@ public class ReportConfigService implements BaseService {
|
|
|
return exps;
|
|
|
}
|
|
|
|
|
|
+ public PagedResponse<ReportConfig> query(JacksonCriteria criteria) {
|
|
|
+ return criteriaUtils.query(QReportConfig.reportConfig, this::parse, criteria);
|
|
|
+ }
|
|
|
+
|
|
|
@Override
|
|
|
public List<BaseEntity> getData(PagedResponse<Tuple> tuplePagedResponse, List<JacksonCriteria.Calculated> calculatedColumns) {
|
|
|
List<BaseEntity> list = new ArrayList<>();
|