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
62096621
Commit
62096621
authored
Apr 24, 2020
by
fudahua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
关联关系保存
parent
46facba8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
InfoController.java
.../com/gic/haoban/manage/web/controller/InfoController.java
+13
-0
dubbo-haoban-manage-wx.xml
...ge3-wx/src/main/webapp/WEB-INF/dubbo-haoban-manage-wx.xml
+2
-0
No files found.
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/InfoController.java
View file @
62096621
...
...
@@ -11,6 +11,8 @@ import com.gic.dict.api.dto.DictDTO;
import
com.gic.dict.api.service.ManagerDictService
;
import
com.gic.enterprise.api.dto.StoreDTO
;
import
com.gic.enterprise.api.dto.StorePhotoDTO
;
import
com.gic.haoban.app.customer.dto.StaffOpenRelatedDTO
;
import
com.gic.haoban.app.customer.service.api.service.StaffMemberRelationApiService
;
import
com.gic.haoban.base.api.common.ServiceResponse
;
import
com.gic.haoban.common.utils.EntityUtil
;
import
com.gic.haoban.common.utils.HaobanResponse
;
...
...
@@ -80,6 +82,9 @@ public class InfoController extends WebBaseController{
@Autowired
private
ManagerDictService
managerDictService
;
@Autowired
private
StaffMemberRelationApiService
staffMemberRelationApiService
;
private
static
Logger
logger
=
LoggerFactory
.
getLogger
(
InfoController
.
class
);
...
...
@@ -169,6 +174,14 @@ public class InfoController extends WebBaseController{
logger
.
info
(
"成员不存在"
);
return
resultResponse
(
HaoBanErrCode
.
ERR_6
);
}
//保存关联关系
StaffOpenRelatedDTO
relatedDTO
=
new
StaffOpenRelatedDTO
();
relatedDTO
.
setMemberId
(
qo
.
getMemberId
());
relatedDTO
.
setOpenId
(
qo
.
getOpenid
());
relatedDTO
.
setStaffId
(
staffDTO
.
getStaffId
());
relatedDTO
.
setWxEnterpriseId
(
enterpriseDTO
.
getWxEnterpriseId
());
relatedDTO
.
setGicEnterpriseId
(
enterpriseDetailDTO
.
getEnterpriseId
());
staffMemberRelationApiService
.
bindMemberAndStaff
(
relatedDTO
)
ServiceResponse
<
List
<
DepartmentDTO
>>
response
=
departmentApiService
.
listStoreListByStaffId
(
staffDTO
.
getStaffId
());
List
<
DepartmentDTO
>
result
=
response
.
getResult
();
...
...
haoban-manage3-wx/src/main/webapp/WEB-INF/dubbo-haoban-manage-wx.xml
View file @
62096621
...
...
@@ -51,4 +51,6 @@
<dubbo:reference
interface=
"com.gic.haoban.manage.api.service.MaidianLogApiService"
id=
"maidianLogApiService"
/>
<dubbo:reference
interface=
"com.gic.haoban.app.customer.service.api.service.StaffMemberRelationApiService"
id=
"staffMemberRelationApiService"
/>
</beans>
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