lidongdong
2023-12-05 0ccb8b3c9eacb4212d8a231288cf5707c2d3b94e
修改金沙大屏报错
2个文件已修改
22 ■■■■ 已修改文件
springcloud_k8s_panzhihuazhihuishequ/community_backstage/src/main/java/com/panzhihua/community_backstage/api/BigScreenStatisticsApi.java 19 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/service_jinhui_community/src/main/java/com/panzhihua/service_jinhui_community/service/impl/JinhuiInterspaceTypeServiceImpl.java 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/community_backstage/src/main/java/com/panzhihua/community_backstage/api/BigScreenStatisticsApi.java
@@ -170,14 +170,19 @@
    @ApiOperation(value = "事件大屏事件列表接口@lyq", response = EventListVO.class)
    @PostMapping("/civil/list")
    public R eventList(@RequestBody ScreenEventListDTO eventListDTO) {
        // if(eventListDTO.getCommunityId() == null){
        // return R.fail("参数错误");
        // }
        Long id = this.getCommunityId();
        if (id == null) {
            return R.fail(401, "请先登录");
//         if(eventListDTO.getCommunityId() == null){
//            return R.fail("参数错误");
//         }
//        Long id = this.getCommunityId();
//        if (id == null) {
//            return R.fail(401, "请先登录");
//        }
//        eventListDTO.setCommunityId(id);
        if(eventListDTO.getCommunityId()==2)
        {
            eventListDTO.setCommunityId(null);
        }
        eventListDTO.setCommunityId(id);
        return gridService.getScreenEventList(eventListDTO);
    }
springcloud_k8s_panzhihuazhihuishequ/service_jinhui_community/src/main/java/com/panzhihua/service_jinhui_community/service/impl/JinhuiInterspaceTypeServiceImpl.java
@@ -4,12 +4,9 @@
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.panzhihua.common.model.vos.R;
import com.panzhihua.common.model.vos.jinhui.JinhuiInterspaceTypeVO;
import com.panzhihua.common.model.vos.jinhui.JinhuiInterspaceVO;
import com.panzhihua.service_jinhui_community.dao.JinhuiInterspaceDao;
import com.panzhihua.service_jinhui_community.dao.JinhuiInterspaceTypeDao;
import com.panzhihua.service_jinhui_community.entity.JinhuiInterspace;
import com.panzhihua.service_jinhui_community.entity.JinhuiInterspaceType;
import com.panzhihua.service_jinhui_community.service.JinhuiInterspaceService;
import com.panzhihua.service_jinhui_community.service.JinhuiInterspaceTypeService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;