Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
Overview
Overview
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
haoban3.0
haoban-manage3.0
Commits
4e486e8d
Commit
4e486e8d
authored
May 21, 2020
by
fudahua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gic跳转登录
parent
64a8c58b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
4 deletions
+22
-4
WxEnterpriseRelatedMapper.xml
...e/src/main/resources/mapper/WxEnterpriseRelatedMapper.xml
+2
-1
ServiceTest.java
haoban-manage3-service/src/test/java/ServiceTest.java
+20
-3
No files found.
haoban-manage3-service/src/main/resources/mapper/WxEnterpriseRelatedMapper.xml
View file @
4e486e8d
...
@@ -154,7 +154,7 @@
...
@@ -154,7 +154,7 @@
<include
refid=
"Base_Column_List"
/>
<include
refid=
"Base_Column_List"
/>
from tab_haoban_wx_enterprise_related
from tab_haoban_wx_enterprise_related
where status_flag = 1
where status_flag = 1
AND
update_time >
#{time}
AND
AND DATE_FORMAT(update_time,'%Y-%m-%d') =
#{time}
</select>
</select>
</mapper>
</mapper>
\ No newline at end of file
haoban-manage3-service/src/test/java/ServiceTest.java
View file @
4e486e8d
...
@@ -215,14 +215,31 @@ public void sendMessage() {
...
@@ -215,14 +215,31 @@ public void sendMessage() {
@Test
@Test
public
void
extensionList4
()
{
public
void
extensionList4
()
{
// msg59NLDQAAKvRi-fguFcKRVOjeoJKRJw
// msg59NLDQAAKvRi-fguFcKRVOjeoJKRJw
// String img="https://pic01-10001430.image.myqcloud.com/53205d69-01f1-4706-a258-014d59d8d106";
String
img
=
"https://pic01-10001430.image.myqcloud.com/53205d69-01f1-4706-a258-014d59d8d106"
;
// byte[] aByte = getByte(img);
byte
[]
aByte
=
getByte
(
img
);
// JSONResponse response = qywxSuiteApiService.uploadMedia("ww9ede832a84b7ae5f", "ww2c34dc56739bb105", aByte, QywxMediaTypeEnum.IMAGE.getCode());
// JSONResponse response = qywxSuiteApiService.uploadMedia("ww9ede832a84b7ae5f", "ww2c34dc56739bb105", aByte, QywxMediaTypeEnum.IMAGE.getCode());
// System.out.println(JSONObject.toJSONString(response));
// System.out.println(JSONObject.toJSONString(response));
JSONResponse
response1
=
qywxSuiteApiService
.
resultExternalMessage
(
"ww9ede832a84b7ae5f"
,
"ww2c34dc56739bb105"
,
"msg59NLDQAAKvRi-fguFcKRVOjeoJKRJw"
);
JSONResponse
response1
=
qywxSuiteApiService
.
uploadImage
(
"ww9ede832a84b7ae5f"
,
"ww2c34dc56739bb105"
,
aByte
);
System
.
out
.
println
(
JSONObject
.
toJSONString
(
response1
));
System
.
out
.
println
(
JSONObject
.
toJSONString
(
response1
));
}
}
@Test
public
void
redis
()
{
long
key
=
111
;
RedisUtil
.
setCache
(
"test-key-11"
,
key
);
Long
key2
=
111L
;
RedisUtil
.
setCache
(
"test-key-112"
,
key2
);
RedisUtil
.
setCache
(
"test-key-113"
,
1
);
int
ke22y
=
22
;
RedisUtil
.
setCache
(
"test-key-115"
,
ke22y
);
RedisUtil
.
setCache
(
"test-key-114"
,
"1"
);
}
private
byte
[]
getByte
(
String
strUrl
){
private
byte
[]
getByte
(
String
strUrl
){
ByteArrayOutputStream
baos
=
null
;
ByteArrayOutputStream
baos
=
null
;
try
try
...
...
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