Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
quanku
qk_backend
Commits
88f67ee3
Commit
88f67ee3
authored
Feb 21, 2024
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
用户主页商品列表2
parent
1460ccb6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
ch-dao/src/main/resources/com/wwdz/ch/db/mapper/distribution/DistributorShareRecordMapper.xml
...h/db/mapper/distribution/DistributorShareRecordMapper.xml
+3
-3
No files found.
ch-dao/src/main/resources/com/wwdz/ch/db/mapper/distribution/DistributorShareRecordMapper.xml
View file @
88f67ee3
...
...
@@ -352,13 +352,13 @@
</select>
<select
id=
"findMaxPriceRecord"
parameterType=
"java.lang.Long"
resultMap=
"BaseResultMap"
>
SELECT
o
.*
FROM distributor_share_record
o
SELECT
d
.*
FROM distributor_share_record
d
JOIN
(SELECT item_id, MAX(price) as max_amount
FROM distributor_share_record
GROUP BY item_id) t
ON
o.item_id = t.item_id AND price = t.max_amount
;
ON
d.item_id = t.item_id AND price = t.max_amount where d.distributor_id = #{distributorId} AND d.enabled =1
;
</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