Commit d917feec by zhangkb

修改获取指标最大id逻辑

parent bd149411
...@@ -35,7 +35,10 @@ public class IndicatorsDefCtrl { ...@@ -35,7 +35,10 @@ public class IndicatorsDefCtrl {
@ApiOperation(value = "获取基础指标最大id", notes = "获取基础指标最大id") @ApiOperation(value = "获取基础指标最大id", notes = "获取基础指标最大id")
@PostMapping(value = "/getBaseIndMaxId") @PostMapping(value = "/getBaseIndMaxId")
public String getBaseIndMaxId(@RequestParam String code, public String getBaseIndMaxId(@RequestParam String code,
@RequestParam Integer length) throws Exception{ @RequestParam(required=false) Integer length) throws Exception{
if(length==null) {
length = code.length()+7;
}
return baseIndDefService.getBaseIndMaxIndId(code, length); return baseIndDefService.getBaseIndMaxIndId(code, length);
} }
...@@ -70,7 +73,10 @@ public class IndicatorsDefCtrl { ...@@ -70,7 +73,10 @@ public class IndicatorsDefCtrl {
@ApiOperation(value = "获取考核指标最大id", notes = "获取考核指标最大id") @ApiOperation(value = "获取考核指标最大id", notes = "获取考核指标最大id")
@PostMapping(value = "/getDriveIndMaxId") @PostMapping(value = "/getDriveIndMaxId")
public String getDriveIndMaxId(@RequestParam String code, public String getDriveIndMaxId(@RequestParam String code,
@RequestParam Integer length) throws Exception{ @RequestParam(required=false) Integer length) throws Exception{
if(length==null) {
length = code.length()+7;
}
return driveIndDefService.getDriveIndMaxIndId(code, length); return driveIndDefService.getDriveIndMaxIndId(code, length);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment