This commit is contained in:
DirectionOfMind 2021-01-22 11:05:19 +08:00
parent 379060377d
commit 39f68e6376
3 changed files with 3 additions and 3 deletions

View File

@ -93,7 +93,7 @@ public class IndicatorLibraryController {
@GetMapping("/statistical") @GetMapping("/statistical")
@ApiOperation("统计指标") @ApiOperation("统计指标")
@ApiResponses({@ApiResponse(code = 200, message = "成功", response = StatisticalIndicatorTypeRes.class)}) @ApiResponses({@ApiResponse(code = 200, message = "成功", response = StatisticalIndicatorTypeRes.class)})
public R statistical(@RequestParam(name = "type",required = false) @ApiParam(value = "指标分类id",name = "type") Long type) { public R statistical(@RequestParam(name = "type",required = false) @ApiParam(value = "指标维度id",name = "type") Long type) {
List<StatisticalIndicatorTypeRes> dtos = indicatorLibraryService.statisticalByType(type); List<StatisticalIndicatorTypeRes> dtos = indicatorLibraryService.statisticalByType(type);
return R.ok().put("data",dtos); return R.ok().put("data",dtos);
} }

View File

@ -23,7 +23,7 @@ public class IndicatorLibraryDto {
@ApiModelProperty(value = "指标名称", name = "name") @ApiModelProperty(value = "指标名称", name = "name")
private String name; private String name;
//指标类型 lz_result_dimension 表id" //指标类型 lz_result_dimension 表id"
@ApiModelProperty(value = "指标类型 lz_result_dimension 表id", name = "type") @ApiModelProperty(value = "指标维度 lz_result_dimension 表id", name = "type")
private Integer type; private Integer type;
//指标分类 lz_indicator_type 表id //指标分类 lz_indicator_type 表id
@ApiModelProperty(value = "指标分类 lz_indicator_type 表id", name = "indicatorType") @ApiModelProperty(value = "指标分类 lz_indicator_type 表id", name = "indicatorType")

View File

@ -153,7 +153,7 @@
<select id="countIndicatorLibrarysByIndicatorType" resultType="java.lang.Integer"> <select id="countIndicatorLibrarysByIndicatorType" resultType="java.lang.Integer">
select COUNT(1) from lz_indicator_library where indicator_type=#{indicatorType} and is_delete = 0 select COUNT(1) from lz_indicator_library where indicator_type=#{indicatorType} and is_delete = 0
and type in (SELECT id from lz_indicator_type where is_delete = 0) and type in (SELECT id from lz_result_dimension where is_delete = 0)
</select> </select>