Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
matrix
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
mall
arch
matrix
Commits
1300d399
Commit
1300d399
authored
Aug 14, 2019
by
李秋伟
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into 'master'
Dev Closes #12 See merge request mall/arch/matrix!15
parents
1e73d049
50e5fdf8
Show whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
154 additions
and
29 deletions
+154
-29
pom.xml
common-core/pom.xml
+1
-1
Response.java
common-core/src/main/java/com/secoo/mall/common/core/bean/Response.java
+9
-0
pom.xml
common-util/pom.xml
+1
-1
ObjectUtils.java
common-util/src/main/java/com/secoo/mall/common/util/object/ObjectUtils.java
+112
-0
ResponseUtil.java
common-util/src/main/java/com/secoo/mall/common/util/response/ResponseUtil.java
+4
-0
pom.xml
config-starter/pom.xml
+1
-1
pom.xml
elasticsearch-starter/pom.xml
+1
-1
pom.xml
logger-starter/pom.xml
+1
-1
pom.xml
logger-starter/secoo-log-starter/pom.xml
+1
-1
pom.xml
logger-starter/secoo-log/pom.xml
+1
-1
pom.xml
mongodb-starter/pom.xml
+1
-1
pom.xml
monitor-starter/pom.xml
+1
-1
pom.xml
mybatis-starter/pom.xml
+1
-1
pom.xml
openfeign-starter/pom.xml
+1
-1
pom.xml
pom.xml
+15
-15
pom.xml
protocol-starter/pom.xml
+1
-1
pom.xml
redis-starter/pom.xml
+1
-1
pom.xml
rocketmq-starter/pom.xml
+1
-1
No files found.
common-core/pom.xml
View file @
1300d399
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
matrix
</artifactId>
<artifactId>
matrix
</artifactId>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<version>
1.0.
12.RELEASE
</version>
<version>
1.0.
0-SNAPSHOT
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
common-core/src/main/java/com/secoo/mall/common/core/bean/Response.java
View file @
1300d399
...
@@ -39,4 +39,13 @@ public class Response<T> implements Serializable {
...
@@ -39,4 +39,13 @@ public class Response<T> implements Serializable {
public
void
setData
(
T
data
)
{
public
void
setData
(
T
data
)
{
this
.
data
=
data
;
this
.
data
=
data
;
}
}
@Override
public
String
toString
()
{
return
"Response{"
+
"code="
+
code
+
", msg='"
+
msg
+
", data="
+
data
+
'}'
;
}
}
}
common-util/pom.xml
View file @
1300d399
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
matrix
</artifactId>
<artifactId>
matrix
</artifactId>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<version>
1.0.
12.RELEASE
</version>
<version>
1.0.
0-SNAPSHOT
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
common-util/src/main/java/com/secoo/mall/common/util/object/ObjectUtils.java
0 → 100644
View file @
1300d399
package
com
.
secoo
.
mall
.
common
.
util
.
object
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Set
;
/**
* Created by liumingming on 2018/6/13.
*/
public
class
ObjectUtils
{
/**
* 方法描述 如果对象为非空返回true 否则返回false
*/
public
static
<
T
>
boolean
isNotNull
(
T
obj
)
{
if
(
null
!=
obj
)
{
return
true
;
}
return
false
;
}
/**
* 方法描述 如果对象为空返回 true 否则返回false
*/
public
static
<
T
>
boolean
isNull
(
T
obj
)
{
if
(
null
!=
obj
)
{
return
false
;
}
return
true
;
}
/**
* 方法描述 判断Set集合非null 非空 返回true 否则返回false
*/
public
static
<
T
>
boolean
isNotNull
(
Set
<
T
>
list
)
{
if
(
null
!=
list
&&
!
list
.
isEmpty
())
{
return
true
;
}
return
false
;
}
/**
* 方法描述 判断Set集合是null或者空 非空 返回true 否则返回false
*/
public
static
<
T
>
boolean
isNull
(
Set
<
T
>
list
)
{
if
(
null
==
list
||
list
.
isEmpty
())
{
return
true
;
}
return
false
;
}
/**
* 方法描述 判断List集合非null 非空 返回true 否则返回false
*/
public
static
<
T
>
boolean
isNotNull
(
List
<
T
>
list
)
{
if
(
null
!=
list
&&
!
list
.
isEmpty
())
{
return
true
;
}
return
false
;
}
/**
* 方法描述 判断List集合是null或者空 非空 返回true 否则返回false
*/
public
static
<
T
>
boolean
isNull
(
List
<
T
>
list
)
{
if
(
null
==
list
||
list
.
isEmpty
())
{
return
true
;
}
return
false
;
}
/**
* 方法描述 判断Map集合非null 非空 返回true 否则返回false
*/
public
static
<
T
,
O
>
boolean
isNotNull
(
Map
<
T
,
O
>
map
)
{
if
(
null
!=
map
&&
!
map
.
isEmpty
())
{
return
true
;
}
return
false
;
}
/**
* 方法描述 判断Map集合是null或者空 返回true 否则返回false
*/
public
static
<
T
,
O
>
boolean
isNull
(
Map
<
T
,
O
>
map
)
{
if
(
null
==
map
||
map
.
isEmpty
())
{
return
true
;
}
return
false
;
}
/**
* 方法描述 判断数组集合非null 非空 返回true 否则返回false
*/
public
static
<
T
>
boolean
isNotNull
(
T
[]
list
)
{
if
(
null
!=
list
&&
!(
list
.
length
==
0
))
{
return
true
;
}
return
false
;
}
/**
* 方法描述 判断数组集合是null或者空 返回true 否则返回false
*/
public
static
<
T
>
boolean
isNull
(
T
[]
list
)
{
if
(
null
==
list
||
list
.
length
==
0
)
{
return
true
;
}
return
false
;
}
}
common-util/src/main/java/com/secoo/mall/common/util/response/ResponseUtil.java
View file @
1300d399
...
@@ -20,4 +20,8 @@ public interface ResponseUtil {
...
@@ -20,4 +20,8 @@ public interface ResponseUtil {
response
.
setData
(
data
);
response
.
setData
(
data
);
return
response
;
return
response
;
}
}
static
boolean
isSuccess
(
Response
response
)
{
return
response
!=
null
&&
response
.
getCode
()
==
CommonConstant
.
Success
.
CODE
;
}
}
}
config-starter/pom.xml
View file @
1300d399
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
matrix
</artifactId>
<artifactId>
matrix
</artifactId>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<version>
1.0.
12.RELEASE
</version>
<version>
1.0.
0-SNAPSHOT
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
elasticsearch-starter/pom.xml
View file @
1300d399
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
matrix
</artifactId>
<artifactId>
matrix
</artifactId>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<version>
1.0.
12.RELEASE
</version>
<version>
1.0.
0-SNAPSHOT
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
logger-starter/pom.xml
View file @
1300d399
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
matrix
</artifactId>
<artifactId>
matrix
</artifactId>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<version>
1.0.
12.RELEASE
</version>
<version>
1.0.
0-SNAPSHOT
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
logger-starter/secoo-log-starter/pom.xml
View file @
1300d399
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
logger-starter
</artifactId>
<artifactId>
logger-starter
</artifactId>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<version>
1.0.
12.RELEASE
</version>
<version>
1.0.
0-SNAPSHOT
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
logger-starter/secoo-log/pom.xml
View file @
1300d399
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
logger-starter
</artifactId>
<artifactId>
logger-starter
</artifactId>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<version>
1.0.
12.RELEASE
</version>
<version>
1.0.
0-SNAPSHOT
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
mongodb-starter/pom.xml
View file @
1300d399
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
matrix
</artifactId>
<artifactId>
matrix
</artifactId>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<version>
1.0.
12.RELEASE
</version>
<version>
1.0.
0-SNAPSHOT
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
monitor-starter/pom.xml
View file @
1300d399
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
matrix
</artifactId>
<artifactId>
matrix
</artifactId>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<version>
1.0.
12.RELEASE
</version>
<version>
1.0.
0-SNAPSHOT
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
mybatis-starter/pom.xml
View file @
1300d399
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
matrix
</artifactId>
<artifactId>
matrix
</artifactId>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<version>
1.0.
12.RELEASE
</version>
<version>
1.0.
0-SNAPSHOT
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
openfeign-starter/pom.xml
View file @
1300d399
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
matrix
</artifactId>
<artifactId>
matrix
</artifactId>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<version>
1.0.
12.RELEASE
</version>
<version>
1.0.
0-SNAPSHOT
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
pom.xml
View file @
1300d399
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<artifactId>
matrix
</artifactId>
<artifactId>
matrix
</artifactId>
<version>
1.0.
12.RELEASE
</version>
<version>
1.0.
0-SNAPSHOT
</version>
<packaging>
pom
</packaging>
<packaging>
pom
</packaging>
...
@@ -45,67 +45,67 @@
...
@@ -45,67 +45,67 @@
<dependency>
<dependency>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<artifactId>
secoo-log-starter
</artifactId>
<artifactId>
secoo-log-starter
</artifactId>
<version>
1.0.
12.RELEASE
</version>
<version>
1.0.
0-SNAPSHOT
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<artifactId>
secoo-log
</artifactId>
<artifactId>
secoo-log
</artifactId>
<version>
1.0.
12.RELEASE
</version>
<version>
1.0.
0-SNAPSHOT
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<artifactId>
monitor-starter
</artifactId>
<artifactId>
monitor-starter
</artifactId>
<version>
1.0.
12.RELEASE
</version>
<version>
1.0.
0-SNAPSHOT
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<artifactId>
common-core
</artifactId>
<artifactId>
common-core
</artifactId>
<version>
1.0.
12.RELEASE
</version>
<version>
1.0.
0-SNAPSHOT
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<artifactId>
config-starter
</artifactId>
<artifactId>
config-starter
</artifactId>
<version>
1.0.
12.RELEASE
</version>
<version>
1.0.
0-SNAPSHOT
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<artifactId>
common-util
</artifactId>
<artifactId>
common-util
</artifactId>
<version>
1.0.
12.RELEASE
</version>
<version>
1.0.
0-SNAPSHOT
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<artifactId>
redis-starter
</artifactId>
<artifactId>
redis-starter
</artifactId>
<version>
1.0.
12.RELEASE
</version>
<version>
1.0.
0-SNAPSHOT
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<artifactId>
mybatis-starter
</artifactId>
<artifactId>
mybatis-starter
</artifactId>
<version>
1.0.
12.RELEASE
</version>
<version>
1.0.
0-SNAPSHOT
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<artifactId>
mongodb-starter
</artifactId>
<artifactId>
mongodb-starter
</artifactId>
<version>
1.0.
12.RELEASE
</version>
<version>
1.0.
0-SNAPSHOT
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<artifactId>
elasticsearch-starter
</artifactId>
<artifactId>
elasticsearch-starter
</artifactId>
<version>
1.0.
12.RELEASE
</version>
<version>
1.0.
0-SNAPSHOT
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<artifactId>
protocol-starter
</artifactId>
<artifactId>
protocol-starter
</artifactId>
<version>
1.0.
12.RELEASE
</version>
<version>
1.0.
0-SNAPSHOT
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<artifactId>
rocketmq-starter
</artifactId>
<artifactId>
rocketmq-starter
</artifactId>
<version>
1.0.
12.RELEASE
</version>
<version>
1.0.
0-SNAPSHOT
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<artifactId>
openfeign-starter
</artifactId>
<artifactId>
openfeign-starter
</artifactId>
<version>
1.0.
12.RELEASE
</version>
<version>
1.0.
0-SNAPSHOT
</version>
</dependency>
</dependency>
<dependency>
<dependency>
...
@@ -131,7 +131,7 @@
...
@@ -131,7 +131,7 @@
<dependency>
<dependency>
<groupId>
com.alibaba
</groupId>
<groupId>
com.alibaba
</groupId>
<artifactId>
fastjson
</artifactId>
<artifactId>
fastjson
</artifactId>
<version>
1.2.5
2
</version>
<version>
1.2.5
8
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
com.esotericsoftware
</groupId>
<groupId>
com.esotericsoftware
</groupId>
...
...
protocol-starter/pom.xml
View file @
1300d399
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
matrix
</artifactId>
<artifactId>
matrix
</artifactId>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<version>
1.0.
12.RELEASE
</version>
<version>
1.0.
0-SNAPSHOT
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
redis-starter/pom.xml
View file @
1300d399
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
matrix
</artifactId>
<artifactId>
matrix
</artifactId>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<version>
1.0.
12.RELEASE
</version>
<version>
1.0.
0-SNAPSHOT
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
rocketmq-starter/pom.xml
View file @
1300d399
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
matrix
</artifactId>
<artifactId>
matrix
</artifactId>
<groupId>
com.secoo.mall
</groupId>
<groupId>
com.secoo.mall
</groupId>
<version>
1.0.
12.RELEASE
</version>
<version>
1.0.
0-SNAPSHOT
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
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