|
|
|
@@ -0,0 +1,177 @@ |
|
|
|
package com.iformall.domain.vo; |
|
|
|
|
|
|
|
import cn.afterturn.easypoi.excel.annotation.Excel; |
|
|
|
|
|
|
|
import com.aliyun.openservices.shade.org.apache.commons.lang3.StringUtils; |
|
|
|
import com.baomidou.mybatisplus.annotation.TableField; |
|
|
|
import com.iformall.domain.po.WxBillPayWay; |
|
|
|
import com.iformall.domain.po.WxFinanceReceive; |
|
|
|
import com.iformall.domain.po.WxFinanceReceiveBill; |
|
|
|
import com.iformall.domain.po.base.WxBillBaseEntity; |
|
|
|
import com.iformall.enums.EnumBillAllType; |
|
|
|
import com.iformall.enums.EnumFinanceReceiveStatus; |
|
|
|
import com.iformall.enums.EnumFinanceReceiveType; |
|
|
|
|
|
|
|
import lombok.Data; |
|
|
|
|
|
|
|
import java.io.Serializable; |
|
|
|
import java.math.BigDecimal; |
|
|
|
import java.util.Date; |
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
@Data |
|
|
|
public class WxFinanceReceiveVo implements Serializable { |
|
|
|
|
|
|
|
private static final long serialVersionUID = 1L; |
|
|
|
|
|
|
|
@io.swagger.annotations.ApiModelProperty(value="id",name="id") |
|
|
|
private Long id; |
|
|
|
|
|
|
|
@io.swagger.annotations.ApiModelProperty(value="createTime",name="createTime") |
|
|
|
private Date createTime; |
|
|
|
|
|
|
|
@io.swagger.annotations.ApiModelProperty(value="updateTime",name="updateTime") |
|
|
|
private Date updateTime; |
|
|
|
|
|
|
|
@io.swagger.annotations.ApiModelProperty(value = "实收金额", name = "receiveMoney") |
|
|
|
private String receiveMoney; |
|
|
|
|
|
|
|
//跟useMoney的区别是,这个字段是记录此次收款冲抵了多少费用。useMoney是使用了自身多少的实收金额,预充用的到 |
|
|
|
@io.swagger.annotations.ApiModelProperty(value = "冲抵金额", name = "setOffMoney") |
|
|
|
private String setOffMoney; |
|
|
|
|
|
|
|
@io.swagger.annotations.ApiModelProperty(value = "已使用金额,冲抵里面使用", name = "useMoney") |
|
|
|
private String useMoney; |
|
|
|
|
|
|
|
@TableField(exist = false) |
|
|
|
private String totalMoney; |
|
|
|
public String getTotalMoney() { |
|
|
|
if (StringUtils.isBlank(setOffMoney)) { |
|
|
|
setOffMoney = "0"; |
|
|
|
} |
|
|
|
if (StringUtils.isBlank(receiveMoney)) { |
|
|
|
receiveMoney = "0"; |
|
|
|
} |
|
|
|
return new BigDecimal(receiveMoney).add(new BigDecimal(setOffMoney)).toPlainString(); |
|
|
|
} |
|
|
|
|
|
|
|
@io.swagger.annotations.ApiModelProperty(value = "状态EnumFinanceReceiveStatus", name = "status") |
|
|
|
private Integer status; |
|
|
|
@TableField(exist = false) |
|
|
|
private String statusName; |
|
|
|
public String getStatusName() { |
|
|
|
if (null != status) { |
|
|
|
return EnumFinanceReceiveStatus.getEnum(status).getMessage(); |
|
|
|
} |
|
|
|
return null; |
|
|
|
} |
|
|
|
|
|
|
|
@io.swagger.annotations.ApiModelProperty(value = "类型EnumFinanceReceiveType", name = "type") |
|
|
|
private Integer type; |
|
|
|
@TableField(exist = false) |
|
|
|
private String typeName; |
|
|
|
public String getTypeName() { |
|
|
|
if (null != type) { |
|
|
|
return EnumFinanceReceiveType.getEnum(type).getMessage(); |
|
|
|
} |
|
|
|
return null; |
|
|
|
} |
|
|
|
|
|
|
|
@io.swagger.annotations.ApiModelProperty(value="createBy",name="createBy") |
|
|
|
private Long createBy; |
|
|
|
@io.swagger.annotations.ApiModelProperty(value="createByName",name="createByName") |
|
|
|
private String createByName; |
|
|
|
|
|
|
|
@io.swagger.annotations.ApiModelProperty(value="updateBy",name="updateBy") |
|
|
|
private Long updateBy; |
|
|
|
@io.swagger.annotations.ApiModelProperty(value="updateByName",name="updateByName") |
|
|
|
private String updateByName; |
|
|
|
|
|
|
|
@io.swagger.annotations.ApiModelProperty(value = "moneyDetail", name = "moneyDetail") |
|
|
|
private String moneyDetail; |
|
|
|
|
|
|
|
@io.swagger.annotations.ApiModelProperty(value = "merchantId", name = "merchantId") |
|
|
|
private Long merchantId; |
|
|
|
|
|
|
|
@io.swagger.annotations.ApiModelProperty(value = "remark", name = "remark") |
|
|
|
private String remark; |
|
|
|
|
|
|
|
@io.swagger.annotations.ApiModelProperty(value = "是否已打印", name = "isPrint") |
|
|
|
private Integer isPrint; |
|
|
|
|
|
|
|
@TableField(exist = false) |
|
|
|
private String shopNumber; |
|
|
|
@TableField(exist = false) |
|
|
|
private String merchantName; |
|
|
|
|
|
|
|
@io.swagger.annotations.ApiModelProperty(value="receiveBillId",name="rid") |
|
|
|
private Long rid; |
|
|
|
|
|
|
|
@io.swagger.annotations.ApiModelProperty(value = "收款编号", name = "receiveId") |
|
|
|
private Long receiveId; |
|
|
|
|
|
|
|
@io.swagger.annotations.ApiModelProperty(value = "账单编号", name = "billId") |
|
|
|
private Long billId; |
|
|
|
|
|
|
|
@io.swagger.annotations.ApiModelProperty(value = "账单类型EnumBillAllType", name = "billType") |
|
|
|
private Integer billType; |
|
|
|
@TableField(exist = false) |
|
|
|
private String billTypeName; |
|
|
|
public String getBillTypeName() { |
|
|
|
return EnumBillAllType.getEnum(billType).getMessage(); |
|
|
|
} |
|
|
|
|
|
|
|
@io.swagger.annotations.ApiModelProperty(value="科目编号",name="feesId") |
|
|
|
private Long feesId; |
|
|
|
@TableField(exist = false) |
|
|
|
private String feesName; |
|
|
|
|
|
|
|
@io.swagger.annotations.ApiModelProperty(value="支付方式",name="payWay") |
|
|
|
private Long payWay; |
|
|
|
@TableField(exist = false) |
|
|
|
private String payWayName; |
|
|
|
|
|
|
|
@io.swagger.annotations.ApiModelProperty(value="账单实收金额",name="billReceive") |
|
|
|
private String billReceive; |
|
|
|
|
|
|
|
@io.swagger.annotations.ApiModelProperty(value="账单开始周期",name="starttime") |
|
|
|
private Date starttime; |
|
|
|
|
|
|
|
@io.swagger.annotations.ApiModelProperty(value="账单结束周期",name="endtime") |
|
|
|
private Date endtime; |
|
|
|
|
|
|
|
@io.swagger.annotations.ApiModelProperty(value = "是否已删除", name = "isDel") |
|
|
|
private Integer isDel; |
|
|
|
|
|
|
|
|
|
|
|
public void initByReceive(WxFinanceReceive receive,WxFinanceReceiveBill receiveBill) { |
|
|
|
this.id = receive.getId(); |
|
|
|
this.createTime = receive.getCreateTime(); |
|
|
|
this.updateTime = receive.getUpdateTime(); |
|
|
|
this.receiveMoney = receive.getReceiveMoney(); |
|
|
|
this.setOffMoney = receive.getSetOffMoney(); |
|
|
|
this.useMoney = receive.getUseMoney(); |
|
|
|
this.status = receive.getStatus(); |
|
|
|
this.type = receive.getType(); |
|
|
|
this.createBy = receive.getCreateBy(); |
|
|
|
this.createByName = receive.getCreateByName(); |
|
|
|
this.updateBy = receive.getUpdateBy(); |
|
|
|
this.updateByName = receive.getUpdateByName(); |
|
|
|
this.moneyDetail = receive.getMoneyDetail(); |
|
|
|
this.merchantId = receive.getMerchantId(); |
|
|
|
this.remark = receive.getRemark(); |
|
|
|
this.isPrint = receive.getIsPrint(); |
|
|
|
|
|
|
|
if (null != receiveBill) { |
|
|
|
this.rid = receiveBill.getId(); |
|
|
|
this.receiveId = receiveBill.getReceiveId(); |
|
|
|
this.billId = receiveBill.getBillId(); |
|
|
|
this.billType = receiveBill.getBillType(); |
|
|
|
this.feesId = receiveBill.getFeesId(); |
|
|
|
this.payWay = receiveBill.getPayWay(); |
|
|
|
this.billReceive = receiveBill.getReceive(); |
|
|
|
this.starttime = receiveBill.getStarttime(); |
|
|
|
this.endtime = receiveBill.getEndtime(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |