Commit c0073f60 authored by tangwei's avatar tangwei

导入模板生成 ,导出入,导出 工具类

parent d8f1776f
package com.yeejoin.amos.boot.biz.common.dto; package com.yeejoin.amos.boot.biz.common.dto;
import com.alibaba.excel.annotation.ExcelIgnore;
import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
...@@ -17,18 +18,22 @@ public class BaseDto implements Serializable{ ...@@ -17,18 +18,22 @@ public class BaseDto implements Serializable{
/** /**
* *
*/ */
@ExcelIgnore
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
@ExcelIgnore
@ApiModelProperty(value = "主键ID") @ApiModelProperty(value = "主键ID")
protected Long sequenceNbr; protected Long sequenceNbr;
@ExcelIgnore
@ApiModelProperty(value = "更新时间") @ApiModelProperty(value = "更新时间")
protected Date recDate; protected Date recDate;
@ExcelIgnore
@ApiModelProperty(value = "更新人") @ApiModelProperty(value = "更新人")
protected String recUserId; protected String recUserId;
/** /**
* 是否删除 * 是否删除
*/ */
@ExcelIgnore
@TableField(value = "is_delete") @TableField(value = "is_delete")
private Boolean isDelete; private Boolean isDelete;
} }
...@@ -41,4 +41,23 @@ public class RedisKey { ...@@ -41,4 +41,23 @@ public class RedisKey {
public static String buildKey(String token) { public static String buildKey(String token) {
return "region_" + token; return "region_" + token;
} }
/**
* 判断str1中包含str2的个数
* @param str1
* @param str2
* @return counter
*/
public static int countStr(String str1, String str2) {
int counter=0;
if (str1.indexOf(str2) == -1) {
return 0;
} else if (str1.indexOf(str2) != -1) {
counter++;
countStr(str1.substring(str1.indexOf(str2) +
str2.length()), str2);
return counter;
}
return 0;
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment