package com.zy.crm.manager.entity;
|
|
import com.core.common.Cools;import com.baomidou.mybatisplus.annotations.TableId;
|
import com.baomidou.mybatisplus.enums.IdType;
|
import com.baomidou.mybatisplus.annotations.TableField;
|
import java.text.SimpleDateFormat;
|
import java.util.Date;
|
|
import com.core.common.SpringUtils;
|
import com.zy.crm.manager.service.ReimburseCostTypesService;
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
import io.swagger.annotations.ApiModelProperty;
|
import lombok.Data;
|
import com.baomidou.mybatisplus.annotations.TableName;
|
import java.io.Serializable;
|
|
@Data
|
@TableName("man_reimburse_online_detl")
|
public class ReimburseOnlineDetl implements Serializable {
|
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* ID
|
*/
|
@ApiModelProperty(value= "ID")
|
@TableId(value = "id", type = IdType.AUTO)
|
private Long id;
|
|
@ApiModelProperty(value= "事由")
|
private String occupation;
|
|
/**
|
* 费用类型
|
*/
|
@ApiModelProperty(value= "费用类型")
|
@TableField("expense_type")
|
private Integer expenseType;
|
|
/**
|
* 列支人员
|
*/
|
@ApiModelProperty(value= "列支人员")
|
@TableField("user_id")
|
private Integer userId;
|
|
/**
|
* 列支部门
|
*/
|
@ApiModelProperty(value= "列支部门")
|
@TableField("dept_id")
|
private Integer deptId;
|
|
@ApiModelProperty(value= "")
|
@TableField("host_id")
|
private Integer hostId;
|
|
/**
|
* 项目ID,关联man_order表主键
|
*/
|
@ApiModelProperty(value= "项目ID,关联man_order表主键")
|
@TableField("order_id")
|
private Long orderId;
|
|
/**
|
* 税率
|
*/
|
@ApiModelProperty(value= "税率")
|
@TableField("tax_rate")
|
private Double taxRate;
|
|
/**
|
* 未税本币金额
|
*/
|
@ApiModelProperty(value= "未税本币金额")
|
@TableField("untaxed_amount_in_local_currency")
|
private Double untaxedAmountInLocalCurrency;
|
|
/**
|
* 未税金额
|
*/
|
@ApiModelProperty(value= "未税金额")
|
@TableField("untaxed_amount")
|
private Double untaxedAmount;
|
|
/**
|
* 税额
|
*/
|
@ApiModelProperty(value= "税额")
|
@TableField("tax_amount")
|
private Double taxAmount;
|
|
/**
|
* 发票金额
|
*/
|
@ApiModelProperty(value= "发票金额")
|
@TableField("invoice_value")
|
private Double invoiceValue;
|
|
/**
|
* 发票本币金额
|
*/
|
@ApiModelProperty(value= "发票本币金额")
|
@TableField("invoice_amount_in_local_currency")
|
private Double invoiceAmountInLocalCurrency;
|
|
/**
|
* 报销比例
|
*/
|
@ApiModelProperty(value= "报销比例")
|
@TableField("reimbursement_ratio")
|
private Double reimbursementRatio;
|
|
/**
|
* 报销金额
|
*/
|
@ApiModelProperty(value= "报销金额")
|
@TableField("reimbursement_amount")
|
private Double reimbursementAmount;
|
|
/**
|
* 报销本币金额
|
*/
|
@ApiModelProperty(value= "报销本币金额")
|
@TableField("reimbursement_amount_in_local_currency")
|
private Double reimbursementAmountInLocalCurrency;
|
|
/**
|
* 出纳确认金额
|
*/
|
@ApiModelProperty(value= "出纳确认金额")
|
@TableField("cashier_confirmation_amount")
|
private Double cashierConfirmationAmount;
|
|
/**
|
* 出纳币种
|
*/
|
@ApiModelProperty(value= "出纳币种")
|
@TableField("cashier_currency")
|
private Integer cashierCurrency;
|
|
/**
|
* 出发日期
|
*/
|
@ApiModelProperty(value= "出发日期")
|
@TableField("departure_time")
|
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
private Date departureTime;
|
|
/**
|
* 更新日期
|
*/
|
@ApiModelProperty(value= "更新日期")
|
@TableField("update_time")
|
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
private Date updateTime;
|
|
/**
|
* 更新人员ID
|
*/
|
@ApiModelProperty(value= "更新人员ID")
|
@TableField("update_user_id")
|
private Integer updateUserId;
|
|
/**
|
* 更新人员名字
|
*/
|
@ApiModelProperty(value= "更新人员名字")
|
@TableField("update_user_name")
|
private String updateUserName;
|
|
/**
|
* 创建日期
|
*/
|
@ApiModelProperty(value= "创建日期")
|
@TableField("creation_time")
|
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
private Date creationTime;
|
|
/**
|
* 创建人员id
|
*/
|
@ApiModelProperty(value= "创建人员id")
|
@TableField("creation_user_id")
|
private Integer creationUserId;
|
|
/**
|
* 创建人员名字
|
*/
|
@ApiModelProperty(value= "创建人员名字")
|
@TableField("creation_user_name")
|
private String creationUserName;
|
|
/**
|
* 报销主表ID
|
*/
|
@ApiModelProperty(value= "报销主表ID")
|
@TableField("reimburse_id")
|
private Integer reimburseId;
|
|
public ReimburseOnlineDetl() {}
|
|
public ReimburseOnlineDetl(String occupation,Integer expenseType,Integer userId,Integer deptId,Integer hostId,Long orderId,Double taxRate,Double untaxedAmountInLocalCurrency,Double untaxedAmount,Double taxAmount,Double invoiceValue,Double invoiceAmountInLocalCurrency,Double reimbursementRatio,Double reimbursementAmount,Double reimbursementAmountInLocalCurrency,Double cashierConfirmationAmount,Integer cashierCurrency,Date departureTime,Date updateTime,Integer updateUserId,String updateUserName,Date creationTime,Integer creationUserId,String creationUserName,Integer reimburseId) {
|
this.occupation = occupation;
|
this.expenseType = expenseType;
|
this.userId = userId;
|
this.deptId = deptId;
|
this.hostId = hostId;
|
this.orderId = orderId;
|
this.taxRate = taxRate;
|
this.untaxedAmountInLocalCurrency = untaxedAmountInLocalCurrency;
|
this.untaxedAmount = untaxedAmount;
|
this.taxAmount = taxAmount;
|
this.invoiceValue = invoiceValue;
|
this.invoiceAmountInLocalCurrency = invoiceAmountInLocalCurrency;
|
this.reimbursementRatio = reimbursementRatio;
|
this.reimbursementAmount = reimbursementAmount;
|
this.reimbursementAmountInLocalCurrency = reimbursementAmountInLocalCurrency;
|
this.cashierConfirmationAmount = cashierConfirmationAmount;
|
this.cashierCurrency = cashierCurrency;
|
this.departureTime = departureTime;
|
this.updateTime = updateTime;
|
this.updateUserId = updateUserId;
|
this.updateUserName = updateUserName;
|
this.creationTime = creationTime;
|
this.creationUserId = creationUserId;
|
this.creationUserName = creationUserName;
|
this.reimburseId = reimburseId;
|
}
|
public ReimburseOnlineDetl(Integer reminburseCostTypeId) {
|
this.occupation = "";
|
this.expenseType = reminburseCostTypeId;
|
this.taxRate = 0.0;
|
this.untaxedAmountInLocalCurrency = 0.0;
|
this.untaxedAmount = 0.0;
|
this.taxAmount = 0.0;
|
this.invoiceValue = 0.0;
|
this.invoiceAmountInLocalCurrency = 0.0;
|
this.reimbursementRatio = 0.0;
|
this.reimbursementAmount = 0.0;
|
this.reimbursementAmountInLocalCurrency = 0.0;
|
this.cashierConfirmationAmount = 0.0;
|
}
|
|
|
public String getDepartureTime$(){
|
if (Cools.isEmpty(this.departureTime)){
|
return "";
|
}
|
return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.departureTime);
|
}
|
|
public String getExpenseType$(){
|
ReimburseCostTypesService reimburseCostTypesService = SpringUtils.getBean(ReimburseCostTypesService.class);
|
ReimburseCostTypes reimburseCostTypes = reimburseCostTypesService.selectById(this.expenseType);
|
if (!Cools.isEmpty(reimburseCostTypes)){
|
return String.valueOf(reimburseCostTypes.getTypeName());
|
}
|
return null;
|
}
|
|
public String getUpdateTime$(){
|
if (Cools.isEmpty(this.updateTime)){
|
return "";
|
}
|
return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.updateTime);
|
}
|
|
public String getCreationTime$(){
|
if (Cools.isEmpty(this.creationTime)){
|
return "";
|
}
|
return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.creationTime);
|
}
|
|
public void setTaxRate(String taxRate){
|
String[] splitTaxRate = taxRate.split("%");
|
this.taxRate=Double.parseDouble(splitTaxRate[0]);
|
}
|
|
public void setTaxRate(Double taxRate){
|
this.taxRate=taxRate;
|
}
|
|
public String getTaxRate$(){
|
return taxRate.toString()+"%";
|
}
|
|
public void setReimbursementRatio(String reimbursementRatio){
|
String[] splitReimbursementRatio = reimbursementRatio.split("%");
|
this.reimbursementRatio=Double.parseDouble(splitReimbursementRatio[0]);
|
}
|
|
public void setReimbursementRatio(Double reimbursementRatio){
|
this.reimbursementRatio=reimbursementRatio;
|
}
|
|
public String getReimbursementRatio$(){
|
return reimbursementRatio.toString()+"%";
|
}
|
|
}
|