• 字段分析的三部曲


    1. 含义

    2. 怎么来

    3. 是否能为null

    4. package cn.jiedada.aisell.domain;
      
      import com.fasterxml.jackson.annotation.JsonFormat;
      import org.springframework.format.annotation.DateTimeFormat;
      
      import javax.persistence.Entity;
      import javax.persistence.JoinColumn;
      import javax.persistence.ManyToOne;
      import javax.persistence.Table;
      import java.math.BigDecimal;
      import java.util.Date;
      
      @Entity
      @Table(name = "purchasebill")
      public class PurchaseBill extends BasicDomain{
          /*通过这个注解可以把前台的秒钟可以换成大家都能看懂的页面
          1429545600000时间转化为我们能做的页面*/
          @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
          private Date vdate;//交易时间(是我们自己录入的)
          private BigDecimal totalAmount;//总金额
          private BigDecimal totalNum;//总数量
          private Date inputTime=new  Date();//录入时间
          private Date auditorTime;//审核时间
          private Integer status=0;//默认状态
          @ManyToOne
          @JoinColumn(name = "supplier_id")
          private Supplier supplier;//供应商
          @ManyToOne
          @JoinColumn(name = "auditor_id")
          private Employee auditor;//审核人
          @ManyToOne
          @JoinColumn(name = "inputUser_id")
          private Employee inputUser;//登陆用户录入
          @ManyToOne
          @JoinColumn(name = "buyer_id")
          private Employee buyer;//采购员
      
          public Date getVdate() {
              return vdate;
          }
          @DateTimeFormat(pattern = "yyyy-MM-dd")
          public void setVdate(Date vdate) {
              this.vdate = vdate;
          }
      
          public BigDecimal getTotalAmount() {
              return totalAmount;
          }
      
          public void setTotalAmount(BigDecimal totalAmount) {
              this.totalAmount = totalAmount;
          }
      
          public BigDecimal getTotalNum() {
              return totalNum;
          }
      
          public void setTotalNum(BigDecimal totalNum) {
              this.totalNum = totalNum;
          }
      
          public Date getInputTime() {
              return inputTime;
          }
      
          public void setInputTime(Date inputTime) {
              this.inputTime = inputTime;
          }
      
          public Date getAuditorTime() {
              return auditorTime;
          }
      
          public void setAuditorTime(Date auditorTime) {
              this.auditorTime = auditorTime;
          }
      
          public Integer getStatus() {
              return status;
          }
      
          public void setStatus(Integer status) {
              this.status = status;
          }
      
          public Supplier getSupplier() {
              return supplier;
          }
      
          public void setSupplier(Supplier supplier) {
              this.supplier = supplier;
          }
      
          public Employee getAuditor() {
              return auditor;
          }
      
          public void setAuditor(Employee auditor) {
              this.auditor = auditor;
          }
      
          public Employee getInputUser() {
              return inputUser;
          }
      
          public void setInputUser(Employee inputUser) {
              this.inputUser = inputUser;
          }
      
          public Employee getBuyer() {
              return buyer;
          }
      
          public void setBuyer(Employee buyer) {
              this.buyer = buyer;
          }
      
          @Override
          public String toString() {
              return "PurchaseBill{" +
                      "vdate=" + vdate +
                      ", totalAmount=" + totalAmount +
                      ", totalNum=" + totalNum +
                      ", inputTime=" + inputTime +
                      ", auditorTime=" + auditorTime +
                      ", status=" + status +
                      ", supplier=" + supplier +
                      ", auditor=" + auditor +
                      ", inputUser=" + inputUser +
                      ", buyer=" + buyer +
                      ", id=" + id +
                      '}';
          }
      }
      View Code
  • 相关阅读:
    Python find() 方法
    enumerate函数
    【Unity】项目工程源码
    【Unity】UGUI聊天消息气泡 随文本内容自适应
    Unity读Excel 输出PC端(Windows)后不能读取的问题
    【C#】读取Excel中嵌套的Json对象,Json带斜杠的问题(其三)
    【C#】读取Excel中嵌套的Json对象,Json带斜杠的问题(其二)
    【C#】读取Excel中嵌套的Json对象,Json带斜杠的问题(其一)
    Unity输出PC端(Windows) 拖拽文件到app中
    Android Studio报错Error:Failed to open zip file. Gradle's dependency cache may be corrupt
  • 原文地址:https://www.cnblogs.com/xiaoruirui/p/11735244.html
Copyright © 2020-2023  润新知