chendayu 2 년 전
부모
커밋
cd0c29b6ad
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      RMS/src/main/java/cn/cslg/report/service/business/ReportService.java

+ 1 - 1
RMS/src/main/java/cn/cslg/report/service/business/ReportService.java

@@ -728,7 +728,7 @@ public class ReportService extends ServiceImpl<ReportMapper, Report> {
     public ReportDeVO reReportDetail(Integer reportId) {
         ReportDeVO reportDeVO = new ReportDeVO();
         //检测传入参数合法性
-        if (reportId == null && reportId <= 0) {
+        if (reportId == null || reportId <= 0) {
             throw new XiaoShiException("传入参数异常");
         }
         //根据报告id获得报告