Browse Source

添加字段,修改参数名。

zhangjinjun 6 years ago
parent
commit
03f30c3772

+ 6 - 6
src/main/java/com/yihu/quota/controller/ViewDimensionController.java

@ -48,10 +48,10 @@ public class ViewDimensionController extends EnvelopRestEndPoint {
            @RequestParam(value = "groupRowOrder", required = false) int groupRowOrder,
            @ApiParam(name = "columnDrillOrder", value = "列维度/钻取维度的顺序", required = false)
            @RequestParam(value = "columnDrillOrder", required = false) int columnDrillOrder,
            @ApiParam(name = "rowMemberOrderType", value = "行维度成员排序方式,name:按名称排序,sub_agg:按子聚合统计值排序", required = false)
            @RequestParam(value = "rowMemberOrderType", required = false) String rowMemberOrderType,
            @ApiParam(name = "rowMemberCount", value = "行维度成员返回个数", required = false)
            @RequestParam(value = "rowMemberCount", required = false) int rowMemberCount
            @ApiParam(name = "rowMemberOrderType", value = "行/列维度成员排序方式,name:按名称排序,sub_agg:按子聚合统计值排序", required = false)
            @RequestParam(value = "rowMemberOrderType", required = false) String memberOrderType,
            @ApiParam(name = "rowMemberCount", value = "行/列维度成员返回个数", required = false)
            @RequestParam(value = "rowMemberCount", required = false) int memberCount
    ){
        Envelop envelop = new Envelop();
        envelop.setSuccessFlg(true);
@ -67,8 +67,8 @@ public class ViewDimensionController extends EnvelopRestEndPoint {
            viewDimension.setGroupRow(groupRow);
            viewDimension.setGroupRowOrder(groupRowOrder);
            viewDimension.setColumnDrillOrder(columnDrillOrder);
            viewDimension.setRowMemberOrderType(rowMemberOrderType);
            viewDimension.setRowMemberCount(rowMemberCount);
            viewDimension.setMemberOrderType(memberOrderType);
            viewDimension.setMemberCount(memberCount);
            viewDimensionService.save(viewDimension);
        }catch (Exception e){
            e.printStackTrace();

+ 20 - 0
src/main/java/com/yihu/quota/model/view/ViewQuota.java

@ -21,6 +21,8 @@ import java.util.List;
public class ViewQuota extends BaseAssignedEntity {
    private String viewId; // 视图Id
    private String code; // 指标编码
    private String name; // 指标名称
    private String dimensionCode; // 维度编码
    private String dimensionName; // 维度名称
    private String esIndex; // 多维数据集的 ES index
@ -44,6 +46,24 @@ public class ViewQuota extends BaseAssignedEntity {
        this.viewId = viewId;
    }
    @Column(name = "code")
    public String getCode() {
        return code;
    }
    public void setCode(String code) {
        this.code = code;
    }
    @Column(name = "name")
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    @Column(name = "dimension_code")
    public String getDimensionCode() {
        return dimensionCode;