lmw
2023-06-13 adf8013576cbdd12e5ebea8ff7e32baf5d558b27
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package com.kuanzhai.user.network.entity
 
data class TicketRecord(
    val content: String = "",
    val id: Int = 0,
    val insertTime: String = "",
    val money: Double = 0.0,
    val state: Int = 0,
    val type: String = ""
){
    fun getStateStr() = when(state){ //开票状态(1=待开,2=已开,3=失败)
        1->"待开票"
        2->"已开具"
        3->"开票失败"
        else->""
    }
}