如何在@GetMapping中写多个参数,包括数组类型的参数
一、直接上代码
@PreAuthorize("@ss.hasPermi('zdy:yfsYy:list')")
@GetMapping("/yfs/send/{jiHuaId}&&{yiYuanIds}")
@ApiOperation("一键发送到************计划")
@ApiImplicitParams({
@ApiImplicitParam(name = "jiHuaId",value = "计划id",required = true,dataType = "Integer",paramType = "path"),
@ApiImplicitParam(name = "yiYuanIds",value = "所选**的ids",required = true,dataType = "String",paramType = "path")
})
public AjaxResult sendMessageAndNotice(@PathVariable Long jiHuaId, @PathVariable Long[] yiYuanIds)
{
return toAjax(xjjhDataService.sendMessageAndNotice(jiHuaId,yiYuanIds));
}
二、接口效果如图
三、完事QAQ