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
ae7b0a12
Commit
ae7b0a12
authored
Mar 25, 2020
by
qwmqiuwenmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
ebea1e7f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
0 deletions
+28
-0
WxEnterpriseApiService.java
...gic/haoban/manage/api/service/WxEnterpriseApiService.java
+3
-0
WxEnterpriseMapper.java
.../haoban/manage/service/dao/mapper/WxEnterpriseMapper.java
+4
-0
WxEnterpriseApiServiceImpl.java
.../service/service/out/impl/WxEnterpriseApiServiceImpl.java
+7
-0
WxEnterpriseMapper.xml
...-service/src/main/resources/mapper/WxEnterpriseMapper.xml
+14
-0
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/service/WxEnterpriseApiService.java
View file @
ae7b0a12
package
com
.
gic
.
haoban
.
manage
.
api
.
service
;
import
java.util.List
;
import
java.util.Set
;
import
com.gic.haoban.base.api.common.BasePageInfo
;
import
com.gic.haoban.manage.api.dto.QywxCorpInfoSimpleDTO
;
...
...
@@ -35,4 +36,6 @@ public interface WxEnterpriseApiService {
void
update
(
WxEnterpriseDTO
enterpriseDTO
);
List
<
YwWxEnterpriseDTO
>
listAll
();
List
<
YwWxEnterpriseDTO
>
listByIds
(
Set
<
String
>
enterpriseIds
);
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/dao/mapper/WxEnterpriseMapper.java
View file @
ae7b0a12
package
com
.
gic
.
haoban
.
manage
.
service
.
dao
.
mapper
;
import
java.util.List
;
import
java.util.Set
;
import
com.gic.haoban.base.api.common.BasePageInfo
;
import
com.gic.haoban.manage.service.entity.TabHaobanWxEnterprise
;
...
...
@@ -28,4 +29,6 @@ public interface WxEnterpriseMapper {
List
<
TabHaobanWxEnterprise
>
listDelBycorpId
(
@Param
(
"corpId"
)
String
corpId
);
List
<
TabHaobanWxEnterprise
>
listAll
();
List
<
TabHaobanWxEnterprise
>
listByIds
(
@Param
(
"enterpriseIds"
)
Set
<
String
>
enterpriseIds
);
}
\ No newline at end of file
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/WxEnterpriseApiServiceImpl.java
View file @
ae7b0a12
...
...
@@ -2,6 +2,7 @@ package com.gic.haoban.manage.service.service.out.impl;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.Set
;
import
com.alibaba.fastjson.JSON
;
import
com.gic.haoban.base.api.common.BasePageInfo
;
...
...
@@ -104,6 +105,12 @@ public class WxEnterpriseApiServiceImpl implements WxEnterpriseApiService {
List
<
TabHaobanWxEnterprise
>
list
=
wxEnterpriseMapper
.
listAll
();
return
EntityUtil
.
changeEntityListByJSON
(
YwWxEnterpriseDTO
.
class
,
list
);
}
@Override
public
List
<
YwWxEnterpriseDTO
>
listByIds
(
Set
<
String
>
enterpriseIds
)
{
List
<
TabHaobanWxEnterprise
>
list
=
wxEnterpriseMapper
.
listByIds
(
enterpriseIds
);
return
EntityUtil
.
changeEntityListByJSON
(
YwWxEnterpriseDTO
.
class
,
list
);
}
@Override
public
WxEnterpriseDTO
getOne
(
String
wxEnterpriseId
)
{
...
...
haoban-manage3-service/src/main/resources/mapper/WxEnterpriseMapper.xml
View file @
ae7b0a12
...
...
@@ -395,4 +395,17 @@
where status_flag = 1
</select>
<select
id=
"listAll"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from tab_haoban_wx_enterprise
where status_flag = 1
<if
test=
"enterpriseIds != null and enterpriseIds.size() > 0"
>
and wx_enterprise_id IN
<foreach
collection=
"enterpriseIds"
item=
"id"
index=
"index"
open=
"("
close=
")"
separator=
","
>
#{id,jdbcType=VARCHAR}
</foreach>
</if>
</select>
</mapper>
\ No newline at end of file
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