Explorar o código

余额充值新增字段

liyuan hai 7 meses
pai
achega
cf5dffcbd5

+ 13 - 16
blade-service-api/blade-sales-part-api/src/main/java/org/springblade/salesPart/funding/entity/PjpfBalanceReset.java

@@ -1,25 +1,12 @@
-/*
- *      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.salesPart.funding.entity;
 
+import com.baomidou.mybatisplus.annotation.TableField;
 import io.swagger.annotations.ApiModel;
 import io.swagger.annotations.ApiModelProperty;
 import lombok.Data;
 
+import javax.validation.constraints.NotBlank;
+import javax.validation.constraints.NotNull;
 import java.io.Serializable;
 import java.math.BigDecimal;
 import java.time.LocalDateTime;
@@ -97,6 +84,7 @@ public class PjpfBalanceReset implements Serializable {
 	 * 金额
 	 */
 	@ApiModelProperty(value = "金额")
+	@NotNull(message = "充值金额不允许为空")
 	private BigDecimal amount;
 	/**
 	 * 状态
@@ -127,7 +115,16 @@ public class PjpfBalanceReset implements Serializable {
 	 * 租户id
 	 */
 	@ApiModelProperty(value = "租户id")
+	@NotNull(message = "客户编码不允许为空")
+	@NotBlank(message = "客户编码不允许为空")
 	private String tenantId;
 
+	/**
+	 * 业务发生日期
+	 */
+	@ApiModelProperty(value = "业务日期")
+	@NotNull(message = "充值时间不允许为空")
+	private Date businessDate;
+
 
 }

+ 1 - 0
blade-service/blade-sales-part/src/main/java/org/springblade/salesPart/funding/mapper/PjpfBalanceResetMapper.xml

@@ -22,6 +22,7 @@
         <result column="confirming_person_id" property="confirmingPersonId"/>
         <result column="confirming_person_name" property="confirmingPersonName"/>
         <result column="confirming_person_date" property="confirmingPersonDate"/>
+        <result column="business_date" property="businessDate"/>
     </resultMap>