Commit 706bf4cd by 张祺

修改根据指标id获取指标的方法

parent 97cdadfe
......@@ -35,7 +35,7 @@ public class IndAcsDefCtrl {
return generalParmService.getAll();
}
@ApiOperation(value = "根据id获取分析指标", notes = "根据id获取分析指标")
@ApiOperation(value = "根据指标id(编码)获取分析指标", notes = "根据指标id(编码)获取分析指标")
@PostMapping(value = "/getById")
public IndAcsDef getById(@RequestParam("id")Integer id){
return indAcsDefService.getById(id);
......
......@@ -18,6 +18,8 @@ public class IndAcsDefService {
}
public IndAcsDef getById(Integer id) {
return indAcsDefMapper.selectByPrimaryKey(id);
IndAcsDef def = new IndAcsDef();
def.setIndId(id);
return indAcsDefMapper.selectOne(def);
}
}
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