text:修改故障展示(改为双表)
parent
79f2041468
commit
9ae19e1144
|
@ -19,10 +19,7 @@ import java.util.List;
|
||||||
public interface SysCarFaultLogMapper extends BaseMapper<SysCarFaultLog> {
|
public interface SysCarFaultLogMapper extends BaseMapper<SysCarFaultLog> {
|
||||||
|
|
||||||
|
|
||||||
@Select("select * from sys_car_fault_log where is_read=1")
|
|
||||||
public List<SysCarFaultLog> listIsReadAlready( );
|
|
||||||
@Select("select * from sys_car_fault_log where is_read=2")
|
|
||||||
public List<SysCarFaultLog>listISReadNotYet( );
|
|
||||||
|
|
||||||
|
|
||||||
@Select("SELECT fault.fault_code,log.update_time,log.create_time,log.vin,log.status FROM sys_car_fault_log log \n" +
|
@Select("SELECT fault.fault_code,log.update_time,log.create_time,log.vin,log.status FROM sys_car_fault_log log \n" +
|
||||||
|
|
|
@ -53,7 +53,7 @@ public class sysCarFaultLogServiceImpl extends ServiceImpl<SysCarFaultLogMapper,
|
||||||
if (StringUtils.isNotEmpty(sysCarFaultLog.getVin())){
|
if (StringUtils.isNotEmpty(sysCarFaultLog.getVin())){
|
||||||
wrapper.eq(SysCarFaultLog::getVin,sysCarFaultLog.getVin());
|
wrapper.eq(SysCarFaultLog::getVin,sysCarFaultLog.getVin());
|
||||||
}
|
}
|
||||||
return this.list(wrapper);
|
return sysCarFaultLogMapper.list(sysCarFaultLog);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -68,7 +68,7 @@ public class sysCarFaultLogServiceImpl extends ServiceImpl<SysCarFaultLogMapper,
|
||||||
if (StringUtils.isNotEmpty(sysCarFaultLog.getVin())){
|
if (StringUtils.isNotEmpty(sysCarFaultLog.getVin())){
|
||||||
wrapper.eq(SysCarFaultLog::getVin,sysCarFaultLog.getVin());
|
wrapper.eq(SysCarFaultLog::getVin,sysCarFaultLog.getVin());
|
||||||
}
|
}
|
||||||
return this.list(wrapper);
|
return sysCarFaultLogMapper.list(sysCarFaultLog);
|
||||||
}
|
}
|
||||||
|
|
||||||
//只展示已解决的数据
|
//只展示已解决的数据
|
||||||
|
@ -79,7 +79,7 @@ public class sysCarFaultLogServiceImpl extends ServiceImpl<SysCarFaultLogMapper,
|
||||||
if (StringUtils.isNotEmpty(sysCarFaultLog.getVin())){
|
if (StringUtils.isNotEmpty(sysCarFaultLog.getVin())){
|
||||||
wrapper.eq(SysCarFaultLog::getVin,sysCarFaultLog.getVin());
|
wrapper.eq(SysCarFaultLog::getVin,sysCarFaultLog.getVin());
|
||||||
}
|
}
|
||||||
return this.list(wrapper);
|
return sysCarFaultLogMapper.list(sysCarFaultLog);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue