|
@ -330,7 +330,7 @@ public class QuotaReportController extends BaseController {
|
|
|
|
|
|
for (String quotaId : quotaIds) {
|
|
for (String quotaId : quotaIds) {
|
|
Map<String, Object> dataMap = new LinkedHashMap<>();
|
|
Map<String, Object> dataMap = new LinkedHashMap<>();
|
|
TjQuota tjQuota = quotaService.findOne(Integer.valueOf(quotaId));
|
|
|
|
|
|
TjQuota tjQuota = quotaService.findOne(Long.valueOf(quotaId));
|
|
if (tjQuota != null) {
|
|
if (tjQuota != null) {
|
|
List<Map<String, Object>> resultListMap = baseStatistsService.getSimpleQuotaReport(tjQuota.getCode(), filter, dimension,true, top);
|
|
List<Map<String, Object>> resultListMap = baseStatistsService.getSimpleQuotaReport(tjQuota.getCode(), filter, dimension,true, top);
|
|
if (resultListMap != null && resultListMap.size() > 0) {
|
|
if (resultListMap != null && resultListMap.size() > 0) {
|
|
@ -594,7 +594,7 @@ public class QuotaReportController extends BaseController {
|
|
@RequestMapping(value = ServiceApi.TJ.GetQuotaGroupBy, method = RequestMethod.GET)
|
|
@RequestMapping(value = ServiceApi.TJ.GetQuotaGroupBy, method = RequestMethod.GET)
|
|
public MixEnvelop getQuotaGroupBy(
|
|
public MixEnvelop getQuotaGroupBy(
|
|
@ApiParam(name = "id", value = "指标任务ID", required = true)
|
|
@ApiParam(name = "id", value = "指标任务ID", required = true)
|
|
@RequestParam(value = "id", required = true) int id,
|
|
|
|
|
|
@RequestParam(value = "id", required = true) Long id,
|
|
@ApiParam(name = "filters", value = "检索条件", defaultValue = "")
|
|
@ApiParam(name = "filters", value = "检索条件", defaultValue = "")
|
|
@RequestParam(value = "filters", required = false) String filters,
|
|
@RequestParam(value = "filters", required = false) String filters,
|
|
@ApiParam(name = "dimension", value = "维度字段", defaultValue = "quotaDate")
|
|
@ApiParam(name = "dimension", value = "维度字段", defaultValue = "quotaDate")
|
|
@ -663,7 +663,7 @@ public class QuotaReportController extends BaseController {
|
|
Map<String, String> xAxisMap = new HashMap<>();
|
|
Map<String, String> xAxisMap = new HashMap<>();
|
|
for (String quotaId : quotaIds) {
|
|
for (String quotaId : quotaIds) {
|
|
Map<String, Object> dataMap = new HashMap<>();
|
|
Map<String, Object> dataMap = new HashMap<>();
|
|
TjQuota tjQuota = quotaService.findOne(Integer.valueOf(quotaId));
|
|
|
|
|
|
TjQuota tjQuota = quotaService.findOne(Long.valueOf(quotaId));
|
|
if (null != tjQuota) {
|
|
if (null != tjQuota) {
|
|
String dictSql = getQuotaDimensionDictSql(tjQuota.getCode(), dimension);
|
|
String dictSql = getQuotaDimensionDictSql(tjQuota.getCode(), dimension);
|
|
Map<String, String> dimensionDicMap = new HashMap<>();
|
|
Map<String, String> dimensionDicMap = new HashMap<>();
|
|
@ -878,7 +878,7 @@ public class QuotaReportController extends BaseController {
|
|
|
|
|
|
for (String quotaId : quotaIds) {
|
|
for (String quotaId : quotaIds) {
|
|
Map<String, Object> dataMap = new LinkedHashMap<>();
|
|
Map<String, Object> dataMap = new LinkedHashMap<>();
|
|
TjQuota tjQuota = quotaService.findOne(Integer.valueOf(quotaId));
|
|
|
|
|
|
TjQuota tjQuota = quotaService.findOne(Long.valueOf(quotaId));
|
|
if (tjQuota != null) {
|
|
if (tjQuota != null) {
|
|
List<Map<String, Object>> resultListMap = baseStatistsService.getSimpleQuotaReport(tjQuota.getCode(), filter, dimension,true, top);
|
|
List<Map<String, Object>> resultListMap = baseStatistsService.getSimpleQuotaReport(tjQuota.getCode(), filter, dimension,true, top);
|
|
if (resultListMap != null && resultListMap.size() > 0) {
|
|
if (resultListMap != null && resultListMap.size() > 0) {
|