|
|
@ -2,6 +2,9 @@ package com.ccsens.delivery.bean.dto; |
|
|
|
|
|
|
|
import cn.hutool.core.date.DateUtil; |
|
|
|
import cn.hutool.core.util.ObjectUtil; |
|
|
|
import cn.hutool.core.util.StrUtil; |
|
|
|
import com.ccsens.delivery.util.DeliveryConstant; |
|
|
|
import com.ccsens.util.SymmetricCryptoUtil; |
|
|
|
import io.swagger.annotations.ApiModel; |
|
|
|
import io.swagger.annotations.ApiModelProperty; |
|
|
|
import lombok.Data; |
|
|
@ -77,6 +80,7 @@ public class StudentDto { |
|
|
|
@Pattern(regexp="^[1]([3-9])[0-9]{9}$",message="请输入正确的手机号") |
|
|
|
@ApiModelProperty("联系电话") |
|
|
|
private String phone; |
|
|
|
@NotEmpty(message = "请输入正确的身份证号") |
|
|
|
@ApiModelProperty("身份证号") |
|
|
|
private String idCard; |
|
|
|
@ApiModelProperty("所在学院Id") |
|
|
@ -157,10 +161,35 @@ public class StudentDto { |
|
|
|
private int pageSize = 10; |
|
|
|
|
|
|
|
public Long getEndTime() { |
|
|
|
Long t = endTime; |
|
|
|
if(ObjectUtil.isNotNull(endTime)){ |
|
|
|
endTime = DateUtil.endOfDay(new Date(endTime)).getTime(); |
|
|
|
t = DateUtil.endOfDay(new Date(endTime)).getTime(); |
|
|
|
} |
|
|
|
return endTime; |
|
|
|
return t; |
|
|
|
} |
|
|
|
|
|
|
|
public String getStuNum() { |
|
|
|
String s = stuNum; |
|
|
|
if(StrUtil.isNotBlank(stuNum)){ |
|
|
|
s = SymmetricCryptoUtil.encrypt(DeliveryConstant.ENCRYPT_KEY,stuNum); |
|
|
|
} |
|
|
|
return s; |
|
|
|
} |
|
|
|
|
|
|
|
public String getPhone() { |
|
|
|
String s = phone; |
|
|
|
if(StrUtil.isNotBlank(phone)){ |
|
|
|
s = SymmetricCryptoUtil.encrypt(DeliveryConstant.ENCRYPT_KEY,phone); |
|
|
|
} |
|
|
|
return s; |
|
|
|
} |
|
|
|
|
|
|
|
public String getIdCard() { |
|
|
|
String s = idCard; |
|
|
|
if(StrUtil.isNotBlank(idCard)){ |
|
|
|
s = SymmetricCryptoUtil.encrypt(DeliveryConstant.ENCRYPT_KEY,idCard); |
|
|
|
} |
|
|
|
return s; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|