package com.android.app_base.utils;
|
|
import androidx.databinding.InverseMethod;
|
|
/**
|
* Created by guoshen on 2024/7/3
|
*/
|
public class StringStatus {
|
@InverseMethod("statusToText")
|
public static String statusToText(String status){
|
return status =="1" ?"同意":(status =="0"?"拒绝":"待审批");
|
}
|
|
@InverseMethod("textToStatus")
|
|
public static String textToStatus(String status){
|
return status.equals("同意")?"1" :(status.equals("拒绝")?"0":"-1");
|
}
|
}
|