这个url应该怎么写
@GetMapping("/query/list")
/**
* 列出预算查询结果,Page形式
*/
public ResponseMap listPage(@RequestParam Map<String, Object> params){
//只有超级管理员,才能查看所有管理员列表
if (getUserId() != Constant.SUPER_ADMIN) {
params.put("createid", getUserId());
}
CommonPage commonPage = bgBudgetMainService.queryPage(params);
return ResponseMap.ok().put("data", commonPage);
}
上面是代码querypage的方法如下
public CommonPage queryPage(Map<String, Object> params) {
String uporgcd = (String) params.get("company");//预算制定机构
String bgtypecd = (String) params.get("type");//预算类型
然后在postman上测试路径写的
localhost:8080/irdp/budget/query/list?company=${'8620'}
报错Caused by: java.sql.SQLSyntaxErrorException: Unknown column 'company' in 'field list'
实在不知道那个url是啥了