This commit is contained in:
zt
2025-03-24 11:00:51 +08:00
parent 2773a77c96
commit 531e345920
14 changed files with 217 additions and 34 deletions

View File

@ -8,6 +8,7 @@ import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import javax.validation.constraints.Pattern;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
@ -60,11 +61,13 @@ public class FbsProjectTask implements Serializable {
/** 任务金额 */
@Excel(name = "任务金额")
@ApiModelProperty("任务金额")
@Pattern(regexp = "^[0-9]+(\\.[0-9]{1,2})?$",message = "只能两位小数的数字")
private BigDecimal taskAmount;
/** 用工数量 */
@Excel(name = "用工数量")
@ApiModelProperty("用工数量")
@Pattern(regexp = "^[0-9]+$",message = "只能是整数")
private Integer taskStaffNum;
/** 任务开始时间 */
@ -83,6 +86,7 @@ public class FbsProjectTask implements Serializable {
/** 联系电话 */
@Excel(name = "联系电话")
@ApiModelProperty("联系电话")
@Pattern(regexp = "^[0-9]+$",message = "联系电话只能是数字")
private String taskContactPhone;
/** 分包描述 */