Commit 07bd9efa by 杨林龙

Merge remote-tracking branch 'origin/v1.5.0' into v1.5.0

2 parents 01964fba 8a1b82f8
......@@ -6,6 +6,7 @@ import lombok.Data;
public class VehiclePermitDTO {
private String id;
private String pid;
private Long vehicleId;
private String vin;
private String ownerName;
......
......@@ -2022,22 +2022,6 @@ public class VehicleService {
}
/**
* 检查被授权人是否已经存在收取按数据
*
* @param receiverId
* @param vehicle
* @return
*/
public boolean checkReceiverPermit(Long receiverId, Vehicle vehicle) {
if (vehicle == null) {
return false;
}
VehiclePermit vehiclePermit = vehiclePermitMapper.selectByContentIdAndReceiverId(vehicle.getId(), receiverId);
return vehiclePermit != null;
}
/**
* 授权数据
*
* @param assignBO
......
......@@ -43,11 +43,17 @@
</select>
<select id="selectPermitVehicleByReceiverId" resultType="cn.com.glsx.admin.modules.model.view.VehiclePermitDTO">
select concat('v', tvp.content_id) id, tvp.accorder_id accorderId, tv.id vehicleId, tv.vin, tv.owner_name ownerName
select concat('v', tvp.content_id) as id,
tvp.accorder_id accorderId,
tv.id vehicleId,
tv.vin,
tv.owner_name ownerName,
concat('u', tv.created_by) as pid
from t_vehicle_permit tvp
left join t_vehicle tv on tvp.content_id = tv.id
where tvp.del_flag = 0
and tv.del_flag = 0
and tv.created_by is not null
and tvp.receiver_id = #{receiverId}
</select>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!