14 changed files with 438 additions and 30 deletions
@ -0,0 +1,31 @@ |
|||||
|
package com.epmet.dto.form.demand; |
||||
|
|
||||
|
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
@Data |
||||
|
public class AssignFormDTO implements Serializable { |
||||
|
private static final long serialVersionUID = -8844710824469349121L; |
||||
|
|
||||
|
public interface AddUserInternalGroup { |
||||
|
} |
||||
|
public interface AddUserShowGroup extends CustomerClientShowGroup { |
||||
|
} |
||||
|
@NotBlank(message = "需求id不能为空", groups = AddUserInternalGroup.class) |
||||
|
private String demandRecId; |
||||
|
@NotBlank(message = "服务方类型不能为空", groups = AddUserShowGroup.class) |
||||
|
private String serviceType; |
||||
|
@NotBlank(message = "服务方不能为空", groups = AddUserShowGroup.class) |
||||
|
private String serverId; |
||||
|
|
||||
|
|
||||
|
|
||||
|
@NotBlank(message = "userId不能为空", groups = AddUserInternalGroup.class) |
||||
|
private String userId; |
||||
|
@NotBlank(message = "customerId不能为空", groups = AddUserInternalGroup.class) |
||||
|
private String customerId; |
||||
|
|
||||
|
} |
@ -0,0 +1,48 @@ |
|||||
|
package com.epmet.dto.form.demand; |
||||
|
|
||||
|
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; |
||||
|
import lombok.Data; |
||||
|
import org.springframework.format.annotation.DateTimeFormat; |
||||
|
|
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
import javax.validation.constraints.NotNull; |
||||
|
import java.io.Serializable; |
||||
|
import java.math.BigDecimal; |
||||
|
import java.util.Date; |
||||
|
|
||||
|
@Data |
||||
|
public class FinishStaffFromDTO implements Serializable { |
||||
|
private static final long serialVersionUID = 591380873862126679L; |
||||
|
|
||||
|
public interface AddUserInternalGroup { |
||||
|
} |
||||
|
public interface AddUserShowGroup extends CustomerClientShowGroup { |
||||
|
} |
||||
|
@NotBlank(message = "需求id不能为空", groups = AddUserInternalGroup.class) |
||||
|
private String demandRecId; |
||||
|
|
||||
|
@NotBlank(message = "服务方不能为空", groups = AddUserShowGroup.class) |
||||
|
private String serverId; |
||||
|
|
||||
|
@NotNull(message = "实际服务开始不能为空", groups = AddUserShowGroup.class) |
||||
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
||||
|
private Date serviceStartTime; |
||||
|
|
||||
|
@NotNull(message = "实际服务结束不能为空", groups = AddUserShowGroup.class) |
||||
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
||||
|
private Date serviceEndTime; |
||||
|
|
||||
|
@NotBlank(message = "完成结果不能为空", groups = AddUserShowGroup.class) |
||||
|
private String finishResult; |
||||
|
private String finishDesc; |
||||
|
|
||||
|
@NotNull(message = "得分不能为空", groups = AddUserShowGroup.class) |
||||
|
private BigDecimal score; |
||||
|
|
||||
|
|
||||
|
|
||||
|
@NotBlank(message = "userId不能为空", groups = AddUserInternalGroup.class) |
||||
|
private String userId; |
||||
|
@NotBlank(message = "customerId不能为空", groups = AddUserInternalGroup.class) |
||||
|
private String customerId; |
||||
|
} |
@ -0,0 +1,17 @@ |
|||||
|
package com.epmet.dto.form.demand; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
|
||||
|
@Data |
||||
|
public class StaffCancelFormDTO { |
||||
|
public interface AddUserInternalGroup {} |
||||
|
@NotBlank(message = "需求id不能为空",groups = AddUserInternalGroup.class) |
||||
|
private String demandRecId; |
||||
|
|
||||
|
@NotBlank(message = "userId不能为空", groups =AddUserInternalGroup.class) |
||||
|
private String userId; |
||||
|
@NotBlank(message = "customerId不能为空", groups = AddUserInternalGroup.class) |
||||
|
private String customerId; |
||||
|
} |
Loading…
Reference in new issue