package com.xxfc.platform.order.pojo.vo;

import com.xxfc.platform.order.contant.enumerate.CompanyWalletITypeEnum;
import com.xxfc.platform.order.contant.enumerate.CompanyWalletSourceEnum;
import com.xxfc.platform.order.entity.CompanyWalletDetail;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class CompanyWalletDetailVo extends CompanyWalletDetail {

	@ApiModelProperty("门店名称")
	private String companyName;


	@ApiModelProperty("企业名称")
	private String branchName;


	@ApiModelProperty("类型说明")
	private String sourceName;


	@ApiModelProperty("类型")
	private String typeName;


	public  String getSourceName(){
		return CompanyWalletITypeEnum.get(getItype()).getDesc();
	}


	public  String getTypeName(){
		return getType() == 1 ? "收入":"支出";
	}


}
