6 changed files with 121 additions and 4 deletions
@ -0,0 +1,30 @@ |
|||
package com.epmet.dto.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2021/6/22 1:54 下午 |
|||
* @DESC |
|||
*/ |
|||
@Data |
|||
public class PatrolCountFormDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = -4365871122000986115L; |
|||
|
|||
public interface PatrolCountForm{} |
|||
|
|||
/** |
|||
* 组织ID |
|||
*/ |
|||
@NotBlank(message = "组织ID不能为空",groups = PatrolCountForm.class) |
|||
private String agencyId; |
|||
|
|||
/** |
|||
* 行政地区编码 |
|||
*/ |
|||
private String areaCode; |
|||
} |
@ -0,0 +1,32 @@ |
|||
package com.epmet.dto.result; |
|||
|
|||
import com.epmet.commons.tools.constant.NumConstant; |
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2021/6/22 1:50 下午 |
|||
* @DESC |
|||
*/ |
|||
@Data |
|||
public class PatrolCountResultDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = -5686401629775910576L; |
|||
|
|||
/** |
|||
* 当前巡查中人数 |
|||
*/ |
|||
private Integer patrollingCount; |
|||
|
|||
/** |
|||
* 当前未巡查中人数 |
|||
*/ |
|||
private Integer elseCount; |
|||
|
|||
public PatrolCountResultDTO() { |
|||
this.patrollingCount = NumConstant.ZERO; |
|||
this.elseCount = NumConstant.ZERO; |
|||
} |
|||
} |
Loading…
Reference in new issue