forked from rongchao/epmet-cloud-rizhao
17 changed files with 494 additions and 18 deletions
@ -0,0 +1,46 @@ |
|||
package com.epmet.enums; |
|||
|
|||
import com.epmet.commons.tools.constant.NumConstant; |
|||
import lombok.Data; |
|||
import org.apache.commons.lang3.StringUtils; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2022/3/29 16:17 |
|||
* @DESC |
|||
*/ |
|||
public enum AttentionTypeEnum { |
|||
|
|||
XCSB(0,"行程上报"), |
|||
YMJZ(1,"疫苗接种"), |
|||
NAT(2,"核酸检测") |
|||
; |
|||
|
|||
private Integer key; |
|||
private String value; |
|||
|
|||
AttentionTypeEnum(Integer key, String value) { |
|||
this.key = key; |
|||
this.value = value; |
|||
} |
|||
|
|||
public static Integer getKeyByValue(String value){ |
|||
if (StringUtils.isBlank(value)){ |
|||
return NumConstant.ZERO; |
|||
} |
|||
for (AttentionTypeEnum a : AttentionTypeEnum.values()) { |
|||
if (a.getValue().equals(value)){ |
|||
return a.getKey(); |
|||
} |
|||
} |
|||
return NumConstant.ZERO; |
|||
} |
|||
|
|||
public Integer getKey() { |
|||
return key; |
|||
} |
|||
|
|||
public String getValue() { |
|||
return value; |
|||
} |
|||
} |
@ -0,0 +1,44 @@ |
|||
package com.epmet.enums; |
|||
|
|||
import com.epmet.commons.tools.constant.NumConstant; |
|||
import org.apache.commons.lang3.StringUtils; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2022/3/29 16:35 |
|||
* @DESC |
|||
*/ |
|||
public enum ChannelEnum { |
|||
|
|||
MINI("0","小程序"), |
|||
MSG("1","短信") |
|||
; |
|||
|
|||
private String key; |
|||
private String value; |
|||
|
|||
ChannelEnum(String key, String value) { |
|||
this.key = key; |
|||
this.value = value; |
|||
} |
|||
|
|||
public static String getKeyByValue(String value){ |
|||
if (StringUtils.isBlank(value)){ |
|||
return NumConstant.ONE_STR; |
|||
} |
|||
for (ChannelEnum a : ChannelEnum.values()) { |
|||
if (a.getValue().equals(value)){ |
|||
return a.getKey(); |
|||
} |
|||
} |
|||
return NumConstant.ONE_STR; |
|||
} |
|||
|
|||
public String getKey() { |
|||
return key; |
|||
} |
|||
|
|||
public String getValue() { |
|||
return value; |
|||
} |
|||
} |
@ -0,0 +1,66 @@ |
|||
package com.epmet.excel; |
|||
|
|||
import cn.afterturn.easypoi.excel.annotation.Excel; |
|||
import cn.afterturn.easypoi.excel.annotation.ExcelIgnore; |
|||
import com.epmet.commons.tools.utils.ExcelVerifyInfo; |
|||
import lombok.Data; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2022/3/29 15:47 |
|||
* @DESC |
|||
*/ |
|||
@Data |
|||
public class ImportEpidemicSpecialAttention extends ExcelVerifyInfo { |
|||
|
|||
/** |
|||
* 姓名 |
|||
*/ |
|||
@Excel(name = "姓名") |
|||
private String name; |
|||
|
|||
/** |
|||
* 手机号 |
|||
*/ |
|||
@Excel(name = "手机号") |
|||
private String mobile; |
|||
|
|||
/** |
|||
* 身份证号 |
|||
*/ |
|||
@Excel(name = "身份证号") |
|||
private String idCard; |
|||
|
|||
/** |
|||
* 原因 |
|||
*/ |
|||
@Excel(name = "关注原因") |
|||
private String reason; |
|||
|
|||
/** |
|||
* 备注 |
|||
*/ |
|||
@Excel(name = "备注") |
|||
private String remark; |
|||
|
|||
@ExcelIgnore |
|||
private Integer attentionType; |
|||
|
|||
@Excel(name = "通知内容") |
|||
private String content; |
|||
|
|||
@Excel(name = "通知渠道") |
|||
private String channelString; |
|||
|
|||
@ExcelIgnore |
|||
private List<String> channel; |
|||
|
|||
@ExcelIgnore |
|||
private Boolean addStatus = false; |
|||
|
|||
@ExcelIgnore |
|||
private Integer num; |
|||
|
|||
} |
@ -0,0 +1,29 @@ |
|||
package com.epmet.excel.error; |
|||
|
|||
import cn.afterturn.easypoi.excel.annotation.Excel; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2022/3/29 16:57 |
|||
* @DESC |
|||
*/ |
|||
@Data |
|||
public class EpidemicSpecialAttentionErrorModel { |
|||
|
|||
@Excel(name = "行号",width = 10) |
|||
private Integer num; |
|||
|
|||
@Excel(name = "姓名",width = 20) |
|||
private String name; |
|||
|
|||
@Excel(name = "电话",width = 20) |
|||
private String mobile; |
|||
|
|||
@Excel(name = "身份证",width = 30) |
|||
private String idCard; |
|||
|
|||
@Excel(name = "错误信息", width = 200) |
|||
private String errorMsg; |
|||
|
|||
} |
Loading…
Reference in new issue