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
e3a6df29
Commit
e3a6df29
authored
Sep 29, 2021
by
xugaojun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化:运营平台企业列表查询优化
parent
1d911326
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
4 deletions
+14
-4
WxEnterpriseApiService.java
...gic/haoban/manage/api/service/WxEnterpriseApiService.java
+1
-1
EnterpriseController.java
...ic/haoban/manage/web/controller/EnterpriseController.java
+0
-0
WxEnterpriseMapper.java
.../haoban/manage/service/dao/mapper/WxEnterpriseMapper.java
+5
-1
WxEnterpriseApiServiceImpl.java
.../service/service/out/impl/WxEnterpriseApiServiceImpl.java
+2
-2
WxEnterpriseMapper.xml
...-service/src/main/resources/mapper/WxEnterpriseMapper.xml
+6
-0
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/service/WxEnterpriseApiService.java
View file @
e3a6df29
...
@@ -17,7 +17,7 @@ public interface WxEnterpriseApiService {
...
@@ -17,7 +17,7 @@ public interface WxEnterpriseApiService {
* 运维后台获取微信企业id列表
* 运维后台获取微信企业id列表
* @return
* @return
*/
*/
com
.
gic
.
api
.
base
.
commons
.
Page
<
YwWxEnterpriseDTO
>
list
(
BasePageInfo
pageInfo
,
String
keyword
,
List
<
String
>
enterpriseIds
,
Integer
gicContactFlag
,
String
version
);
com
.
gic
.
api
.
base
.
commons
.
Page
<
YwWxEnterpriseDTO
>
list
(
BasePageInfo
pageInfo
,
String
keyword
,
List
<
String
>
enterpriseIds
,
Integer
gicContactFlag
,
String
version
,
List
<
String
>
enterpriseIdsNotIn
);
/**
/**
* 获取一个
* 获取一个
* @param wxEnterpriseId
* @param wxEnterpriseId
...
...
haoban-manage3-operation-web/src/main/java/com/gic/haoban/manage/web/controller/EnterpriseController.java
View file @
e3a6df29
This diff is collapsed.
Click to expand it.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/dao/mapper/WxEnterpriseMapper.java
View file @
e3a6df29
...
@@ -22,7 +22,11 @@ public interface WxEnterpriseMapper {
...
@@ -22,7 +22,11 @@ public interface WxEnterpriseMapper {
int
updateByPrimaryKey
(
TabHaobanWxEnterprise
record
);
int
updateByPrimaryKey
(
TabHaobanWxEnterprise
record
);
Page
<
TabHaobanWxEnterprise
>
list
(
@Param
(
"keyword"
)
String
keyword
,
@Param
(
"enterpriseIds"
)
List
<
String
>
enterpriseIds
,
@Param
(
"gicContactFlag"
)
Integer
gicContactFlag
,
@Param
(
"version"
)
String
version
);
Page
<
TabHaobanWxEnterprise
>
list
(
@Param
(
"keyword"
)
String
keyword
,
@Param
(
"enterpriseIds"
)
List
<
String
>
enterpriseIds
,
@Param
(
"gicContactFlag"
)
Integer
gicContactFlag
,
@Param
(
"version"
)
String
version
,
@Param
(
"enterpriseIdsNotIn"
)
List
<
String
>
enterpriseIdsNotIn
);
List
<
TabHaobanWxEnterprise
>
listBycorpId
(
@Param
(
"corpId"
)
String
corpId
);
List
<
TabHaobanWxEnterprise
>
listBycorpId
(
@Param
(
"corpId"
)
String
corpId
);
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/WxEnterpriseApiServiceImpl.java
View file @
e3a6df29
...
@@ -104,9 +104,9 @@ public class WxEnterpriseApiServiceImpl implements WxEnterpriseApiService {
...
@@ -104,9 +104,9 @@ public class WxEnterpriseApiServiceImpl implements WxEnterpriseApiService {
}
}
@Override
@Override
public
com
.
gic
.
api
.
base
.
commons
.
Page
<
YwWxEnterpriseDTO
>
list
(
BasePageInfo
pageInfo
,
String
keyword
,
List
<
String
>
enterpriseIds
,
Integer
gicContactFlag
,
String
version
)
{
public
com
.
gic
.
api
.
base
.
commons
.
Page
<
YwWxEnterpriseDTO
>
list
(
BasePageInfo
pageInfo
,
String
keyword
,
List
<
String
>
enterpriseIds
,
Integer
gicContactFlag
,
String
version
,
List
<
String
>
enterpriseIdsNotIn
)
{
PageHelper
.
startPage
(
pageInfo
.
getPageNum
(),
pageInfo
.
getPageSize
());
PageHelper
.
startPage
(
pageInfo
.
getPageNum
(),
pageInfo
.
getPageSize
());
Page
<
TabHaobanWxEnterprise
>
page
=
wxEnterpriseMapper
.
list
(
keyword
,
enterpriseIds
,
gicContactFlag
,
version
);
Page
<
TabHaobanWxEnterprise
>
page
=
wxEnterpriseMapper
.
list
(
keyword
,
enterpriseIds
,
gicContactFlag
,
version
,
enterpriseIdsNotIn
);
return
PageUtil
.
changePageHelperToCurrentPage
(
page
,
YwWxEnterpriseDTO
.
class
);
return
PageUtil
.
changePageHelperToCurrentPage
(
page
,
YwWxEnterpriseDTO
.
class
);
}
}
...
...
haoban-manage3-service/src/main/resources/mapper/WxEnterpriseMapper.xml
View file @
e3a6df29
...
@@ -431,6 +431,12 @@
...
@@ -431,6 +431,12 @@
<if
test=
"keyword != null and keyword != ''"
>
<if
test=
"keyword != null and keyword != ''"
>
and corp_name like CONCAT('%',#{keyword},'%')
and corp_name like CONCAT('%',#{keyword},'%')
</if>
</if>
<if
test=
"enterpriseIdsNotIn != null and enterpriseIdsNotIn.size() > 0"
>
and wx_enterprise_id NOT IN
<foreach
collection=
"enterpriseIdsNotIn"
item=
"id"
index=
"index"
open=
"("
close=
")"
separator=
","
>
#{id,jdbcType=VARCHAR}
</foreach>
</if>
<if
test=
"enterpriseIds != null and enterpriseIds.size() > 0"
>
<if
test=
"enterpriseIds != null and enterpriseIds.size() > 0"
>
and wx_enterprise_id IN
and wx_enterprise_id IN
<foreach
collection=
"enterpriseIds"
item=
"id"
index=
"index"
open=
"("
close=
")"
separator=
","
>
<foreach
collection=
"enterpriseIds"
item=
"id"
index=
"index"
open=
"("
close=
")"
separator=
","
>
...
...
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