投诉展示相关问题完善

This commit is contained in:
Chopper 2021-06-25 14:32:39 +08:00
parent 14ff0a3501
commit efb226b37b
3 changed files with 8 additions and 8 deletions

View File

@ -68,11 +68,11 @@ public interface OrderComplaintService extends IService<OrderComplaint> {
OrderComplaint updateOrderComplainByStatus(OrderComplaintOperationParams operationParam);
/**
* 获取新投诉数量
* 待处理投诉数量
*
* @return 新投诉
* @return 待处理投诉数量
*/
Integer newComplainNum();
Integer waitComplainNum();
/**
* 取消交易投诉

View File

@ -198,9 +198,9 @@ public class OrderComplaintServiceImpl extends ServiceImpl<OrderComplaintMapper,
}
@Override
public Integer newComplainNum() {
public Integer waitComplainNum() {
QueryWrapper queryWrapper = Wrappers.query();
queryWrapper.eq("complain_status", ComplaintStatusEnum.NEW.name());
queryWrapper.ne("complain_status", ComplaintStatusEnum.COMPLETE.name());
queryWrapper.eq(StringUtils.equals(UserContext.getCurrentUser().getRole().name(), UserEnums.STORE.name()),
"store_id", UserContext.getCurrentUser().getStoreId());
return this.count(queryWrapper);

View File

@ -121,7 +121,7 @@ public class IndexStatisticsServiceImpl implements IndexStatisticsService {
//售后申请
indexNoticeVO.setRefund(afterSaleService.applyNum(null));
//投诉审核
indexNoticeVO.setComplain(orderComplaintService.newComplainNum());
indexNoticeVO.setComplain(orderComplaintService.waitComplainNum());
//分销员提现审核
indexNoticeVO.setDistributionCash(distributionCashService.newDistributionCash());
//待处理商家结算
@ -218,8 +218,8 @@ public class IndexStatisticsServiceImpl implements IndexStatisticsService {
storeIndexStatisticsVO.setReturnMoney(afterSaleService.applyNum(AfterSaleTypeEnum.RETURN_MONEY.name()));
//待回复评价数量
storeIndexStatisticsVO.setMemberEvaluation(memberEvaluationService.getWaitReplyNum());
//待处理交易投诉数量
storeIndexStatisticsVO.setComplaint(orderComplaintService.newComplainNum());
//待处理投诉数量
storeIndexStatisticsVO.setComplaint(orderComplaintService.waitComplainNum());
//待上架商品数量
storeIndexStatisticsVO.setWaitUpper(goodsService.goodsNum(GoodsStatusEnum.DOWN, null));