|
@@ -1,6 +1,7 @@
|
|
|
package com.gyee.healthmanagementhistroy.service.healthreport;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
+import com.gyee.common.model.StringUtils;
|
|
|
import com.gyee.common.util.CommonUtils;
|
|
|
import com.gyee.common.util.DateUtils;
|
|
|
import com.gyee.healthmanagementhistroy.mapper.healthreport.PartDangerMapper;
|
|
@@ -9,13 +10,11 @@ import com.gyee.healthmanagementhistroy.model.auto.*;
|
|
|
import com.gyee.healthmanagementhistroy.model.healthreport.PartDanger;
|
|
|
import com.gyee.healthmanagementhistroy.model.healthreport.PartPower;
|
|
|
import com.gyee.healthmanagementhistroy.service.auto.*;
|
|
|
-import org.springframework.stereotype.Repository;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
import java.lang.reflect.Field;
|
|
|
import java.util.*;
|
|
|
-import java.util.regex.Pattern;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
/**
|
|
@@ -260,7 +259,10 @@ public class HealthReportService {
|
|
|
}
|
|
|
reportdanger.setCountavg((int) avgcount);
|
|
|
reportdanger.setTimesavg(avgtime);
|
|
|
- resultList.add(reportdanger);
|
|
|
+ if (StringUtils.isNotEmpty(reportdanger.getPart())){
|
|
|
+ resultList.add(reportdanger);
|
|
|
+ }
|
|
|
+
|
|
|
});
|
|
|
reportdangerService.saveBatch(resultList);
|
|
|
}
|