直接上代码,看得懂的一点就通,查了很多都不太符合我的需求,就自己写了一个

@ApiOperation("小游戏")
@PostMapping("/selectPrize")
public ResponseResult selectPrize(String deptId,String sign) {
if (null == deptId || "".equals(deptId)) {
return error("机构号为空");
}
if(sign==null || "".equals(sign)){
return error("签名为空");
}
ResponseResult responseResult = checkSign(sign, deptId);
if (!responseResult.get(ResponseResult.CODE_TAG).equals(ResponseResult.Type.SUCCESS.value())) {
return responseResult;
}
EcologyWallPrize ecologyWallPrize=new EcologyWallPrize();
ecologyWallPrize.setDeptId(deptId);
List<EcologyWallPrize> list = ecologyWallPrizeService.selectEcologyWallPrizeList(ecologyWallPrize)