Showing
1 changed file
with
2 additions
and
1 deletions
... | ... | @@ -6,6 +6,7 @@ import com.baomidou.mybatisplus.core.metadata.IPage; |
6 | 6 | import lombok.RequiredArgsConstructor; |
7 | 7 | import lombok.extern.slf4j.Slf4j; |
8 | 8 | import org.apache.commons.collections4.CollectionUtils; |
9 | +import org.apache.commons.lang3.BooleanUtils; | |
9 | 10 | import org.apache.commons.lang3.StringUtils; |
10 | 11 | import org.springframework.context.annotation.Lazy; |
11 | 12 | import org.springframework.stereotype.Service; |
... | ... | @@ -62,7 +63,7 @@ public class TkInspectionRecordServiceImpl extends AbstractBaseService<TkInspect |
62 | 63 | } |
63 | 64 | |
64 | 65 | if (queryMap != null && queryMap.get("recordResult") != null) { |
65 | - lambda.eq(TkInspectionRecordEntity::isRecordResult, queryMap.get("recordResult").toString()); | |
66 | + lambda.eq(TkInspectionRecordEntity::isRecordResult, BooleanUtils.toBoolean(queryMap.get("recordResult").toString())); | |
66 | 67 | } |
67 | 68 | |
68 | 69 | if (queryMap != null && queryMap.get("startTime") != null && queryMap.get("endTime") != null) { | ... | ... |