Commit a7b3784d by 杨林龙

Merge remote-tracking branch 'origin/master'

2 parents bd9471a0 ffc321f3
......@@ -40,7 +40,7 @@ public class VehicleApproDto extends BaseAreaDto {
private String saleManager;
private String saleManagerPhone;
private String velRemark;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date submitTime;
private boolean isbutton;
}
......@@ -17,7 +17,7 @@ public class VehicleDocDto {
/**
* 资料类型
*/
private Byte docType;
private Integer docType;
/**
* 文件链接
......
......@@ -100,6 +100,7 @@ public class VehicleDocService {
BeanUtils.copyProperties(index, vehicleDoc);
return vehicleDoc;
}).collect(Collectors.toList());
driveVehicleById.setVehicleDocDtoList(vehicleDocList);
return driveVehicleById;
}
......
......@@ -198,6 +198,25 @@ public class VehicleService {
}
/**
* 解绑车辆设备(根据车辆id解绑)
*
* @param tempId
*/
@Transactional(rollbackFor = Exception.class)
public void unbindDriveVehicle(String tempId) {
List<VehicleDevice> vehicleDevices = vehicleDeviceService.listVehicleDeviceByVehicleIdBind(Long.parseLong(tempId));
if (CollectionUtils.isEmpty(vehicleDevices)) {
throw new AdminException(ResultEnum.PARAM_ERROR);
}
for (VehicleDevice vehicleDevice : vehicleDevices) {
vehicleDevice.setBindStatus(ConstantsDevice.UN_BIND_VEHICLE_STATUS);
vehicleDevice.setUpdatedBy(ShieldContextHolder.getUserId());
vehicleDevice.setUpdatedDate(new Date());
vehicleDeviceService.updateByPrimaryKey(vehicleDevice);
}
}
/**
* 编辑回显车辆数据
*
* @param tempId
......@@ -232,25 +251,6 @@ public class VehicleService {
}
/**
* 解绑车辆设备(根据车辆id解绑)
*
* @param tempId
*/
@Transactional(rollbackFor = Exception.class)
public void unbindDriveVehicle(String tempId) {
List<VehicleDevice> vehicleDevices = vehicleDeviceService.listVehicleDeviceByVehicleIdBind(Long.parseLong(tempId));
if (CollectionUtils.isEmpty(vehicleDevices)) {
throw new AdminException(ResultEnum.PARAM_ERROR);
}
for (VehicleDevice vehicleDevice : vehicleDevices) {
vehicleDevice.setBindStatus(ConstantsDevice.UN_BIND_VEHICLE_STATUS);
vehicleDevice.setUpdatedBy(ShieldContextHolder.getUserId());
vehicleDevice.setUpdatedDate(new Date());
vehicleDeviceService.updateByPrimaryKey(vehicleDevice);
}
}
/**
* 批量删除车辆
*
* @param tempId
......
......@@ -103,8 +103,8 @@
)
</if>
GROUP BY
t5.id
ORDER BY t5.updated_date desc
t5.biz_id
ORDER BY t5.created_date desc
</select>
<select id="searchFenceApp" resultType="cn.com.glsx.admin.modules.model.FenceApproDto">
......
......@@ -74,7 +74,8 @@
ttds.shop_code shopCode,
ttds.shop_level shopLevel,
tef.created_date createdDate,
tef.created_by creatorId
tef.created_by creatorId,
biz_fence_type as bizFenceType
from t_electric_fence tef
left join t_trial_drive_shop ttds on ttds.fence_id = tef.id
where tef.del_flag = 0
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!