mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-10-31 10:18:42 +08:00 
			
		
		
		
	fix: [CRM-客户统计]增加times[]时间范围校验
This commit is contained in:
		| @@ -4,6 +4,7 @@ import cn.iocoder.yudao.framework.common.enums.DateIntervalEnum; | ||||
| import cn.iocoder.yudao.framework.common.validation.InEnum; | ||||
| import io.swagger.v3.oas.annotations.media.Schema; | ||||
| import jakarta.validation.constraints.NotNull; | ||||
| import jakarta.validation.constraints.Size; | ||||
| import lombok.Data; | ||||
| import org.springframework.format.annotation.DateTimeFormat; | ||||
|  | ||||
| @@ -37,12 +38,9 @@ public class CrmStatisticsCustomerReqVO { | ||||
|     @InEnum(value = DateIntervalEnum.class, message = "时间间隔类型,必须是 {value}") | ||||
|     private Integer interval; | ||||
|  | ||||
|     /** | ||||
|      * 前端如果选择自定义时间, 那么前端传递起始-终止时间, 如果选择其他时间间隔类型, 则由后台计算起始-终止时间 | ||||
|      * 并作为参数传递给Mapper | ||||
|      */ | ||||
|     @Schema(description = "时间范围", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | ||||
|     @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) | ||||
|     @Size(min = 2, max = 2, message = "请选择时间范围") | ||||
|     private LocalDateTime[] times; | ||||
|  | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 dhb52
					dhb52