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
8e7b588e
Commit
8e7b588e
authored
May 13, 2020
by
fudahua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
企业列表
parent
32cf4f7c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
WxEnterpriseRelatedMapper.xml
...e/src/main/resources/mapper/WxEnterpriseRelatedMapper.xml
+2
-1
ServiceTest.java
haoban-manage3-service/src/test/java/ServiceTest.java
+5
-6
No files found.
haoban-manage3-service/src/main/resources/mapper/WxEnterpriseRelatedMapper.xml
View file @
8e7b588e
...
@@ -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
update_time > #{time}
AND
update_time > #{time}
</select>
</select>
</mapper>
</mapper>
\ No newline at end of file
haoban-manage3-service/src/test/java/ServiceTest.java
View file @
8e7b588e
...
@@ -6,10 +6,7 @@ import com.gic.haoban.base.api.common.ServiceResponse;
...
@@ -6,10 +6,7 @@ import com.gic.haoban.base.api.common.ServiceResponse;
import
com.gic.haoban.manage.api.service.StaffApiService
;
import
com.gic.haoban.manage.api.service.StaffApiService
;
import
com.gic.haoban.manage.api.service.WxEnterpriseRelatedApiService
;
import
com.gic.haoban.manage.api.service.WxEnterpriseRelatedApiService
;
import
com.gic.redis.data.util.RedisUtil
;
import
com.gic.redis.data.util.RedisUtil
;
import
com.gic.wechat.api.dto.qywx.DepartmentDTO
;
import
com.gic.wechat.api.dto.qywx.*
;
import
com.gic.wechat.api.dto.qywx.QywxTextExternalMessageDTO
;
import
com.gic.wechat.api.dto.qywx.QywxXcxSendMessageDTO
;
import
com.gic.wechat.api.dto.qywx.UserDTO
;
import
com.gic.wechat.api.enums.QywxMediaTypeEnum
;
import
com.gic.wechat.api.enums.QywxMediaTypeEnum
;
import
com.gic.wechat.api.service.qywx.QywxDepartmentApiService
;
import
com.gic.wechat.api.service.qywx.QywxDepartmentApiService
;
import
com.gic.wechat.api.service.qywx.QywxSuiteApiService
;
import
com.gic.wechat.api.service.qywx.QywxSuiteApiService
;
...
@@ -187,6 +184,7 @@ public void sendMessage() {
...
@@ -187,6 +184,7 @@ public void sendMessage() {
}
}
@Test
@Test
public
void
extensionList2
()
{
public
void
extensionList2
()
{
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"
;
...
@@ -202,8 +200,8 @@ public void sendMessage() {
...
@@ -202,8 +200,8 @@ public void sendMessage() {
// 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));
Qywx
TextExternalMessageDTO
messageDTO
=
new
QywxText
ExternalMessageDTO
();
Qywx
ImageExternalMessageDTO
messageDTO
=
new
QywxImage
ExternalMessageDTO
();
messageDTO
.
set
Text
(
"test
"
);
messageDTO
.
set
MediaId
(
"3U5qDJRn46ZPUCQk3h2-7iqESryRICPLv6XHFEGy0r7MIJMVNkzpDjpPOo6k-R2uB
"
);
messageDTO
.
setSenderUserId
(
"9ae4c4f1277340a186b16a17d937c72c"
);
messageDTO
.
setSenderUserId
(
"9ae4c4f1277340a186b16a17d937c72c"
);
List
<
String
>
list
=
new
ArrayList
<>();
List
<
String
>
list
=
new
ArrayList
<>();
list
.
add
(
"wm59NLDQAAL0fHb-QEbx-U9pdtRFA1bg"
);
list
.
add
(
"wm59NLDQAAL0fHb-QEbx-U9pdtRFA1bg"
);
...
@@ -253,4 +251,5 @@ public void sendMessage() {
...
@@ -253,4 +251,5 @@ public void sendMessage() {
return
null
;
return
null
;
}
}
}
}
}
}
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