|
|
@@ -614,7 +614,7 @@ public class TechnicianMomentServiceImpl extends ServiceImpl<TechnicianMomentMap
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 查询我的动态列表(已发布的动态:审核中+审核通过)
|
|
|
+ * 查询我的动态列表(已发布的动态:审核中+审核通过+审核拒绝)
|
|
|
*
|
|
|
* @param openId 技师OpenID
|
|
|
* @param pageNum 页码
|
|
|
@@ -629,18 +629,18 @@ public class TechnicianMomentServiceImpl extends ServiceImpl<TechnicianMomentMap
|
|
|
}
|
|
|
|
|
|
// 2. 根据openId查询技师信息
|
|
|
- LambdaQueryWrapper<TJs> queryWrapper = new LambdaQueryWrapper<>();
|
|
|
- queryWrapper.eq(TJs::getcOpenId, openId);
|
|
|
- TJs technician = tJsMapper.selectOne(queryWrapper);
|
|
|
+ LambdaQueryWrapper<MaTechnician> queryWrapper = new LambdaQueryWrapper<>();
|
|
|
+ queryWrapper.eq(MaTechnician::getCOpenid, openId);
|
|
|
+ MaTechnician technician = maTechnicianMapper.selectOne(queryWrapper);
|
|
|
if (technician == null) {
|
|
|
- throw new ServiceException("技师信息不存在");
|
|
|
+ throw new ServiceException("商户信息不存在");
|
|
|
}
|
|
|
|
|
|
- // 3. 查询该技师的已发布动态(待审核、审核通过)
|
|
|
+ // 3. 查询该商户的已发布动态(待审核、审核通过、审核拒绝)
|
|
|
Page<TechnicianMoment> page = new Page<>(pageNum, pageSize);
|
|
|
LambdaQueryWrapper<TechnicianMoment> momentWrapper = new LambdaQueryWrapper<>();
|
|
|
momentWrapper.eq(TechnicianMoment::getTechnicianId, technician.getId())
|
|
|
- .in(TechnicianMoment::getAuditStatus, 1, 2) // 1-待审核, 2-审核通过
|
|
|
+ .in(TechnicianMoment::getAuditStatus, 1, 2,3) // 1-待审核, 2-审核通过,3-审核拒绝
|
|
|
.orderByDesc(TechnicianMoment::getPublishTime);
|
|
|
|
|
|
Page<TechnicianMoment> momentPage = momentMapper.selectPage(page, momentWrapper);
|
|
|
@@ -671,7 +671,6 @@ public class TechnicianMomentServiceImpl extends ServiceImpl<TechnicianMomentMap
|
|
|
}).collect(Collectors.toList());
|
|
|
|
|
|
voPage.setRecords(voList);
|
|
|
- log.info("查询我的动态列表成功,技师ID:{},页码:{},每页数量:{},总记录数:{}", technician.getId(), pageNum, pageSize, voPage.getTotal());
|
|
|
return voPage;
|
|
|
}
|
|
|
|