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 Integer orderId; /** * 税率 */ @ApiModelProperty(value= "税率") @TableField("tax_rate") private Long taxRate; /** * 未税本币金额 */ @ApiModelProperty(value= "未税本币金额") @TableField("untaxed_amount_in_local_currency") private Long untaxedAmountInLocalCurrency; /** * 未税金额 */ @ApiModelProperty(value= "未税金额") @TableField("untaxed_amount") private Long untaxedAmount; /** * 税额 */ @ApiModelProperty(value= "税额") @TableField("tax_amount") private Long taxAmount; /** * 发票金额 */ @ApiModelProperty(value= "发票金额") @TableField("invoice_value") private Long invoiceValue; /** * 发票本币金额 */ @ApiModelProperty(value= "发票本币金额") @TableField("invoice_amount_in_local_currency") private Long invoiceAmountInLocalCurrency; /** * 报销比例 */ @ApiModelProperty(value= "报销比例") @TableField("reimbursement_ratio") private Long reimbursementRatio; /** * 报销金额 */ @ApiModelProperty(value= "报销金额") @TableField("reimbursement_amount") private Long reimbursementAmount; /** * 报销本币金额 */ @ApiModelProperty(value= "报销本币金额") @TableField("reimbursement_amount_in_local_currency") private Long reimbursementAmountInLocalCurrency; /** * 出纳确认金额 */ @ApiModelProperty(value= "出纳确认金额") @TableField("cashier_confirmation_amount") private Long 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,Integer orderId,Long taxRate,Long untaxedAmountInLocalCurrency,Long untaxedAmount,Long taxAmount,Long invoiceValue,Long invoiceAmountInLocalCurrency,Long reimbursementRatio,Long reimbursementAmount,Long reimbursementAmountInLocalCurrency,Long 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 = (long)0.0; this.untaxedAmountInLocalCurrency = (long)0.0; this.untaxedAmount = (long)0.0; this.taxAmount = (long)0.0; this.invoiceValue = (long)0.0; this.invoiceAmountInLocalCurrency = (long)0.0; this.reimbursementRatio = (long)0.0; this.reimbursementAmount = (long)0.0; this.reimbursementAmountInLocalCurrency = (long)0.0; this.cashierConfirmationAmount = (long)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); } }