Commit 177df727 authored by chenzhao's avatar chenzhao

新增查询详情接口

parent 19f65267
......@@ -97,6 +97,26 @@ public class InputItemController extends AbstractBaseController {
* */
/*******新增接口************/
/**
* 查询巡检项详情
*
* @param itemID
* @return
*/
@TycloudOperation(ApiLevel = UserType.AGENCY)
@ApiOperation(value = "检查项ID新", notes = "检查项详情新")
@RequestMapping(value = "/queryItemNew", produces = "application/json;charset=UTF-8", method = RequestMethod.GET)
public CommonResponse queryItemDetailNew(@ApiParam(value = "巡检项ID") @RequestParam(required = true) Long itemID) {
InputItem bo = inputItemService.queryInputItemDetail(itemID);
InputItemParam inputItemVo = new InputItemParam();
BeanUtils.copyProperties(bo,inputItemVo);
inputItemVo.setDataJson(bo.getDataJson() != null?JSONObject.parse(bo.getDataJson()):null);
inputItemVo.setPictureJson(bo.getPictureJson()!=null?JSONObject.parse(bo.getPictureJson()):null);
return CommonResponseUtil.success(inputItemVo);
}
/**
* 新增巡检项
*
......
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