|
@@ -94,9 +94,18 @@ public class StoreCommentAppealServiceImpl extends ServiceImpl<StoreCommentAppea
|
|
|
public IPage<StoreCommentAppealVo> getAppealHistory(Integer pageNum, Integer pageSize, Integer storeId, String appealStatus) {
|
|
public IPage<StoreCommentAppealVo> getAppealHistory(Integer pageNum, Integer pageSize, Integer storeId, String appealStatus) {
|
|
|
QueryWrapper<StoreCommentAppealVo> wrapper = new QueryWrapper<>();
|
|
QueryWrapper<StoreCommentAppealVo> wrapper = new QueryWrapper<>();
|
|
|
wrapper.eq("a.store_id", storeId)
|
|
wrapper.eq("a.store_id", storeId)
|
|
|
- .eq(!appealStatus.isEmpty() && !"null".equals(appealStatus), "a.appeal_status", appealStatus)
|
|
|
|
|
|
|
+// .eq(!appealStatus.isEmpty() && !"null".equals(appealStatus), "a.appeal_status", appealStatus)
|
|
|
.eq("a.delete_flag", 0)
|
|
.eq("a.delete_flag", 0)
|
|
|
.orderByDesc("a.created_time");
|
|
.orderByDesc("a.created_time");
|
|
|
|
|
+
|
|
|
|
|
+ if (StringUtils.isNotEmpty(appealStatus) && !"null".equals(appealStatus)) {
|
|
|
|
|
+ if ("0".equals(appealStatus)) {
|
|
|
|
|
+ wrapper.in("a.appeal_status", 0, 3);
|
|
|
|
|
+ } else {
|
|
|
|
|
+ wrapper.eq("a.appeal_status", appealStatus);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
IPage<StoreCommentAppealVo> storeCommentAppealPage = storeCommentAppealMapper.getStoreCommentAppealPage(new Page<>(pageNum, pageSize), wrapper);
|
|
IPage<StoreCommentAppealVo> storeCommentAppealPage = storeCommentAppealMapper.getStoreCommentAppealPage(new Page<>(pageNum, pageSize), wrapper);
|
|
|
storeCommentAppealPage.getRecords().forEach(item -> {
|
|
storeCommentAppealPage.getRecords().forEach(item -> {
|
|
|
String[] split = item.getImgId().split(",");
|
|
String[] split = item.getImgId().split(",");
|