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
0ca4a35b
Commit
0ca4a35b
authored
Apr 18, 2021
by
fudahua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
门店信息包含总部还是代理信息
parent
48b095f5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
11 deletions
+13
-11
MaterialController.java
.../gic/haoban/manage/web/controller/MaterialController.java
+13
-11
No files found.
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/MaterialController.java
View file @
0ca4a35b
...
...
@@ -217,18 +217,20 @@ public class MaterialController extends WebBaseController{
* @return
*/
@RequestMapping
(
"/material-share"
)
public
HaobanResponse
materialShare
(
String
materialId
,
String
toWxEnterpriseIds
)
{
LoginVO
login
=
(
LoginVO
)
AuthRequestUtil
.
getLoginUser
();
public
HaobanResponse
materialShare
(
String
materialIds
,
String
toWxEnterpriseIds
)
{
LoginVO
login
=
(
LoginVO
)
AuthRequestUtil
.
getLoginUser
();
String
[]
wxEids
=
toWxEnterpriseIds
.
split
(
","
);
for
(
String
wxEid
:
wxEids
)
{
ServiceResponse
<
Void
>
response
=
materialApiService
.
shareMaterial
(
login
.
getWxEnterpriseId
(),
wxEid
,
materialId
);
if
(
response
.
getCode
()
==
1
||
response
.
getCode
()
==
4
)
{
continue
;
}
HaoBanErrCode
.
ERR_DEFINE
.
setMsg
(
response
.
getMessage
());
return
resultResponse
(
HaoBanErrCode
.
ERR_DEFINE
);
}
String
[]
maIds
=
toWxEnterpriseIds
.
split
(
","
);
for
(
String
maId
:
maIds
)
{
for
(
String
wxEid
:
wxEids
)
{
ServiceResponse
<
Void
>
response
=
materialApiService
.
shareMaterial
(
login
.
getWxEnterpriseId
(),
wxEid
,
maId
);
if
(
response
.
getCode
()
==
1
||
response
.
getCode
()
==
4
)
{
continue
;
}
HaoBanErrCode
.
ERR_DEFINE
.
setMsg
(
response
.
getMessage
());
return
resultResponse
(
HaoBanErrCode
.
ERR_DEFINE
);
}
}
return
resultResponse
(
HaoBanErrCode
.
ERR_1
);
}
...
...
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