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

@@ -7,4 +7,9 @@ import lombok.Data;
public class FeedbackQuery extends BaseQuery {

private String openid;

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

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

@@ -99,11 +99,15 @@ public class FeedbackServiceImpl extends BaseServiceImpl<FeedbackMapper, Feedbac
if (StringUtils.isEmpty(query.getOpenid())) {
return JsonResult.error("openid为空");
}
if (null == query.getTenantId()) {
return JsonResult.error("租户ID为空!");
}

// 获取分页数据
IPage<Feedback> page = new Page<>(query.getPage(), query.getLimit());
IPage<Feedback> pageData = feedbackMapper.selectPage(page, new LambdaQueryWrapper<Feedback>()
.eq(Feedback::getMark, 1)
.eq(Feedback::getTenantId, query.getTenantId())
.eq(Feedback::getOpenid, query.getOpenid())
.eq(Feedback::getType, 1)
.orderByDesc(Feedback::getCreateTime));

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

@@ -135,11 +135,14 @@ public class WestreamSceneryServiceImpl extends BaseServiceImpl<WestreamSceneryM
if (StringUtils.isEmpty(query.getOpenid())) {
return JsonResult.error("openid为空");
}

if (null == query.getTenantId()) {
return JsonResult.error("租户ID为空!");
}
// 获取分页数据
IPage<WestreamScenery> page = new Page<>(query.getPage(), query.getLimit());
IPage<WestreamScenery> pageData = westreamSceneryMapper.selectPage(page, new LambdaQueryWrapper<WestreamScenery>()
.eq(WestreamScenery::getMark, 1)
.eq(WestreamScenery::getTenantId, query.getTenantId())
.eq(WestreamScenery::getOpenid, query.getOpenid())
.orderByDesc(WestreamScenery::getCreateTime));


Loading…
Cancel
Save