public class FeedbackQuery extends BaseQuery { | public class FeedbackQuery extends BaseQuery { | ||||
private String openid; | private String openid; | ||||
/** | |||||
* 租户ID | |||||
*/ | |||||
private Integer tenantId; | |||||
} | } |
if (StringUtils.isEmpty(query.getOpenid())) { | if (StringUtils.isEmpty(query.getOpenid())) { | ||||
return JsonResult.error("openid为空"); | return JsonResult.error("openid为空"); | ||||
} | } | ||||
if (null == query.getTenantId()) { | |||||
return JsonResult.error("租户ID为空!"); | |||||
} | |||||
// 获取分页数据 | // 获取分页数据 | ||||
IPage<Feedback> page = new Page<>(query.getPage(), query.getLimit()); | IPage<Feedback> page = new Page<>(query.getPage(), query.getLimit()); | ||||
IPage<Feedback> pageData = feedbackMapper.selectPage(page, new LambdaQueryWrapper<Feedback>() | IPage<Feedback> pageData = feedbackMapper.selectPage(page, new LambdaQueryWrapper<Feedback>() | ||||
.eq(Feedback::getMark, 1) | .eq(Feedback::getMark, 1) | ||||
.eq(Feedback::getTenantId, query.getTenantId()) | |||||
.eq(Feedback::getOpenid, query.getOpenid()) | .eq(Feedback::getOpenid, query.getOpenid()) | ||||
.eq(Feedback::getType, 1) | .eq(Feedback::getType, 1) | ||||
.orderByDesc(Feedback::getCreateTime)); | .orderByDesc(Feedback::getCreateTime)); |
if (StringUtils.isEmpty(query.getOpenid())) { | if (StringUtils.isEmpty(query.getOpenid())) { | ||||
return JsonResult.error("openid为空"); | return JsonResult.error("openid为空"); | ||||
} | } | ||||
if (null == query.getTenantId()) { | |||||
return JsonResult.error("租户ID为空!"); | |||||
} | |||||
// 获取分页数据 | // 获取分页数据 | ||||
IPage<WestreamScenery> page = new Page<>(query.getPage(), query.getLimit()); | IPage<WestreamScenery> page = new Page<>(query.getPage(), query.getLimit()); | ||||
IPage<WestreamScenery> pageData = westreamSceneryMapper.selectPage(page, new LambdaQueryWrapper<WestreamScenery>() | IPage<WestreamScenery> pageData = westreamSceneryMapper.selectPage(page, new LambdaQueryWrapper<WestreamScenery>() | ||||
.eq(WestreamScenery::getMark, 1) | .eq(WestreamScenery::getMark, 1) | ||||
.eq(WestreamScenery::getTenantId, query.getTenantId()) | |||||
.eq(WestreamScenery::getOpenid, query.getOpenid()) | .eq(WestreamScenery::getOpenid, query.getOpenid()) | ||||
.orderByDesc(WestreamScenery::getCreateTime)); | .orderByDesc(WestreamScenery::getCreateTime)); | ||||