Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
scrm
/
platform-merchants
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit e72b9e72
authored
Feb 04, 2026
by
章家宝
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
工资绩效:自测发现bug,修复
1 parent
7973697a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
platform-merchants-container/src/main/java/cn/com/glsx/merchants/mapper/MerchantMapper.java
platform-merchants-container/src/main/resources/META-INF/orm/MerchantMapper.xml
platform-merchants-container/src/main/java/cn/com/glsx/merchants/mapper/MerchantMapper.java
View file @
e72b9e7
...
@@ -175,5 +175,5 @@ public interface MerchantMapper extends CommonBaseMapper<Merchant> {
...
@@ -175,5 +175,5 @@ public interface MerchantMapper extends CommonBaseMapper<Merchant> {
List
<
Integer
>
pageListMerchantIds
(
RpcPagination
<
MerchantPageWithBrandDTO
>
pagination
);
List
<
Integer
>
pageListMerchantIds
(
RpcPagination
<
MerchantPageWithBrandDTO
>
pagination
);
List
<
MerchantPageWithBrandDTO
>
listMerchantWithBrandByMerchantIds
(
Page
<
Integer
>
idPage
);
List
<
MerchantPageWithBrandDTO
>
listMerchantWithBrandByMerchantIds
(
@Param
(
"merchantIds"
)
List
<
Integer
>
merchantIds
);
}
}
\ No newline at end of file
\ No newline at end of file
platform-merchants-container/src/main/resources/META-INF/orm/MerchantMapper.xml
View file @
e72b9e7
...
@@ -1290,13 +1290,13 @@
...
@@ -1290,13 +1290,13 @@
AND m.del_flag = 0
AND m.del_flag = 0
<if
test=
"condition.brandIdList != null and condition.brandIdList.size() > 0"
>
<if
test=
"condition.brandIdList != null and condition.brandIdList.size() > 0"
>
AND m.first_brand_id IN
AND m.first_brand_id IN
<foreach
collection=
"brandIdList"
item=
"brandId"
open=
"("
separator=
","
close=
")"
>
<foreach
collection=
"
condition.
brandIdList"
item=
"brandId"
open=
"("
separator=
","
close=
")"
>
#{brandId}
#{brandId}
</foreach>
</foreach>
</if>
</if>
<if
test=
"condition.merchantIds != null and condition.merchantIds.size() > 0"
>
<if
test=
"condition.merchantIds != null and condition.merchantIds.size() > 0"
>
AND s.merchantNo IN
AND s.merchantNo IN
<foreach
collection=
"merchantIds"
item=
"merchantId"
open=
"("
separator=
","
close=
")"
>
<foreach
collection=
"
condition.
merchantIds"
item=
"merchantId"
open=
"("
separator=
","
close=
")"
>
#{merchantId}
#{merchantId}
</foreach>
</foreach>
</if>
</if>
...
@@ -1305,7 +1305,7 @@
...
@@ -1305,7 +1305,7 @@
<!-- 2. 根据商户ID列表查询带品牌的详情 -->
<!-- 2. 根据商户ID列表查询带品牌的详情 -->
<select
id=
"listMerchantWithBrandByMerchantIds"
parameterType=
"map"
resultMap=
"MerchantPageWithBrandDTOMap"
>
<select
id=
"listMerchantWithBrandByMerchantIds"
parameterType=
"map"
resultMap=
"MerchantPageWithBrandDTOMap"
>
SELECT DISTINCT s.merchantNo,
SELECT DISTINCT s.merchantNo
as merchant_id
,
s.merchant_name,
s.merchant_name,
IFNULL(m.first_brand_id, 0) AS brand_id,
IFNULL(m.first_brand_id, 0) AS brand_id,
IFNULL(m.sec_brand_id, 0) AS child_id
IFNULL(m.sec_brand_id, 0) AS child_id
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment