diff --git a/nflg-mobilebroken-common/src/main/java/com/nflg/mobilebroken/common/pojo/vo/SolutionMeasuresVO.java b/nflg-mobilebroken-common/src/main/java/com/nflg/mobilebroken/common/pojo/vo/SolutionMeasuresVO.java index 311d9c73..3c090dfd 100644 --- a/nflg-mobilebroken-common/src/main/java/com/nflg/mobilebroken/common/pojo/vo/SolutionMeasuresVO.java +++ b/nflg-mobilebroken-common/src/main/java/com/nflg/mobilebroken/common/pojo/vo/SolutionMeasuresVO.java @@ -18,6 +18,6 @@ public class SolutionMeasuresVO { //是否是审核人 private boolean inAudit=false; - // 是否已审核 - private boolean audited=false; + // 是否审核通过,默认为null,表示未审核;false:不通过,true:通过 + private Boolean approved; } diff --git a/nflg-mobilebroken-repository/src/main/java/com/nflg/mobilebroken/repository/service/impl/TicketSolutionServiceImpl.java b/nflg-mobilebroken-repository/src/main/java/com/nflg/mobilebroken/repository/service/impl/TicketSolutionServiceImpl.java index 360f6b95..38f4b2dd 100644 --- a/nflg-mobilebroken-repository/src/main/java/com/nflg/mobilebroken/repository/service/impl/TicketSolutionServiceImpl.java +++ b/nflg-mobilebroken-repository/src/main/java/com/nflg/mobilebroken/repository/service/impl/TicketSolutionServiceImpl.java @@ -61,9 +61,9 @@ public class TicketSolutionServiceImpl extends ServiceImpl> groupedSolutions = solutions.stream().collect(Collectors.groupingBy(TicketSolution::getDictionaryItemName, LinkedHashMap::new, Collectors.toList())); SolutionMeasuresVO vo=new SolutionMeasuresVO(); TicketSolutionAudit audit =ticketSolutionAuditService.getByTicketAndUser(ticketId,AdminUserUtil.getUserId()); - if (Objects.nonNull(audit)){ + if (Objects.nonNull(audit)) { vo.setInAudit(true); - vo.setAudited(Objects.nonNull(audit.getState())); + vo.setApproved(Objects.isNull(audit.getState()) ? null : Objects.equals(audit.getState(), 1)); } List items = new ArrayList<>(); if (CollectionUtil.isEmpty(groupedSolutions)) { diff --git a/nflg-mobilebroken-repository/src/main/resources/mapper/DeviceMapper.xml b/nflg-mobilebroken-repository/src/main/resources/mapper/DeviceMapper.xml index e9560453..8ba5b290 100644 --- a/nflg-mobilebroken-repository/src/main/resources/mapper/DeviceMapper.xml +++ b/nflg-mobilebroken-repository/src/main/resources/mapper/DeviceMapper.xml @@ -22,22 +22,23 @@ - and a.device_no=#{query.deviceNo} + and a.device_no LIKE concat('%', #{query.deviceNo}, '%') - and a.customer_name=#{query.customerName} + and a.customer_name LIKE concat('%', #{query.customerName}, '%') and a.agent_name=#{query.agentName} - and a.model_no=#{query.modelNo} + and a.model_no LIKE concat('%', #{query.modelNo}, '%') and a.warranty_state=#{query.warrantyState} - and a.start_warranty_date >= #{query.warrantyStartDate} and start_warranty_date <= #{query.warrantyEndDate} + and a.start_warranty_date >= #{query.warrantyStartDate} and start_warranty_date <= + #{query.warrantyEndDate}