| | |
| | | List<SysUser> sysUsers = sysUserMapper.selectUserByIds(userIds); |
| | | feasibilityStudyReportVO.setStaffNames(sysUsers.stream().map(SysUser::getNickName).collect(Collectors.joining(","))); |
| | | feasibilityStudyReportVO.setProjectTeam(projectTeam); |
| | | SysUser sysUser = sysUserService.selectUserById(feasibilityStudyReport.getAuditPersonId()); |
| | | if(Objects.nonNull(sysUser)){ |
| | | feasibilityStudyReportVO.setAuditPersonName(sysUser.getNickName()); |
| | | } |
| | | return R.ok(feasibilityStudyReportVO); |
| | | } |
| | | |
| | |
| | | @PutMapping(value = "/open/t-feasibility-study-report/revokedReport") |
| | | public R<Boolean> revokedReport(@RequestParam String id) { |
| | | TFeasibilityStudyReport feasibilityStudyReport = feasibilityStudyReportService.getById(id); |
| | | feasibilityStudyReport.setStatus(FeasibilityStudyReportStatusEnum.REVOKED.getCode()); |
| | | feasibilityStudyReport.setStatus(FeasibilityStudyReportStatusEnum.DRAFTS.getCode()); |
| | | feasibilityStudyReportService.updateById(feasibilityStudyReport); |
| | | return R.ok(); |
| | | } |
| | |
| | | import com.ruoyi.common.basic.PageInfo; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | | import com.ruoyi.common.enums.*; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.ruoyi.common.enums.QAProduceReportStatusEnum; |
| | | import com.ruoyi.common.enums.QaReportFileEnum; |
| | | import com.ruoyi.common.enums.QaReportTypeEnum; |
| | | import com.ruoyi.framework.web.service.TokenService; |
| | | import com.ruoyi.system.dto.AuditStatusDTO; |
| | | import com.ruoyi.system.dto.TQaProduceReportDTO; |
| | |
| | | import com.ruoyi.system.vo.TQaProduceReportVO; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.util.CollectionUtils; |
| | |
| | | * @author xiaochen |
| | | * @since 2025-04-08 |
| | | */ |
| | | @Slf4j |
| | | @Api(tags = "中试、生产验证分析报告;辅料;产品报告管理") |
| | | @RestController |
| | | @RequestMapping("") |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:qaTestItem:evaluate')") |
| | | @Log(title = "中试、生产验证分析报告;辅料;产品报告管理信息-评定中试、生产验证分析报告;辅料;产品报告管理信息", businessType = BusinessType.UPDATE) |
| | | @ApiOperation(value = "评定QA检测项管理",response = TQaProduceReportEvaluateDTO.class) |
| | | @ApiOperation(value = "评定中试、生产验证分析报告;辅料;产品报告管理信息",response = TQaProduceReportEvaluateDTO.class) |
| | | @PostMapping(value = "/api/t-qa-produce-report/evaluate") |
| | | public R<Boolean> evaluate(@RequestBody String param) { |
| | | TQaProduceReportEvaluateDTO dto = JSON.parseObject(param,TQaProduceReportEvaluateDTO.class); |
| | |
| | | |
| | | import java.time.LocalDateTime; |
| | | import java.util.List; |
| | | import java.util.Objects; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | |
| | | BeanUtils.copyProperties(testItem, testItemVO); |
| | | // 查询QA检测项检测报告 |
| | | List<TQaTestItemReportVO> qaTestItemReportVOS= qaTestItemReportService.getList(id); |
| | | for (TQaTestItemReportVO qaTestItemReportVO : qaTestItemReportVOS) { |
| | | SysUser sysUser = sysUserMapper.selectUserById(qaTestItemReportVO.getAuditPersonId()); |
| | | if(Objects.nonNull(sysUser)){ |
| | | qaTestItemReportVO.setAuditPersonName(sysUser.getNickName()); |
| | | } |
| | | } |
| | | testItemVO.setQaTestItemReportList(qaTestItemReportVOS); |
| | | // 查询项目组名称 |
| | | TProjectTeam projectTeam = projectTeamService.getById(testItemVO.getTeamId()); |
| | |
| | | }); |
| | | } |
| | | projectTeamVO.setStaffs(list); |
| | | } |
| | | // 查询评定人名称 |
| | | SysUser sysUser = sysUserMapper.selectUserById(testItem.getEvaluatePersonId()); |
| | | if (Objects.nonNull(sysUser)) { |
| | | testItemVO.setEvaluatePersonName(sysUser.getNickName()); |
| | | } |
| | | testItemVO.setProjectTeamVO(projectTeamVO); |
| | | return R.ok(testItemVO); |
| | |
| | | public R<Boolean> evaluate(@RequestBody String param) { |
| | | TQaTestItemEvaluateDTO dto = JSON.parseObject(param,TQaTestItemEvaluateDTO.class); |
| | | Long userId = tokenService.getLoginUser().getUserId(); |
| | | TQaTestItem testItem = qaTestItemService.getById(dto); |
| | | TQaTestItem testItem = qaTestItemService.getById(dto.getId()); |
| | | testItem.setStatus(QATestItemStatusEnum.EVALUATED.getCode()); |
| | | testItem.setEvaluatePersonId(userId); |
| | | testItem.setEvaluateTime(LocalDateTime.now()); |
| | |
| | | */ |
| | | @ApiOperation(value = "获取QA检测项报告管理下拉列表-化验师使用、评定使用") |
| | | @GetMapping(value = "/open/t-qa-test-item-report/getListByItemId") |
| | | public R<List<TQaTestItemReport>> getListByItemId(@RequestParam String itemId) { |
| | | List<TQaTestItemReport> list = qaTestItemReportService.list(Wrappers.lambdaQuery(TQaTestItemReport.class) |
| | | .eq(TQaTestItemReport::getItemId, itemId)); |
| | | public R<List<TQaTestItemReportVO>> getListByItemId(@RequestParam String itemId) { |
| | | List<TQaTestItemReportVO> list = qaTestItemReportService.getListByItemId(itemId); |
| | | if(!CollectionUtils.isEmpty(list)){ |
| | | List<SysUser> sysUsers = sysUserService.selectList(); |
| | | list.forEach(itemReport -> { |
| | | SysUser sysUser = sysUsers.stream().filter(user -> user.getUserId().equals(itemReport.getAuditPersonId())).findFirst().orElse(null); |
| | | if(Objects.nonNull(sysUser)){ |
| | | itemReport.setAuditPersonName(sysUser.getNickName()); |
| | | } |
| | | }); |
| | | } |
| | | return R.ok(list); |
| | | } |
| | | |
| | |
| | | @PostMapping(value = "/api/t-qa-test-item-report/add") |
| | | public R<Boolean> add(@RequestBody String param) { |
| | | TQaTestItemReportDTO dto = JSON.parseObject(param,TQaTestItemReportDTO.class); |
| | | // 通过当前用户查询项目组 |
| | | Long userId = tokenService.getLoginUser().getUserId(); |
| | | TProjectTeamStaff projectTeamStaff = projectTeamStaffService.getOne(Wrappers.lambdaQuery(TProjectTeamStaff.class) |
| | | .eq(TProjectTeamStaff::getUserId, userId) |
| | | .last("LIMIT 1")); |
| | | if(Objects.isNull(projectTeamStaff)){ |
| | | return R.fail("当前用户未分配项目组,无法创建项目课题方案"); |
| | | } |
| | | // 查询项目组 |
| | | TProjectTeam projectTeam = projectTeamService.getById(projectTeamStaff.getTeamId()); |
| | | TProjectTeam projectTeam = projectTeamService.getById(dto.getItemId()); |
| | | if(Objects.isNull(projectTeam)){ |
| | | return R.fail("项目组不存在"); |
| | | } |
| | |
| | | qaTestItemReportService.save(dto); |
| | | // 添加检测报告文件 |
| | | List<TQaReportFile> qaReportFiles = dto.getQaReportFiles(); |
| | | if(!CollectionUtils.isEmpty(qaReportFiles)){ |
| | | for (TQaReportFile qaReportFile : qaReportFiles) { |
| | | qaReportFile.setReportId(dto.getId()); |
| | | qaReportFile.setReportType(QaReportFileEnum.TEST_REPORT.getCode()); |
| | | } |
| | | qaReportFileService.saveBatch(qaReportFiles); |
| | | } |
| | | return R.ok(); |
| | | } |
| | | |
| | |
| | | import com.ruoyi.common.core.domain.model.LoginUser; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.ruoyi.framework.web.service.TokenService; |
| | | import com.ruoyi.system.dto.TQaTestItemDTO; |
| | | import com.ruoyi.system.dto.TResultWorkEvaluateDTO; |
| | | import com.ruoyi.system.model.*; |
| | | import com.ruoyi.system.query.ResultEvaluateChemistTesterQuery; |
| | |
| | | */ |
| | | //@PreAuthorize("@ss.hasPermi('system:resultWorkEvaluate:add')") |
| | | @Log(title = "实验结果工作评定管理-新增化验师、实验员工作评定", businessType = BusinessType.INSERT) |
| | | @ApiOperation(value = "新增化验师、实验员工作评定", response = TQaTestItemDTO.class) |
| | | @ApiOperation(value = "新增化验师、实验员工作评定", response = TResultWorkEvaluateDTO.class) |
| | | @PostMapping(value = "/api/t-result-work-evaluate/add") |
| | | public R<Boolean> add(@RequestBody String param) { |
| | | TResultWorkEvaluateDTO dto = JSON.parseObject(param, TResultWorkEvaluateDTO.class); |
| | | |
| | | tResultWorkEvaluateService.save(dto); |
| | | return R.ok(); |
| | | } |
| | |
| | | List<SysUser> sysUsers = sysUserService.selectListByNameAndUserIds(nickName,userIds); |
| | | return R.ok(sysUsers); |
| | | } |
| | | return R.ok(); |
| | | List<SysUser> sysUsers = sysUserService.selectListByNameAndUserIds(null,userIds); |
| | | return R.ok(sysUsers); |
| | | } |
| | | /** |
| | | * 查询可评定的实验员 |
| | |
| | | List<SysUser> sysUsers = sysUserService.selectListByNameAndUserIds(nickName,userIds); |
| | | return R.ok(sysUsers); |
| | | } |
| | | return R.ok(); |
| | | List<SysUser> sysUsers = sysUserService.selectListByNameAndUserIds(null,userIds); |
| | | return R.ok(sysUsers); |
| | | } |
| | | |
| | | /** |
| | |
| | | if(Objects.nonNull(experimentDispatch)){ |
| | | testMethodConfirmSheetVO.setExperimentName(experimentDispatch.getExperimentName()); |
| | | testMethodConfirmSheetVO.setExperimentCode(experimentDispatch.getExperimentCode()); |
| | | testMethodConfirmSheetVO.setExperimentStartTime(experimentDispatch.getExperimentStartTime()); |
| | | testMethodConfirmSheetVO.setExperimentEndTime(experimentDispatch.getExperimentEndTime()); |
| | | testMethodConfirmSheetVO.setExperimentDate(experimentDispatch.getExperimentDate()); |
| | | // 查询项目课题方案 |
| | | TProjectProposal projectProposal = projectProposalService.getById(experimentDispatch.getProposalId()); |
| | | if(Objects.nonNull(projectProposal)){ |
| | | testMethodConfirmSheetVO.setProjectName(projectProposal.getProjectName()); |
| | | } |
| | | // 查询参与人员 |
| | | List<TExperimentDispatchParticipants> tExperimentDispatchParticipants = experimentDispatchParticipantsService.list(Wrappers.lambdaQuery(TExperimentDispatchParticipants.class) |
| | | .eq(TExperimentDispatchParticipants::getDispatchId, experimentDispatch.getId())); |
| | | List<Long> userIds = tExperimentDispatchParticipants.stream().map(TExperimentDispatchParticipants::getUserId).distinct().collect(Collectors.toList()); |
| | | List<SysUser> sysUsers = sysUserMapper.selectUserByIds(userIds); |
| | | String participantsName = sysUsers.stream().map(SysUser::getNickName).collect(Collectors.joining(";")); |
| | | testMethodConfirmSheetVO.setParticipantsName(participantsName); |
| | | testMethodConfirmSheetVO.setStatus(experimentDispatch.getStatus()); |
| | | } |
| | | |
| | | // 查询审核人姓名 |
| | |
| | | // 获取登录信息 |
| | | String userName = SecurityUtils.getLoginUser().getUser().getNickName(); |
| | | if (StringUtils.isNotBlank(userName)){ |
| | | this.setFieldValByName("createBy", userName, metaObject); |
| | | this.setFieldValByName("updateBy", userName, metaObject); |
| | | } else { |
| | | this.setFieldValByName("createBy", userName, metaObject); |
| | | this.setFieldValByName("updateBy", userName, metaObject); |
| | | } |
| | | |
| | |
| | | * @return |
| | | */ |
| | | List<TQaTestItemReportVO> pageList(@Param("query")TQaTestItemReportQuery query, @Param("pageInfo")PageInfo<TQaTestItemReportVO> pageInfo); |
| | | |
| | | |
| | | /** |
| | | * 获取列表 |
| | | * @param itemId |
| | | * @return |
| | | */ |
| | | List<TQaTestItemReportVO> getListByItemId(@Param("itemId")String itemId); |
| | | } |
| | |
| | | package com.ruoyi.system.model; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.ruoyi.common.core.domain.BaseModel; |
| | | import io.swagger.annotations.ApiModel; |
| | |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | |
| | | @ApiModelProperty(value = "状态 -1=草稿箱 1=待审核 2=已通过 3=已驳回 4=已撤销") |
| | | @TableField("status") |
| | | private Integer status; |
| | | |
| | | } |
| | |
| | | |
| | | @ApiModelProperty(value = "项目组名称") |
| | | private String teamName; |
| | | @ApiModelProperty(value = "所属项目课题") |
| | | private String projectName; |
| | | @ApiModelProperty(value = "实验编号") |
| | | private String experimentCode; |
| | | |
| | |
| | | * @return |
| | | */ |
| | | PageInfo<TQaTestItemReportVO> pageList(TQaTestItemReportQuery query); |
| | | |
| | | /** |
| | | * 获取检测项报告列表 |
| | | * @param itemId |
| | | * @return |
| | | */ |
| | | List<TQaTestItemReportVO> getListByItemId(String itemId); |
| | | } |
| | |
| | | public PageInfo<TExperimentResultReportVO> evaluatePageList(TExperimentResultReportQuery query) { |
| | | PageInfo<TExperimentResultReportVO> pageInfo = new PageInfo<>(query.getPageNum(), query.getPageSize()); |
| | | List<TExperimentResultReportVO> list = this.baseMapper.evaluatePageList(query,pageInfo); |
| | | if(CollectionUtils.isEmpty(list)){ |
| | | return pageInfo; |
| | | } |
| | | List<String> dispatchIds = list.stream().map(TExperimentResultReportVO::getDispatchId).distinct().collect(Collectors.toList()); |
| | | // 查询参与人员 |
| | | List<TExperimentDispatchParticipants> tExperimentDispatchParticipants = experimentDispatchParticipantsMapper.selectList(Wrappers.lambdaQuery(TExperimentDispatchParticipants.class) |
| | | .in(TExperimentDispatchParticipants::getDispatchId, dispatchIds)); |
| | | |
| | | // 设置参与人员名称 |
| | | List<Long> userIds = tExperimentDispatchParticipants.stream().map(TExperimentDispatchParticipants::getUserId).collect(Collectors.toList()); |
| | | List<SysUser> sysUsers = sysUserMapper.selectUserByIds(userIds); |
| | | tExperimentDispatchParticipants.forEach(tExperimentDispatchParticipant -> { |
| | | SysUser sysUser = sysUsers.stream().filter(user -> user.getUserId().equals(tExperimentDispatchParticipant.getUserId())).findFirst().orElse(null); |
| | | if(sysUser != null){ |
| | | tExperimentDispatchParticipant.setNickName(sysUser.getNickName()); |
| | | tExperimentDispatchParticipant.setAvatar(sysUser.getAvatar()); |
| | | } |
| | | }); |
| | | |
| | | List<String> ids = list.stream().map(TExperimentResultReportVO::getId).distinct().collect(Collectors.toList()); |
| | | // 查询结果汇报评价 |
| | | List<TResultWorkEvaluate> resultWorkEvaluates = resultWorkEvaluateMapper.selectList(Wrappers.lambdaQuery(TResultWorkEvaluate.class) |
| | | .in(TResultWorkEvaluate::getResultReportId, ids)); |
| | | for (TExperimentResultReportVO experimentResultReportVO : list) { |
| | | experimentResultReportVO.setExperimentDispatchParticipants(tExperimentDispatchParticipants.stream().filter(participants -> participants.getDispatchId().equals(experimentResultReportVO.getDispatchId())).collect(Collectors.toList())); |
| | | experimentResultReportVO.setResultWorkEvaluates(resultWorkEvaluates.stream().filter(evaluate -> evaluate.getResultReportId().equals(experimentResultReportVO.getId())).collect(Collectors.toList())); |
| | | // 设置工艺工程师名称 |
| | | TExperimentDispatchParticipants dispatchParticipants = tExperimentDispatchParticipants.stream() |
| | | .filter(participants -> participants.getDispatchId().equals(experimentResultReportVO.getDispatchId()) |
| | | && participants.getRoleType().equals(3)).findFirst().orElse(null); |
| | | if(dispatchParticipants != null){ |
| | | experimentResultReportVO.setProcessEngineerName(dispatchParticipants.getNickName()); |
| | | } |
| | | // 设置化验师名称 |
| | | List<TExperimentDispatchParticipants> laboratoryChemist = tExperimentDispatchParticipants.stream() |
| | | .filter(participants -> participants.getDispatchId().equals(experimentResultReportVO.getDispatchId()) |
| | | && participants.getRoleType().equals(4)).collect(Collectors.toList()); |
| | | List<TResultWorkEvaluate> chemistEvaluates = resultWorkEvaluates.stream() |
| | | .filter(workEvaluate -> workEvaluate.getDispatchId().equals(experimentResultReportVO.getDispatchId()) |
| | | && workEvaluate.getEvaluateType().equals(2)).collect(Collectors.toList()); |
| | | if(laboratoryChemist.size() == chemistEvaluates.size()){ |
| | | experimentResultReportVO.setLaboratoryChemistEvaluate(1); |
| | | } |
| | | if(!CollectionUtils.isEmpty(laboratoryChemist)){ |
| | | String laboratoryChemistName = laboratoryChemist.stream().map(TExperimentDispatchParticipants::getNickName).collect(Collectors.joining(",")); |
| | | experimentResultReportVO.setLaboratoryChemistName(laboratoryChemistName); |
| | | } |
| | | // 设置实验员名称 |
| | | List<TExperimentDispatchParticipants> experimenter = tExperimentDispatchParticipants.stream() |
| | | .filter(participants -> participants.getDispatchId().equals(experimentResultReportVO.getDispatchId()) |
| | | && participants.getRoleType().equals(5)).collect(Collectors.toList()); |
| | | List<TResultWorkEvaluate> experimenterEvaluates = resultWorkEvaluates.stream() |
| | | .filter(workEvaluate -> workEvaluate.getDispatchId().equals(experimentResultReportVO.getDispatchId()) |
| | | && workEvaluate.getEvaluateType().equals(3)).collect(Collectors.toList()); |
| | | if(experimenter.size() == experimenterEvaluates.size()){ |
| | | experimentResultReportVO.setExperimenterEvaluate(1); |
| | | } |
| | | if(!CollectionUtils.isEmpty(experimenter)){ |
| | | String experimenterName = experimenter.stream().map(TExperimentDispatchParticipants::getNickName).collect(Collectors.joining(",")); |
| | | experimentResultReportVO.setExperimenterName(experimenterName); |
| | | } |
| | | } |
| | | pageInfo.setRecords(list); |
| | | return pageInfo; |
| | | } |
| | |
| | | pageInfo.setRecords(list); |
| | | return pageInfo; |
| | | } |
| | | |
| | | @Override |
| | | public List<TQaTestItemReportVO> getListByItemId(String itemId) { |
| | | return this.baseMapper.getListByItemId(itemId); |
| | | } |
| | | } |
| | |
| | | import org.springframework.util.CollectionUtils; |
| | | |
| | | import java.util.List; |
| | | import java.util.Objects; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | |
| | | if(!CollectionUtils.isEmpty(userIds)){ |
| | | List<SysUser> sysUsers = sysUserMapper.selectUserByIds(userIds); |
| | | for (ResultEvaluateChemistTesterVO resultEvaluateChemistTesterVO : list) { |
| | | sysUsers.stream().filter(sysUser -> sysUser.getUserId().equals(resultEvaluateChemistTesterVO.getParticipantsId())).findFirst().ifPresent(sysUser -> { |
| | | TExperimentDispatchParticipants dispatchParticipants = experimentDispatchParticipants.stream().filter(experimentDispatchParticipant -> experimentDispatchParticipant.getDispatchId().equals(resultEvaluateChemistTesterVO.getDispatchId())).findFirst().orElse(null); |
| | | if(Objects.nonNull(dispatchParticipants)){ |
| | | sysUsers.stream().filter(sysUser -> sysUser.getUserId().equals(dispatchParticipants.getUserId())).findFirst().ifPresent(sysUser -> { |
| | | resultEvaluateChemistTesterVO.setProcessEngineerName(sysUser.getNickName()); |
| | | }); |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | if(!CollectionUtils.isEmpty(userIds)){ |
| | | List<SysUser> sysUsers = sysUserMapper.selectUserByIds(userIds); |
| | | for (ResultEvaluateChemistTesterVO resultEvaluateChemistTesterVO : list) { |
| | | sysUsers.stream().filter(sysUser -> sysUser.getUserId().equals(resultEvaluateChemistTesterVO.getParticipantsId())).findFirst().ifPresent(sysUser -> { |
| | | TExperimentDispatchParticipants dispatchParticipants = experimentDispatchParticipants.stream().filter(experimentDispatchParticipant -> experimentDispatchParticipant.getDispatchId().equals(resultEvaluateChemistTesterVO.getDispatchId())).findFirst().orElse(null); |
| | | if(Objects.nonNull(dispatchParticipants)){ |
| | | sysUsers.stream().filter(sysUser -> sysUser.getUserId().equals(dispatchParticipants.getUserId())).findFirst().ifPresent(sysUser -> { |
| | | resultEvaluateChemistTesterVO.setProcessEngineerName(sysUser.getNickName()); |
| | | }); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | pageInfo.setRecords(list); |
| | | return pageInfo; |
| | | } |
| | |
| | | package com.ruoyi.system.vo; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | |
| | | @ApiModelProperty(value = "评定时间") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private LocalDateTime evaluateTime; |
| | | |
| | | @ApiModelProperty(value = "评定分数 json") |
| | | @TableField("result_evaluate_json") |
| | | private String resultEvaluateJson; |
| | | } |
| | |
| | | |
| | | @ApiModelProperty(value = "总分") |
| | | private Double totalScore; |
| | | |
| | | @ApiModelProperty(value = "项目组名称") |
| | | private String teamName; |
| | | } |
| | |
| | | @ApiModelProperty(value = "评定人员名称") |
| | | private String evaluatePersonName; |
| | | |
| | | @ApiModelProperty(value = "审核人员名称") |
| | | private String auditPersonName; |
| | | |
| | | @ApiModelProperty(value = "报告文件") |
| | | private List<TFeasibilityReportFile> feasibilityReportFiles; |
| | | |
| | |
| | | @ApiModelProperty(value = "项目组名称") |
| | | private String teamName; |
| | | |
| | | @ApiModelProperty(value = "评价人名称") |
| | | private String evaluatePersonName; |
| | | |
| | | @ApiModelProperty(value = "检测报告列表") |
| | | private List<TQaTestItemReportVO> qaTestItemReportList; |
| | | |
| | |
| | | private String chemistName; |
| | | @ApiModelProperty(value = "实验员名称") |
| | | private String testerName; |
| | | @ApiModelProperty(value = "项目课题方案") |
| | | private String projectName; |
| | | |
| | | } |
| | |
| | | package com.ruoyi.system.vo; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.ruoyi.system.model.TTestMethodConfirmSheet; |
| | | import com.ruoyi.system.model.TTestMethodConfirmSheetTerm; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import java.time.LocalDateTime; |
| | | import java.util.List; |
| | | |
| | | @Data |
| | |
| | | @ApiModelProperty(value = "审核人姓名") |
| | | private String auditPersonName; |
| | | |
| | | @ApiModelProperty(value = "通知时间") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private LocalDateTime experimentDate; |
| | | |
| | | @ApiModelProperty(value = "实验开始时间") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private LocalDateTime experimentStartTime; |
| | | |
| | | @ApiModelProperty(value = "实验结束时间") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | private LocalDateTime experimentEndTime; |
| | | |
| | | @ApiModelProperty(value = "参与人员名称拼接") |
| | | private String participantsName; |
| | | @ApiModelProperty(value = "状态") |
| | | private Integer status; |
| | | |
| | | } |
| | |
| | | and tpp.project_name like concat('%', #{query.projectName}, '%') |
| | | </if> |
| | | <if test="query.experimentCode != null and query.experimentCode != ''"> |
| | | and tes.experiment_code like concat('%', #{query.experimentCode}, '%') |
| | | and ted.experiment_code like concat('%', #{query.experimentCode}, '%') |
| | | </if> |
| | | <if test="query.startTime != null and query.startTime != '' and query.endTime != null and query.endTime != ''"> |
| | | AND tes.create_time BETWEEN #{query.startTime} AND #{query.endTime} |
| | |
| | | and tpp.project_name like concat('%', #{query.projectName}, '%') |
| | | </if> |
| | | <if test="query.experimentCode != null and query.experimentCode != ''"> |
| | | and tes.experiment_code like concat('%', #{query.experimentCode}, '%') |
| | | and ted.experiment_code like concat('%', #{query.experimentCode}, '%') |
| | | </if> |
| | | <if test="query.startTime != null and query.startTime != '' and query.endTime != null and query.endTime != ''"> |
| | | AND tes.create_time BETWEEN #{query.startTime} AND #{query.endTime} |
| | |
| | | </where> |
| | | ORDER BY tqtir.create_time DESC |
| | | </select> |
| | | <select id="getListByItemId" resultType="com.ruoyi.system.vo.TQaTestItemReportVO"> |
| | | select |
| | | <include refid="Base_Column_List" /> |
| | | from t_qa_test_item_report |
| | | where item_id = #{itemId} |
| | | and status in (1,2,3) |
| | | and disabled = ${@com.ruoyi.common.enums.DisabledEnum@NO.getCode()} |
| | | order by create_time desc |
| | | </select> |
| | | |
| | | </mapper> |
| | |
| | | <if test="query.teamName != null and query.teamName != ''"> |
| | | and tpp.team_name like concat('%',#{query.teamName},'%') |
| | | </if> |
| | | <if test="query.projectName != null and query.projectName != ''"> |
| | | and tpp.project_name like concat('%',#{query.projectName},'%') |
| | | </if> |
| | | <if test="query.experimentCode != null and query.experimentCode != ''"> |
| | | and ted.experiment_code like concat('%',#{query.experimentCode},'%') |
| | | </if> |
| | |
| | | <if test="query.status != null"> |
| | | AND trwe.status = #{query.status} |
| | | </if> |
| | | <if test="query.teamIds != null and query.teamIds > 0"> |
| | | <if test="query.teamIds != null and query.teamIds.size() > 0"> |
| | | AND trwe.team_id in |
| | | <foreach collection="query.teamIds" item="id" open="(" separator="," close=")"> |
| | | #{id} |
| | |
| | | <if test="query.status != null"> |
| | | AND trwe.status = #{query.status} |
| | | </if> |
| | | <if test="query.teamIds != null and query.teamIds > 0"> |
| | | <if test="query.teamIds != null and query.teamIds.size() > 0"> |
| | | AND trwe.team_id in |
| | | <foreach collection="query.teamIds" item="id" open="(" separator="," close=")"> |
| | | #{id} |
| | |
| | | select trwe.evaluate_time,CASE WHEN trwe.id IS NOT NULL THEN 1 ELSE 0 END AS isEvaluate,trwe.id, |
| | | tedp.id AS participantsId,tpp.project_name AS projectName,tpp.project_stage AS projectStage, |
| | | ted.experiment_code AS experimentCode,ted.experiment_name AS experimentName,su.nick_name AS laboratoryChemistName, |
| | | tedp.dispatch_id AS dispatchId |
| | | tedp.dispatch_id AS dispatchId,tedp.result_evaluate_json AS resultEvaluateJson |
| | | from t_experiment_dispatch_participants tedp |
| | | left join t_experiment_dispatch ted on ted.id = tedp.dispatch_id |
| | | left join t_result_work_evaluate trwe on tedp.id = trwe.dispatch_id and trwe.evaluate_type = 2 |
| | | left join t_result_work_evaluate trwe on ted.id = trwe.dispatch_id and trwe.evaluate_type = 2 |
| | | left join t_project_proposal tpp on ted.proposal_id = tpp.id |
| | | left join sys_user su on tedp.user_id = su.id |
| | | left join sys_user su on tedp.user_id = su.user_id |
| | | <where> |
| | | <if test="query.experimentCode != null and query.experimentCode != ''"> |
| | | and ted.experiment_code like concat('%',#{query.experimentCode},'%') |
| | |
| | | tedp.dispatch_id AS dispatchId |
| | | from t_experiment_dispatch_participants tedp |
| | | left join t_experiment_dispatch ted on ted.id = tedp.dispatch_id |
| | | left join t_result_work_evaluate trwe on tedp.id = trwe.dispatch_id and trwe.evaluate_type = 3 |
| | | left join t_result_work_evaluate trwe on ted.id = trwe.dispatch_id and trwe.evaluate_type = 3 |
| | | left join t_project_proposal tpp on ted.proposal_id = tpp.id |
| | | left join sys_user su on tedp.user_id = su.id |
| | | left join sys_user su on tedp.user_id = su.user_id |
| | | <where> |
| | | <if test="query.experimentCode != null and query.experimentCode != ''"> |
| | | and ted.experiment_code like concat('%',#{query.experimentCode},'%') |