Browse Source

Merge branch 'develop' into release

tags/V1.7.0
wanghaoran 1 year ago
parent
commit
ec0b875979
3 changed files with 13 additions and 1 deletions
  1. +5
    -0
      tuoheng-api/src/main/java/com/tuoheng/api/entity/request/FeedbackQuery.java
  2. +4
    -0
      tuoheng-api/src/main/java/com/tuoheng/api/service/impl/FeedbackServiceImpl.java
  3. +4
    -1
      tuoheng-api/src/main/java/com/tuoheng/api/service/impl/WestreamSceneryServiceImpl.java

+ 5
- 0
tuoheng-api/src/main/java/com/tuoheng/api/entity/request/FeedbackQuery.java View File

public class FeedbackQuery extends BaseQuery { public class FeedbackQuery extends BaseQuery {


private String openid; private String openid;

/**
* 租户ID
*/
private Integer tenantId;
} }

+ 4
- 0
tuoheng-api/src/main/java/com/tuoheng/api/service/impl/FeedbackServiceImpl.java View File

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));

+ 4
- 1
tuoheng-api/src/main/java/com/tuoheng/api/service/impl/WestreamSceneryServiceImpl.java View File

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));



Loading…
Cancel
Save