Commit ccaff94f by 谢海旭

方法重命名

1 parent e272a625
...@@ -140,7 +140,7 @@ public interface VehicleDeviceMapper extends CommonBaseMapper<VehicleDevice> { ...@@ -140,7 +140,7 @@ public interface VehicleDeviceMapper extends CommonBaseMapper<VehicleDevice> {
* @param vehicleId * @param vehicleId
* @return * @return
*/ */
String getEarliestInstallDeviceSn(@Param("vehicleId") Long vehicleId); String getEarliestWireDeviceSn(@Param("vehicleId") Long vehicleId);
/** /**
* 根据userId列表查询所有车辆最早绑定的有线设备的sn码列表 * 根据userId列表查询所有车辆最早绑定的有线设备的sn码列表
......
...@@ -792,7 +792,7 @@ public class RiskAssessmentService { ...@@ -792,7 +792,7 @@ public class RiskAssessmentService {
VehicleUsageAnalysisVO analysisVO = new VehicleUsageAnalysisVO(); VehicleUsageAnalysisVO analysisVO = new VehicleUsageAnalysisVO();
//每日平均里程数 //每日平均里程数
String sn = vehicleDeviceMapper.getEarliestInstallDeviceSn(vehicleId); String sn = vehicleDeviceMapper.getEarliestWireDeviceSn(vehicleId);
log.info("sn:{}", sn); log.info("sn:{}", sn);
Example overviewExample = new Example.Builder(DeviceJourneyOverview.class).where(WeekendSqls.<DeviceJourneyOverview>custom() Example overviewExample = new Example.Builder(DeviceJourneyOverview.class).where(WeekendSqls.<DeviceJourneyOverview>custom()
.andEqualTo(DeviceJourneyOverview::getSn, sn).andEqualTo(DeviceJourneyOverview::getDelFlag, 0)).build(); .andEqualTo(DeviceJourneyOverview::getSn, sn).andEqualTo(DeviceJourneyOverview::getDelFlag, 0)).build();
......
...@@ -352,7 +352,7 @@ ...@@ -352,7 +352,7 @@
and tvd.del_flag = 0 and tvd.del_flag = 0
order by tvd.wire_type desc, tvd.created_date order by tvd.wire_type desc, tvd.created_date
</select> </select>
<select id="getEarliestInstallDeviceSn" resultType="java.lang.String"> <select id="getEarliestWireDeviceSn" resultType="java.lang.String">
select tvd.sn select tvd.sn
from t_vehicle tv from t_vehicle tv
left join t_vehicle_device tvd on tvd.vehicle_id = tv.id left join t_vehicle_device tvd on tvd.vehicle_id = tv.id
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!