完善模板解析功能

This commit is contained in:
2023-08-03 10:20:07 +08:00
parent 5db97089e4
commit ab360ed348
11 changed files with 89 additions and 13 deletions

View File

@@ -81,10 +81,10 @@ public class DevModelRelationController extends BaseController {
@PostMapping("/getModelByDevId")
@ApiOperation("根据装置Id查询模板")
@ApiImplicitParam(name = "devId", value = "装置id", required = true)
public HttpResult<CsDevModelRelationPO> getModelByDevId(@RequestParam("devId") String devId){
public HttpResult<List<CsDevModelRelationPO>> getModelByDevId(@RequestParam("devId") String devId){
String methodDescribe = getMethodDescribe("getModelByDevId");
CsDevModelRelationPO po = csDevModelRelationService.findModelByDevId(devId);
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, po, methodDescribe);
List<CsDevModelRelationPO> list = csDevModelRelationService.findModelByDevId(devId);
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, list, methodDescribe);
}
}