Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dm_project
Project
Project
Details
Activity
Releases
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
姚本章
dm_project
Commits
8ee1efb1
Commit
8ee1efb1
authored
Jan 05, 2021
by
zhangc
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dm_dev' of
http://gitlab.ioubuy.cn/yaobenzhang/dm_project
into dm_dev
parents
02d5428f
e5ac3d62
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
30 additions
and
39 deletions
+30
-39
DateUtils.java
...m-common/src/main/java/com/jz/common/utils/DateUtils.java
+8
-8
NumberUtils.java
...common/src/main/java/com/jz/common/utils/NumberUtils.java
+5
-5
RandomUtil.java
...-common/src/main/java/com/jz/common/utils/RandomUtil.java
+11
-11
SMSUtils.java
jz-dm-common/src/main/java/com/jz/common/utils/SMSUtils.java
+3
-3
DataApiUpReq.java
...ge/moduls/controller/goods/bean/request/DataApiUpReq.java
+1
-6
DataGoodsServiceImpl.java
...m/jz/manage/moduls/service/impl/DataGoodsServiceImpl.java
+2
-6
No files found.
jz-dm-common/src/main/java/com/jz/common/utils/DateUtils.java
View file @
8ee1efb1
...
@@ -340,14 +340,14 @@ public class DateUtils {
...
@@ -340,14 +340,14 @@ public class DateUtils {
public
static
void
main
(
String
[]
args
)
{
//
public static void main(String[] args) {
try
{
//
try {
System
.
out
.
println
(
"本周一"
+
parseDate2String
(
getThisWeekMonday
()));
//
System.out.println("本周一" + parseDate2String(getThisWeekMonday()));
System
.
out
.
println
(
"本月一日"
+
parseDate2String
(
getFirstDay4ThisMonth
()));
//
System.out.println("本月一日" + parseDate2String(getFirstDay4ThisMonth()));
}
catch
(
Exception
e
)
{
//
} catch (Exception e) {
e
.
printStackTrace
();
//
e.printStackTrace();
}
//
}
}
//
}
//获取一年后时间
//获取一年后时间
public
static
Date
getAfterYear
(
Date
now
)
{
public
static
Date
getAfterYear
(
Date
now
)
{
...
...
jz-dm-common/src/main/java/com/jz/common/utils/NumberUtils.java
View file @
8ee1efb1
...
@@ -89,9 +89,9 @@ public class NumberUtils {
...
@@ -89,9 +89,9 @@ public class NumberUtils {
}
}
public
static
void
main
(
String
[]
args
)
{
//
public static void main(String[] args) {
//
System
.
out
.
println
(
getOrderNumber
(
"00001"
));
//
System.out.println(getOrderNumber("00001"));
System
.
out
.
println
(
getDealNum
());
//
System.out.println(getDealNum());
}
//
}
}
}
\ No newline at end of file
jz-dm-common/src/main/java/com/jz/common/utils/RandomUtil.java
View file @
8ee1efb1
...
@@ -289,15 +289,15 @@ public class RandomUtil {
...
@@ -289,15 +289,15 @@ public class RandomUtil {
return
builder
.
toString
();
return
builder
.
toString
();
}
}
public
static
void
main
(
String
[]
args
)
{
//
public static void main(String[] args) {
//System.out.println(getStringRandom(8));
//
//System.out.println(getStringRandom(8));
// System.out.println("获取拼音首字母:"+getAllFirstLetter("大中国南昌中大china"));
//
// System.out.println("获取拼音首字母:"+getAllFirstLetter("大中国南昌中大china"));
//System.out.println(isChineseWord("大中国南昌中大"));
//
//System.out.println(isChineseWord("大中国南昌中大"));
//System.out.println(generateOrgCoding("九章数据","INT"));
//
//System.out.println(generateOrgCoding("九章数据","INT"));
// System.out.println(generateTokenCode("", ""));
//
// System.out.println(generateTokenCode("", ""));
//System.out.println(addZeroForNum("1", 8));
//
//System.out.println(addZeroForNum("1", 8));
//System.out.println("内部授权码:" + generateTokenCode("INT", "NEIJZSJ900hx", ""));//内部授权码
//
//System.out.println("内部授权码:" + generateTokenCode("INT", "NEIJZSJ900hx", ""));//内部授权码
//System.out.println("外部授权码:" + generateTokenCode("OUT", "", "199"));//内部授权码
//
//System.out.println("外部授权码:" + generateTokenCode("OUT", "", "199"));//内部授权码
System
.
out
.
println
(
generateVersion
(
"v1.99"
));
//
System.out.println(generateVersion("v1.99"));
}
//
}
}
}
jz-dm-common/src/main/java/com/jz/common/utils/SMSUtils.java
View file @
8ee1efb1
...
@@ -23,9 +23,9 @@ public class SMSUtils {
...
@@ -23,9 +23,9 @@ public class SMSUtils {
private
static
final
String
ACCESS_KEY
=
"LTAI4GKPoTkrT6n2fSV7ePEG"
;
//你的AccessKey ID
private
static
final
String
ACCESS_KEY
=
"LTAI4GKPoTkrT6n2fSV7ePEG"
;
//你的AccessKey ID
private
static
final
String
SECRET_KEY
=
"k8HcW3TxZzGxAetEpyDInZehip9MAE"
;
//你的AccessKey Secret
private
static
final
String
SECRET_KEY
=
"k8HcW3TxZzGxAetEpyDInZehip9MAE"
;
//你的AccessKey Secret
public
static
void
main
(
String
[]
args
)
throws
ClientException
{
//
public static void main(String[] args) throws ClientException {
SMSUtils
.
sendShortMessage
(
VALIDATE_CODE
,
"19979232865"
,
"55555555"
);
//
SMSUtils.sendShortMessage(VALIDATE_CODE,"19979232865","55555555");
}
//
}
/**
/**
*
*
...
...
jz-dm-manage/src/main/java/com/jz/manage/moduls/controller/goods/bean/request/DataApiUpReq.java
View file @
8ee1efb1
...
@@ -33,7 +33,7 @@ public class DataApiUpReq implements Serializable {
...
@@ -33,7 +33,7 @@ public class DataApiUpReq implements Serializable {
@ApiModelProperty
(
value
=
"接口地址"
)
@ApiModelProperty
(
value
=
"接口地址"
)
private
String
apiUrl
;
private
String
apiUrl
;
@ApiModelProperty
(
value
=
"api请求协议"
)
@ApiModelProperty
(
value
=
"api请求协议
HTTP/HTTPS
"
)
private
String
apiProtocl
;
private
String
apiProtocl
;
@ApiModelProperty
(
value
=
"api返回数据样例"
)
@ApiModelProperty
(
value
=
"api返回数据样例"
)
...
@@ -45,9 +45,6 @@ public class DataApiUpReq implements Serializable {
...
@@ -45,9 +45,6 @@ public class DataApiUpReq implements Serializable {
@ApiModelProperty
(
value
=
"加密方式 MD5/RSA"
)
@ApiModelProperty
(
value
=
"加密方式 MD5/RSA"
)
private
String
encryMode
;
private
String
encryMode
;
@ApiModelProperty
(
value
=
"传输方式 HTTP/HTTPS"
)
private
String
transMode
;
@ApiModelProperty
(
value
=
"功能"
)
@ApiModelProperty
(
value
=
"功能"
)
private
String
apiFunction
;
private
String
apiFunction
;
...
@@ -69,8 +66,6 @@ public class DataApiUpReq implements Serializable {
...
@@ -69,8 +66,6 @@ public class DataApiUpReq implements Serializable {
@ApiModelProperty
(
value
=
"目标地址"
,
required
=
false
)
@ApiModelProperty
(
value
=
"目标地址"
,
required
=
false
)
private
String
targetUrl
;
private
String
targetUrl
;
@ApiModelProperty
(
value
=
"超时时间"
)
private
Date
overTime
;
/**
/**
* goods表
* goods表
*/
*/
...
...
jz-dm-manage/src/main/java/com/jz/manage/moduls/service/impl/DataGoodsServiceImpl.java
View file @
8ee1efb1
...
@@ -249,10 +249,7 @@ public class DataGoodsServiceImpl implements DataGoodsService {
...
@@ -249,10 +249,7 @@ public class DataGoodsServiceImpl implements DataGoodsService {
if
(!
StringUtils
.
isNotEmpty
(
dataApiUpReq
.
getJoinType
()))
{
if
(!
StringUtils
.
isNotEmpty
(
dataApiUpReq
.
getJoinType
()))
{
return
Result
.
error
(
"接入类型不存在!"
);
return
Result
.
error
(
"接入类型不存在!"
);
}
}
if
(!
StringUtils
.
isNotEmpty
(
dataApiUpReq
.
getApiType
()))
{
if
(!
StringUtils
.
isNotEmpty
(
dataApiUpReq
.
getApiProtocl
()))
{
return
Result
.
error
(
"api类型不存在!"
);
}
if
(!
StringUtils
.
isNotEmpty
(
dataApiUpReq
.
getTransMode
()))
{
return
Result
.
error
(
"传输方式不能为空!"
);
return
Result
.
error
(
"传输方式不能为空!"
);
}
}
if
(!
StringUtils
.
isNotEmpty
(
dataApiUpReq
.
getEncryMode
()))
{
if
(!
StringUtils
.
isNotEmpty
(
dataApiUpReq
.
getEncryMode
()))
{
...
@@ -271,7 +268,7 @@ public class DataGoodsServiceImpl implements DataGoodsService {
...
@@ -271,7 +268,7 @@ public class DataGoodsServiceImpl implements DataGoodsService {
apiReq
.
setOutputType
(
dataApiUpReq
.
getReturnType
());
apiReq
.
setOutputType
(
dataApiUpReq
.
getReturnType
());
// apiReq.setPage(); // TODO
// apiReq.setPage(); // TODO
apiReq
.
setFileId
(
1L
);
apiReq
.
setFileId
(
1L
);
apiReq
.
setTimeout
(
dataApiUpReq
.
getOverTime
()
+
""
);
//
apiReq.setTimeout(dataApiUpReq.getOverTime() + "");
for
(
DataGoodsApiParams
params
:
dataApiUpReq
.
getInboxParam
())
{
for
(
DataGoodsApiParams
params
:
dataApiUpReq
.
getInboxParam
())
{
apiReq
.
setInboxParam
(
JSON
.
toJSONString
(
params
));
apiReq
.
setInboxParam
(
JSON
.
toJSONString
(
params
));
}
}
...
@@ -293,7 +290,6 @@ public class DataGoodsServiceImpl implements DataGoodsService {
...
@@ -293,7 +290,6 @@ public class DataGoodsServiceImpl implements DataGoodsService {
// String url= "http://127.0.0.1:8088/api/producer/addDataBankApiInfo";
// String url= "http://127.0.0.1:8088/api/producer/addDataBankApiInfo";
String
post
=
httpsUtils
.
submitPost
(
url
,
JSON
.
toJSONString
(
apiReq
));
String
post
=
httpsUtils
.
submitPost
(
url
,
JSON
.
toJSONString
(
apiReq
));
System
.
out
.
println
(
post
);
JSONObject
result
=
JSON
.
parseObject
(
post
);
JSONObject
result
=
JSON
.
parseObject
(
post
);
if
(!
result
.
get
(
"code"
).
equals
(
200
)
||
org
.
springframework
.
util
.
StringUtils
.
isEmpty
(
result
.
get
(
"data"
))){
if
(!
result
.
get
(
"code"
).
equals
(
200
)
||
org
.
springframework
.
util
.
StringUtils
.
isEmpty
(
result
.
get
(
"data"
))){
return
Result
.
of_error
(
"制作失败!"
);
return
Result
.
of_error
(
"制作失败!"
);
...
...
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