12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- package com.fdkankan.manage.vo.request;
- import com.fdkankan.manage.util.DateUtils;
- import lombok.Data;
- import java.util.List;
- @Data
- public class CameraParam extends RequestBase {
- private Long id; //设备id
- private Long userId; //用户id
- private String snCode; //相机snCode
- private Long companyId;
- private String companyName; //客户名称
- private String userName; //账号
- private Integer outType; //出库类型 0表示正常销售,1表示员工自用,2表示礼品赠送,3表示其他
- private Integer type; //设备类型 0旧双目相机,1 四维看看 ,2 四维看看lite,9四维看见,10四维深时
- private List<String> activatedTime;
- private String activatedStartTime; //激活时间
- private String activatedEndTime; //激活时间
- private String agentName;
- private Integer bindStatus; //绑定状态查询 0 未绑定,1已绑定
- private String bindUserName; //绑定账号查询
- public String getActivatedStartTime() {
- if(activatedTime != null && activatedTime.size() >1){
- return DateUtils.getStartTime(activatedTime.get(0));
- }
- return DateUtils.getStartTime(activatedStartTime);
- }
- public String getActivatedEndTime() {
- if(activatedTime != null && activatedTime.size() >1){
- return DateUtils.getEndTime(activatedTime.get(1));
- }
- return DateUtils.getEndTime(activatedEndTime);
- }
- }
|