lmw
2023-06-13 adf8013576cbdd12e5ebea8ff7e32baf5d558b27
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
package com.kuanzhai.user.network.entity
 
import android.os.Parcelable
import kotlinx.android.parcel.Parcelize
 
@Parcelize
data class SaleBean(
    val addres: String = "",
    val authRemark: String = "",
    val brandId: Int = 0,
    val brandName: String = "",
    val carColor: String = "",
    val carIdentificationCode: String = "",
    val carLicensePlate: String = "",
    val category: String = "",
    val cityCode: String = "",
    val cityName: String = "",
    val contactsName: String = "",
    val contactsPhone: String = "",
    val createTime: String = "",
    val describe: String = "",
    val describeImgUrl: String = "",
    val displacement: String = "",
    val dueTimeOfCompulsoryInsurance: String = "",
    val expirationTimeOfAnnualInspection: String = "",
    val id: Long = 0,
    val imgUrl: String = "",
    val includingTransferFee: Int = 0,
    val installationConfiguration: String = "",
    val level: String = "",
    val licensingTime: String = "",
    val locationOfLicensePlate: String = "",
    val maturityTimeOfCommercialInsurance: String = "",
    val mileage: String = "",
    val mortgage: Int = 0,
    val isAuth: String = "", //是否已实名(1:否,2:是)
    val newCarPrice: String = "",
    val operationUpdateTime: String = "",
    val provinceCode: String = "",
    val provinceName: String = "",
    val remainingOperationTime: String = "",
    var status: Int = 0,
    val title: String = "",
    val transferPrice: Double = 0.0,
    val transferTimes: String = "",
    val transmissionCase: String = "",
    val userId: Int = 0,
    val userType: Int = 0,
    val videoUrl: String = ""
): Parcelable {
    fun getStateStr() = when(status){ //状态(1=待审核,2=已上架,3=已下架,4=审核通过待上架,5=已拒绝,6=删除)
        1->"审核中"
        2->"上架中"
        3->"已下架"
        4->"待上架"
        5->"已拒绝"
        else->""
    }
 
    fun getMoney() = "%.2f万".format(transferPrice/10000)
}