/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.bank.goodsuse.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springblade.core.mp.base.BaseEntity;
import java.time.LocalDateTime;
import java.util.Date;

import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 網點各項憑證/實物使用及出入庫登記表实体类
 *
 * @author BladeX
 * @since 2021-08-13
 */
@Data
@TableName("zh_record_goods_use")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "GoodsUse对象", description = "網點各項憑證/實物使用及出入庫登記表")
public class GoodsUse extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/**
	* 銀行號
	*/
		@ApiModelProperty(value = "銀行號")
		private String bankNo;
	/**
	* 機構號
	*/
		@ApiModelProperty(value = "機構號")
		private String orgNo;
	/**
	 * 機構名稱
	 */
	@ApiModelProperty(value = "機構名稱")
	private String orgName;
	/**
	* 日期
	*/
		@ApiModelProperty(value = "日期")
		@DateTimeFormat(
			pattern = "yyyy-MM-dd"
		)
		@JsonFormat(
			pattern = "yyyy-MM-dd"
		)
		private Date date;
	/**
	* 憑證/實物種類
	*/
		@ApiModelProperty(value = "憑證/實物種類")
		private String type;
	/**
	* 使用數量
	*/
		@ApiModelProperty(value = "使用數量")
		private Integer useNumber;
	/**
	* 領入數量
	*/
		@ApiModelProperty(value = "領入數量")
		private Integer receiptNumber;
	/**
	* 註銷數量
	*/
		@ApiModelProperty(value = "註銷數量")
		private Integer writeOffNumber;
	/**
	* 開始編號
	*/
		@ApiModelProperty(value = "開始編號")
		private String beginNo;
	/**
	* 結束編號
	*/
		@ApiModelProperty(value = "結束編號")
		private String endNo;
	/**
	* 上日餘額
	*/
		@ApiModelProperty(value = "上日餘額")
		private Integer lastBalance;
	/**
	* 餘額
	*/
		@ApiModelProperty(value = "餘額")
		private Integer balance;
	/**
	* 備註
	*/
		@ApiModelProperty(value = "備註")
		private String remark;
	/**
	* 填報人員工號
	*/
		@ApiModelProperty(value = "填報人員工號")
		private String fillingNo;
	/**
	* 填報人姓名
	*/
		@ApiModelProperty(value = "填報人姓名")
		private String fillingName;
	/**
	* 確認人員工號
	*/
		@ApiModelProperty(value = "確認人員工號")
		private String confirmNo;
	/**
	* 確認人姓名
	*/
		@ApiModelProperty(value = "確認人姓名")
		private String confirmName;
	/**
	* 填報日期及時間
	*/
		@ApiModelProperty(value = "填報日期及時間")
		@DateTimeFormat(
			pattern = "yyyy-MM-dd HH:mm:ss"
		)
		@JsonFormat(
			pattern = "yyyy-MM-dd HH:mm:ss"
		)
		private Date fillingDate;
	private Long personId;
	/**
	* 審批人
	*/
		@ApiModelProperty(value = "審批人")
		private String personName;
		private String personNo;
	/**
	* 審批時間
	*/
		@ApiModelProperty(value = "審批時間")
		@DateTimeFormat(
			pattern = "yyyy-MM-dd HH:mm:ss"
		)
		@JsonFormat(
			pattern = "yyyy-MM-dd HH:mm:ss"
		)
		private Date approveTime;
	/**
	* 節點{ 2： 待确认， 3：已确认}
	*/
		@ApiModelProperty(value = "節點")
		private Integer process;
	/**
	* 是否已完成
	*/
		@ApiModelProperty(value = "是否已完成")
		private Integer isCompleted;


}
