lidongdong
2023-11-01 c89479173efa4299ab2c0557bd7fa082392d464c
springcloud_k8s_panzhihuazhihuishequ/service_jinhui_community/src/main/java/com/panzhihua/service_jinhui_community/api/JinhuiLargeScreenApi.java
@@ -2,9 +2,7 @@
import com.panzhihua.common.controller.BaseController;
import com.panzhihua.common.model.vos.R;
import com.panzhihua.common.model.vos.jinhui.JinhuiIndexInfoVO;
import com.panzhihua.common.model.vos.jinhui.JinhuiSnapshotClassifyVO;
import com.panzhihua.common.model.vos.jinhui.JinhuiSnapshotVO;
import com.panzhihua.common.model.vos.jinhui.*;
import com.panzhihua.service_jinhui_community.entity.JinhuiSnapshot;
import com.panzhihua.service_jinhui_community.entity.JinhuiSnapshotClassify;
import com.panzhihua.service_jinhui_community.service.JinhuiLargeScreenService;
@@ -15,6 +13,7 @@
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.List;
/**
 *  金汇大屏api
@@ -50,6 +49,58 @@
        return R.ok(jinhuiIndexInfoVO);
    }
    /**
     * 金汇大屏社区服务
     * @return
     */
    @GetMapping("/getCommunityServices")
    public R getCommunityServices()
    {
        //志愿者  党员
        JinhuiCommunityServicesVO vo=screenService.baseInfo(getCommunityId()+"");
        List<JinhuiMerchantTypeVO> list=screenService.getMerchantTypeNum();
        /**
         * 便民服务商家  审核状态 (1待审核 2已通过 3未通过 )
         * @return
         */
        String ConvenientMerchantsNum=screenService.getConvenientMerchantsNum(null);
        /**
         * 办事直指南
         * @return
         */
        String WorkGuideNum=screenService.getWorkGuideNum();
        /**
         * 空间预约 `state` 状态(1待处理  2未通过  3已通过)',
         * @return
         */
        String InterspaceApplyNum=screenService.getInterspaceApplyNum(null);
        /**
         * 商城订单
         * @param cancelType `cancel_type` '核销状态(0待核销  1已核销  2订单已取消)
         * @return
         */
        String ShoppingOrderNum=screenService.getShoppingOrderNum(null);
        /**
         * 获取社区工作者
         * @param communityId `type`  '1社区工作人员2物业',
         * @return
         */
        String ServiceTeam=screenService.getServiceTeam(getCommunityId()+"",null);
        vo.setWorkGuideNum(WorkGuideNum);
        vo.setShoppingOrderNum(ShoppingOrderNum);
        vo.setInterspaceApplyNum(InterspaceApplyNum);
        vo.setConvenientMerchantsNum(ConvenientMerchantsNum);
        vo.setServiceTeam(ServiceTeam);
        vo.setList(list);
        return R.ok(vo);
    }
}