本帖最后由 传禄 于 2022-2-23 19:41 编辑
我的代码:
remote: {
read: {
url: this.apiUrl,
method:"GET",
body:JSON.stringify(this.searchParam)
},
其中:
searchParam: {
"Id":"qwe"
},
后台代码:
@GetMapping()
@RequestMapping(value = "/oilcost", method = RequestMethod.GET)
public List<BcBizOilFishCost> getBcBizOilFishCostAll(String Id) {
QueryWrapper<BcBizOilFishCost> wrapper=new QueryWrapper<>();
wrapper.eq(!StringUtil.isEmpty(Id), "OIL_FISH_COST_ID",Id);
return bcbizoilfishcostmapper.selectList(wrapper);
}
|