示例#1
0
        public bool UpdateVehicleAuditStatus(Guid carId, int status)
        {
            VehicleAuditInfoModel appeal = DalVehicleTypeCertificationAuditLog.GetVehicleAuthAppeal(carId);

            using (var client = new VehicleClient())
            {
                var response = client.UpdateVehicleTypeCertificationStatus(new VehicleTypeCertificationRequest()
                {
                    CarId               = carId,
                    Status              = status,
                    CarNo               = appeal?.CarNumber,
                    Channel             = appeal?.Channel,
                    EngineNo            = appeal?.EngineNo,
                    Vehicle_license_img = appeal?.ImageUrl,
                    User_IdCard_img     = appeal?.IdCardUrl,
                    VinCode             = appeal?.VinCode,
                    Registrationtime    = appeal?.car_Registrationtime
                });
                if (response.Success && status > 0)
                {
                    using (var db = Tuhu.Component.Common.DbHelper.CreateDefaultDbHelper())
                    {
                        DalVehicleTypeCertificationAuditLog.UpdateVehicleAuditStatus(db, carId, status);
                    }
                }
                return(response.Success);
            }
        }
示例#2
0
 public ListModel <VehicleAuditInfoModel> SelectVehicleAuditInfo(VehicleAuthAuditRequest request)
 {
     return(DalVehicleTypeCertificationAuditLog.SelectVehicleAuditInfo(request));
 }
示例#3
0
 public List <VehicleTypeCertificationAuditLogModel> SelectLogs(List <Guid> carIds)
 {
     return(DalVehicleTypeCertificationAuditLog.SelectLogs(carIds));
 }
示例#4
0
 public List <VehicleTypeCertificationAuditLogModel> SelectLogsByCarId(Guid carId)
 {
     return(DalVehicleTypeCertificationAuditLog.SelectLogsByCarId(carId));
 }
示例#5
0
 public bool InsertLog(VehicleTypeCertificationAuditLogModel model)
 {
     return(DalVehicleTypeCertificationAuditLog.InsertLog(model));
 }