| | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.core.domain.model.LoginUser; |
| | | import com.ruoyi.common.utils.SecurityUtils; |
| | | import com.ruoyi.framework.web.service.TokenService; |
| | | import com.ruoyi.system.model.*; |
| | | import com.ruoyi.system.query.StoryListQuery; |
| | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.checkerframework.checker.units.qual.A; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.context.annotation.Lazy; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Optional; |
| | | |
| | | /** |
| | | * 数据统计面板 前端控制器 |
| | |
| | | public R<ScreenUserVo> getLoginInfo(Integer type, Integer id) { |
| | | ScreenUserVo screenUserVo = new ScreenUserVo(); |
| | | screenUserVo.setType(type); |
| | | |
| | | if(type!=null && id !=null){ |
| | | |
| | | if(type==1){ |
| | |
| | | if(client==null){ |
| | | return R.fail("委托方不存在"); |
| | | } |
| | | screenUserVo.setClientId(id); |
| | | ClientParam param = clientParamService.getOne(new LambdaQueryWrapper<ClientParam>().eq(ClientParam::getClientId, client.getId())); |
| | | if(param!=null){ |
| | | screenUserVo.setLogo(param.getLogo()); |
| | |
| | | return R.fail("项目不存在"); |
| | | } |
| | | Client client = clientService.getById(project.getClientId()); |
| | | screenUserVo.setClientId(client.getId()); |
| | | ClientParam param = clientParamService.getOne(new LambdaQueryWrapper<ClientParam>().eq(ClientParam::getClientId, client.getId())); |
| | | if(param!=null){ |
| | | screenUserVo.setLogo(param.getLogo()); |
| | | screenUserVo.setName(param.getName()); |
| | | screenUserVo.setCommentType(param.getCommentType()); |
| | | screenUserVo.setSafetyId(param.getSafetyId()); |
| | | String name = clientParamService.getTemplateName(param.getSafetyId()); |
| | |
| | | screenUserVo.setBigHiddenDanger(param.getBigHiddenDanger()); |
| | | screenUserVo.setGeneralHiddenDanger(param.getGeneralHiddenDanger()); |
| | | } |
| | | screenUserVo.setName(project.getName()); |
| | | screenUserVo.setProjectName(project.getName()); |
| | | screenUserVo.setPermissionProject(project.getPermission()); |
| | | } |
| | | |