add 确认来款记录表 日期format
This commit is contained in:
+24
@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
@@ -11,6 +12,10 @@ import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
import lombok.Data;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import javax.validation.constraints.DecimalMax;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -43,6 +48,8 @@ public class PayConfirmPaymentRecord implements Serializable {
|
||||
* 创建日期
|
||||
*/
|
||||
@TableField(value = "create_time")
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value="创建日期")
|
||||
private Date createTime;
|
||||
|
||||
@@ -57,6 +64,8 @@ public class PayConfirmPaymentRecord implements Serializable {
|
||||
* 更新日期
|
||||
*/
|
||||
@TableField(value = "update_time")
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value="更新日期")
|
||||
private Date updateTime;
|
||||
|
||||
@@ -78,6 +87,9 @@ public class PayConfirmPaymentRecord implements Serializable {
|
||||
* 到账金额
|
||||
*/
|
||||
@TableField(value = "amount_received")
|
||||
@NotNull(message = "到账金额(元)不能为空")
|
||||
@DecimalMax(value = "9999999999.99",message = "到账金额(元)格式错误")
|
||||
@JsonFormat(shape = JsonFormat.Shape.STRING)
|
||||
@ApiModelProperty(value="到账金额")
|
||||
private BigDecimal amountReceived;
|
||||
|
||||
@@ -86,8 +98,18 @@ public class PayConfirmPaymentRecord implements Serializable {
|
||||
*/
|
||||
@TableField(value = "payment_date")
|
||||
@ApiModelProperty(value="到账日期")
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd")
|
||||
@NotNull(message = "到账日期不能为空")
|
||||
private Date paymentDate;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@TableField(value = "remark")
|
||||
@ApiModelProperty(value="备注")
|
||||
private String remark;
|
||||
|
||||
public static final String COL_ID = "id";
|
||||
|
||||
public static final String COL_CREATE_BY = "create_by";
|
||||
@@ -103,4 +125,6 @@ public class PayConfirmPaymentRecord implements Serializable {
|
||||
public static final String COL_AMOUNT_RECEIVED = "amount_received";
|
||||
|
||||
public static final String COL_PAYMENT_DATE = "payment_date";
|
||||
|
||||
public static final String COL_REMARK = "remark";
|
||||
}
|
||||
Reference in New Issue
Block a user