|
@@ -33,6 +33,7 @@ import java.math.BigDecimal;
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.Calendar;
|
|
|
import java.util.Date;
|
|
|
+import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
@@ -595,4 +596,26 @@ public class ChannelController extends BaseApiController {
|
|
|
}
|
|
|
return AjaxResult.success(channelVO);
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 场景是这里要显示待审核数量
|
|
|
+ *
|
|
|
+ * @param
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @PostMapping(value = "subchannel/index")
|
|
|
+ public AjaxResult getChannelIndex() {
|
|
|
+ int waitVerifyNum = 0;
|
|
|
+ Long channelId = SecurityUtils.getLoginUser().getChannelId();
|
|
|
+ if(null != channelId && 0 != channelId) {
|
|
|
+ LambdaQueryWrapper<Channel> queryWrapper = new LambdaQueryWrapper<Channel>();
|
|
|
+ queryWrapper.eq(Channel::getParentId, channelId);
|
|
|
+ queryWrapper.eq(Channel::getVerifyStatus, ChannelVerifyStatusEnum.WAIT);
|
|
|
+ waitVerifyNum = channelService.count(queryWrapper);
|
|
|
+ }
|
|
|
+ Map<String,Object> map = new HashMap<String,Object>();
|
|
|
+ map.put("waitVerifyNum", waitVerifyNum);
|
|
|
+ return AjaxResult.success(map);
|
|
|
+ }
|
|
|
}
|