Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
c0073f60
Commit
c0073f60
authored
Jul 01, 2021
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
导入模板生成 ,导出入,导出 工具类
parent
d8f1776f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
1 deletion
+25
-1
BaseDto.java
...in/java/com/yeejoin/amos/boot/biz/common/dto/BaseDto.java
+6
-1
RedisKey.java
...java/com/yeejoin/amos/boot/biz/common/utils/RedisKey.java
+19
-0
No files found.
amos-boot-biz-common/src/main/java/com/yeejoin/amos/boot/biz/common/dto/BaseDto.java
View file @
c0073f60
package
com
.
yeejoin
.
amos
.
boot
.
biz
.
common
.
dto
;
import
com.alibaba.excel.annotation.ExcelIgnore
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
...
...
@@ -17,18 +18,22 @@ public class BaseDto implements Serializable{
/**
*
*/
@ExcelIgnore
private
static
final
long
serialVersionUID
=
1L
;
@ExcelIgnore
@ApiModelProperty
(
value
=
"主键ID"
)
protected
Long
sequenceNbr
;
@ExcelIgnore
@ApiModelProperty
(
value
=
"更新时间"
)
protected
Date
recDate
;
@ExcelIgnore
@ApiModelProperty
(
value
=
"更新人"
)
protected
String
recUserId
;
/**
* 是否删除
*/
@ExcelIgnore
@TableField
(
value
=
"is_delete"
)
private
Boolean
isDelete
;
}
amos-boot-biz-common/src/main/java/com/yeejoin/amos/boot/biz/common/utils/RedisKey.java
View file @
c0073f60
...
...
@@ -41,4 +41,23 @@ public class RedisKey {
public
static
String
buildKey
(
String
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
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment